hierarchical_config 0.11 → 0.13

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.
Files changed (63) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ruby.yml +52 -0
  3. data/.gitignore +2 -0
  4. data/.rubocop.yml +68 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +15 -2
  7. data/Gemfile.2.4 +19 -0
  8. data/Gemfile.2.4.lock +117 -0
  9. data/Gemfile.lock +124 -25
  10. data/README.md +0 -2
  11. data/bin/console +3 -3
  12. data/bin/tapioca +29 -0
  13. data/hierarchical_config.gemspec +14 -13
  14. data/lib/hierarchical_config/version.rb +3 -1
  15. data/lib/hierarchical_config.rb +164 -102
  16. data/sorbet/config +2 -0
  17. data/sorbet/rbi/annotations/activesupport.rbi +128 -0
  18. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  19. data/sorbet/rbi/gems/activesupport@7.0.4.2.rbi +16155 -0
  20. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  21. data/sorbet/rbi/gems/binding_of_caller@1.0.0.rbi +55 -0
  22. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  23. data/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi +11545 -0
  24. data/sorbet/rbi/gems/debug_inspector@1.1.0.rbi +23 -0
  25. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
  26. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  27. data/sorbet/rbi/gems/interception@0.5.rbi +138 -0
  28. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  29. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  30. data/sorbet/rbi/gems/minitest@5.17.0.rbi +1457 -0
  31. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  32. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  33. data/sorbet/rbi/gems/parser@3.2.1.0.rbi +7252 -0
  34. data/sorbet/rbi/gems/pry-rescue@1.5.2.rbi +186 -0
  35. data/sorbet/rbi/gems/pry-stack_explorer@0.6.1.rbi +295 -0
  36. data/sorbet/rbi/gems/pry@0.14.2.rbi +10081 -0
  37. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  38. data/sorbet/rbi/gems/rake@13.0.6.rbi +3018 -0
  39. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  40. data/sorbet/rbi/gems/regexp_parser@2.7.0.rbi +3580 -0
  41. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4717 -0
  42. data/sorbet/rbi/gems/rspec-core@3.12.1.rbi +10845 -0
  43. data/sorbet/rbi/gems/rspec-expectations@3.12.2.rbi +8100 -0
  44. data/sorbet/rbi/gems/rspec-mocks@3.12.3.rbi +5299 -0
  45. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1611 -0
  46. data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
  47. data/sorbet/rbi/gems/rubocop-ast@1.27.0.rbi +6998 -0
  48. data/sorbet/rbi/gems/rubocop-performance@1.16.0.rbi +3004 -0
  49. data/sorbet/rbi/gems/rubocop@1.46.0.rbi +54549 -0
  50. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1239 -0
  51. data/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
  52. data/sorbet/rbi/gems/tapioca@0.11.1.rbi +3255 -0
  53. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  54. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
  55. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
  56. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4524 -0
  57. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2555 -0
  58. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +441 -0
  59. data/sorbet/rbi/gems/yard@0.9.28.rbi +17841 -0
  60. data/sorbet/tapioca/config.yml +13 -0
  61. data/sorbet/tapioca/require.rb +4 -0
  62. metadata +74 -50
  63. data/.travis.yml +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 502a88c0a26d91426a06e3c833476f50e6093bd8
4
- data.tar.gz: b33a8bd047569e7aeb2265d72687a1aa3d1ec672
2
+ SHA256:
3
+ metadata.gz: 63ac58b07f108d686879b6257643b289d9c2d702941b294d96cd64f2899dc241
4
+ data.tar.gz: 23deffaef12f8c1c252f889c0ae62f53a580d711df76b0909d3d2047515d99ab
5
5
  SHA512:
