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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +2 -3
- data/lib/usabilla_api/usabilla_api.rb +1 -4
- data/lib/usabilla_api/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26b4c34efe0fb872823f70e7d250b0f290b9d767
|
4
|
+
data.tar.gz: 6b0a1a866ac365aadc77950abf5bcc0403d6c15e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|
data/lib/usabilla_api/version.rb
CHANGED
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.
|
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
|