vayacondios-server 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/app/http_shim.rb CHANGED
@@ -56,7 +56,7 @@ class HttpShim < Goliath::API
56
56
  return [404, {}, MultiJson.dump({error: "Not Found"})]
57
57
  rescue Vayacondios::Error::BadRequest => ex
58
58
  return [400, {}, MultiJson.dump({error: "Bad Request"})]
59
- rescue Exception => ex
59
+ rescue StandardError => ex
60
60
  puts ex
61
61
  ex.backtrace.each{|l| puts l}
62
62
  end
@@ -19,7 +19,7 @@ class Vayacondios
19
19
  when :create then
20
20
  (req = Net::HTTP::Put.new(@path)).body = MultiJson.encode(ary)
21
21
  when :update then
22
- (req = Net::HTTP::Put.new(@path, [["http_x_method", "PATCH"]])).body = MultiJson.encode(ary)
22
+ (req = Net::HTTP::Put.new(@path, {"x-method" => "PATCH"})).body = MultiJson.encode(ary)
23
23
  when :remove then
24
24
  (req = Net::HTTP::Delete.new(@path)).body = MultiJson.encode(ary)
25
25
  end
@@ -1,3 +1,3 @@
1
1
  class Vayacondios
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
@@ -24,7 +24,7 @@ describe Vayacondios::Client::ItemSet do
24
24
  req.method.should eql('PUT')
25
25
  req.body.should eql(ary.to_json)
26
26
  req.path.should eql('/v1/fooorg/itemset/footopic/fooid')
27
- req.each_header.to_a.should_not include(["http_x_method", "PATCH"])
27
+ req.each_header.to_a.should_not include(["x_method", "PATCH"])
28
28
  end
29
29
 
30
30
  it "generates a put request with a patch header when asked to update" do
@@ -33,7 +33,7 @@ describe Vayacondios::Client::ItemSet do
33
33
  req.method.should eql('PUT')
34
34
  req.body.should eql(ary.to_json)
35
35
  req.path.should eql('/v1/fooorg/itemset/footopic/fooid')
36
- req.each_header.to_a.should include(["http_x_method", "PATCH"])
36
+ req.each_header.to_a.should include(["x-method", "PATCH"])
37
37
  end
38
38
 
39
39
  it "generates a get request when asked to fetch" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vayacondios-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,11 +12,11 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-09-10 00:00:00.000000000 Z
15
+ date: 2012-09-24 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: configliere
19
- requirement: !ruby/object:Gem::Requirement
19
+ requirement: &70112437436680 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ! '>='
@@ -24,15 +24,10 @@ dependencies:
24
24
  version: 0.4.13
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: 0.4.13
27
+ version_requirements: *70112437436680
33
28
  - !ruby/object:Gem::Dependency
34
29
  name: gorillib
35
- requirement: !ruby/object:Gem::Requirement
30
+ requirement: &70112437436160 !ruby/object:Gem::Requirement
36
31
  none: false
37
32
  requirements:
38
33
  - - ~>
@@ -40,15 +35,10 @@ dependencies:
40
35
  version: 0.4.2
41
36
  type: :runtime
42
37
  prerelease: false
43
- version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
- requirements:
46
- - - ~>
47
- - !ruby/object:Gem::Version
48
- version: 0.4.2
38
+ version_requirements: *70112437436160
49
39
  - !ruby/object:Gem::Dependency
50
40
  name: eventmachine
51
- requirement: !ruby/object:Gem::Requirement
41
+ requirement: &70112437435700 !ruby/object:Gem::Requirement
52
42
  none: false
53
43
  requirements:
54
44
  - - ~>
@@ -56,15 +46,10 @@ dependencies:
56
46
  version: 1.0.0.beta.4
57
47
  type: :runtime
58
48
  prerelease: false
59
- version_requirements: !ruby/object:Gem::Requirement
60
- none: false
61
- requirements:
62
- - - ~>
63
- - !ruby/object:Gem::Version
64
- version: 1.0.0.beta.4
49
+ version_requirements: *70112437435700
65
50
  - !ruby/object:Gem::Dependency
66
51
  name: goliath
67
- requirement: !ruby/object:Gem::Requirement
52
+ requirement: &70112437435240 !ruby/object:Gem::Requirement
68
53
  none: false
69
54
  requirements:
70
55
  - - ~>
@@ -72,15 +57,10 @@ dependencies:
72
57
  version: '1.0'
73
58
  type: :runtime
74
59
  prerelease: false
75
- version_requirements: !ruby/object:Gem::Requirement
76
- none: false
77
- requirements:
78
- - - ~>
79
- - !ruby/object:Gem::Version
80
- version: '1.0'
60
+ version_requirements: *70112437435240
81
61
  - !ruby/object:Gem::Dependency
82
62
  name: em-http-request
