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 +4 -4
- data/lib/ice_age.rb +5 -4
- data/lib/ice_age/version.rb +3 -0
- metadata +32 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aef79cd00d3dff9d8ebc088e350e305a24138f1cdc9ac39a5c27e276f5a0f75
|
4
|
+
data.tar.gz: 0afc51b74ef066ec4825c54d08638057d714efaa9a8e65417ffc871bba41500c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7156d83c11ee7544b4a129e96a1dc64822ebc16a54cb056e0f96288c48bd0b892f4b83a40bd8759ee9bbd3680225057392e5185c47b87b4c2265ace4ca7fcb1c
|
7
|
+
data.tar.gz: e578cb717cb0a2147b4d1e93b22222e25fe6f597600bacc03b2dc7358dc09e10e472e2d880c7bee5678e6b063cbe287c3653042256167a9ed1f711ee5ef0de4c
|
data/lib/ice_age.rb
CHANGED
@@ -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
|
18
|
+
raise 'not frozen' unless frozen?
|
20
19
|
|
21
|
-
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
|
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.
|
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-
|
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
|
-
|
92
|
+
- lib/ice_age/version.rb
|
93
|
+
homepage: https://github.com/dpep/ice_age_rb
|
65
94
|
licenses:
|
66
95
|
- MIT
|
67
96
|
metadata: {}
|