vayacondios-server 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
data/lib/tasks/publish.rake
CHANGED
@@ -17,7 +17,7 @@ Dir['*.gemspec'].each do |gemspec|
|
|
17
17
|
sh 'git', 'tag', '-m', "releasing #{gem_name}", "#{gem_name}-v#{Vayacondios::VERSION}"
|
18
18
|
branch = `git branch | awk -F '/* ' '{print $2}'`.strip
|
19
19
|
sh "git push origin #{branch}"
|
20
|
-
sh "git push origin
|
20
|
+
sh "git push origin #{gem_name}-v#{Vayacondios::VERSION}"
|
21
21
|
sh "ls pkg/#{gem_name}*.gem | xargs -n 1 gem push"
|
22
22
|
end
|
23
23
|
end
|
data/lib/vayacondios/version.rb
CHANGED
data/spec/server/config_spec.rb
CHANGED
@@ -33,16 +33,7 @@ describe HttpShim do
|
|
33
33
|
post_request({
|
34
34
|
:path => '/v1/infochimps/config/power/level',
|
35
35
|
:body => {:level=>"awesome"}
|
36
|
-
}, err)
|
37
|
-
c.response_header.status.should == 200
|
38
|
-
MultiJson.load(c.response).should eql ({
|
39
|
-
"topic" => "power",
|
40
|
-
"status" => "success",
|
41
|
-
"cargo" => {
|
42
|
-
"level" => "awesome"
|
43
|
-
}
|
44
|
-
})
|
45
|
-
end
|
36
|
+
}, err)
|
46
37
|
end
|
47
38
|
with_api(HttpShim) do |api|
|
48
39
|
get_request({:path => '/v1/infochimps/config/power/level'}, err) do |c|
|
@@ -51,5 +42,31 @@ describe HttpShim do
|
|
51
42
|
end
|
52
43
|
end
|
53
44
|
end
|
45
|
+
|
46
|
+
it 'merge deep configuration' do
|
47
|
+
with_api(HttpShim) do |api|
|
48
|
+
post_request({
|
49
|
+
:path => '/v1/infochimps/config/mergetest',
|
50
|
+
:body => { :foo => { :bar => 3 } }
|
51
|
+
}, err)
|
52
|
+
end
|
53
|
+
with_api(HttpShim) do |api|
|
54
|
+
post_request({
|
55
|
+
:path => '/v1/infochimps/config/mergetest',
|
56
|
+
:body => { :foo => { :baz => 7 } }
|
57
|
+
}, err)
|
58
|
+
end
|
59
|
+
with_api(HttpShim) do |api|
|
60
|
+
get_request({:path => '/v1/infochimps/config/mergetest'}, err) do |c|
|
61
|
+
c.response_header.status.should == 200
|
62
|
+
MultiJson.load(c.response).should eql({
|
63
|
+
"foo" => {
|
64
|
+
"bar" => "3",
|
65
|
+
"baz" => "7"
|
66
|
+
}
|
67
|
+
})
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
54
71
|
end
|
55
72
|
end
|
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.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -240,7 +240,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
240
240
|
version: '0'
|
241
241
|
segments:
|
242
242
|
- 0
|
243
|
-
hash: -
|
243
|
+
hash: -2723098123510614667
|
244
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
245
245
|
none: false
|
246
246
|
requirements:
|
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
249
|
version: '0'
|
250
250
|
segments:
|
251
251
|
- 0
|
252
|
-
hash: -
|
252
|
+
hash: -2723098123510614667
|
253
253
|
requirements: []
|
254
254
|
rubyforge_project:
|
255
255
|
rubygems_version: 1.8.23
|