helix 0.0.4.5.pre → 0.0.4.6.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/helix/has_signatures.rb +2 -0
- data/spec/config_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTJhYjFjMGM1MDlhMzM2MjlkOThhYjg1ZWZjM2NlYzE4YThiNGZhMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzhiYTFkNmFlMDNjZTBlODEyOWJmMTA3MDNmZjJlMDhiY2M3ZGM4NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTk4NjJlZGI5OGVjMzYwMzY1MGY0NWQ2NjkzYzE1NjU4MTgxZjc2ZGY3NDI5
|
10
|
+
YTY3NzFmMTgzYTgxZmZiNmM1OWI4MGE0NWQxNjU1NTcwZWE4MmU0ZDFiYTEy
|
11
|
+
OTQ0YjY2MTA4YzhlZTU5YWEwOTQ3NjliM2E3OGM0NTYyOGYyNGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTBjZTIzN2RjMjgzN2JkYzE4ODI4MzBmNjM1ZDBjMmQ0MjkwYTk1OWE3YWFl
|
14
|
+
ODcxYWFjYTAyZGM3Y2JiOGU5NGIxNGZkMzNiNjFhNWFhNzk3NTMwMWE5YzM5
|
15
|
+
YzA0YjliYzhkODkzZTdhZDdmYzJhMDQwYzZhNjgxYjU5NDcwMjQ=
|
data/lib/helix/has_signatures.rb
CHANGED
@@ -64,6 +64,8 @@ module Helix
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def sig_expired_for?(sig_type)
|
67
|
+
# We intentionally only allow one use each for ingest signatures
|
68
|
+
return true if sig_type == :ingest
|
67
69
|
expires_at = @signature_expiration_for[license_key][sig_type]
|
68
70
|
return true if expires_at.nil?
|
69
71
|
expires_at <= Time.now
|
data/spec/config_spec.rb
CHANGED
@@ -613,6 +613,13 @@ describe Helix::Config do
|
|
613
613
|
it { should be true }
|
614
614
|
end
|
615
615
|
end
|
616
|
+
context "when the sig_type passed in is :ingest and the sig is not ready to expire" do
|
617
|
+
let(:not_expired_time) { Time.now + 10 }
|
618
|
+
before do obj.instance_variable_set(:@signature_expiration_for, {license_key => {:ingest => not_expired_time}}) end
|
619
|
+
it "should return true" do
|
620
|
+
expect(obj.send(meth, :ingest)).to be_true
|
621
|
+
end
|
622
|
+
end
|
616
623
|
end
|
617
624
|
end
|
618
625
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: helix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.4.
|
4
|
+
version: 0.0.4.6.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twistage, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|