buttercoin 0.0.3 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bc45737fd775dba65e1f20207f6900d6ba0e497
4
- data.tar.gz: f9dff378edee26de8b8b59a2f1d5ec7b4b84e674
3
+ metadata.gz: 4ae0565d5a9c27db55eb31efbdaabb27537418f8
4
+ data.tar.gz: 5037ce9dc22dc6e949871f3c921ffb0919fcd602
5
5
  SHA512:
6
- metadata.gz: a70b2ed53190bff4d91402541d5a2ed8449726f89493fa3c123ef1bf4c1e96af6b8fa5a09137c7d32675006eb9973df0826bf14e2b67a06e9293c036b3585c61
7
- data.tar.gz: b773a49233264922db775f59026f7d2f76d9e7683c8492899e8a3cdc5ab2bf4e30a66f9356f9c56acca1893bd409ad2b5b1700ede3877601e9085ee9cd823f5d
6
+ metadata.gz: d5cfbf0fcaa45da8dd328ba263e211c3238d2786091f8aa29fda06b38e1fbe4429a799f0ac3a0d0defd95c98d60e8ce5d4bd0d86ca92b3f52aa39f7c1cad3fdf
7
+ data.tar.gz: fed08e69a16ea24beb966e4a2492aa2ac284f45634ff303d64439c9ccaf0bb797fcd660a9aefc183eea3ef0f6360a2a7838f2ed06b7dd9c68a44a6f6fe390d6a
@@ -46,6 +46,7 @@ module Buttercoin
46
46
  # Wrappers for the main HTTP verbs
47
47
 
48
48
  def get(path, timestamp=nil, options={}, authenticate=true)
49
+ path = "#{path}?#{URI.encode_www_form(options)}" if !options.empty?
49
50
  http_request :get, path, timestamp, options, authenticate
50
51
  end
51
52
 
@@ -80,7 +81,6 @@ module Buttercoin
80
81
 
81
82
  def build_message(verb, path, timestamp, options)
82
83
  if [:get, :delete].include? verb
83
- path = "#{path}?#{URI.encode_www_form(options)}" if !options.empty?
84
84
  message = timestamp.to_s + self.class.base_uri + path
85
85
  else
86
86
  message = timestamp.to_s + self.class.base_uri + path + options.to_json
@@ -1,3 +1,3 @@
1
1
  module Buttercoin
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buttercoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Adams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-08 00:00:00.000000000 Z
11
+ date: 2014-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov