cyberplat_pki 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/cyberplat_pki.gemspec +1 -2
- data/spec/spec_helper.rb +6 -6
- metadata +2 -4
- data/ext/mock_the_clock/extconf.rb +0 -3
data/cyberplat_pki.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "cyberplat_pki"
|
7
|
-
gem.version = "2.0.
|
7
|
+
gem.version = "2.0.5"
|
8
8
|
gem.authors = ["Peter Zotov"]
|
9
9
|
gem.email = ["whitequark@whitequark.org"]
|
10
10
|
gem.description = %q{CyberplatPKI is a library for signing Cyberplat requests.}
|
@@ -15,7 +15,6 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
16
16
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
17
17
|
gem.require_paths = ["lib"]
|
18
|
-
gem.extensions = ["ext/mock_the_clock/extconf.rb"]
|
19
18
|
|
20
19
|
gem.add_development_dependency "rspec"
|
21
20
|
gem.add_dependency 'digest-crc' # For CRC24
|
data/spec/spec_helper.rb
CHANGED
@@ -16,24 +16,24 @@ RSpec.configure do |config|
|
|
16
16
|
config.order = 'random'
|
17
17
|
end
|
18
18
|
|
19
|
-
if
|
20
|
-
RUBY_PLATFORM =~ /i.86/
|
19
|
+
if ENV['TIME_TRAVEL']
|
21
20
|
require 'time'
|
22
21
|
|
23
22
|
if Time.now != Time.parse('5th November 2005 00:00 UTC')
|
24
|
-
if ENV['
|
23
|
+
if ENV['DO_TIME_TRAVEL'] != '1'
|
25
24
|
puts "Travelling back in time..."
|
26
25
|
|
27
|
-
ENV['
|
26
|
+
ENV['DO_TIME_TRAVEL'] = '1'
|
28
27
|
|
29
28
|
mock_path = File.expand_path('../../ext/mock_the_clock/mock_the_clock.so', __FILE__)
|
30
29
|
exec "sh", "-c", "LD_PRELOAD=#{mock_path} #{$0}"
|
31
30
|
else
|
32
|
-
puts "Time machine failure
|
31
|
+
puts "Time machine failure."
|
32
|
+
exit! 1
|
33
33
|
end
|
34
34
|
else
|
35
35
|
puts "Time.now: #{Time.now}"
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
require 'cyberplat_pki'
|
39
|
+
require 'cyberplat_pki'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyberplat_pki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -63,8 +63,7 @@ description: CyberplatPKI is a library for signing Cyberplat requests.
|
|
63
63
|
email:
|
64
64
|
- whitequark@whitequark.org
|
65
65
|
executables: []
|
66
|
-
extensions:
|
67
|
-
- ext/mock_the_clock/extconf.rb
|
66
|
+
extensions: []
|
68
67
|
extra_rdoc_files: []
|
69
68
|
files:
|
70
69
|
- .gitignore
|
@@ -77,7 +76,6 @@ files:
|
|
77
76
|
- cyberplat_pki.gemspec
|
78
77
|
- ext/mock_the_clock/.gitignore
|
79
78
|
- ext/mock_the_clock/Makefile
|
80
|
-
- ext/mock_the_clock/extconf.rb
|
81
79
|
- ext/mock_the_clock/mock_the_clock.c
|
82
80
|
- lib/cyberplat_pki.rb
|
83
81
|
- lib/cyberplat_pki/document.rb
|