app_rail-steps 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +17 -2
- data/lib/app_rail/steps/core/list.rb +10 -3
- data/lib/app_rail/steps/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a141fb3b658dd53261624e501490700e20e8659856c107022597092a2fe29469
|
4
|
+
data.tar.gz: 17a66d80b87ecb6305d88b56decf82ef5445e7d44b5062d49adef43132a3a0f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fea4a473618b0e1129c641f9195c2cd84f8718ce1a3f6a6713aaf9eb064cc07eed26d29ef20b84e512ea6206052ac163cde9c32defe9dbcda38ccd0cc511664f
|
7
|
+
data.tar.gz: c7c443db93e21aa566c7a23b73ba5cd8905f8ca25e6c1d555b5a7ae2a9bf74ec90fc8bf8f09f79a54f22742c586a5778c8dea3c2ed607a7e5a89c3e1053d73bd
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -22,7 +22,22 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
```ruby
|
26
|
+
#require the gem in your script
|
27
|
+
require 'app_rail/steps'
|
28
|
+
|
29
|
+
...
|
30
|
+
#inside your module/class include the displayable modile
|
31
|
+
include AppRail::Steps::Displayable
|
32
|
+
|
33
|
+
...
|
34
|
+
#now you can use the methods from the gem for example:
|
35
|
+
def ar_list_item_as_json
|
36
|
+
ar_core_list_item(id: self.id, text: self.name, detail_text: self.detail_text)
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
```
|
26
41
|
|
27
42
|
## Development
|
28
43
|
|
@@ -32,7 +47,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
47
|
|
33
48
|
## Contributing
|
34
49
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
50
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/FutureWorkshops/app_rail-steps.
|
36
51
|
|
37
52
|
## License
|
38
53
|
|
@@ -4,9 +4,16 @@ module AppRail
|
|
4
4
|
module Steps
|
5
5
|
module Core
|
6
6
|
module List
|
7
|
-
def ar_core_list_item(text:, id: self.id, detail_text: nil, sf_symbol_name: nil, material_icon_name: nil, preview_url: nil)
|
8
|
-
{
|
9
|
-
|
7
|
+
def ar_core_list_item(text:, id: self.id, detail_text: nil, section_name: nil, sf_symbol_name: nil, material_icon_name: nil, preview_url: nil)
|
8
|
+
{
|
9
|
+
id: id,
|
10
|
+
text: text,
|
11
|
+
detailText: detail_text,
|
12
|
+
sectionName: section_name,
|
13
|
+
sfSymbolName: sf_symbol_name,
|
14
|
+
materialIconName: material_icon_name,
|
15
|
+
imageURL: preview_url
|
16
|
+
}.compact
|
10
17
|
end
|
11
18
|
|
12
19
|
def ar_core_list_search_suggestion(text:, section_name:, id: self.id, sf_symbol_name: nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_rail-steps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|