vayacondios-client 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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-client
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: &70096037720540 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ! '>='
@@ -24,15 +24,10 @@ dependencies:
24
24
  version: 0.4.16
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.16
27
+ version_requirements: *70096037720540
33
28
  - !ruby/object:Gem::Dependency
34
29
  name: multi_json
35
- requirement: !ruby/object:Gem::Requirement
30
+ requirement: &70096037720020 !ruby/object:Gem::Requirement
36
31
  none: false
37
32
  requirements:
38
33
  - - ~>
@@ -40,15 +35,10 @@ dependencies:
40
35
  version: '1.1'
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: '1.1'
38
+ version_requirements: *70096037720020
49
39
  - !ruby/object:Gem::Dependency
50
40
  name: gorillib
51
- requirement: !ruby/object:Gem::Requirement
41
+ requirement: &70096037719500 !ruby/object:Gem::Requirement
52
42
  none: false
53
43
  requirements:
54
44
  - - ~>
@@ -56,15 +46,10 @@ dependencies:
56
46
  version: 0.4.2
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: 0.4.2
49
+ version_requirements: *70096037719500
65
50
  - !ruby/object:Gem::Dependency
66
51
  name: rake
67
- requirement: !ruby/object:Gem::Requirement
52
+ requirement: &70096037719080 !ruby/object:Gem::Requirement
68
53
  none: false
69
54
  requirements:
70
55
  - - ! '>='
@@ -72,15 +57,10 @@ dependencies:
72
57
  version: '0'
73
58
  type: :development
74
59
  prerelease: false
75
- version_requirements: !ruby/object:Gem::Requirement
76
- none: false
77
- requirements:
78
- - - ! '>='
79
- - !ruby/object:Gem::Version
80
- version: '0'
60
+ version_requirements: *70096037719080
81
61
  - !ruby/object:Gem::Dependency
82
62
  name: yard
83
- requirement: !ruby/object:Gem::Requirement
63
+ requirement: &70096037718540 !ruby/object:Gem::Requirement
84
64
  none: false
85
65
  requirements:
86
66
  - - ! '>='
@@ -88,15 +68,10 @@ dependencies:
88
68
  version: '0.7'
89
69
  type: :development
90
70
  prerelease: false
91
- version_requirements: !ruby/object:Gem::Requirement
92
- none: false
93
- requirements:
94
- - - ! '>='
95
- - !ruby/object:Gem::Version
96
- version: '0.7'
71
+ version_requirements: *70096037718540
97
72
  - !ruby/object:Gem::Dependency
98
73
  name: rspec
99
- requirement: !ruby/object:Gem::Requirement
74
+ requirement: &70096037718020 !ruby/object:Gem::Requirement
100
75
  none: false
101
76
  requirements:
102
77
  - - ! '>='
@@ -104,12 +79,7 @@ dependencies:
104
79
  version: '2.8'
105
80
  type: :development
106
81
  prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- none: false
109
- requirements:
110
- - - ! '>='
111
- - !ruby/object:Gem::Version
112
- version: '2.8'
82
+ version_requirements: *70096037718020
113
83
  description: Simple enough to use in a shell script, performant enough to use everywhere.
114
84
  Dios mío! Record that metric, ese!
115
85
  email:
@@ -138,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
108
  version: '0'
139
109
  segments:
140
110
  - 0
141
- hash: 489609352583290031
111
+ hash: -1084220644018223161
142
112
  required_rubygems_version: !ruby/object:Gem::Requirement
143
113
  none: false
144
114
  requirements:
@@ -147,10 +117,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
117
  version: '0'
148
118
  segments:
149
119
  - 0
150
- hash: 489609352583290031
120
+ hash: -1084220644018223161
151
121
  requirements: []
152
122
  rubyforge_project:
153
- rubygems_version: 1.8.23
123
+ rubygems_version: 1.8.11
154
124
  signing_key:
155
125
  specification_version: 3
156
126
  summary: Data goes in. The right thing happens