open-sesame 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 859d249e195e6cbc4fbf67426aec29190987dbaa
4
+ data.tar.gz: 4b25a0a9e15c47323dc3650dfde6896d8a8a2da1
5
+ SHA512:
6
+ metadata.gz: 9f621330b497d78b8cdfd3af85c20c2fbbf611f3492784a139c73d9124bb40ded8de6ca2eed85206fb2a173e13c0f955b6539acfd4badbebe1c0e69dbb9e8b2b
7
+ data.tar.gz: 5024b9f75878d9d53243c4be32fa0595960b837965bc3b8ed6a429fa250e26876e15a20f7fa6e3c97fc7fdca09570546a572eb39d490e89f0699c5909c658b6b
data/Gemfile CHANGED
@@ -1,11 +1,10 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  group(:test, :development) do
4
- gem "rspec", "~> 2.11.0"
5
- gem "jeweler", "~> 1.8.4"
4
+ gem "rspec", "~> 3.8.0"
5
+ gem "jeweler", "~> 2.3.9"
6
6
  gem "simplecov", "~> 0.6.4"
7
- gem "yard", "~> 0.8.2.1"
7
+ gem "yard", "~> 0.9.11"
8
8
  gem "redcarpet", "~> 2.1.1"
9
9
  gem "delorean", "~> 2.0.0"
10
- gem "debugger"
11
- end
10
+ end
@@ -1,52 +1,87 @@
1
1
  GEM
2
- remote: http://rubygems.org/
2
+ remote: https://rubygems.org/
3
3
  specs:
4
- chronic (0.8.0)
5
- columnize (0.3.6)
6
- debugger (1.2.0)
7
- columnize (>= 0.3.1)
8
- debugger-linecache (~> 1.1.1)
9
- debugger-ruby_core_source (~> 1.1.3)
10
- debugger-linecache (1.1.2)
11
- debugger-ruby_core_source (>= 1.1.1)
12
- debugger-ruby_core_source (1.1.3)
4
+ addressable (2.4.0)
5
+ builder (3.2.3)
6
+ chronic (0.10.2)
13
7
  delorean (2.0.0)
14
8
  chronic
15
- diff-lcs (1.1.3)
16
- git (1.2.5)
17
- jeweler (1.8.4)
18
- bundler (~> 1.0)
9
+ descendants_tracker (0.0.4)
10
+ thread_safe (~> 0.3, >= 0.3.1)
11
+ diff-lcs (1.3)
12
+ faraday (0.9.2)
13
+ multipart-post (>= 1.2, < 3)
14
+ git (1.5.0)
15
+ github_api (0.16.0)
16
+ addressable (~> 2.4.0)
17
+ descendants_tracker (~> 0.0.4)
18
+ faraday (~> 0.8, < 0.10)
19
+ hashie (>= 3.4)
20
+ mime-types (>= 1.16, < 3.0)
21
+ oauth2 (~> 1.0)
22
+ hashie (3.6.0)
23
+ highline (2.0.0)
24
+ jeweler (2.3.9)
25
+ builder
26
+ bundler
19
27
  git (>= 1.2.5)
28
+ github_api (~> 0.16.0)
29
+ highline (>= 1.6.15)
30
+ nokogiri (>= 1.5.10)
31
+ psych
20
32
  rake
21
33
  rdoc
22
- json (1.7.5)
23
- multi_json (1.3.6)
24
- rake (0.9.2.2)
25
- rdoc (3.12)
26
- json (~> 1.4)
34
+ semver2
35
+ jwt (1.5.6)
36
+ mime-types (2.99.3)
37
+ mini_portile2 (2.3.0)
38
+ multi_json (1.13.1)
39
+ multi_xml (0.6.0)
40
+ multipart-post (2.0.0)
41
+ nokogiri (1.8.5)
42
+ mini_portile2 (~> 2.3.0)
43
+ oauth2 (1.4.0)
44
+ faraday (>= 0.8, < 0.13)
45
+ jwt (~> 1.0)
46
+ multi_json (~> 1.3)
47
+ multi_xml (~> 0.5)
48
+ rack (>= 1.2, < 3)
49
+ psych (3.0.2)
50
+ rack (2.0.5)
51
+ rake (12.3.1)
52
+ rdoc (6.0.4)
27
53
  redcarpet (2.1.1)
