trestle-resource_helpers 0.1.0 → 0.1.1
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/.gitignore +2 -0
- data/README.md +11 -4
- data/lib/trestle/resource_helpers/version.rb +1 -1
- data/trestle-resource_helpers.gemspec +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3079edaefd0cc55ad57b6b722fa06e240c6d041440fe81fbde5e0936e428b2e
|
4
|
+
data.tar.gz: aa4ceb3608916be0c41d519f6418be4fffe8e9d9da5b78d8c84a5d133cf28c10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c393c7ce0a0351b1a1ff12828707f221025308909337ba86b527edca3d396270b7915df72ee9912aa72b4a2d0f250acb2a4565b63d7a8f80c284000eab6663cc
|
7
|
+
data.tar.gz: 18db2c402b6c46374aa6b5725cfff7c71a30c8b4637a9cb65a12cec40514f006eb22cdb9157cccacb5ec3af30595bb3c33d5b8c80b5bdb74ceb64de168d8b997
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -13,16 +13,23 @@ gem 'trestle-resource_helpers'
|
|
13
13
|
|
14
14
|
Run `bundle install`, and then restart your Rails server.
|
15
15
|
|
16
|
-
To add a description block within an admin resource, use the `resource_description` method:
|
16
|
+
To add a description block within an admin resource, use the `resource_description` method and define the translation key for the model:
|
17
17
|
|
18
18
|
```ruby
|
19
19
|
Trestle.resource(:articles) do
|
20
|
-
resource_description
|
21
|
-
'An article is a super dupper class to add some content to the blog!'
|
22
|
-
end
|
20
|
+
resource_description
|
23
21
|
end
|
24
22
|
```
|
25
23
|
|
24
|
+
```yaml
|
25
|
+
en:
|
26
|
+
admin:
|
27
|
+
articles:
|
28
|
+
resource_description: An article is a super dupper class to add some content to the blog!
|
29
|
+
```
|
30
|
+
|
31
|
+
_N.B.: Replace the `articles` key by the table name corresponding to the resource's model._
|
32
|
+
|
26
33
|
## License
|
27
34
|
|
28
35
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.metadata["homepage_uri"] = spec.homepage
|
23
23
|
spec.metadata["source_code_uri"] = "https://github.com/Ezveus/trestle-resource_helpers"
|
24
24
|
|
25
|
-
spec.add_dependency 'rails', '>= 5.2', '<
|
25
|
+
spec.add_dependency 'rails', '>= 5.2', '< 8'
|
26
26
|
spec.add_dependency "trestle", "~> 0.9.0", ">= 0.9.3"
|
27
27
|
|
28
28
|
spec.add_development_dependency "rspec-rails", "~> 4.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trestle-resource_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthieu Ciappara
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '5.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: trestle
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,7 +64,7 @@ dependencies:
|
|
64
64
|
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '4.0'
|
67
|
-
description:
|
67
|
+
description:
|
68
68
|
email:
|
69
69
|
- matthieu.ciappara@outlook.com
|
70
70
|
executables: []
|
@@ -92,7 +92,7 @@ licenses:
|
|
92
92
|
metadata:
|
93
93
|
homepage_uri: https://github.com/Ezveus/trestle-resource_helpers.git
|
94
94
|
source_code_uri: https://github.com/Ezveus/trestle-resource_helpers
|
95
|
-
post_install_message:
|
95
|
+
post_install_message:
|
96
96
|
rdoc_options: []
|
97
97
|
require_paths:
|
98
98
|
- lib
|
@@ -107,8 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
|
-
rubygems_version: 3.
|
111
|
-
signing_key:
|
110
|
+
rubygems_version: 3.5.3
|
111
|
+
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Add helpers for Trestle resources
|
114
114
|
test_files: []
|