ice_age 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: c0ab76b7d9c1c37d68bf78e66a56fef01b057b3eecaa5083dd4111678faa7871
4
- data.tar.gz: abc72a9875c8f9fab94dc05d650a769ad7f04fa935d0ce753d59c6bb7b5a6e9f
3
+ metadata.gz: 5aef79cd00d3dff9d8ebc088e350e305a24138f1cdc9ac39a5c27e276f5a0f75
4
+ data.tar.gz: 0afc51b74ef066ec4825c54d08638057d714efaa9a8e65417ffc871bba41500c
5
5
  SHA512:
6
- metadata.gz: 3ea375b14f7e8785c6267d1944fd31fd85824ebb3619cd5872c2e2e0d24e452fea29d524aa3a01b390a47e7481533acae73bbe616fee7a50c09efadd727716f1
7
- data.tar.gz: 051a123fbdd0e1e86c0e1cb2904c3760cfd75e0d9456b0834bb4621e86bd6b5e6274b6d9655624cc9145565c7a137a97041cd752c5c196042295043b92b47dae
6
+ metadata.gz: 7156d83c11ee7544b4a129e96a1dc64822ebc16a54cb056e0f96288c48bd0b892f4b83a40bd8759ee9bbd3680225057392e5185c47b87b4c2265ace4ca7fcb1c
7
+ data.tar.gz: e578cb717cb0a2147b4d1e93b22222e25fe6f597600bacc03b2dc7358dc09e10e472e2d880c7bee5678e6b063cbe287c3653042256167a9ed1f711ee5ef0de4c
@@ -1,8 +1,7 @@
1
+ require 'ice_age/version'
1
2
  require 'set'
2
3
 
3
4
  class IceAge
4
- VERSION = '0.1.2'
5
-
6
5
  class << self
7
6
 
8
7
  def freeze
@@ -16,12 +15,14 @@ class IceAge
16
15
  end
17
16
 
18
17
  def restore
19
- raise "#{self.class.name}.frozen never called!" unless frozen?
18
+ raise 'not frozen' unless frozen?
20
19
 
21
- ENV.clear.update(@env)
20
+ ENV.replace(@env)
22
21
  end
23
22
 
24
23
  def endure!
24
+ raise 'not frozen' unless frozen?
25
+
25
26
  changes = (Set.new(ENV.to_h) - Set.new(@env)).to_h.keys
26
27
  unless changes.empty?
27
28
  msg = changes.map {|k| { k => { @env[k] => ENV[k] } }}.to_s
@@ -0,0 +1,3 @@
1
+ class IceAge
2
+ VERSION = '0.1.3'
3
+ end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ice_age
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Pepper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-29 00:00:00.000000000 Z
11
+ date: 2020-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: codecov
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: pry
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +66,20 @@ dependencies:
52
66
  - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
55
83
  description: Freeze your ENVironment for testing.
56
84
  email:
57
85
  executables: []
@@ -61,7 +89,8 @@ files:
61
89
  - lib/ice_age.rb
62
90
  - lib/ice_age/freeze.rb
63
91
  - lib/ice_age/rspec.rb
64
- homepage: https://github.com/dpep/rb_ice_age
92
+ - lib/ice_age/version.rb
93
+ homepage: https://github.com/dpep/ice_age_rb
65
94
  licenses:
66
95
  - MIT
67
96
  metadata: {}