6
- metadata.gz: 621fd79e4f0c21fa1ac2e240654f17d96541960bbea8d2aef84320321a2acf070bc5b36dc9772013164e04e5881acf8035778e23bff3883266913d5735e17a5f
7
- data.tar.gz: a3bb54aa6e3c73bbd625caa62888e05ba90f0c2c5e9eb2b14777cd36e8ca1c20ee9ec30efeb3411677412ab04486a5fba402b6814edfa192ea4384590c5579e4
6
+ metadata.gz: f7847a6250d05cd1a9f5af1666d1b0632664dc7a5b49c98c845c5e69892ba0a8988a3355d10418504aed9a427caf475832fca2922003164d58cfdca1ef36e6cf
7
+ data.tar.gz: feeafb9fd68c08ef03c6ebf9d9900d3cfd8da773499cbedcf19b58306bbce09bef40fe931f86b37300a3487244d8fe1a34e6fef919fcf874bcbebe0ed37bb454
@@ -0,0 +1,52 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ "main" ]
13
+ pull_request:
14
+ branches: [ "main" ]
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ jobs:
20
+ test:
21
+
22
+ runs-on: ubuntu-latest
23
+ strategy:
24
+ matrix:
25
+ ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2']
26
+ include:
27
+ - gemfile: Gemfile
28
+ not-only-test: true
29
+ - gemfile: Gemfile.2.4
30
+ ruby-version: 2.5
31
+ not-only-test: false
32
+ - gemfile: Gemfile.2.4
33
+ ruby-version: 2.4
34
+ not-only-test: false
35
+ env:
36
+ BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
37
+ steps:
38
+ - uses: actions/checkout@v3
39
+ - name: Set up Ruby
40
+ uses: ruby/setup-ruby@v1
41
+ with:
42
+ ruby-version: ${{ matrix.ruby-version }}
43
+ - name: Install dependencies
44
+ run: bundle install
45
+ - if: ${{ matrix.not-only-test }}
46
+ name: Type check
47
+ run: bundle exec srb tc
48
+ - if: ${{ matrix.not-only-test }}
49
+ name: Lint
50
+ run: bundle exec rubocop
51
+ - name: Run tests
52
+ run: bundle exec rspec
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ .rspec_status
2
+
data/.rubocop.yml ADDED
@@ -0,0 +1,68 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
5
+ AllCops:
6
+ NewCops: enable
7
+ TargetRubyVersion: 2.4
8
+
9
+ Layout/DotPosition:
10
+ EnforcedStyle: trailing
11
+
12
+ Layout/SpaceBeforeBlockBraces:
13
+ EnforcedStyle: no_space
14
+
15
+ Layout/SpaceInsideBlockBraces:
16
+ EnforcedStyle: no_space
17
+ SpaceBeforeBlockParameters: false
18
+
19
+ Layout/SpaceInsideHashLiteralBraces:
20
+ EnforcedStyle: no_space
21
+
22
+ Metrics/BlockLength:
23
+ Enabled: false
24
+
25
+ Metrics/ClassLength:
26
+ Enabled: false
27
+
28
+ Metrics/LineLength:
29
+ Max: 120
30
+
31
+ Metrics/MethodLength:
32
+ Enabled: false
33
+
34
+ Metrics/ModuleLength:
35
+ Enabled: false
36
+
37
+ Style/BlockComments:
38
+ Enabled: false
39
+
40
+ Style/ClassAndModuleChildren:
41
+ Enabled: false
42
+
43
+ Style/Documentation:
44
+ Enabled: false
45
+
46
+ Style/FrozenStringLiteralComment:
47
+ Enabled: false
48
+
49
+ Style/StructInheritance:
50
+ Enabled: false
51
+
52
+ Style/TrailingCommaInArguments:
53
+ EnforcedStyleForMultiline: comma
54
+
55
+ Style/TrailingCommaInArrayLiteral:
56
+ EnforcedStyleForMultiline: comma
57
+
58
+ Style/TrailingCommaInHashLiteral:
59
+ EnforcedStyleForMultiline: comma
60
+
61
+ Metrics/PerceivedComplexity:
62
+ Enabled: false
63
+
64
+ Metrics/AbcSize:
65
+ Enabled: false
66
+
67
+ Metrics/CyclomaticComplexity:
68
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.3
data/Gemfile CHANGED
@@ -1,6 +1,19 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
3
+ git_source(:github){|repo_name| "https://github.com/#{repo_name}"}
4
4
 
