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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c69e695763e8a4cc47225caf10e0c03fd4365156bc644d77cff33fef4528aa3b
4
- data.tar.gz: 75dc508779e3e0ce1d78938b9a9eb74b92e98481d875f2e192e35e9ec141d7e4
3
+ metadata.gz: a3079edaefd0cc55ad57b6b722fa06e240c6d041440fe81fbde5e0936e428b2e
4
+ data.tar.gz: aa4ceb3608916be0c41d519f6418be4fffe8e9d9da5b78d8c84a5d133cf28c10
5
5
  SHA512:
6
- metadata.gz: e923121008b87d753fcf7fec63e9b06d23291d5b75db2500ae6c35364e24830d2403cd70ef9e25bd8a82ef54097074b6dd93363de2d0c858dbc690cba1bcf4c8
7
- data.tar.gz: a36e16de13ccc73d85e5de1581fb9a51b67270f99f2a41807a67cd39524ca04fda1b8ba3c31854f521c080145e7fbed242b9586724480e131b2f38891a5bf0c2
6
+ metadata.gz: c393c7ce0a0351b1a1ff12828707f221025308909337ba86b527edca3d396270b7915df72ee9912aa72b4a2d0f250acb2a4565b63d7a8f80c284000eab6663cc
7
+ data.tar.gz: 18db2c402b6c46374aa6b5725cfff7c71a30c8b4637a9cb65a12cec40514f006eb22cdb9157cccacb5ec3af30595bb3c33d5b8c80b5bdb74ceb64de168d8b997
data/.gitignore CHANGED
@@ -55,3 +55,5 @@ build-iPhoneSimulator/
55
55
 
56
56
  # Used by RuboCop. Remote config files pulled in from inherit_from directive.
57
57
  # .rubocop-https?--*
58
+
59
+ .idea
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 do
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).
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module ResourceHelpers
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
@@ -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', '< 7'
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.0
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: 2022-01-12 00:00:00.000000000 Z
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: '7'
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: '7'
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.0.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: []