a9n 1.3.0 → 1.5.0

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: 393819f7834f54def787d8aa094136300842604f1f30310e4b0fd0ae2fb9740d
4
- data.tar.gz: 4577b0ef262d299c979df2e26015443d991d5c39ea15b7d55c610c35784f0216
3
+ metadata.gz: a071d37590b4fbe81f5e2385759c91a553839ff953186babb4338d4e6715a5c9
4
+ data.tar.gz: 397d3a94a2027091698abce32be4c53f2c713b6dffebc5dbb0c6a38fcd7fbd97
5
5
  SHA512:
6
- metadata.gz: d04d4642b987bdb4c2707f0754d20941062ab8e333f43a9f6fef085e2cfeecb4a1347eac5e08ceee78a1effbf2874b88c7976dcbf15c971e1492941f52ac6c0c
7
- data.tar.gz: 81418b9a67cbd97571a6b659306061bd67a96be7eddaec2f85701a725397776eb01b2c616e2f2061e020337bad2136612e1d1279196df9d2908b0caa0f44e301
6
+ metadata.gz: f8554f0285783caf3425b7592c4d068b673d69f71145533e3e566fe16cf23697e893fd1e9254919bb1ce7ff4700a0afa9794b44531a390f3b442bb647788e298
7
+ data.tar.gz: e1f4ebeebcae15ea8a18815edc6474cd903a3ea997a77b2644f2f9f236b828bd463b28e372ef3603e2faf1baeb15e9c2581eec690c2739e7971f76c9170b34ca
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ['2.7', '3.0', '3.1']
14
+ ruby-version: ['3.0', '3.1', '3.2']
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- a9n (1.3.0)
4
+ a9n (1.5.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -9,49 +9,55 @@ GEM
9
9
  ast (2.4.2)
10
10
  coderay (1.1.3)
11
11
  diff-lcs (1.5.0)
12
+ json (2.6.3)
12
13
  method_source (1.0.0)
13
- parallel (1.21.0)
14
- parser (3.1.0.0)
14
+ parallel (1.22.1)
15
+ parser (3.2.0.0)
15
16
  ast (~> 2.4.1)
16
- pry (0.14.1)
17
+ pry (0.14.2)
17
18
  coderay (~> 1.1)
18
19
  method_source (~> 1.0)
19
20
  rainbow (3.1.1)
20
21
  rake (13.0.6)
21
- regexp_parser (2.2.1)
22
+ regexp_parser (2.6.1)
22
23
  rexml (3.2.5)
23
- rspec (3.11.0)
24
- rspec-core (~> 3.11.0)
25
- rspec-expectations (~> 3.11.0)
26
- rspec-mocks (~> 3.11.0)
27
- rspec-core (3.11.0)
28
- rspec-support (~> 3.11.0)
29
- rspec-expectations (3.11.0)
24
+ rspec (3.12.0)
25
+ rspec-core (~> 3.12.0)
26
+ rspec-expectations (~> 3.12.0)
27
+ rspec-mocks (~> 3.12.0)
28
+ rspec-core (3.12.0)
29
+ rspec-support (~> 3.12.0)
30
+ rspec-expectations (3.12.2)
30
31
  diff-lcs (>= 1.2.0, < 2.0)
31
- rspec-support (~> 3.11.0)
32
- rspec-mocks (3.11.0)
32
+ rspec-support (~> 3.12.0)
33
+ rspec-mocks (3.12.3)
33
34
  diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.11.0)
35
- rspec-support (3.11.0)
36
- rubocop (1.25.1)
35
+ rspec-support (~> 3.12.0)
36
+ rspec-support (3.12.0)
37
+ rubocop (1.43.0)
38
+ json (~> 2.3)
37
39
  parallel (~> 1.10)
38
- parser (>= 3.1.0.0)
40
+ parser (>= 3.2.0.0)
39
41
  rainbow (>= 2.2.2, < 4.0)
40
42
  regexp_parser (>= 1.8, < 3.0)
41
- rexml
42
- rubocop-ast (>= 1.15.1, < 2.0)
43
+ rexml (>= 3.2.5, < 4.0)
44
+ rubocop-ast (>= 1.24.1, < 2.0)
43
45
  ruby-progressbar (~> 1.7)