5
5
  # Specify your gem's dependencies in hierarchical_config.gemspec
6
6
  gemspec
7
+
8
+ gem 'bundler'
9
+ gem 'pry'
10
+ gem 'pry-rescue'
11
+ gem 'pry-stack_explorer'
12
+ gem 'rake'
13
+ gem 'rspec'
14
+ gem 'rubocop'
15
+ gem 'rubocop-performance'
16
+ gem 'rubocop-rake'
17
+ gem 'rubocop-rspec'
18
+ gem 'sorbet'
19
+ gem 'tapioca'
data/Gemfile.2.4 ADDED
@@ -0,0 +1,19 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github){|repo_name| "https://github.com/#{repo_name}"}
4
+
5
+ # Specify your gem's dependencies in hierarchical_config.gemspec
6
+ gemspec
7
+
8
+ gem 'bundler'
9
+ gem 'pry'
10
+ gem 'pry-rescue'
11
+ gem 'pry-stack_explorer'
12
+ gem 'rake'
13
+ gem 'rspec'
14
+ gem 'rubocop'
15
+ gem 'rubocop-performance'
16
+ gem 'rubocop-rake'
17
+ gem 'rubocop-rspec'
18
+ gem 'sorbet'
19
+ gem 'tapioca'
data/Gemfile.2.4.lock ADDED
@@ -0,0 +1,117 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ hierarchical_config (0.11)
5
+ activesupport
6
+ sorbet-runtime
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activesupport (3.1.12)
12
+ multi_json (~> 1.0)
13
+ ast (2.4.2)
14
+ binding_of_caller (0.8.0)
15
+ debug_inspector (>= 0.0.1)
16
+ coderay (1.1.3)
17
+ commander (4.6.0)
18
+ highline (~> 2.0.0)
19
+ debug_inspector (1.1.0)
20
+ diff-lcs (1.5.0)
21
+ highline (2.0.3)
22
+ interception (0.5)
23
+ method_source (1.0.0)
24
+ multi_json (1.15.0)
25
+ parallel (1.20.1)
26
+ parlour (8.1.0)
27
+ commander (~> 4.5)
28
+ parser
29
+ rainbow (~> 3.0)
30
+ sorbet-runtime (>= 0.5)
31
+ parser (3.2.1.0)
32
+ ast (~> 2.4.1)
33
+ pry (0.14.2)
34
+ coderay (~> 1.1)
35
+ method_source (~> 1.0)
36
+ pry-rescue (1.5.2)
37
+ interception (>= 0.5)
38
+ pry (>= 0.12.0)
39
+ pry-stack_explorer (0.4.12)
40
+ binding_of_caller (~> 0.7)
41
+ pry (~> 0.13)
42
+ rainbow (3.1.1)
43
+ rake (13.0.6)
44
+ regexp_parser (2.7.0)
45
+ rexml (3.2.5)
46
+ rspec (3.12.0)
47
+ rspec-core (~> 3.12.0)
48
+ rspec-expectations (~> 3.12.0)
49
+ rspec-mocks (~> 3.12.0)
50
+ rspec-core (3.12.1)
51
+ rspec-support (~> 3.12.0)
52
+ rspec-expectations (3.12.2)
53
+ diff-lcs (>= 1.2.0, < 2.0)
54
+ rspec-support (~> 3.12.0)
55
+ rspec-mocks (3.12.3)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.12.0)
58
+ rspec-support (3.12.0)
59
+ rubocop (1.12.1)
60
+ parallel (~> 1.10)
61
+ parser (>= 3.0.0.0)
62
+ rainbow (>= 2.2.2, < 4.0)
63
+ regexp_parser (>= 1.8, < 3.0)
64
+ rexml
65
+ rubocop-ast (>= 1.2.0, < 2.0)
66
+ ruby-progressbar (~> 1.7)
67
+ unicode-display_width (>= 1.4.0, < 3.0)
68
+ rubocop-ast (1.4.1)
69
+ parser (>= 2.7.1.5)
70
+ rubocop-performance (1.10.2)
71
+ rubocop (>= 0.90.0, < 2.0)
72
+ rubocop-ast (>= 0.4.0)
73
+ rubocop-rake (0.5.1)
74
+ rubocop
75
+ rubocop-rspec (2.2.0)
76
+ rubocop (~> 1.0)
77
+ rubocop-ast (>= 1.1.0)
78
+ ruby-progressbar (1.11.0)
79
+ sorbet (0.5.10461)
80
+ sorbet-static (= 0.5.10461)
81
+ sorbet-runtime (0.5.10461)
82
+ sorbet-static (0.5.10461-universal-darwin-22)
83
+ spoom (1.1.11)
84
+ sorbet (>= 0.5.9204)
85
+ sorbet-runtime (>= 0.5.9204)
86
+ thor (>= 0.19.2)
87
+ tapioca (0.4.27)
88
+ bundler (>= 1.17.3)
89
+ parlour (>= 2.1.0)
90
+ pry (>= 0.12.2)
91
+ sorbet-runtime
92
+ sorbet-static (>= 0.4.4471)
93
+ spoom
94
+ thor (>= 0.19.2)
95
+ thor (1.2.1)
96
+ unicode-display_width (2.4.2)
97
+
98
+ PLATFORMS
99
+ x86_64-darwin-22
100
+
101
+ DEPENDENCIES
102
+ bundler
103
+ hierarchical_config!
104
+ pry
105
+ pry-rescue
106
+ pry-stack_explorer
107
+ rake
108
+ rspec
109
+ rubocop
110
+ rubocop-performance
111
+ rubocop-rake
112
+ rubocop-rspec
113
+ sorbet
114
+ tapioca
115
+
116
+ BUNDLED WITH
117
+ 2.3.26
data/Gemfile.lock CHANGED
@@ -1,41 +1,140 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hierarchical_config (0.11)
4
+ hierarchical_config (0.13)
5
+ activesupport
6
+ sorbet-runtime
5
7
 