83
- requirement: !ruby/object:Gem::Requirement
63
+ requirement: &70112437434760 !ruby/object:Gem::Requirement
84
64
  none: false
85
65
  requirements:
86
66
  - - ~>
@@ -88,15 +68,10 @@ dependencies:
88
68
  version: '1.0'
89
69
  type: :runtime
90
70
  prerelease: false
91
- version_requirements: !ruby/object:Gem::Requirement
92
- none: false
93
- requirements:
94
- - - ~>
95
- - !ruby/object:Gem::Version
96
- version: '1.0'
71
+ version_requirements: *70112437434760
97
72
  - !ruby/object:Gem::Dependency
98
73
  name: em-mongo
99
- requirement: !ruby/object:Gem::Requirement
74
+ requirement: &70112437450660 !ruby/object:Gem::Requirement
100
75
  none: false
101
76
  requirements:
102
77
  - - ~>
@@ -104,15 +79,10 @@ dependencies:
104
79
  version: 0.4.3
105
80
  type: :runtime
106
81
  prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- none: false
109
- requirements:
110
- - - ~>
111
- - !ruby/object:Gem::Version
112
- version: 0.4.3
82
+ version_requirements: *70112437450660
113
83
  - !ruby/object:Gem::Dependency
114
84
  name: bson_ext
115
- requirement: !ruby/object:Gem::Requirement
85
+ requirement: &70112437450200 !ruby/object:Gem::Requirement
116
86
  none: false
117
87
  requirements:
118
88
  - - ~>
@@ -120,15 +90,10 @@ dependencies:
120
90
  version: '1.6'
121
91
  type: :runtime
122
92
  prerelease: false
123
- version_requirements: !ruby/object:Gem::Requirement
124
- none: false
125
- requirements:
126
- - - ~>
127
- - !ruby/object:Gem::Version
128
- version: '1.6'
93
+ version_requirements: *70112437450200
129
94
  - !ruby/object:Gem::Dependency
130
95
  name: foreman
131
- requirement: !ruby/object:Gem::Requirement
96
+ requirement: &70112437449820 !ruby/object:Gem::Requirement
132
97
  none: false
133
98
  requirements:
134
99
  - - ! '>='
@@ -136,15 +101,10 @@ dependencies:
136
101
  version: '0'
137
102
  type: :runtime
138
103
  prerelease: false
139
- version_requirements: !ruby/object:Gem::Requirement
140
- none: false
141
- requirements:
142
- - - ! '>='
143
- - !ruby/object:Gem::Version
144
- version: '0'
104
+ version_requirements: *70112437449820
145
105
  - !ruby/object:Gem::Dependency
146
106
  name: rake
147
- requirement: !ruby/object:Gem::Requirement
107
+ requirement: &70112437449360 !ruby/object:Gem::Requirement
148
108
  none: false
149
109
  requirements:
150
110
  - - ! '>='
@@ -152,15 +112,10 @@ dependencies:
152
112
  version: '0'
153
113
  type: :development
154
114
  prerelease: false
155
- version_requirements: !ruby/object:Gem::Requirement
156
- none: false
157
- requirements:
158
- - - ! '>='
159
- - !ruby/object:Gem::Version
160
- version: '0'
115
+ version_requirements: *70112437449360
161
116
  - !ruby/object:Gem::Dependency
162
117
  name: mongo
163
- requirement: !ruby/object:Gem::Requirement
118
+ requirement: &70112437448940 !ruby/object:Gem::Requirement
164
119
  none: false
165
120
  requirements:
166
121
  - - ! '>='
@@ -168,12 +123,7 @@ dependencies:
168
123
  version: '0'
169
124
  type: :development
170
125
  prerelease: false
171
- version_requirements: !ruby/object:Gem::Requirement
172
- none: false
173
- requirements:
174
- - - ! '>='
175
- - !ruby/object:Gem::Version
176
- version: '0'
126
+ version_requirements: *70112437448940
177
127
  description: Simple enough to use in a shell script, performant enough to use everywhere.
178
128
  Dios mío! Record that metric, ese!
179
129
  email:
@@ -247,7 +197,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
247
197
  version: '0'
248
198
  segments:
249
199
  - 0
250
- hash: -1252919032941517735
200
+ hash: 1278306223902219188
251
201
  required_rubygems_version: !ruby/object:Gem::Requirement
252
202
  none: false
253
203
  requirements:
@@ -256,10 +206,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
256
206
  version: '0'
257
207
  segments:
258
208
  - 0
259
- hash: -1252919032941517735
209
+ hash: 1278306223902219188
260
210
  requirements: []
261
211
  rubyforge_project:
262
- rubygems_version: 1.8.23
212
+ rubygems_version: 1.8.11
263
213
  signing_key:
264
214
  specification_version: 3
265
215
  summary: Data goes in. The right thing happens