a9n 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30b16746a345a96087a8f9fd9a68a53a9f0c8bf45a877d8923d6c583b61f59bf
4
- data.tar.gz: 9d348338710baafd61d1085ea0ba968fda133864b05a60303ce0cc9cf4baeea3
3
+ metadata.gz: b6ec9b298373c65a346ce067638ebd8ceead3212f184296861c9c1c63b8af08f
4
+ data.tar.gz: eadff429b6e3f4b6e81f9f7c203475afd7ccadb879b222b405ea1a19a3c27475
5
5
  SHA512:
6
- metadata.gz: 1dfe6e9c2a24ad67bb9905ce6dc9594f36bc20229a820631f00573d8441d018ba03f0a77bdb0481a4974b41d2ea4445e1c2b238f0564e9b70dc98cf7a2e141b6
7
- data.tar.gz: ff7aa77aad773441f45c2872a94eae260f57891774f5e7b55baea49176393af8255cd9c721dc9e0d8396ca7d83a093b0fdb366d8fb57dc2a5a05050d4397985e
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.
@@ -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.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/#{A9n::Scope::ROOT_NAME}.#{EXTENSION_LIST}").to_s]
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
@@ -1,6 +1,6 @@
1
1
  module A9n
2
2
  class Scope
3
- ROOT_NAME = :configuration
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 == ROOT_NAME
12
+ ROOT_NAMES.include?(name)
13
13
  end
14
14
 
15
15
  def env_key_name(key)
@@ -1,3 +1,3 @@
1
1
  module A9n
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
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: 0.6.1
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-07 00:00:00.000000000 Z
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.2'
136
+ version: '2.3'
137
137
  required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  requirements:
139
139
  - - ">="