6
8
  GEM
7
9
  remote: https://rubygems.org/
8
10
  specs:
9
- coderay (1.1.2)
10
- diff-lcs (1.3)
11
- method_source (0.9.0)
12
- pry (0.11.3)
13
- coderay (~> 1.1.0)
14
- method_source (~> 0.9.0)
15
- rake (10.5.0)
16
- rspec (3.8.0)
17
- rspec-core (~> 3.8.0)
18
- rspec-expectations (~> 3.8.0)
19
- rspec-mocks (~> 3.8.0)
20
- rspec-core (3.8.0)
21
- rspec-support (~> 3.8.0)
22
- rspec-expectations (3.8.1)
11
+ activesupport (7.0.4.2)
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ i18n (>= 1.6, < 2)
14
+ minitest (>= 5.1)
15
+ tzinfo (~> 2.0)
16
+ ast (2.4.2)
17
+ binding_of_caller (1.0.0)
18
+ debug_inspector (>= 0.0.1)
19
+ coderay (1.1.3)
20
+ concurrent-ruby (1.2.2)
21
+ debug_inspector (1.1.0)
22
+ diff-lcs (1.5.0)
23
+ i18n (1.12.0)
24
+ concurrent-ruby (~> 1.0)
25
+ interception (0.5)
26
+ json (2.6.3)
27
+ method_source (1.0.0)
28
+ minitest (5.17.0)
29
+ netrc (0.11.0)
30
+ parallel (1.22.1)
31
+ parser (3.2.1.0)
32
+ ast (~> 2.4.1)
33
+ pry (0.14.2)
34
+ coderay (~> 1.1)
35
+ method_source (~> 1.0)
36
+ pry-rescue (1.5.2)
37
+ interception (>= 0.5)
38
+ pry (>= 0.12.0)
39
+ pry-stack_explorer (0.6.1)
40
+ binding_of_caller (~> 1.0)
41
+ pry (~> 0.13)
42
+ rainbow (3.1.1)
43
+ rake (13.0.6)
44
+ rbi (0.0.16)
45
+ ast
46
+ parser (>= 2.6.4.0)
47
+ sorbet-runtime (>= 0.5.9204)
48
+ unparser
49
+ regexp_parser (2.7.0)
50
+ rexml (3.2.5)
51
+ rspec (3.12.0)
52
+ rspec-core (~> 3.12.0)
53
+ rspec-expectations (~> 3.12.0)
54
+ rspec-mocks (~> 3.12.0)
55
+ rspec-core (3.12.1)
56
+ rspec-support (~> 3.12.0)
57
+ rspec-expectations (3.12.2)
23
58
  diff-lcs (>= 1.2.0, < 2.0)
