a9n 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +18 -18
- data/a9n.gemspec +2 -2
- data/lib/a9n.rb +6 -0
- data/lib/a9n/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c342a01bdf915ff233a1b743aec816c2b850bfbbc8414021257b9c384114982
|
4
|
+
data.tar.gz: 877ea367c4b8332abd8558af5fb4959540e9a99a4fed835587f26ab896d6ae6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30273ffe7a99a15fcd8f894da391f77a2e6a9387f09279e40a9f50100b794e7c356fac1425c288a6d35ac9d6bfca65ba2b6174d8d9c3209e652a70251f3ad064
|
7
|
+
data.tar.gz: 5a3691663e95814ab445dabbf6cd50aa6be42472bf9e7adcd7323e712c56dffdfc555fb09c7d7b8690e7e77e60e6a6c12c1e79637f97937b612639d44a2807c2
|
data/Gemfile.lock
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
a9n (1.
|
4
|
+
a9n (1.1.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ast (2.4.0)
|
10
|
-
codeclimate-test-reporter (1.0.
|
11
|
-
simplecov
|
10
|
+
codeclimate-test-reporter (1.0.7)
|
11
|
+
simplecov
|
12
12
|
coderay (1.1.2)
|
13
13
|
diff-lcs (1.3)
|
14
|
-
docile (1.
|
15
|
-
jaro_winkler (1.5.
|
16
|
-
json (2.
|
14
|
+
docile (1.3.2)
|
15
|
+
jaro_winkler (1.5.4)
|
16
|
+
json (2.3.0)
|
17
17
|
method_source (0.9.2)
|
18
|
-
parallel (1.
|
19
|
-
parser (2.
|
18
|
+
parallel (1.19.1)
|
19
|
+
parser (2.7.0.2)
|
20
20
|
ast (~> 2.4.0)
|
21
21
|
pry (0.12.2)
|
22
22
|
coderay (~> 1.1.0)
|
23
23
|
method_source (~> 0.9.0)
|
24
24
|
rainbow (3.0.0)
|
25
|
-
rake (13.0.
|
25
|
+
rake (13.0.1)
|
26
26
|
rspec (3.9.0)
|
27
27
|
rspec-core (~> 3.9.0)
|
28
28
|
rspec-expectations (~> 3.9.0)
|
29
29
|
rspec-mocks (~> 3.9.0)
|
30
|
-
rspec-core (3.9.
|
31
|
-
rspec-support (~> 3.9.
|
30
|
+
rspec-core (3.9.1)
|
31
|
+
rspec-support (~> 3.9.1)
|
32
32
|
rspec-expectations (3.9.0)
|
33
33
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
34
|
rspec-support (~> 3.9.0)
|
35
|
-
rspec-mocks (3.9.
|
35
|
+
rspec-mocks (3.9.1)
|
36
36
|
diff-lcs (>= 1.2.0, < 2.0)
|
37
37
|
rspec-support (~> 3.9.0)
|
38
|
-
rspec-support (3.9.
|
39
|
-
rubocop (0.
|
38
|
+
rspec-support (3.9.2)
|
39
|
+
rubocop (0.79.0)
|
40
40
|
jaro_winkler (~> 1.5.1)
|
41
41
|
parallel (~> 1.10)
|
42
|
-
parser (>= 2.
|
42
|
+
parser (>= 2.7.0.1)
|
43
43
|
rainbow (>= 2.2.2, < 4.0)
|
44
44
|
ruby-progressbar (~> 1.7)
|
45
45
|
unicode-display_width (>= 1.4.0, < 1.7)
|
46
46
|
ruby-progressbar (1.10.1)
|
47
|
-
simplecov (0.
|
48
|
-
docile (~> 1.1
|
47
|
+
simplecov (0.17.1)
|
48
|
+
docile (~> 1.1)
|
49
49
|
json (>= 1.8, < 3)
|
50
50
|
simplecov-html (~> 0.10.0)
|
51
51
|
simplecov-html (0.10.2)
|
52
|
-
unicode-display_width (1.6.
|
52
|
+
unicode-display_width (1.6.1)
|
53
53
|
|
54
54
|
PLATFORMS
|
55
55
|
ruby
|
data/a9n.gemspec
CHANGED
@@ -10,8 +10,8 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.homepage = 'https://github.com/knapo/a9n'
|
11
11
|
spec.license = 'MIT'
|
12
12
|
|
13
|
-
spec.metadata['homepage_uri'] = 'https://github.com/RenoFi/
|
14
|
-
spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/
|
13
|
+
spec.metadata['homepage_uri'] = 'https://github.com/RenoFi/a9n'
|
14
|
+
spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/a9n'
|
15
15
|
|
16
16
|
spec.files = Dir.chdir(__dir__) do
|
17
17
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|test_app/|\.rub)}) }
|
data/lib/a9n.rb
CHANGED
@@ -3,6 +3,7 @@ require 'pathname'
|
|
3
3
|
require 'ostruct'
|
4
4
|
require 'yaml'
|
5
5
|
require 'erb'
|
6
|
+
require 'logger'
|
6
7
|
require 'a9n/version'
|
7
8
|
require 'a9n/exceptions'
|
8
9
|
require 'a9n/struct'
|
@@ -16,6 +17,7 @@ module A9n
|
|
16
17
|
|
17
18
|
EXTENSION_LIST = '{yml,yml.erb,yml.example,yml.erb.example}'.freeze
|
18
19
|
STRICT_MODE = 'strict'.freeze
|
20
|
+
DEFAULT_LOG_LEVEL = 'info'.freeze
|
19
21
|
|
20
22
|
class << self
|
21
23
|
def env
|
@@ -108,6 +110,10 @@ module A9n
|
|
108
110
|
mode == STRICT_MODE
|
109
111
|
end
|
110
112
|
|
113
|
+
def logger
|
114
|
+
@logger ||= ::Logger.new(STDOUT, level: fetch(:log_level, DEFAULT_LOG_LEVEL))
|
115
|
+
end
|
116
|
+
|
111
117
|
def method_missing(name, *args)
|
112
118
|
load if storage.empty?
|
113
119
|
storage.send(name, *args)
|
data/lib/a9n/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: a9n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codeclimate-test-reporter
|
@@ -125,8 +125,8 @@ homepage: https://github.com/knapo/a9n
|
|
125
125
|
licenses:
|
126
126
|
- MIT
|
127
127
|
metadata:
|
128
|
-
homepage_uri: https://github.com/RenoFi/
|
129
|
-
source_code_uri: https://github.com/RenoFi/
|
128
|
+
homepage_uri: https://github.com/RenoFi/a9n
|
129
|
+
source_code_uri: https://github.com/RenoFi/a9n
|
130
130
|
post_install_message:
|
131
131
|
rdoc_options: []
|
132
132
|
require_paths:
|