28
- rspec (2.11.0)
29
- rspec-core (~> 2.11.0)
30
- rspec-expectations (~> 2.11.0)
31
- rspec-mocks (~> 2.11.0)
32
- rspec-core (2.11.1)
33
- rspec-expectations (2.11.3)
34
- diff-lcs (~> 1.1.3)
35
- rspec-mocks (2.11.3)
54
+ rspec (3.8.0)
55
+ rspec-core (~> 3.8.0)
56
+ rspec-expectations (~> 3.8.0)
57
+ rspec-mocks (~> 3.8.0)
58
+ rspec-core (3.8.0)
59
+ rspec-support (~> 3.8.0)
60
+ rspec-expectations (3.8.2)
61
+ diff-lcs (>= 1.2.0, < 2.0)
62
+ rspec-support (~> 3.8.0)
63
+ rspec-mocks (3.8.0)
64
+ diff-lcs (>= 1.2.0, < 2.0)
65
+ rspec-support (~> 3.8.0)
66
+ rspec-support (3.8.0)
67
+ semver2 (3.4.2)
36
68
  simplecov (0.6.4)
37
69
  multi_json (~> 1.0)
38
70
  simplecov-html (~> 0.5.3)
39
71
  simplecov-html (0.5.3)
40
- yard (0.8.2.1)
72
+ thread_safe (0.3.6)
73
+ yard (0.9.16)
41
74
 
42
75
  PLATFORMS
43
76
  ruby
44
77
 
45
78
  DEPENDENCIES
46
- debugger
47
79
  delorean (~> 2.0.0)
48
- jeweler (~> 1.8.4)
80
+ jeweler (~> 2.3.9)
49
81
  redcarpet (~> 2.1.1)
50
- rspec (~> 2.11.0)
82
+ rspec (~> 3.8.0)
51
83
  simplecov (~> 0.6.4)
52
- yard (~> 0.8.2.1)
84
+ yard (~> 0.9.11)
85
+
86
+ BUNDLED WITH
87
+ 1.16.6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -2,15 +2,17 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: open-sesame 0.1.2 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
- s.name = "open-sesame"
8
- s.version = "0.1.1"
8
+ s.name = "open-sesame".freeze
9
+ s.version = "0.1.2"
9
10
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Ryan Alyn Porter"]
12
- s.date = "2012-10-14"
13
- s.description = "Use a time-sensitive cryptographic token based on a shared secret phrase to generate an authorization token for passing traffic from one web site to another."
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Ryan Alyn Porter".freeze]
14
+ s.date = "2018-10-10"
15
+ s.description = "Use a time-sensitive cryptographic token based on a shared secret phrase to generate an authorization token for passing traffic from one web site to another.".freeze
14
16
  s.extra_rdoc_files = [
15
17
  "README.md"
16
18
  ]
@@ -30,40 +32,36 @@ Gem::Specification.new do |s|
30
32
  "spec/spec_helper.rb",
31
33
  "uninstall.rb"
32
34
  ]
33
- s.homepage = "http://www.ryanalynporter.com/2009/06/25/authorizing-users-between-web-sites-with-open-sesame/"
34
- s.licenses = ["MIT"]
35
- s.require_paths = ["lib"]
36
- s.rubygems_version = "1.8.24"
37
- s.summary = "Send authorized traffic from one web site to another with a cryptographic authorization token."
35
+ s.homepage = "http://www.ryanalynporter.com/2009/06/25/authorizing-users-between-web-sites-with-open-sesame/".freeze
36
+ s.licenses = ["MIT".freeze]
37
+ s.rubygems_version = "2.6.12".freeze
38
+ s.summary = "Send authorized traffic from one web site to another with a cryptographic authorization token.".freeze
38
39
 
39
40
  if s.respond_to? :specification_version then
40
- s.specification_version = 3
41
+ s.specification_version = 4
41
42
 
42
43
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
- s.add_development_dependency(%q<rspec>, ["~> 2.11.0"])
44
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
45
- s.add_development_dependency(%q<simplecov>, ["~> 0.6.4"])
46
- s.add_development_dependency(%q<yard>, ["~> 0.8.2.1"])
47
- s.add_development_dependency(%q<redcarpet>, ["~> 2.1.1"])
48
- s.add_development_dependency(%q<delorean>, ["~> 2.0.0"])
49
- s.add_development_dependency(%q<debugger>, [">= 0"])
44
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.8.0"])
45
+ s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.3.9"])
46
+ s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.6.4"])
47
+ s.add_development_dependency(%q<yard>.freeze, ["~> 0.9.11"])
48
+ s.add_development_dependency(%q<redcarpet>.freeze, ["~> 2.1.1"])
49
+ s.add_development_dependency(%q<delorean>.freeze, ["~> 2.0.0"])
50
50
  else
