spore 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/.rvmrc +1 -0
  2. data/VERSION +1 -1
  3. data/lib/spore.rb +3 -2
  4. metadata +11 -5
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm --create use @spore
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -176,7 +176,7 @@ class Spore
176
176
  method = m['method'].downcase
177
177
  path = m['path']
178
178
  params = m['params']
179
- required = m['required_params'] || m['required']
179
+ required = m['required_params'] || m['required'] || []
180
180
  expected = m['expected']
181
181
  desc = m['description']
182
182
 
@@ -266,7 +266,8 @@ class Spore
266
266
  end
267
267
 
268
268
  # the response object we expect to have
269
- resp = client.send(method_name,path, params, h) if method_name =~ %r{get|post|put|delete}
269
+ resp = client.send(method_name,path, params, h) if method_name =~ %r{get|post|put}
270
+ resp = client.delete(path, h) if method_name == 'delete'
270
271
 
271
272
  return resp
272
273
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spore
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 19
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 5
9
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
10
11
  platform: ruby
11
12
  authors:
12
13
  - Alexis Sukrieh <sukria@sukria.net> [sukria]
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-01-20 00:00:00 +01:00
19
+ date: 2011-04-04 00:00:00 +02:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
@@ -26,6 +27,7 @@ dependencies:
26
27
  requirements:
27
28
  - - ">="
28
29
  - !ruby/object:Gem::Version
30
+ hash: 11
29
31
  segments:
30
32
  - 1
31
33
  - 4
@@ -41,6 +43,7 @@ dependencies:
41
43
  requirements:
42
44
  - - ">="
43
45
  - !ruby/object:Gem::Version
46
+ hash: 3
44
47
  segments:
45
48
  - 0
46
49
  version: "0"
@@ -56,6 +59,7 @@ extra_rdoc_files:
56
59
  - LICENSE
57
60
  - README.rdoc
58
61
  files:
62
+ - .rvmrc
59
63
  - LICENSE
60
64
  - README.rdoc
61
65
  - Rakefile
@@ -96,6 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
100
  requirements:
97
101
  - - ">="
98
102
  - !ruby/object:Gem::Version
103
+ hash: 3
99
104
  segments:
100
105
  - 0
101
106
  version: "0"
@@ -104,13 +109,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
109
  requirements:
105
110
  - - ">="
106
111
  - !ruby/object:Gem::Version
112
+ hash: 3
107
113
  segments:
108
114
  - 0
109
115
  version: "0"
110
116
  requirements: []
111
117
 
112
118
  rubyforge_project:
113
- rubygems_version: 1.3.7
119
+ rubygems_version: 1.6.2
114
120
  signing_key:
115
121
  specification_version: 3
116
122
  summary: A Ruby implementation for SPORE