24
- rspec-support (~> 3.8.0)
25
- rspec-mocks (3.8.0)
59
+ rspec-support (~> 3.12.0)
60
+ rspec-mocks (3.12.3)
26
61
  diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.8.0)
28
- rspec-support (3.8.0)
62
+ rspec-support (~> 3.12.0)
63
+ rspec-support (3.12.0)
64
+ rubocop (1.46.0)
65
+ json (~> 2.3)
66
+ parallel (~> 1.10)
67
+ parser (>= 3.2.0.0)
68
+ rainbow (>= 2.2.2, < 4.0)
69
+ regexp_parser (>= 1.8, < 3.0)
70
+ rexml (>= 3.2.5, < 4.0)
71
+ rubocop-ast (>= 1.26.0, < 2.0)
72
+ ruby-progressbar (~> 1.7)
73
+ unicode-display_width (>= 2.4.0, < 3.0)
74
+ rubocop-ast (1.27.0)
75
+ parser (>= 3.2.1.0)
76
+ rubocop-capybara (2.17.1)
77
+ rubocop (~> 1.41)
78
+ rubocop-performance (1.16.0)
79
+ rubocop (>= 1.7.0, < 2.0)
80
+ rubocop-ast (>= 0.4.0)
81
+ rubocop-rake (0.6.0)
82
+ rubocop (~> 1.0)
83
+ rubocop-rspec (2.18.1)
84
+ rubocop (~> 1.33)
85
+ rubocop-capybara (~> 2.17)
86
+ ruby-progressbar (1.11.0)
87
+ sorbet (0.5.10689)
88
+ sorbet-static (= 0.5.10689)
89
+ sorbet-runtime (0.5.10689)
90
+ sorbet-static (0.5.10689-universal-darwin-22)
91
+ sorbet-static-and-runtime (0.5.10689)
92
+ sorbet (= 0.5.10689)
93
+ sorbet-runtime (= 0.5.10689)
94
+ spoom (1.1.15)
95
+ sorbet (>= 0.5.10187)
96
+ sorbet-runtime (>= 0.5.9204)
97
+ thor (>= 0.19.2)
98
+ tapioca (0.11.1)
99
+ bundler (>= 1.17.3)
100
+ netrc (>= 0.11.0)
101
+ parallel (>= 1.21.0)
102
+ rbi (~> 0.0.0, >= 0.0.16)
103
+ sorbet-static-and-runtime (>= 0.5.10187)
104
+ spoom (~> 1.1.0, >= 1.1.11)
105
+ thor (>= 1.2.0)
106
+ yard-sorbet
107
+ thor (1.2.1)
108
+ tzinfo (2.0.6)
109
+ concurrent-ruby (~> 1.0)
110
+ unicode-display_width (2.4.2)
111
+ unparser (0.6.7)
112
+ diff-lcs (~> 1.3)
113
+ parser (>= 3.2.0)
114
+ webrick (1.7.0)
115
+ yard (0.9.28)
116
+ webrick (~> 1.7.0)
117
+ yard-sorbet (0.8.0)
118
+ sorbet-runtime (>= 0.5)
119
+ yard (>= 0.9)
29
120
 
