pnthr 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pnthr/version.rb +1 -1
- data/spec/lib/pnthr_spec.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abd0491ec27e3ebf829cc680cfe5f4d0c13ccf88
|
4
|
+
data.tar.gz: 19802a36a7fbca05d599745fcecf8f734f8df3e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad9c4512449abec29ccc910a7899cf77a482b0aedb08d271d9ef9058e46fe620e843532a6e56b15c53615e3181065947b4cd9d249a320b3f6d028bf778846e57
|
7
|
+
data.tar.gz: d73aa80bee1c40fe62dde3bf07ab3a261649bebf7931e03609afe80f1ca3bd2851eb9f54ee8b7e5b9d4461fbbc87ceface9eb1f05ce752b25551af66444ec995
|
data/lib/pnthr/version.rb
CHANGED
data/spec/lib/pnthr_spec.rb
CHANGED
@@ -5,8 +5,9 @@ describe Pnthr do
|
|
5
5
|
|
6
6
|
host_url = 'https://pnthr-api.herokuapp.com/'
|
7
7
|
ssl_on = true
|
8
|
-
app_id = '
|
9
|
-
app_secret = '
|
8
|
+
app_id = '538362a63832640002020000'
|
9
|
+
app_secret = '8d1067143a608920a56f4d4a7c6e3d4b'
|
10
|
+
app_password = '22e5ab5743ea52caf34abcc02c0f161d'
|
10
11
|
|
11
12
|
pnthr = Pnthr::Security.new(app_id, app_secret, url: host_url, ssl: ssl_on, iv: app_id[0..15])
|
12
13
|
response = pnthr.roar('this is a test')
|
@@ -52,13 +53,12 @@ describe Pnthr do
|
|
52
53
|
end
|
53
54
|
|
54
55
|
it "should respond with a predictable string" do
|
55
|
-
response.body.should eq '
|
56
|
+
response.body.should eq 'VlxVfECSfl9Gd+Coafs=-538362a638326400'
|
56
57
|
end
|
57
58
|
|
58
59
|
it "should encrypt with a predictable string" do
|
59
60
|
test = Base64.encode64(pnthr.encrypt('this is a test')).strip! + "-#{app_id[0..15]}"
|
60
|
-
|
61
|
-
test.should eq 'ynXLtC+JSE/ApHPT/PQ=-536d49b863363500'
|
61
|
+
test.should eq 'Xwt+WH8rcvyxw6t28LA=-538362a638326400'
|
62
62
|
end
|
63
63
|
|
64
64
|
it "should cage with a predictable string" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pnthr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clay McIlrath
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|