unifig-rails 0.1.0 → 0.4.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: ee97e3ee9ea7a7291cf9f7ade08f4094dda73d94f66b754212dd4b50da4809a6
4
- data.tar.gz: 6836466d1255f6ff9e11a66e8441ce46a4230b1c61bd1dcfdf2a812c896ab40d
3
+ metadata.gz: 74badf63e9b7f40a6ba17060cfc2efb6b492c8ce15e2989059347172ca18c446
4
+ data.tar.gz: ed267db6b594db09e440a5276dd8c1866e808c48af542c6d45240ab9a2105219
5
5
  SHA512:
6
- metadata.gz: 0e7fb023670ab143c7e962afc5d8034b7c1b10f49e15f9a3c58b5958e449d1de7ae561ccf7ee255dc375757b08caf985e85d3061b01e5c3f62bced894061026f
7
- data.tar.gz: a04837c002905ca81012bca00a85869796bba7d2e78ce37aa119113b4e5bb97cf63ed9a7df39d79c0ba0607c006b3bdd617c7a6250a9c22765565b43ea30151a
6
+ metadata.gz: cae2a7852b30e96d5baf803a981495a0c6fd2da60cd42778d28cbf6bea45324447c8f5b7f42d4459961bc150df749aa1b8517e0db6025fc72fc72698c50e99c2
7
+ data.tar.gz: 44bd69f3834e4f7d1d9323cccc7f829016a1c9609e0bda5e5d8a2cf74a57324ef9c662ee4c5de7f4d23d1263b7cba51e5105af3ae8b58713c118c612464c1213
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
+ # [0.4.0][] (2022-09-01)
2
+
3
+ ## Changed
4
+
5
+ - Support for Unifig increased to 0.4.0.
6
+
7
+ # [0.3.0][] (2022-08-03)
8
+
9
+ ## Changed
10
+
11
+ - Support for Unifig increased to 0.3.2.
12
+
13
+ ## Added
14
+
15
+ - A Rake task `unifig:vars` which prints out a table of variable information.
16
+
17
+ # [0.2.0][] (2022-07-31)
18
+
19
+ ## Changed
20
+
21
+ - Support for Unifig increased to 0.3.0.
22
+
1
23
  # [0.1.0][] (2022-07-24)
2
24
 
3
25
  Initial release.
4
26
 
5
- [0.1.0]: https://github.com/AaronLasseigne/unifig/compare/v0.0.0...v0.1.0
27
+ [0.4.0]: https://github.com/AaronLasseigne/unifig-rails/compare/v0.3.0...v0.4.0
28
+ [0.3.0]: https://github.com/AaronLasseigne/unifig-rails/compare/v0.2.0...v0.3.0
29
+ [0.2.0]: https://github.com/AaronLasseigne/unifig-rails/compare/v0.1.0...v0.2.0
30
+ [0.1.0]: https://github.com/AaronLasseigne/unifig-rails/compare/v0.0.0...v0.1.0
data/README.md CHANGED
@@ -10,13 +10,13 @@ Adds [Rails][] support to [Unifig][].
10
10
  Add it to your Gemfile:
11
11
 
12
12
  ``` rb
13
- gem 'unifig-rails', '~> 0.1.0'
13
+ gem 'unifig-rails', '~> 0.4.0'
14
14
  ```
15
15
 
16
16
  Run the configuration generator:
17
17
 
18
18
  ``` sh
19
- rails generate unifig:config
19
+ bundle exec rails generate unifig:config
20
20
  ```
21
21
 
22
22
  This project uses [Semantic Versioning][].
@@ -28,6 +28,24 @@ Once your Rails app has been started you will be able use Unifig with the setup
28
28
 
29
29
  For information on how to use Unifig see the [documentation][] for that gem.
30
30
 
31
+ If you need to know more information about the variables in Unifig you can run `rake unifig:vars` and get a listing.
32
+
33
+ ```
34
+ > rake unifig:vars
35
+ ┌────────┬────────────────┬──────────┬──────────┬─────────┐
36
+ │ │ │ │ │ │
37
+ │ Var │ Value │ Provider │ Required │ Method │
38
+ ├────────┼────────────────┼──────────┼──────────┼─────────┤
39
+ │ │ │ │ │ │
40
+ │ HOME │ "/Users/aaron" │ env │ true │ .home │
41
+ │ │ │ │ │ │
42
+ │ NAME │ "Aaron" │ local │ true │ .name │
43
+ │ │ │ │ │ │
44
+ │ HELLO │ "hi \"Aaron\"" │ local │ false │ .hello │
45
+ └────────┴────────────────┴──────────┴──────────┴─────────┘
46
+
47
+ ```
48
+
31
49
  ## Contributing
32
50
 
33
51
  If you want to contribute to Unifig::Rails, please read [our contribution guidelines][].
@@ -10,7 +10,7 @@ module Unifig
10
10
  abort 'A configuration file already exists.' if File.exist?(Unifig::Rails::CONFIG_PATH)
11
11
 
12
12
  create_file Unifig::Rails::CONFIG_PATH, <<~YML
13
- config:
13
+ unifig:
14
14
  providers: local
15
15
 
16
16
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Unifig
4
4
  module Rails
5
- VERSION = '0.1.0'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
@@ -8,5 +8,9 @@ module Unifig
8
8
  config.before_configuration do
9
9
  Rails.run
10
10
  end
11
+
12
+ rake_tasks do
13
+ load 'tasks/unifig.rake'
14
+ end
11
15
  end
12
16
  end
@@ -10,7 +10,7 @@ RSpec.describe Unifig::ConfigGenerator do
10
10
  end
11
11
 
12
12
  expect(content).to eql <<~YML
13
- config:
13
+ unifig:
14
14
  providers: local
15
15
 
16
16
 
@@ -20,7 +20,7 @@ RSpec.describe Unifig::ConfigGenerator do
20
20
  context 'with an existing file' do
21
21
  before do
22
22
  write_config(<<~YML)
23
- config:
23
+ unifig:
24
24
  providers: local
25
25
 
26
26
  ONE:
@@ -11,7 +11,7 @@ RSpec.describe Unifig::Railtie do
11
11
  context 'with a config' do
12
12
  before do
13
13
  write_config(<<~YML)
14
- config:
14
+ unifig:
15
15
  providers: local
16
16
 
17
17
  FOO:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unifig-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Lasseigne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-24 00:00:00.000000000 Z
11
+ date: 2022-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -24,20 +24,34 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: tty-table
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.12.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.12.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: unifig
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 0.2.0
47
+ version: 0.4.0
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 0.2.0
54
+ version: 0.4.0
41
55
  description: Unifig support for Rails.
42
56
  email:
43
57
  - aaron.lasseigne@gmail.com