44
- unicode-display_width (>= 1.4.0, < 3.0)
45
- rubocop-ast (1.15.2)
46
- parser (>= 3.0.1.1)
46
+ unicode-display_width (>= 2.4.0, < 3.0)
47
+ rubocop-ast (1.24.1)
48
+ parser (>= 3.1.1.0)
49
+ rubocop-capybara (2.17.0)
50
+ rubocop (~> 1.41)
47
51
  rubocop-rake (0.6.0)
48
52
  rubocop (~> 1.0)
49
- rubocop-rspec (2.8.0)
50
- rubocop (~> 1.19)
53
+ rubocop-rspec (2.18.0)
54
+ rubocop (~> 1.33)
55
+ rubocop-capybara
51
56
  ruby-progressbar (1.11.0)
52
- unicode-display_width (2.1.0)
57
+ unicode-display_width (2.4.2)
53
58
 
54
59
  PLATFORMS
60
+ ruby
55
61
  x86_64-darwin-20
56
62
  x86_64-darwin-21
57
63
  x86_64-linux
@@ -66,4 +72,4 @@ DEPENDENCIES
66
72
  rubocop-rspec
67
73
 
68
74
  BUNDLED WITH
69
- 2.3.7
75
+ 2.4.4
data/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  [codeclimate]: https://codeclimate.com/github/knapo/a9n
11
11
  [coverage]: https://codeclimate.com/github/knapo/a9n
12
12
 
13
- A9n is a simple tool to keep ruby/rails apps configuration maintanable and verifiable. It supports Rails 4+ and Ruby 2.5+.
13
+ A9n is a simple tool to keep ruby/rails apps configuration maintanable and verifiable. It supports Rails 6+ and Ruby 2.7+.
14
14
 
15
15
  Why it's named a9n? It's a numeronym for application (where 9 stands for the number of letters between the first **a** and last **n**, similar to i18n or l10n).
16
16
 
data/Rakefile CHANGED
@@ -8,4 +8,4 @@ RuboCop::RakeTask.new
8
8
  desc 'Default task to run on ci'
9
9
  task ci: %i[spec rubocop]
10
10
 
11
- task default: %i[spec rubocop:auto_correct]
11
+ task default: %i[spec rubocop:autocorrect_all]
data/a9n.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
- spec.required_ruby_version = '>= 2.7'
24
+ spec.required_ruby_version = '>= 3.0'
25
25
 
26
26
  spec.add_development_dependency 'pry'
27
27
  spec.add_development_dependency 'rake'
data/lib/a9n/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module A9n
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.5.0'.freeze
3
3
  end
data/lib/a9n.rb CHANGED
@@ -26,9 +26,9 @@ module A9n
26
26
  def env
27
27
  @env ||= ::A9n::StringInquirer.new(
28
28
  app_env ||
29
- env_var('RAILS_ENV') ||
30
- env_var('RACK_ENV') ||
31
29
  env_var('APP_ENV') ||
30
+ env_var('RACK_ENV') ||
31
+ env_var('RAILS_ENV') ||
32
32
  raise(UnknownEnvError)
33
33
  )
34
34
  end
@@ -60,7 +60,7 @@ module A9n
60
60
  def root_from_bundle_env
61
61
  return nil unless ENV['BUNDLE_GEMFILE']
62
62
 
63
- dir = File.dirname(ENV['BUNDLE_GEMFILE'])
63
+ dir = File.dirname(ENV.fetch('BUNDLE_GEMFILE', nil))
64
64
 
65
65
  return nil unless File.directory?(dir)
66
66
 
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.3.0
4
+ version: 1.5.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: 2022-02-15 00:00:00.000000000 Z
11
+ date: 2023-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -137,14 +137,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ">="
139
139
  - !ruby/object:Gem::Version
140
- version: '2.7'
140
+ version: '3.0'
141
141
  required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubygems_version: 3.3.3
147
+ rubygems_version: 3.4.4
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: a9n - ruby/rails apps configuration manager