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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a77715c45124cd831c118cd5d0ff571a4efd4b8a7e7bafd371d4bf88a6e0545
4
- data.tar.gz: 0ca92c1356056471aec28b75191cf1d7e7d17841e52106ec74e48a8c1f28a497
3
+ metadata.gz: 5c342a01bdf915ff233a1b743aec816c2b850bfbbc8414021257b9c384114982
4
+ data.tar.gz: 877ea367c4b8332abd8558af5fb4959540e9a99a4fed835587f26ab896d6ae6e
5
5
  SHA512:
6
- metadata.gz: fe9fcee2acbd6c52f226161736bd57e40937229732100eae8350f33f84563807bb5ef0a782143cb229641ff99904fed73e0838616e3293a5d441c70a2d9a98c2
7
- data.tar.gz: 3e419258aeda7f5d588c150db0d9171b5bf8065e0e32414045ff9dae7844298118c923fc10ca3d74357dc842427ebcb154c9a4da6f3e5024a0cb0206280929e1
6
+ metadata.gz: 30273ffe7a99a15fcd8f894da391f77a2e6a9387f09279e40a9f50100b794e7c356fac1425c288a6d35ac9d6bfca65ba2b6174d8d9c3209e652a70251f3ad064
7
+ data.tar.gz: 5a3691663e95814ab445dabbf6cd50aa6be42472bf9e7adcd7323e712c56dffdfc555fb09c7d7b8690e7e77e60e6a6c12c1e79637f97937b612639d44a2807c2
@@ -1,55 +1,55 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- a9n (1.0.0)
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.9)
11
- simplecov (<= 0.13)
10
+ codeclimate-test-reporter (1.0.7)
11
+ simplecov
12
12
  coderay (1.1.2)
13
13
  diff-lcs (1.3)
14
- docile (1.1.5)
15
- jaro_winkler (1.5.3)
16
- json (2.2.0)
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.18.0)
19
- parser (2.6.5.0)
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.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.0)
31
- rspec-support (~> 3.9.0)
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.0)
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.0)
39
- rubocop (0.75.1)
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.6)
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.13.0)
48
- docile (~> 1.1.0)
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.0)
52
+ unicode-display_width (1.6.1)
53
53
 
54
54
  PLATFORMS
55
55
  ruby
@@ -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/rack-graphql'
14
- spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/rack-graphql'
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)
@@ -1,3 +1,3 @@
1
1
  module A9n
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
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.0.0
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: 2019-12-20 00:00:00.000000000 Z
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/rack-graphql
129
- source_code_uri: https://github.com/RenoFi/rack-graphql
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: