fastly/fastly-ruby — Issue #4: Every invocation of fastly_upload_vcl from v0.95 dies with an error
Author: smerrill
Created: 2011-12-21 04:06:48+00:00
State: open

Hey all - Fastly is looking great!

I installed the fastly gem on my machine. I'm running Lion with ruby 1.9.2-p290 on a MacBook Air.

Here's the install:

```
┌┤smerrill@tinier-shinier [Dec 20 21:47:01] ~
└╼ gem install fastly
Fetching: rack-test-0.6.1.gem (100%)
Fetching: curb-fu-0.6.1.gem (100%)
Fetching: rdoc-3.12.gem (100%)
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Fetching: fastly-0.95.gem (100%)
Successfully installed rack-test-0.6.1
Successfully installed curb-fu-0.6.1
Successfully installed rdoc-3.12
Successfully installed fastly-0.95
4 gems installed
Installing ri documentation for rack-test-0.6.1...
Installing ri documentation for curb-fu-0.6.1...
Installing ri documentation for rdoc-3.12...
Installing ri documentation for fastly-0.95...
Installing RDoc documentation for rack-test-0.6.1...
Installing RDoc documentation for curb-fu-0.6.1...
Installing RDoc documentation for rdoc-3.12...
Installing RDoc documentation for fastly-0.95...
```

I do have a ~/.fastly file with my api key in it.

On any invocation of `fastly_upload_vcl` (no matter the parameters,) I get the following error:

```
┌┤smerrill@tinier-shinier [Dec 20 22:00:49] ~/Documents/Development/fastly on master ?
└╼ fastly_upload_vcl default.vcl
/Users/smerrill/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
/Users/smerrill/.rvm/gems/ruby-1.9.2-p290/gems/fastly-0.95/lib/fastly.rb:433:in `get_options': wrong number of arguments (2 for 1) (ArgumentError)
from /Users/smerrill/.rvm/gems/ruby-1.9.2-p290/gems/fastly-0.95/bin/fastly_upload_vcl:40:in `'
from /Users/smerrill/.rvm/gems/ruby-1.9.2-p290/bin/fastly_upload_vcl:19:in `load'
from /Users/smerrill/.rvm/gems/ruby-1.9.2-p290/bin/fastly_upload_vcl:19:in `

'
┌┤smerrill@tinier-shinier:1 [Dec 20 22:00:55] ~/Documents/Development/fastly on master ?
└╼ fastly_upload_vcl cwaHjaeh9EaK9RcZ9Hm9F ./default.vcl
/Users/smerrill/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
/Users/smerrill/.rvm/gems/ruby-1.9.2-p290/gems/fastly-0.95/lib/fastly.rb:433:in `get_options': wrong number of arguments (2 for 1) (ArgumentError)
from /Users/smerrill/.rvm/gems/ruby-1.9.2-p290/gems/fastly-0.95/bin/fastly_upload_vcl:40:in `'
from /Users/smerrill/.rvm/gems/ruby-1.9.2-p290/bin/fastly_upload_vcl:19:in `load'
from /Users/smerrill/.rvm/gems/ruby-1.9.2-p290/bin/fastly_upload_vcl:19:in `

'
┌┤smerrill@tinier-shinier:1 [Dec 20 22:01:33] ~/Documents/Development/fastly on master ?
└╼ fastly_upload_vcl
/Users/smerrill/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
/Users/smerrill/.rvm/gems/ruby-1.9.2-p290/gems/fastly-0.95/lib/fastly.rb:433:in `get_options': wrong number of arguments (2 for 1) (ArgumentError)
from /Users/smerrill/.rvm/gems/ruby-1.9.2-p290/gems/fastly-0.95/bin/fastly_upload_vcl:40:in `'
from /Users/smerrill/.rvm/gems/ruby-1.9.2-p290/bin/fastly_upload_vcl:19:in `load'
from /Users/smerrill/.rvm/gems/ruby-1.9.2-p290/bin/fastly_upload_vcl:19:in `

'
```

Let me know how I can help test.