51
- s.add_dependency(%q<rspec>, ["~> 2.11.0"])
52
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
53
- s.add_dependency(%q<simplecov>, ["~> 0.6.4"])
54
- s.add_dependency(%q<yard>, ["~> 0.8.2.1"])
55
- s.add_dependency(%q<redcarpet>, ["~> 2.1.1"])
56
- s.add_dependency(%q<delorean>, ["~> 2.0.0"])
57
- s.add_dependency(%q<debugger>, [">= 0"])
51
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.8.0"])
52
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.3.9"])
53
+ s.add_dependency(%q<simplecov>.freeze, ["~> 0.6.4"])
54
+ s.add_dependency(%q<yard>.freeze, ["~> 0.9.11"])
55
+ s.add_dependency(%q<redcarpet>.freeze, ["~> 2.1.1"])
56
+ s.add_dependency(%q<delorean>.freeze, ["~> 2.0.0"])
58
57
  end
59
58
  else
60
- s.add_dependency(%q<rspec>, ["~> 2.11.0"])
61
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
62
- s.add_dependency(%q<simplecov>, ["~> 0.6.4"])
63
- s.add_dependency(%q<yard>, ["~> 0.8.2.1"])
64
- s.add_dependency(%q<redcarpet>, ["~> 2.1.1"])
65
- s.add_dependency(%q<delorean>, ["~> 2.0.0"])
66
- s.add_dependency(%q<debugger>, [">= 0"])
59
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.8.0"])
60
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.3.9"])
61
+ s.add_dependency(%q<simplecov>.freeze, ["~> 0.6.4"])
62
+ s.add_dependency(%q<yard>.freeze, ["~> 0.9.11"])
63
+ s.add_dependency(%q<redcarpet>.freeze, ["~> 2.1.1"])
64
+ s.add_dependency(%q<delorean>.freeze, ["~> 2.0.0"])
67
65
  end
68
66
  end
69
67
 
@@ -21,30 +21,30 @@ describe OpenSesame do
21
21
 
22
22
  it 'can be verified.' do
23
23
  token = OpenSesame::Token.generate(@secret)
24
- OpenSesame::Token.verify(token, @secret).should be_true
24
+ OpenSesame::Token.verify(token, @secret).should be true
25
25
 
26
26
  token2 = OpenSesame::Token.generate # Default 'secret'.
27
- OpenSesame::Token.verify(token2).should be_true
27
+ OpenSesame::Token.verify(token2).should be true
28
28
  end
29
29
 
30
30
  it 'expires after one hour' do
31
31
  token = OpenSesame::Token.generate @secret
32
32
  Delorean.time_travel_to "59 minutes from now"
33
- OpenSesame::Token.verify(token, @secret).should be_true
33
+ OpenSesame::Token.verify(token, @secret).should be true
34
34
  Delorean.time_travel_to "61 minutes from now"
35
- OpenSesame::Token.verify(token, @secret).should_not be_true
35
+ OpenSesame::Token.verify(token, @secret).should_not be true
36
36
  end
37
37
 
38
38
  it 'cannot be verified if the time stamp is modified.' do
39
39
  token = OpenSesame::Token.generate @secret
40
40
  token.gsub!(/^(\d{8})/) {|match| match.to_i + 100 }
41
- OpenSesame::Token.verify(token, @secret).should_not be_true
41
+ OpenSesame::Token.verify(token, @secret).should_not be true
42
42
  end
43
43
 
44
44
  it 'cannot be verified if the hash is modified.' do
45
45
  token = OpenSesame::Token.generate @secret
46
46
  token[token.length - 1] = 'z'
47
- OpenSesame::Token.verify(token, @secret).should_not be_true
47
+ OpenSesame::Token.verify(token, @secret).should_not be true
48
48
  end
49
49
 
50
50
  end
@@ -63,22 +63,22 @@ describe OpenSesame do
63
63
 
64
64
  it 'can be verified.' do
65
65
  message = OpenSesame::Message.generate 'WELL HELLO THERE', @secret
