smooth_operator 0.3.4 → 0.3.6

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.
@@ -27,7 +27,12 @@ module SmoothOperator
27
27
 
28
28
  def make_the_call(http_verb, relative_path, options = {})
29
29
  url = build_url(relative_path)
30
- http_handler_base.make_the_call(http_verb, url, (options || {}), get_basic_auth_credentials)
30
+ options = query_string(options || {})
31
+ http_handler_base.make_the_call(http_verb, url, options, get_basic_auth_credentials)
32
+ end
33
+
34
+ def query_string(options)
35
+ options
31
36
  end
32
37
 
33
38
  end
@@ -1,3 +1,3 @@
1
1
  module SmoothOperator
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.6"
3
3
  end
@@ -5,4 +5,3 @@ end
5
5
  require "smooth_operator/version"
6
6
  require "smooth_operator/core"
7
7
  require "smooth_operator/base"
8
- require "smooth_operator/rollback"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smooth_operator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.6
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: 2013-08-13 00:00:00.000000000 Z
12
+ date: 2013-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -81,7 +81,6 @@ files:
81
81
  - lib/smooth_operator/operator/exceptions.rb
82
82
  - lib/smooth_operator/operator/orm.rb
83
83
  - lib/smooth_operator/operator/remote_call.rb
84
- - lib/smooth_operator/rollback.rb
85
84
  - lib/smooth_operator/version.rb
86
85
  - smooth_operator.gemspec
87
86
  homepage: https://github.com/goncalvesjoao/smooth_operator
@@ -1,16 +0,0 @@
1
- module SmoothOperator
2
-
3
- class Rollback < SmoothOperator::Base
4
-
5
- def rollback(options = {}, dont_update = false)
6
- http_handler_orm.make_the_call(:delete, options, "#{version_id}/rollback") do |remote_call|
7
- set_raw_response_exception_and_build_proper_response(remote_call)
8
-
9
- new_attributes = remote_call.get_attributes(self.class.model_name_downcase)
10
- assign_attributes(new_attributes.slice("id", "version_id"))
11
- end
12
- end
13
-
14
- end
15
-
16
- end