a9n 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/a9n.gemspec +1 -1
- data/lib/a9n.rb +1 -1
- data/lib/a9n/scope.rb +2 -2
- data/lib/a9n/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6ec9b298373c65a346ce067638ebd8ceead3212f184296861c9c1c63b8af08f
|
4
|
+
data.tar.gz: eadff429b6e3f4b6e81f9f7c203475afd7ccadb879b222b405ea1a19a3c27475
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e46ea38e14377bcd4b1ddd2740e8f7619a2b0d35b35ea2a017ce348044284127018e730e0c6474922b910bced72413ffc152df06f65ed158882e4e7973612691
|
7
|
+
data.tar.gz: 989588cc2260ab4d1c6023c8d83a4939cc71031e362273da9a6c6ee057df16b7756fa8d7b366b5f35e05ef396996b36d03e655dae09bcc2c19fab344e03f0474
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ And then execute:
|
|
26
26
|
|
27
27
|
Add `configuration.yml.example` and/or `configuration.yml` file into the config
|
28
28
|
directory. When none fo these files exists, `A9n::MissingConfigurationFile`
|
29
|
-
exception is thrown.
|
29
|
+
exception is thrown. You can also use `a9n.yml`, which is loaded by default.
|
30
30
|
If both file exist, content of `configuration.yml` is validated. It means that
|
31
31
|
all keys existing in example file must exist in local file - in case of missing
|
32
32
|
keys `A9n::MissingConfigurationVariablesError` is thrown with the explanation what is missing.
|
data/a9n.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.require_paths = ["lib"]
|
15
15
|
gem.version = A9n::VERSION
|
16
16
|
|
17
|
-
gem.required_ruby_version = ">= 2.
|
17
|
+
gem.required_ruby_version = ">= 2.3"
|
18
18
|
|
19
19
|
gem.add_development_dependency 'rake'
|
20
20
|
gem.add_development_dependency 'rspec'
|
data/lib/a9n.rb
CHANGED
@@ -64,7 +64,7 @@ module A9n
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def default_files
|
67
|
-
files = Dir[root.join("config
|
67
|
+
files = Dir[root.join("config/{#{A9n::Scope::ROOT_NAMES.join(',')}}.#{EXTENSION_LIST}").to_s]
|
68
68
|
files += Dir[root.join("config/a9n/*.#{EXTENSION_LIST}")]
|
69
69
|
files.map{ |f| f.sub(/.example$/,'') }.uniq
|
70
70
|
end
|
data/lib/a9n/scope.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module A9n
|
2
2
|
class Scope
|
3
|
-
|
3
|
+
ROOT_NAMES = [:configuration, :a9n]
|
4
4
|
|
5
5
|
attr_reader :name
|
6
6
|
|
@@ -9,7 +9,7 @@ module A9n
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def root?
|
12
|
-
name
|
12
|
+
ROOT_NAMES.include?(name)
|
13
13
|
end
|
14
14
|
|
15
15
|
def env_key_name(key)
|
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: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -133,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
requirements:
|
134
134
|
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: '2.
|
136
|
+
version: '2.3'
|
137
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
139
|
- - ">="
|