handy_generators 0.1.10 → 0.1.11

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: f27e9123f919f500713b0b559fbf06af5375b672eb192211675fde47ac28ec6d
4
- data.tar.gz: a181ce840f4aaab260677958c0bc7a665580dcbba1685a7b8ac89ff6f3c39743
3
+ metadata.gz: 61611fac2f5749f4a06f8cdef98b3a66665df2d7afec02d16dc1a54fd812b3cf
4
+ data.tar.gz: 8442ad34c76f60cbb20ebc0a3da168121c1f38c26c8750bd1fcd03a37cfbd6b1
5
5
  SHA512:
6
- metadata.gz: 02f0d28c5e04a9ddfeac38294e202eaec4486b3b70e329e66342662cc22720898c6f414aa32368ad696feea5b1820bf7d4bcd0f60a8ba49b4f10c9f056ae114d
7
- data.tar.gz: 46ec463b22e82a772ec3955f0215b2358e50462a900410bbb59abd0c2885fe6e32ec29f42fb27db89bee9cadad96d2aefbfbc76e3e7ff79e040aa98bf1afdc95
6
+ metadata.gz: b32502fe0ec693867dc890c30de6ed6fd8a529f859a5c3e99066df108b76e24a7d9b28fe075254216b2dce849505d746e3f5311d2a863dec9aa0e90c90a2e427
7
+ data.tar.gz: c61c1d9279241fb1bac3687f4f34daa9923c3a648664b9e93b26f68f21b7b42c02ce814d30830a237c4ca3c318d12567e9e26cea848faef1580d2cd7f8a8332f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- handy_generators (0.1.10)
4
+ handy_generators (0.1.11)
5
5
  rails (> 4.0)
6
6
 
7
7
  GEM
@@ -10,44 +10,44 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["dakotaleemusic@gmail.com"]
11
11
 
12
12
  spec.summary = %q{Add rails generators to add a helper to add edit and delete links that work for multiple resources}
