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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53fd9fe4578fa68539091f3b746abda5699f6112
4
- data.tar.gz: bff1001ef496c3d9d06d52964f8ffd78b65133d8
3
+ metadata.gz: 4b1a426b45199ad6be2236b380f63d3b7b1371d8
4
+ data.tar.gz: b1cfa8a3d1df1809fbe18cbca88468c8f8136f5a
5
5
  SHA512:
6
- metadata.gz: 6514785cd0fceedb7732d33ea9a9933d4e589b5d8234d530b3c9e36908ec5c22bfe3b3437656ab294829a80fcb979c70b366aada9eb60382ba405f7c62896ec7
7
- data.tar.gz: 4086051e9407628877a947a004b5dd83c391a2af1dd7b96c6a8f1234a8a6372c2560d276ea64b954cfeef535c7efdfe53990a4f91c35c4ef0e3f34d55ded4ec5
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
@@ -1,3 +1,3 @@
1
1
  module Smaak
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.14"
3
3
  end
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
@@ -3,7 +3,7 @@ require 'rspec/mocks'
3
3
  require 'tempfile'
4
4
  require 'simplecov'
5
5
  require 'simplecov-rcov'
6
- require 'byebug'
6
+ #require 'byebug'
7
7
  require 'net/http'
8
8
  require 'rack/request'
9
9
 
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.12
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: 2015-08-06 00:00:00.000000000 Z
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.0.14
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