30
121
  PLATFORMS
31
- ruby
122
+ x86_64-darwin-22
32
123
 
33
124
  DEPENDENCIES
34
- bundler (~> 1.16)
125
+ bundler
35
126
  hierarchical_config!
36
- pry (~> 0.11.3)
37
- rake (~> 10.0)
38
- rspec (~> 3.0)
127
+ pry
128
+ pry-rescue
129
+ pry-stack_explorer
130
+ rake
131
+ rspec
132
+ rubocop
133
+ rubocop-performance
134
+ rubocop-rake
135
+ rubocop-rspec
136
+ sorbet
137
+ tapioca
39
138
 
40
139
  BUNDLED WITH
41
- 1.17.3
140
+ 2.4.7
data/README.md CHANGED
@@ -1,5 +1,3 @@
1
- [![Build Status](https://travis-ci.org/timgaleckas/hierarchical_config.svg?branch=master)](https://travis-ci.org/timgaleckas/hierarchical_config)
2
-
3
1
  ## What is it
4
2
 
5
3
  HierarchicalConfig is a library that implements a strategy for configuring an application in a static, declarative, robust, and intuitive way
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "hierarchical_config"
3
+ require 'bundler/setup'
4
+ require 'hierarchical_config'
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -10,5 +10,5 @@ require "hierarchical_config"
10
10
  # require "pry"
11
11
  # Pry.start
12
12
 
13
- require "irb"
13
+ require 'irb'
14
14
  IRB.start(__FILE__)
data/bin/tapioca ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'tapioca' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require 'pathname'
12
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path('bundle', __dir__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require 'rubygems'
27
+ require 'bundler/setup'
28
+
29
+ load Gem.bin_path('tapioca', 'tapioca')
@@ -1,29 +1,30 @@
1
- lib = File.expand_path("../lib", __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "hierarchical_config/version"
3
+ require 'hierarchical_config/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'hierarchical_config'
7
7
  spec.version = HierarchicalConfig::VERSION
8
- spec.authors = ['timgaleckas', 'tjbladez', 'jdfrens']
8
+ spec.authors = %w[timgaleckas tjbladez jdfrens]
9
9
  spec.email = 'tim@galeckas.com, nick@tjbladez.com'
10
10
  spec.summary = 'Robust strategy for defining the configuration accross environments, machines, clusters'
11
11
  spec.description = 'Robust strategy for defining the configuration accross environments, machines, clusters'
12
12
  spec.homepage = 'http://github.com/timgaleckas/hierarchical_config'
13
13
  spec.license = 'MIT'
14
14
 
15
-
16
15
  # Specify which files should be added to the gem when it is released.
17
16
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
18
+ `git ls-files -z`.split("\x0").reject{|f| f.match(%r{^(test|spec|features)/})}
20
19
  end
21
- spec.bindir = "exe"
22
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
- spec.require_paths = ["lib"]
20
+ spec.bindir = 'exe'
21
+ spec.executables = spec.files.grep(%r{^exe/}){|f| File.basename(f)}
22
+ spec.require_paths = ['lib']
23
+
24
+ spec.add_dependency 'activesupport'
25
+ spec.add_dependency 'sorbet-runtime'
26
+
27
+ spec.metadata['rubygems_mfa_required'] = 'true'
24
28
 
25
- spec.add_development_dependency "bundler", "~> 1.16"
26
- spec.add_development_dependency "rake", "~> 10.0"
27
- spec.add_development_dependency "rspec", "~> 3.0"
28
- spec.add_development_dependency "pry", "~> 0.11.3"
29
+ spec.required_ruby_version = '>= 2.4.6'
29
30
  end
@@ -1,3 +1,5 @@
1
+ # typed: true
2
+
1
3
  module HierarchicalConfig
2
- VERSION = "0.11"
4
+ VERSION = '0.13'.freeze
3
5
  end