version-one 0.0.6 → 0.0.7

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.
@@ -225,7 +225,7 @@ module VersionOne
225
225
 
226
226
  def exec(op_name, options={})
227
227
  client = options[:client] || VersionOne::Client.new
228
- client.post(href + "?op=#{op_name}")
228
+ client.post(href, {op: op_name})
229
229
  end
230
230
 
231
231
  def get_history(fields=nil)
@@ -29,8 +29,11 @@ module VersionOne
29
29
  end
30
30
  end
31
31
 
32
- def post(path, &block)
32
+ def post(path, query={}, &block)
33
33
  uri = path_uri(path)
34
+ if query && !query.empty?
35
+ uri.query = URI.encode_www_form(query)
36
+ end
34
37
 
35
38
  if block_given?
36
39
  request :post, uri, &block
@@ -1,3 +1,3 @@
1
1
  module VersionOne
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: version-one
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-04 00:00:00.000000000 Z
12
+ date: 2014-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: libxml-ruby