envlogic 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +11 -1
- data/Gemfile.lock +72 -115
- data/README.md +1 -0
- data/envlogic.gemspec +2 -0
- data/lib/envlogic/env.rb +2 -2
- data/lib/envlogic/string_refinements.rb +1 -1
- data/lib/envlogic/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0aeeb99acb205744f90ccb491b41f46f40ce5d6
|
4
|
+
data.tar.gz: ebb9711460b43b627156b1c2b1428c2ee6cb8615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 262e011bf46adfff12f47e0fc4d4a64305ee07a8f737a892f6ca72b079c44448a7c0e6f6f30615e020c994898f041d785cd3cfa29e421b5978b44a3c63bf81db
|
7
|
+
data.tar.gz: 1a65ccc52ee950953e06f6ebf50ef5a7123ed0c1eac5db8a52a26214c55434207ed440c992997ac7d3e271e94647e55357deec16edc41220dd57789c431196cf
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.1
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,14 @@
|
|
1
1
|
# Envlogic gem changelog
|
2
2
|
|
3
|
+
## 1.0.3
|
4
|
+
- Gem dump
|
5
|
+
- Ruby version defaults to 2.3.1
|
6
|
+
- Dropped support for Ruby 2.1.*
|
7
|
+
|
8
|
+
## 1.0.2
|
9
|
+
- Dev tools update
|
10
|
+
- Gem update
|
11
|
+
- Rspec specs update
|
12
|
+
|
3
13
|
## 1.0.0
|
4
|
-
|
14
|
+
- Initial gem version with all the magic
|
data/Gemfile.lock
CHANGED
@@ -1,196 +1,153 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
envlogic (1.0.
|
4
|
+
envlogic (1.0.3)
|
5
5
|
activesupport
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
|
12
|
-
activesupport (= 4.2.5.1)
|
13
|
-
builder (~> 3.1)
|
14
|
-
activesupport (4.2.5.1)
|
10
|
+
activesupport (5.0.0)
|
11
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
12
|
i18n (~> 0.7)
|
16
|
-
json (~> 1.7, >= 1.7.7)
|
17
13
|
minitest (~> 5.1)
|
18
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
19
14
|
tzinfo (~> 1.1)
|
20
|
-
|
21
|
-
|
22
|
-
memoizable (~> 0.4.0)
|
23
|
-
ast (2.2.0)
|
15
|
+
addressable (2.4.0)
|
16
|
+
ast (2.3.0)
|
24
17
|
axiom-types (0.1.1)
|
25
18
|
descendants_tracker (~> 0.0.4)
|
26
19
|
ice_nine (~> 0.11.0)
|
27
20
|
thread_safe (~> 0.3, >= 0.3.1)
|
28
|
-
brakeman (3.
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
multi_json (~> 1.2)
|
34
|
-
ruby2ruby (>= 2.1.1, < 2.3.0)
|
35
|
-
ruby_parser (~> 3.7.0)
|
36
|
-
safe_yaml (>= 1.0)
|
37
|
-
sass (~> 3.0)
|
38
|
-
slim (>= 1.3.6, < 4.0)
|
39
|
-
terminal-table (~> 1.4)
|
40
|
-
bson (4.0.1)
|
41
|
-
builder (3.2.2)
|
42
|
-
codeclimate-engine-rb (0.1.0)
|
21
|
+
brakeman (3.3.3)
|
22
|
+
bundler-audit (0.5.0)
|
23
|
+
bundler (~> 1.2)
|
24
|
+
thor (~> 0.18)
|
25
|
+
codeclimate-engine-rb (0.3.1)
|
43
26
|
virtus (~> 1.0)
|
44
|
-
coderay (1.1.
|
27
|
+
coderay (1.1.1)
|
45
28
|
coercible (1.0.0)
|
46
29
|
descendants_tracker (~> 0.0.1)
|
47
|
-
colorize (0.
|
48
|
-
|
49
|
-
adamantium (~> 0.2.0)
|
50
|
-
equalizer (~> 0.0.9)
|
30
|
+
colorize (0.8.1)
|
31
|
+
concurrent-ruby (1.0.2)
|
51
32
|
descendants_tracker (0.0.4)
|
52
33
|
thread_safe (~> 0.3, >= 0.3.1)
|
53
34
|
diff-lcs (1.2.5)
|
54
35
|
docile (1.1.5)
|
55
36
|
equalizer (0.0.11)
|
56
37
|
erubis (2.7.0)
|
57
|
-
faker (1.6.
|
38
|
+
faker (1.6.6)
|
58
39
|
i18n (~> 0.5)
|
59
|
-
|
60
|
-
|
40
|
+
flay (2.8.0)
|
41
|
+
erubis (~> 2.7.0)
|
42
|
+
path_expander (~> 1.0)
|
61
43
|
ruby_parser (~> 3.0)
|
62
44
|
sexp_processor (~> 4.0)
|
63
|
-
flog (4.
|
45
|
+
flog (4.4.0)
|
46
|
+
path_expander (~> 1.0)
|
64
47
|
ruby_parser (~> 3.1, > 3.1.0)
|
65
48
|
sexp_processor (~> 4.4)
|
66
49
|
haml (4.0.7)
|
67
50
|
tilt
|
68
|
-
|
51
|
+
haml_lint (0.18.1)
|
69
52
|
haml (~> 4.0)
|
70
|
-
|
53
|
+
rake (>= 10, < 12)
|
54
|
+
rubocop (>= 0.36.0)
|
71
55
|
sysexits (~> 1.1)
|
72
|
-
highline (1.7.8)
|
73
56
|
i18n (0.7.0)
|
74
|
-
ice_nine (0.11.
|
75
|
-
json (
|
76
|
-
|
77
|
-
|
57
|
+
ice_nine (0.11.2)
|
58
|
+
json (2.0.2)
|
59
|
+
launchy (2.4.3)
|
60
|
+
addressable (~> 2.3)
|
78
61
|
method_source (0.8.2)
|
79
|
-
minitest (5.
|
80
|
-
|
81
|
-
bson (~> 4.0)
|
82
|
-
mongoid (5.0.2)
|
83
|
-
activemodel (~> 4.0)
|
84
|
-
mongo (~> 2.1)
|
85
|
-
origin (~> 2.1)
|
86
|
-
tzinfo (>= 0.3.37)
|
87
|
-
mongoid-rspec (3.0.0)
|
88
|
-
mongoid (~> 5.0)
|
89
|
-
rake
|
90
|
-
rspec (~> 3.3)
|
91
|
-
multi_json (1.11.2)
|
92
|
-
origin (2.2.0)
|
93
|
-
parser (2.3.0.2)
|
62
|
+
minitest (5.9.0)
|
63
|
+
parser (2.3.1.2)
|
94
64
|
ast (~> 2.2)
|
95
|
-
|
65
|
+
path_expander (1.0.0)
|
66
|
+
polishgeeks-dev-tools (1.3.2)
|
96
67
|
brakeman
|
68
|
+
bundler-audit
|
97
69
|
faker
|
98
|
-
|
99
|
-
mongoid-rspec
|
70
|
+
haml_lint
|
100
71
|
pry
|
101
72
|
rspec
|
102
73
|
rubocop
|
74
|
+
rubocop-rspec
|
103
75
|
rubycritic
|
104
76
|
shoulda
|
105
77
|
simplecov
|
106
78
|
timecop
|
107
79
|
yard
|
108
80
|
powerpack (0.1.1)
|
109
|
-
|
110
|
-
procto (0.0.2)
|
111
|
-
pry (0.10.3)
|
81
|
+
pry (0.10.4)
|
112
82
|
coderay (~> 1.1.0)
|
113
83
|
method_source (~> 0.8.1)
|
114
84
|
slop (~> 3.4)
|
115
85
|
rainbow (2.1.0)
|
116
|
-
rake (
|
117
|
-
reek (
|
118
|
-
codeclimate-engine-rb (~> 0.1
|
119
|
-
parser (~> 2.
|
120
|
-
private_attr (~> 1.1)
|
86
|
+
rake (11.2.2)
|
87
|
+
reek (4.1.0)
|
88
|
+
codeclimate-engine-rb (~> 0.3.1)
|
89
|
+
parser (~> 2.3.1, >= 2.3.1.2)
|
121
90
|
rainbow (~> 2.0)
|
122
|
-
|
123
|
-
|
124
|
-
rspec-
|
125
|
-
rspec-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
rspec-expectations (3.4.0)
|
91
|
+
rspec (3.5.0)
|
92
|
+
rspec-core (~> 3.5.0)
|
93
|
+
rspec-expectations (~> 3.5.0)
|
94
|
+
rspec-mocks (~> 3.5.0)
|
95
|
+
rspec-core (3.5.1)
|
96
|
+
rspec-support (~> 3.5.0)
|
97
|
+
rspec-expectations (3.5.0)
|
130
98
|
diff-lcs (>= 1.2.0, < 2.0)
|
131
|
-
rspec-support (~> 3.
|
132
|
-
rspec-mocks (3.
|
99
|
+
rspec-support (~> 3.5.0)
|
100
|
+
rspec-mocks (3.5.0)
|
133
101
|
diff-lcs (>= 1.2.0, < 2.0)
|
134
|
-
rspec-support (~> 3.
|
135
|
-
rspec-support (3.
|
136
|
-
rubocop (0.
|
137
|
-
parser (>= 2.3.
|
102
|
+
rspec-support (~> 3.5.0)
|
103
|
+
rspec-support (3.5.0)
|
104
|
+
rubocop (0.42.0)
|
105
|
+
parser (>= 2.3.1.1, < 3.0)
|
138
106
|
powerpack (~> 0.1)
|
139
107
|
rainbow (>= 1.99.1, < 3.0)
|
140
108
|
ruby-progressbar (~> 1.7)
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
ruby_parser (3.
|
109
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
110
|
+
rubocop-rspec (1.5.1)
|
111
|
+
rubocop (>= 0.41.2)
|
112
|
+
ruby-progressbar (1.8.1)
|
113
|
+
ruby_parser (3.8.2)
|
146
114
|
sexp_processor (~> 4.1)
|
147
|
-
rubycritic (2.
|
115
|
+
rubycritic (2.9.2)
|
148
116
|
colorize
|
149
|
-
flay (= 2.
|
150
|
-
flog (= 4.
|
151
|
-
|
152
|
-
|
117
|
+
flay (= 2.8.0)
|
118
|
+
flog (= 4.4.0)
|
119
|
+
launchy (= 2.4.3)
|
120
|
+
parser (= 2.3.1.2)
|
121
|
+
reek (= 4.1.0)
|
122
|
+
ruby_parser (~> 3.8)
|
153
123
|
virtus (~> 1.0)
|
154
|
-
|
155
|
-
sass (3.4.21)
|
156
|
-
sexp_processor (4.6.1)
|
124
|
+
sexp_processor (4.7.0)
|
157
125
|
shoulda (3.5.0)
|
158
126
|
shoulda-context (~> 1.0, >= 1.0.1)
|
159
127
|
shoulda-matchers (>= 1.4.1, < 3.0)
|
160
128
|
shoulda-context (1.2.1)
|
161
129
|
shoulda-matchers (2.8.0)
|
162
130
|
activesupport (>= 3.0.0)
|
163
|
-
simplecov (0.
|
131
|
+
simplecov (0.12.0)
|
164
132
|
docile (~> 1.1.0)
|
165
|
-
json (
|
133
|
+
json (>= 1.8, < 3)
|
166
134
|
simplecov-html (~> 0.10.0)
|
167
135
|
simplecov-html (0.10.0)
|
168
|
-
slim (3.0.6)
|
169
|
-
temple (~> 0.7.3)
|
170
|
-
tilt (>= 1.3.3, < 2.1)
|
171
136
|
slop (3.6.0)
|
172
137
|
sysexits (1.2.0)
|
173
|
-
|
174
|
-
terminal-table (1.5.2)
|
138
|
+
thor (0.19.1)
|
175
139
|
thread_safe (0.3.5)
|
176
|
-
tilt (2.0.
|
177
|
-
timecop (0.8.
|
140
|
+
tilt (2.0.5)
|
141
|
+
timecop (0.8.1)
|
178
142
|
tzinfo (1.2.2)
|
179
143
|
thread_safe (~> 0.1)
|
180
|
-
|
181
|
-
abstract_type (~> 0.0.7)
|
182
|
-
adamantium (~> 0.2.0)
|
183
|
-
concord (~> 0.1.5)
|
184
|
-
diff-lcs (~> 1.2.5)
|
185
|
-
equalizer (~> 0.0.9)
|
186
|
-
parser (~> 2.3.0)
|
187
|
-
procto (~> 0.0.2)
|
144
|
+
unicode-display_width (1.1.0)
|
188
145
|
virtus (1.0.5)
|
189
146
|
axiom-types (~> 0.1)
|
190
147
|
coercible (~> 1.0)
|
191
148
|
descendants_tracker (~> 0.0, >= 0.0.3)
|
192
149
|
equalizer (~> 0.0, >= 0.0.9)
|
193
|
-
yard (0.
|
150
|
+
yard (0.9.5)
|
194
151
|
|
195
152
|
PLATFORMS
|
196
153
|
ruby
|
@@ -200,4 +157,4 @@ DEPENDENCIES
|
|
200
157
|
polishgeeks-dev-tools
|
201
158
|
|
202
159
|
BUNDLED WITH
|
203
|
-
1.
|
160
|
+
1.12.5
|
data/README.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
[![Build Status](https://travis-ci.org/karafka/envlogic.png)](https://travis-ci.org/karafka/envlogic)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/karafka/envlogic/badges/gpa.svg)](https://codeclimate.com/github/karafka/envlogic)
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/envlogic.svg)](http://badge.fury.io/rb/envlogic)
|
6
|
+
[![Join the chat at https://gitter.im/karafka/karafka](https://badges.gitter.im/karafka/karafka.svg)](https://gitter.im/karafka/karafka?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
6
7
|
|
7
8
|
Envlogic is a library used to manage environments for your Ruby application in a similar to Rails.env way.
|
8
9
|
|
data/envlogic.gemspec
CHANGED
@@ -16,6 +16,8 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.homepage = 'https://github.com/karafka/envlogic'
|
17
17
|
|
18
18
|
spec.add_dependency 'activesupport'
|
19
|
+
spec.required_ruby_version = '>= 2.2.0'
|
20
|
+
|
19
21
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
|
20
22
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
21
23
|
spec.require_paths = %w( lib )
|
data/lib/envlogic/env.rb
CHANGED
@@ -6,9 +6,9 @@ module Envlogic
|
|
6
6
|
using StringRefinements
|
7
7
|
|
8
8
|
# What environment key should be used by default
|
9
|
-
FALLBACK_ENV_KEY = 'RACK_ENV'
|
9
|
+
FALLBACK_ENV_KEY = 'RACK_ENV'
|
10
10
|
# What default environment should be asumed when there's nothing else
|
11
|
-
FALLBACK_ENV = 'development'
|
11
|
+
FALLBACK_ENV = 'development'
|
12
12
|
|
13
13
|
# @param klass [Class, Module] class/module for which we want to build a Envlogic::Env object
|
14
14
|
# @return [Envlogic::Env] envlogic env object]
|
data/lib/envlogic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: envlogic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pavlo_vavruk
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-07-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -59,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 2.2.0
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - ">="
|
@@ -73,4 +73,3 @@ specification_version: 4
|
|
73
73
|
summary: Ruby based library which allows to set and get environments values and easily
|
74
74
|
check environment
|
75
75
|
test_files: []
|
76
|
-
has_rdoc:
|