veslo 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/veslo.rb +5 -4
- data/spec/veslo_spec.rb +1 -1
- data/veslo.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/veslo.rb
CHANGED
@@ -76,16 +76,17 @@ class Veslo
|
|
76
76
|
@server["#{@resource}/#{@name}"].put(data)
|
77
77
|
end
|
78
78
|
|
79
|
-
def delete(resource, name)
|
79
|
+
def delete(resource, name, data)
|
80
80
|
@resource = resource
|
81
81
|
@name = name
|
82
|
-
resource_delete
|
82
|
+
resource_delete(data)
|
83
83
|
end
|
84
84
|
|
85
|
-
def resource_delete
|
86
|
-
@server["#{@resource}/#{@name}"].delete
|
85
|
+
def resource_delete(data)
|
86
|
+
@server["#{@resource}/#{@name}"].delete(data)
|
87
87
|
end
|
88
88
|
|
89
|
+
|
89
90
|
def resource_put_cli
|
90
91
|
raise NotImplementedError, "No STDIN yet" unless @file
|
91
92
|
file_content = File.open(@file, 'r').read
|
data/spec/veslo_spec.rb
CHANGED
@@ -59,7 +59,7 @@ describe "Veslo", "interacting with server as a library" do
|
|
59
59
|
end
|
60
60
|
|
61
61
|
it "should delete the a existing configuration" do
|
62
|
-
@veslo.delete("configurations", "existing").should == "Bye World!"
|
62
|
+
@veslo.delete("configurations", "existing", {:foo => "bar"}).should == "Bye World!"
|
63
63
|
end
|
64
64
|
|
65
65
|
it "should not get the a missing configuration" do
|
data/veslo.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veslo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
segments:
|
166
166
|
- 0
|
167
|
-
hash:
|
167
|
+
hash: 4374917773311401052
|
168
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
169
|
none: false
|
170
170
|
requirements:
|