usabilla_api 1.0.0 → 1.0.1

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: db65af4676d58be1cf70ca2e7c0f96b807bb3dfe
4
- data.tar.gz: 89dc94113c6d425313e815d6f80712af2e2628a6
3
+ metadata.gz: 26b4c34efe0fb872823f70e7d250b0f290b9d767
4
+ data.tar.gz: 6b0a1a866ac365aadc77950abf5bcc0403d6c15e
5
5
  SHA512:
6
- metadata.gz: 1a1a67dec764ed86771461f8d7692bb6a10e118f06209f322e4afd3c81217d3d40b23c1b82dc9daf708024f88a80982ef930adcee7964b71903ce9f2ddfc7dae
7
- data.tar.gz: 5431dafeae40e59d32050468ff260d7f7f5573effd97518945236cbf313ad4216a978ee244a1f401bfe2de5b4f007f8a9dbed42faaa1eca1c23c0c97aaf055b0
6
+ metadata.gz: 15922cda8bdba95c3394236368a3e85a7047b3e862a58dce9a5273114e7b56109eb249c3c243a4a38cf63008051835f5dcf1651020c8bd8358ee9bbd323a5f6a
7
+ data.tar.gz: f7439b97caaccab1516c6efada558c6d580f14d6fbc61ea29d9a3365a17c0557886e528d769458f0674e95d96eb8fb980090b3ad0ddda52778cbe8650f9564ec
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ Version History
2
+ ====
3
+ * All version update notes will be included here.
4
+ ----
5
+
6
+ * **1.0.0** 100% Testing Included. Refactoring to the way you call convenience functions has changed, you must now change
7
+ your previous function calls to what has been updated in the [Readme file](https://github.com/JMolinaro/usabilla_api/blob/master/README.md) under Usage.
data/README.md CHANGED
@@ -13,9 +13,9 @@ Access & Secret Key are required
13
13
  ```
14
14
  UsabillaApi.configuration.access_key = 'YOUR-ACCESS-KEY'
15
15
  UsabillaApi.configuration.secret_key = 'YOUR-SECRET-KEY'
16
- ```
17
- Change 'YOUR-ACCESS-KEY' & 'YOUR-SECRET-KEY' to appropriate values.
18
16
 
17
+ #Change 'YOUR-ACCESS-KEY' & 'YOUR-SECRET-KEY' to appropriate values.
18
+ ```
19
19
  Get your access and secret key here: [Usabilla Member API](https://usabilla.com/member/api)
20
20
 
21
21
  You can either return an Object (default) or a the original JSON string.
@@ -84,7 +84,6 @@ Thanks!
84
84
 
85
85
 
86
86
  ######TODO
87
- * Testing
88
87
  * Refactoring
89
88
 
90
89
  *isn't this always the case though?* ~_^
@@ -55,7 +55,7 @@ module UsabillaApi
55
55
  datestamp = t.strftime('%Y%m%d') # Date w/o time, used in credential scope
56
56
  long_date = t.strftime('%Y%m%dT%H%M%SZ')
57
57
 
58
- query_string = build_query_string(@query_parameters)
58
+ query_string = "limit=#{@query_parameters['limit']}&since=#{@query_parameters['since']}"
59
59
  canonical_headers = "date:#{usbldate}\nhost:#{@host}\n"
60
60
  signed_headers = 'date;host'
61
61
  payload_hash = OpenSSL::Digest::SHA256.new.hexdigest
@@ -93,8 +93,5 @@ module UsabillaApi
93
93
  uri.gsub(':id', @query_id)
94
94
  end
95
95
 
96
- def build_query_string(hash)
97
- hash.to_a.reverse.map { |x| "#{x[0]}=#{x[1]}" }.join("&") unless hash.nil?
98
- end
99
96
  end
100
97
  end
@@ -1,3 +1,3 @@
1
1
  module UsabillaApi
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: usabilla_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Molinaro
@@ -145,6 +145,7 @@ executables: []
145
145
  extensions: []
146
146
  extra_rdoc_files: []
147
147
  files:
148
+ - CHANGELOG.md
148
149
  - README.md
149
150
  - lib/usabilla_api.rb
150
151
  - lib/usabilla_api/clients/button.rb