smaak 0.2.0 → 0.2.1

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: 685bcd7d6219373c53cb4b6e64391a810b75c9b7
4
- data.tar.gz: 2388377ec73aa7a30a3c5149669092865a22342c
3
+ metadata.gz: 9f812bcc83c465efcb9ac8bced9fc731fc993531
4
+ data.tar.gz: 1235b3097d2ab15db4bec391a8c19bb491c65ea6
5
5
  SHA512:
6
- metadata.gz: 12e5a7872bf97d282c4fd918eabaf763ff73eae95b8320bd108f3cf8e8eeab77d3c9b314330533b52a3e3d8f1080ef9c560fc0d0019f2aa77f82c7e71cc93fa2
7
- data.tar.gz: 10b54cceaed0fb18133d9650627557bf120a3ff4b0bbabf97645f84cb90b6bb8896fbb0369fec9ac0a2644fc604ae0d7daf32a995138672d7ef0855b5c4528d3
6
+ metadata.gz: 6d6c57ed9ddddd0686426108b4c164b31514719b79cf060385796af245c0813cde0e8466d3888e80df50a6d46642eb97b4c72182f4a93d481a39f13a8b678b03
7
+ data.tar.gz: ced1b4463255bd43686babea4ca745cc345c08ab9ebfe8b9c897d405eedda2053eb42dd52553a3f0eb2088ec253e455a902de52c1bbadc34a1e91b5a25139f01
data/README.md CHANGED
@@ -150,7 +150,7 @@ Or install it yourself as:
150
150
 
151
151
  Please send feedback and comments to the author at:
152
152
 
153
- Ernst van Graan <ernst.van.graan@hetzner.co.za>
153
+ Ernst van Graan <ernstvangraan@gmail.com>
154
154
 
155
155
  Thanks to Sheldon Hearn for review and great ideas that unblocked complex challenges (https://rubygems.org/profiles/sheldonh).
156
156
 
data/lib/smaak/server.rb CHANGED
@@ -51,6 +51,15 @@ module Smaak
51
51
  if (@verify_recipient) and (not auth_message.intended_for_recipient?(@key.export))
52
52
  puts "[smaak error]: message not intended for this recipient"
53
53
  return false
54
+ # verified = false
55
+ # TBD - IOC this to smaak_bus
56
+ # if auth_message.router_info
57
+ # verified = auth_message.intended_for_recipient?(@association_store[auth_message.router_info])
58
+ # end
59
+ # if not verified
60
+ # puts "[smaak error]: message not intended for this recipient"
61
+ # return false
62
+ # end
54
63
  end
55
64
  identifier = auth_message.identifier
56
65
  if @association_store[identifier].nil?
data/lib/smaak/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Smaak
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/smaak.gemspec CHANGED
@@ -7,24 +7,24 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "smaak"
8
8
  spec.version = Smaak::VERSION
9
9
  spec.authors = ["Ernst van Graan"]
10
- spec.email = ["ernst.van.graan@hetzner.co.za"]
10
+ spec.email = ["ernstvangraan@gmail.com"]
11
11
  spec.description = %q{Signed Message Authentication and Authorization with Key validation}
12
12
  spec.summary = %q{This gems caters for both client and server side of a signed message interaction over HTTP or HTTPS implementing the RFC2617 Digest Access Authentication. The following compromises are protected against as specified: Man in the middle / snooping (HTTPS turned on), Replay (nonce + expires), Forgery (signature), Masquerading (recipient pub key check), Clear-text password compromise (MD5 pre-shared key)}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/evangraan/smaak.git"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
- # spec.required_ruby_version = '>= 2.0'
20
+ spec.required_ruby_version = '>= 2.0'
21
21
 
22
- spec.add_dependency "persistent-cache-ram"
22
+ spec.add_dependency "persistent-cache-ram", "~> 0.4.2"
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
- spec.add_development_dependency "rake"
25
- # spec.add_development_dependency "byebug"
26
- spec.add_development_dependency 'simplecov'
27
- spec.add_development_dependency 'simplecov-rcov'
28
- spec.add_development_dependency 'rspec'
29
- spec.add_development_dependency 'rack'
24
+ spec.add_development_dependency "rake", "~> 10.5.0"
25
+ spec.add_development_dependency "byebug"
26
+ spec.add_development_dependency 'simplecov', "~> 0.11.1"
27
+ spec.add_development_dependency 'simplecov-rcov', "~> 0.2.3"
28
+ spec.add_development_dependency 'rspec', "~> 3.4.0"
29
+ spec.add_development_dependency 'rack', "~> 1.6.4"
30
30
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smaak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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: 2016-05-27 00:00:00.000000000 Z
11
+ date: 2016-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: persistent-cache-ram
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.4.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.4.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -40,6 +40,20 @@ dependencies:
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 10.5.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 10.5.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: byebug
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - '>='
@@ -56,61 +70,61 @@ dependencies:
56
70
  name: simplecov
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - '>='
73
+ - - ~>
60
74
  - !ruby/object:Gem::Version
61
- version: '0'
75
+ version: 0.11.1
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - '>='
80
+ - - ~>
67
81
  - !ruby/object:Gem::Version
68
- version: '0'
82
+ version: 0.11.1
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: simplecov-rcov
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - '>='
87
+ - - ~>
74
88
  - !ruby/object:Gem::Version
75
- version: '0'
89
+ version: 0.2.3
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - '>='
94
+ - - ~>
81
95
  - !ruby/object:Gem::Version
82
- version: '0'
96
+ version: 0.2.3
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rspec
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - '>='
101
+ - - ~>
88
102
  - !ruby/object:Gem::Version
89
- version: '0'
103
+ version: 3.4.0
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - '>='
108
+ - - ~>
95
109
  - !ruby/object:Gem::Version
96
- version: '0'
110
+ version: 3.4.0
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rack
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - '>='
115
+ - - ~>
102
116
  - !ruby/object:Gem::Version
103
- version: '0'
117
+ version: 1.6.4
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - '>='
122
+ - - ~>
109
123
  - !ruby/object:Gem::Version
110
- version: '0'
124
+ version: 1.6.4
111
125
  description: Signed Message Authentication and Authorization with Key validation
112
126
  email:
113
- - ernst.van.graan@hetzner.co.za
127
+ - ernstvangraan@gmail.com
114
128
  executables: []
115
129
  extensions: []
116
130
  extra_rdoc_files: []
@@ -147,7 +161,7 @@ files:
147
161
  - spec/lib/smaak_spec.rb
148
162
  - spec/mock/request.rb
149
163
  - spec/spec_helper.rb
150
- homepage: ''
164
+ homepage: https://github.com/evangraan/smaak.git
151
165
  licenses:
152
166
  - MIT
153
167
  metadata: {}
@@ -159,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
173
  requirements:
160
174
  - - '>='
161
175
  - !ruby/object:Gem::Version
162
- version: '0'
176
+ version: '2.0'
163
177
  required_rubygems_version: !ruby/object:Gem::Requirement
164
178
  requirements:
165
179
  - - '>='