66
- OpenSesame::Message.verify(message, @secret).should be_true
66
+ OpenSesame::Message.verify(message, @secret).should be true
67
67
 
68
68
  message2 = OpenSesame::Message.generate 'WELL HELLO THERE' # Default 'secret'.
69
- OpenSesame::Message.verify(message2).should be_true
69
+ OpenSesame::Message.verify(message2).should be true
70
70
  end
71
71
 
72
72
  it 'cannot be verified if the message is modified' do
73
73
  message = OpenSesame::Message.generate 'WELL HELLO THERE', @secret
74
74
  message.gsub!(/HELLO/, 'GOODBYE')
75
- OpenSesame::Message.verify(message, @secret).should_not be_true
75
+ OpenSesame::Message.verify(message, @secret).should_not be true
76
76
  end
77
77
 
78
78
  it 'cannot be verified if the hash is modified' do
79
79
  message = OpenSesame::Message.generate 'WELL HELLO THERE', @secret
80
80
  message[message.length - 1] = 'z'
81
- OpenSesame::Message.verify(message, @secret).should_not be_true
81
+ OpenSesame::Message.verify(message, @secret).should_not be true
82
82
  end
83
83
 
84
84
  it 'returns the message if it verifies' do
@@ -95,4 +95,4 @@ describe OpenSesame do
95
95
 
96
96
  end
97
97
 
98
- end
98
+ end
@@ -1,5 +1,4 @@
1
- require 'debugger'
2
1
  require 'delorean'
3
2
 
4
3
  require 'simplecov'
5
- SimpleCov.start
4
+ SimpleCov.start
metadata CHANGED
@@ -1,128 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open-sesame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ryan Alyn Porter
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-14 00:00:00.000000000 Z
11
+ date: 2018-10-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 2.11.0
19
+ version: 3.8.0
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 2.11.0
26
+ version: 3.8.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: jeweler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: 1.8.4
33
+ version: 2.3.9
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: 1.8.4
40
+ version: 2.3.9
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: simplecov
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: 0.6.4
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: 0.6.4
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: yard
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
- version: 0.8.2.1
61
+ version: 0.9.11
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
- version: 0.8.2.1
68
+ version: 0.9.11
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: redcarpet
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ~>
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
75
  version: 2.1.1
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ~>
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
82
  version: 2.1.1
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: delorean
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ~>
87
+ - - "~>"
100
88
  - !ruby/object:Gem::Version
101
89
  version: 2.0.0
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ~>
94
+ - - "~>"
108
95
  - !ruby/object:Gem::Version
109
96
  version: 2.0.0
110
- - !ruby/object:Gem::Dependency
111
- name: debugger
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
97
  description: Use a time-sensitive cryptographic token based on a shared secret phrase
127
98
  to generate an authorization token for passing traffic from one web site to another.
128
99
  email:
@@ -131,7 +102,7 @@ extensions: []
131
102
  extra_rdoc_files:
132
103
  - README.md
133
104
  files:
134
- - .rvmrc
105
+ - ".rvmrc"
135
106
  - Gemfile
136
107
  - Gemfile.lock
137
108
  - MIT-LICENSE
@@ -148,30 +119,26 @@ files:
148
119
  homepage: http://www.ryanalynporter.com/2009/06/25/authorizing-users-between-web-sites-with-open-sesame/
149
120
  licenses:
150
121
  - MIT
122
+ metadata: {}
151
123
  post_install_message:
152
124
  rdoc_options: []
153
125
  require_paths:
154
126
  - lib
155
127
  required_ruby_version: !ruby/object:Gem::Requirement
156
- none: false
157
128
  requirements:
158
- - - ! '>='
129
+ - - ">="
159
130
  - !ruby/object:Gem::Version
160
131
  version: '0'
161
- segments:
162
- - 0
163
- hash: 2028475080437174587
164
132
  required_rubygems_version: !ruby/object:Gem::Requirement
165
- none: false
166
133
  requirements:
167
- - - ! '>='
134
+ - - ">="
168
135
  - !ruby/object:Gem::Version
169
136
  version: '0'
170
137
  requirements: []
171
138
  rubyforge_project:
172
- rubygems_version: 1.8.24
139
+ rubygems_version: 2.6.12
173
140
  signing_key:
174
- specification_version: 3
141
+ specification_version: 4
175
142
  summary: Send authorized traffic from one web site to another with a cryptographic
176
143
  authorization token.
177
144
  test_files: []