smaak 0.1.12 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smaak/client.rb +4 -0
- data/lib/smaak/server.rb +1 -1
- data/lib/smaak/version.rb +1 -1
- data/smaak.gemspec +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b1a426b45199ad6be2236b380f63d3b7b1371d8
|
4
|
+
data.tar.gz: b1cfa8a3d1df1809fbe18cbca88468c8f8136f5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4751ca12f83957bc06585818365d3a45591422d1d4e8d9d2b65db97d9425bfc2eeba3bc4e3dccc8dc5072438bb46b9aefacc4f6c85698aa03c46c92abf57b919
|
7
|
+
data.tar.gz: cde0bd2c129062972368428f7cd8d41aa2b6fa9a114469063a35d2a6920684f98b22f010c80702f01dd9d65daa50df7e8c09d23b423c0254d3907cc76edc2d10
|
data/lib/smaak/client.rb
CHANGED
@@ -55,6 +55,10 @@ module Smaak
|
|
55
55
|
response.body = Smaak::Crypto::decrypt(response.body, @key) if encrypt_associate?(identifier) and response.code[0] == '2'
|
56
56
|
puts "[smaak error]: response from #{identifier} was #{response.code}" if not response.code[0] == '2'
|
57
57
|
response
|
58
|
+
|
59
|
+
rescue => ex
|
60
|
+
puts "[smaak error] request to associate failed"
|
61
|
+
throw ex
|
58
62
|
end
|
59
63
|
|
60
64
|
def encrypt_associate?(identifier)
|
data/lib/smaak/server.rb
CHANGED
@@ -46,7 +46,7 @@ module Smaak
|
|
46
46
|
end
|
47
47
|
puts "[smaak error]: public key not set. Did you call set_public_key() ?" if @key.nil?
|
48
48
|
if not auth_message.intended_for_recipient?(@key.export)
|
49
|
-
puts "[smaak error]: message intended for this recipient"
|
49
|
+
puts "[smaak error]: message not intended for this recipient"
|
50
50
|
return false
|
51
51
|
end
|
52
52
|
identifier = auth_message.identifier
|
data/lib/smaak/version.rb
CHANGED
data/smaak.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_dependency "persistent-cache", ">= 0.3.9"
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
24
24
|
spec.add_development_dependency "rake"
|
25
|
-
spec.add_development_dependency "byebug"
|
25
|
+
#spec.add_development_dependency "byebug"
|
26
26
|
spec.add_development_dependency 'simplecov'
|
27
27
|
spec.add_development_dependency 'simplecov-rcov'
|
28
28
|
spec.add_development_dependency 'rspec'
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smaak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernst van Graan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: persistent-cache
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: byebug
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '>='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: simplecov
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
167
|
version: '0'
|
182
168
|
requirements: []
|
183
169
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.
|
170
|
+
rubygems_version: 2.2.2
|
185
171
|
signing_key:
|
186
172
|
specification_version: 4
|
187
173
|
summary: 'This gems caters for both client and server side of a signed message interaction
|