13
- spec.description = %q{
13
+ spec.description = %Q{
14
14
  ## Usage
15
15
 
16
16
  ### Edit Links Helper
17
17
 
18
- ```
18
+
19
19
  rails generate handy_generators:edit_links_helper
20
- ```
21
- \n
20
+
21
+ \r\n
22
22
  This generator will add a helper and a partial for displaying edit and
23
23
  delete links for a record. This uses pundit by default to check
24
24
  whether a user should be able to edit and/or delete the record before
25
25
  displaying the link. If you'd like to always display these links when
26
26
  you use the helper in the view or handle the logic yourself, simply
27
27
  add --pundit false to your command.
28
- \n
29
- ```
28
+ \r\n
29
+
30
30
  rails generate handy_generators:edit_links_helper --pundit false
31
- ```
32
- \n
33
- #### Helpers
34
31
 
35
- `edit_links(record:, edit_classes: '', delete_classes: '')`
32
+ \n
33
+ \r\n
36
34
 
37
- The `edit_links` helper receives three parameters `record`, `edit_classes`,
35
+ edit_links(record:, edit_classes: '', delete_classes: '')
36
+ \r\n
37
+ The `edit_links` helper receives three parameters `record`, `edit_classes`,
38
38
  and `delete_classes`. Record is the only required parameter,
39
39
  `edit_classes` and `delete_classes` will be empty by default, if you'd
40
40
  like to add classes you can pass them as parameters to the helper. The
41
41
  default helper uses pundit, and it will check if the logged in user has
42
42
  permission to edit or delete the record before displaying the links. If
43
43
  not, it will display the edit or delete links to all users.
44
-
44
+ \r\n
45
45
  `edit_record_link(record:, classes: '')`
46
-
46
+ \r\n
47
47
  The `edit_record_link` helper will just display an edit link, it won't check if the user has permission before displaying the link. Classes that you pass in as a parameter will be applied to the link.
48
-
48
+ \r\n
49
49
  `delete_record_link(record:, classes: '')`
50
-
50
+ \r\n
51
51
  The `delete_record_link` helper will display just display a delete link, with a confirm. It also doesn't check if the user has permission before displaying the link. Classes that you pass in as a parameter will be applied to the link.
52
52
  }
53
53
  spec.homepage = "https://github.com/DakotaLMartinez/handy_generators"
@@ -1,3 +1,3 @@
1
1
  module HandyGenerators
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handy_generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - DakotaLMartinez
@@ -80,26 +80,26 @@ dependencies:
80
80
  - - ">"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '4.0'
83
- description: "\n ## Usage\n\n### Edit Links Helper\n\n```\nrails generate handy_generators:edit_links_helper\n```\n\\n\nThis
83
+ description: "\n ## Usage\n\n### Edit Links Helper\n\n\nrails generate handy_generators:edit_links_helper\n\n\r\n\nThis
84
84
  generator will add a helper and a partial for displaying edit and\ndelete links
85
85
  for a record. This uses pundit by default to check\nwhether a user should be able
86
86
  to edit and/or delete the record before\ndisplaying the link. If you'd like to always
87
87
  display these links when\nyou use the helper in the view or handle the logic yourself,
88
- simply\nadd --pundit false to your command.\n\\n\n```\nrails generate handy_generators:edit_links_helper
89
- --pundit false\n```\n\\n\n#### Helpers\n\n`edit_links(record:, edit_classes: '',
90
- delete_classes: '')`\n\nThe `edit_links` helper receives three parameters `record`,
91
- `edit_classes`, \nand `delete_classes`. Record is the only required parameter, \n`edit_classes`
92
- and `delete_classes` will be empty by default, if you'd \nlike to add classes you
93
- can pass them as parameters to the helper. The \ndefault helper uses pundit, and
94
- it will check if the logged in user has\npermission to edit or delete the record
95
- before displaying the links. If\nnot, it will display the edit or delete links to
96
- all users.\n\n`edit_record_link(record:, classes: '')`\n\nThe `edit_record_link`
97
- helper will just display an edit link, it won't check if the user has permission
98
- before displaying the link. Classes that you pass in as a parameter will be applied
99
- to the link.\n\n`delete_record_link(record:, classes: '')`\n\nThe `delete_record_link`
100
- helper will display just display a delete link, with a confirm. It also doesn't
101
- check if the user has permission before displaying the link. Classes that you pass
102
- in as a parameter will be applied to the link.\n "
88
+ simply\nadd --pundit false to your command.\n\r\n\n\nrails generate handy_generators:edit_links_helper
89
+ --pundit false\n\n\n\n\r\n\n\nedit_links(record:, edit_classes: '', delete_classes:
90
+ '')\n\r\n\nThe `edit_links` helper receives three parameters `record`, `edit_classes`,\nand
91
+ `delete_classes`. Record is the only required parameter, \n`edit_classes` and `delete_classes`
92
+ will be empty by default, if you'd \nlike to add classes you can pass them as parameters
93
+ to the helper. The \ndefault helper uses pundit, and it will check if the logged
94
+ in user has\npermission to edit or delete the record before displaying the links.
95
+ If\nnot, it will display the edit or delete links to all users.\n\r\n\n`edit_record_link(record:,
96
+ classes: '')`\n\r\n\nThe `edit_record_link` helper will just display an edit link,
97
+ it won't check if the user has permission before displaying the link. Classes that
98
+ you pass in as a parameter will be applied to the link.\n\r\n\n`delete_record_link(record:,
99
+ classes: '')`\n\r\n\nThe `delete_record_link` helper will display just display a
100
+ delete link, with a confirm. It also doesn't check if the user has permission before
101
+ displaying the link. Classes that you pass in as a parameter will be applied to
102
+ the link.\n "
103
103
  email:
104
104
  - dakotaleemusic@gmail.com
105
105
  executables: []