envlogic 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/.ruby-version +1 -1
- data/.travis.yml +5 -1
- data/CHANGELOG.md +12 -2
- data/Gemfile +5 -1
- data/Gemfile.lock +27 -133
- data/README.md +5 -1
- data/Rakefile +5 -13
- data/envlogic.gemspec +12 -11
- data/lib/envlogic.rb +4 -2
- data/lib/envlogic/env.rb +1 -0
- data/lib/envlogic/string_refinements.rb +1 -0
- data/lib/envlogic/version.rb +2 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01dedf4a6f681524600178032147de780b79924f
|
4
|
+
data.tar.gz: a1ed78a597dc680529063b78fe437a664dbeb120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70a478be725813975558af7b7f18008960cf6d2cdcebbfb676178e63509de63d9d6a692d49c703e645a4f3f4eb976b2d3eccfd56fc04051c3d7ea8a84207999b
|
7
|
+
data.tar.gz: 43812ac0f76694b18aee9c4b989ef21ac08a495f85115b854438ecd3565c97cc73674ff29401d5ae0adc0ab26f417e599e3565ac7ba6b6d5cfff78246136155a
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--require spec_helper
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4.1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# Envlogic gem changelog
|
2
2
|
|
3
|
-
##
|
3
|
+
## Unreleased
|
4
|
+
- Switched with quality metrics to Coditsu (https://coditsu.io/)
|
4
5
|
- Gem dump
|
5
|
-
-
|
6
|
+
- Quality improvements
|
7
|
+
- Gems cleanup
|
8
|
+
- Ruby dump to 2.4.1
|
9
|
+
- Better specs (less internal, more integrational)
|
10
|
+
|
11
|
+
## 1.0.3
|
12
|
+
- Gem dump x3
|
13
|
+
- ~~Ruby version defaults to 2.3.3~~
|
14
|
+
- Ruby version defaults to 2.4.0
|
6
15
|
- Dropped support for Ruby 2.1.*
|
16
|
+
- added .rspec for default spec helper require
|
7
17
|
|
8
18
|
## 1.0.2
|
9
19
|
- Dev tools update
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,160 +1,54 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
envlogic (1.0.
|
4
|
+
envlogic (1.0.4)
|
5
5
|
activesupport
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (5.
|
10
|
+
activesupport (5.1.3)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (~> 0.7)
|
13
13
|
minitest (~> 5.1)
|
14
14
|
tzinfo (~> 1.1)
|
15
|
-
|
16
|
-
|
17
|
-
axiom-types (0.1.1)
|
18
|
-
descendants_tracker (~> 0.0.4)
|
19
|
-
ice_nine (~> 0.11.0)
|
20
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
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)
|
26
|
-
virtus (~> 1.0)
|
27
|
-
coderay (1.1.1)
|
28
|
-
coercible (1.0.0)
|
29
|
-
descendants_tracker (~> 0.0.1)
|
30
|
-
colorize (0.8.1)
|
31
|
-
concurrent-ruby (1.0.2)
|
32
|
-
descendants_tracker (0.0.4)
|
33
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
34
|
-
diff-lcs (1.2.5)
|
15
|
+
concurrent-ruby (1.0.5)
|
16
|
+
diff-lcs (1.3)
|
35
17
|
docile (1.1.5)
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
ruby_parser (~> 3.1, > 3.1.0)
|
48
|
-
sexp_processor (~> 4.4)
|
49
|
-
haml (4.0.7)
|
50
|
-
tilt
|
51
|
-
haml_lint (0.18.1)
|
52
|
-
haml (~> 4.0)
|
53
|
-
rake (>= 10, < 12)
|
54
|
-
rubocop (>= 0.36.0)
|
55
|
-
sysexits (~> 1.1)
|
56
|
-
i18n (0.7.0)
|
57
|
-
ice_nine (0.11.2)
|
58
|
-
json (2.0.2)
|
59
|
-
launchy (2.4.3)
|
60
|
-
addressable (~> 2.3)
|
61
|
-
method_source (0.8.2)
|
62
|
-
minitest (5.9.0)
|
63
|
-
parser (2.3.1.2)
|
64
|
-
ast (~> 2.2)
|
65
|
-
path_expander (1.0.0)
|
66
|
-
polishgeeks-dev-tools (1.3.2)
|
67
|
-
brakeman
|
68
|
-
bundler-audit
|
69
|
-
faker
|
70
|
-
haml_lint
|
71
|
-
pry
|
72
|
-
rspec
|
73
|
-
rubocop
|
74
|
-
rubocop-rspec
|
75
|
-
rubycritic
|
76
|
-
shoulda
|
77
|
-
simplecov
|
78
|
-
timecop
|
79
|
-
yard
|
80
|
-
powerpack (0.1.1)
|
81
|
-
pry (0.10.4)
|
82
|
-
coderay (~> 1.1.0)
|
83
|
-
method_source (~> 0.8.1)
|
84
|
-
slop (~> 3.4)
|
85
|
-
rainbow (2.1.0)
|
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)
|
90
|
-
rainbow (~> 2.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)
|
18
|
+
i18n (0.8.6)
|
19
|
+
json (2.1.0)
|
20
|
+
minitest (5.10.3)
|
21
|
+
rake (12.0.0)
|
22
|
+
rspec (3.6.0)
|
23
|
+
rspec-core (~> 3.6.0)
|
24
|
+
rspec-expectations (~> 3.6.0)
|
25
|
+
rspec-mocks (~> 3.6.0)
|
26
|
+
rspec-core (3.6.0)
|
27
|
+
rspec-support (~> 3.6.0)
|
28
|
+
rspec-expectations (3.6.0)
|
98
29
|
diff-lcs (>= 1.2.0, < 2.0)
|
99
|
-
rspec-support (~> 3.
|
100
|
-
rspec-mocks (3.
|
30
|
+
rspec-support (~> 3.6.0)
|
31
|
+
rspec-mocks (3.6.0)
|
101
32
|
diff-lcs (>= 1.2.0, < 2.0)
|
102
|
-
rspec-support (~> 3.
|
103
|
-
rspec-support (3.
|
104
|
-
|
105
|
-
parser (>= 2.3.1.1, < 3.0)
|
106
|
-
powerpack (~> 0.1)
|
107
|
-
rainbow (>= 1.99.1, < 3.0)
|
108
|
-
ruby-progressbar (~> 1.7)
|
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)
|
114
|
-
sexp_processor (~> 4.1)
|
115
|
-
rubycritic (2.9.2)
|
116
|
-
colorize
|
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)
|
123
|
-
virtus (~> 1.0)
|
124
|
-
sexp_processor (4.7.0)
|
125
|
-
shoulda (3.5.0)
|
126
|
-
shoulda-context (~> 1.0, >= 1.0.1)
|
127
|
-
shoulda-matchers (>= 1.4.1, < 3.0)
|
128
|
-
shoulda-context (1.2.1)
|
129
|
-
shoulda-matchers (2.8.0)
|
130
|
-
activesupport (>= 3.0.0)
|
131
|
-
simplecov (0.12.0)
|
33
|
+
rspec-support (~> 3.6.0)
|
34
|
+
rspec-support (3.6.0)
|
35
|
+
simplecov (0.15.0)
|
132
36
|
docile (~> 1.1.0)
|
133
37
|
json (>= 1.8, < 3)
|
134
38
|
simplecov-html (~> 0.10.0)
|
135
|
-
simplecov-html (0.10.
|
136
|
-
|
137
|
-
|
138
|
-
thor (0.19.1)
|
139
|
-
thread_safe (0.3.5)
|
140
|
-
tilt (2.0.5)
|
141
|
-
timecop (0.8.1)
|
142
|
-
tzinfo (1.2.2)
|
39
|
+
simplecov-html (0.10.2)
|
40
|
+
thread_safe (0.3.6)
|
41
|
+
tzinfo (1.2.3)
|
143
42
|
thread_safe (~> 0.1)
|
144
|
-
unicode-display_width (1.1.0)
|
145
|
-
virtus (1.0.5)
|
146
|
-
axiom-types (~> 0.1)
|
147
|
-
coercible (~> 1.0)
|
148
|
-
descendants_tracker (~> 0.0, >= 0.0.3)
|
149
|
-
equalizer (~> 0.0, >= 0.0.9)
|
150
|
-
yard (0.9.5)
|
151
43
|
|
152
44
|
PLATFORMS
|
153
45
|
ruby
|
154
46
|
|
155
47
|
DEPENDENCIES
|
156
48
|
envlogic!
|
157
|
-
|
49
|
+
rake
|
50
|
+
rspec
|
51
|
+
simplecov
|
158
52
|
|
159
53
|
BUNDLED WITH
|
160
|
-
1.
|
54
|
+
1.14.6
|
data/README.md
CHANGED
@@ -101,7 +101,11 @@ Make your feature addition or bug fix.
|
|
101
101
|
Add tests for it. This is important so I don't break it in a future version unintentionally.
|
102
102
|
Commit, do not mess with Rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull). Send me a pull request. Bonus points for topic branches.
|
103
103
|
|
104
|
-
|
104
|
+
[![coditsu](https://coditsu.io/assets/quality_bar.svg)](https://coditsu.io)
|
105
|
+
|
106
|
+
Each pull request must pass our quality requirements. To check if everything is as it should be, we use [Coditsu](https://coditsu.io) that combines multiple linters and code analyzers. Unfortunately, for now it is invite-only based, so just ping us and we will give you access to the quality results.
|
107
|
+
|
108
|
+
Please run:
|
105
109
|
|
106
110
|
```bash
|
107
111
|
bundle exec rake
|
data/Rakefile
CHANGED
@@ -1,18 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'bundler'
|
2
4
|
require 'bundler/gem_tasks'
|
3
5
|
require 'rake'
|
4
|
-
require '
|
5
|
-
|
6
|
-
PolishGeeks::DevTools.setup do |config|
|
7
|
-
config.brakeman = false
|
8
|
-
config.haml_lint = false
|
9
|
-
end
|
6
|
+
require 'rspec/core/rake_task'
|
10
7
|
|
11
|
-
|
12
|
-
task :check do
|
13
|
-
PolishGeeks::DevTools::Runner.new.execute(
|
14
|
-
PolishGeeks::DevTools::Logger.new
|
15
|
-
)
|
16
|
-
end
|
8
|
+
RSpec::Core::RakeTask.new(:spec)
|
17
9
|
|
18
|
-
task default: :
|
10
|
+
task default: :spec
|
data/envlogic.gemspec
CHANGED
@@ -1,24 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
lib = File.expand_path('../lib', __FILE__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
|
4
6
|
require 'envlogic/version'
|
5
7
|
|
6
8
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.platform
|
9
|
-
spec.version
|
10
|
-
spec.authors
|
11
|
-
spec.email
|
12
|
-
|
13
|
-
spec.
|
14
|
-
|
15
|
-
spec.
|
16
|
-
spec.homepage = 'https://github.com/karafka/envlogic'
|
9
|
+
spec.name = 'envlogic'
|
10
|
+
spec.platform = Gem::Platform::RUBY
|
11
|
+
spec.version = Envlogic::VERSION
|
12
|
+
spec.authors = ['pavlo_vavruk', 'Maciej Mensfeld']
|
13
|
+
spec.email = %w[pavlo.vavruk@gmail.com maciej@mensfeld.pl]
|
14
|
+
spec.summary = 'Library which allows to set and get environments values'
|
15
|
+
spec.description = 'Library used to manage environments for your Ruby application'
|
16
|
+
spec.homepage = 'https://github.com/karafka/envlogic'
|
17
|
+
spec.license = 'MIT'
|
17
18
|
|
18
19
|
spec.add_dependency 'activesupport'
|
19
20
|
spec.required_ruby_version = '>= 2.2.0'
|
20
21
|
|
21
22
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
|
22
23
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
23
|
-
spec.require_paths = %w
|
24
|
+
spec.require_paths = %w[lib]
|
24
25
|
end
|
data/lib/envlogic.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
%w[
|
2
4
|
active_support/inflector
|
3
5
|
active_support/string_inquirer
|
4
6
|
envlogic/version
|
5
7
|
envlogic/string_refinements
|
6
8
|
envlogic/env
|
7
|
-
|
9
|
+
].each { |lib| require lib }
|
8
10
|
|
9
11
|
# Main module that encapsulates logic that should be used to extend any class/module
|
10
12
|
# @note This module should be extended into the class/module in which we want to have env support
|
data/lib/envlogic/env.rb
CHANGED
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.4
|
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:
|
12
|
+
date: 2017-08-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
|
-
description:
|
28
|
+
description: Library used to manage environments for your Ruby application
|
29
29
|
email:
|
30
30
|
- pavlo.vavruk@gmail.com
|
31
31
|
- maciej@mensfeld.pl
|
@@ -34,6 +34,7 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- ".gitignore"
|
37
|
+
- ".rspec"
|
37
38
|
- ".ruby-gemset"
|
38
39
|
- ".ruby-version"
|
39
40
|
- ".travis.yml"
|
@@ -49,7 +50,8 @@ files:
|
|
49
50
|
- lib/envlogic/string_refinements.rb
|
50
51
|
- lib/envlogic/version.rb
|
51
52
|
homepage: https://github.com/karafka/envlogic
|
52
|
-
licenses:
|
53
|
+
licenses:
|
54
|
+
- MIT
|
53
55
|
metadata: {}
|
54
56
|
post_install_message:
|
55
57
|
rdoc_options: []
|
@@ -67,9 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
69
|
version: '0'
|
68
70
|
requirements: []
|
69
71
|
rubyforge_project:
|
70
|
-
rubygems_version: 2.
|
72
|
+
rubygems_version: 2.6.13
|
71
73
|
signing_key:
|
72
74
|
specification_version: 4
|
73
|
-
summary:
|
74
|
-
check environment
|
75
|
+
summary: Library which allows to set and get environments values
|
75
76
|
test_files: []
|