unifig-rails 0.1.0 → 0.4.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 +4 -4
- data/CHANGELOG.md +26 -1
- data/README.md +20 -2
- data/lib/generators/unifig/config_generator.rb +1 -1
- data/lib/unifig/rails/version.rb +1 -1
- data/lib/unifig/railtie.rb +4 -0
- data/spec/generators/unifig/config_generator_spec.rb +2 -2
- data/spec/unifig/railtie_spec.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74badf63e9b7f40a6ba17060cfc2efb6b492c8ce15e2989059347172ca18c446
|
4
|
+
data.tar.gz: ed267db6b594db09e440a5276dd8c1866e808c48af542c6d45240ab9a2105219
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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][].
|
data/lib/unifig/rails/version.rb
CHANGED
data/lib/unifig/railtie.rb
CHANGED
@@ -10,7 +10,7 @@ RSpec.describe Unifig::ConfigGenerator do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
expect(content).to eql <<~YML
|
13
|
-
|
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
|
-
|
23
|
+
unifig:
|
24
24
|
providers: local
|
25
25
|
|
26
26
|
ONE:
|
data/spec/unifig/railtie_spec.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
54
|
+
version: 0.4.0
|
41
55
|
description: Unifig support for Rails.
|
42
56
|
email:
|
43
57
|
- aaron.lasseigne@gmail.com
|