data_href_highlight 0.1.4 → 0.1.5
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/README.md +20 -9
- data/data_href_highlight.gemspec +3 -1
- data/lib/data_href_highlight/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0e851b0d385837fce543ac10252052a3f3a39e2
|
4
|
+
data.tar.gz: f348ff65ea10e6720aeecc0c2fae7b7dff28b572
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9140f9c5f46280aef1daf85459e3d7a1970c03fb0073807b2edbf5b03a14a71fecf3f2ac4aa8f903d4d68c932fbfabd85a03458ed20b6bb870ddc425eb6bba7
|
7
|
+
data.tar.gz: 55eda1512101bcfb70cb7746a0d8dd097f5fb49c474548deb5f7aa6ff0082c410b6c408b1489112591aa04b7b02df8746e7e642bddc606827f65c91722fb9759
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# DataHrefHighlight
|
2
2
|
|
3
|
-
|
3
|
+
This gem adds a script and simple css, to make table rows clickable adding much needed functionality too default rails tables.
|
4
|
+
|
5
|
+
future plan add in the data-href maybe the path for users to simplify it but I dont know if its possible.
|
4
6
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
@@ -23,14 +24,24 @@ Or install it yourself as:
|
|
23
24
|
## Usage
|
24
25
|
|
25
26
|
To use this gem,
|
26
|
-
first add to your gem file:
|
27
|
-
|
28
|
-
|
27
|
+
first add to your gem file:
|
28
|
+
|
29
|
+
gem 'data_href_highlight'
|
30
|
+
|
31
|
+
Inside your application javasript file add
|
32
|
+
|
33
|
+
//= require dataHref
|
34
|
+
|
35
|
+
Inside application.css.scss add
|
36
|
+
|
37
|
+
*= require dataHref
|
38
|
+
|
29
39
|
then on your table you will want to add the data-href attr set to your path location.
|
30
40
|
example:
|
31
|
-
|
32
|
-
|
33
|
-
|
41
|
+
|
42
|
+
<tbody>
|
43
|
+
<% @employees.each do |employee| %>
|
44
|
+
<tr data-href="<%= employee_url(employee) %>">
|
34
45
|
|
35
46
|
## Development
|
36
47
|
|
@@ -40,7 +51,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
40
51
|
|
41
52
|
## Contributing
|
42
53
|
|
43
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
54
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/xdarkicex/data_href_highlight.
|
44
55
|
|
45
56
|
|
46
57
|
## License
|
data/data_href_highlight.gemspec
CHANGED
@@ -12,7 +12,9 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.summary = %q{This Gem adds a quick command to highlight data-href.}
|
13
13
|
spec.description = %q{Highlight data-hrefs, making table rows clickable.. must set data-href in your table for this to function properly, example: <tbody>
|
14
14
|
<% @employees.each do |employee| %>
|
15
|
-
<tr data-href="<%= employee_url(employee) %>">
|
15
|
+
<tr data-href="<%= employee_url(employee) %>">
|
16
|
+
Please visit github for more detailed instructions, https://github.com/xDarkicex/Data_Href_gem
|
17
|
+
}
|
16
18
|
spec.homepage = "https://github.com/xDarkicex/Data_Href_gem"
|
17
19
|
spec.license = "MIT"
|
18
20
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_href_highlight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gentry Rolofson
|
@@ -52,10 +52,11 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
|
-
description:
|
56
|
-
|
57
|
-
|
58
|
-
|
55
|
+
description: "Highlight data-hrefs, making table rows clickable.. must set data-href
|
56
|
+
in your table for this to function properly, example: <tbody>\n <% @employees.each
|
57
|
+
do |employee| %>\n <tr data-href=\"<%= employee_url(employee) %>\">\n Please
|
58
|
+
visit github for more detailed instructions, https://github.com/xDarkicex/Data_Href_gem\n
|
59
|
+
\ "
|
59
60
|
email:
|
60
61
|
- grolofson@bitdev.io
|
61
62
|
executables: []
|