data_href_highlight 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: 645715bd46e52de6f756c651e49c4a569aa844dd
4
- data.tar.gz: be66ec78db391ca8d18397f2bbca4b1de96f6102
3
+ metadata.gz: 412efc1066cf47c52eeecd4479fff9d05c091dcb
4
+ data.tar.gz: 6fb3b0797907d4da6cac183a06b2f4d2a84341bb
5
5
  SHA512:
6
- metadata.gz: fb27e5ffd52e249bb12241171d5f6b2489d80d67ca9e7b550b645b030284f4e8a6d1013da6ad1b1378987002796fd8a087ced610c2140ff5d1a3acf4b138171d
7
- data.tar.gz: 78092e34c47383644ab6d813c7c6be455aa294a9f237337882b9b646c9002dad4e51806b1bc40b2f665329e0be5e4659461a8b2f7de7d669e55df2d5e57fa99a
6
+ metadata.gz: 31fe471e8a3ef5393275d000ae2e9515af873352d22adc55e65b3779ba0d7ad3242e110cfa4b293fe0eb52a0c393e50f6ad19a8e44532d5ec859b163b562aa82
7
+ data.tar.gz: f95a531205e97a18f07628702bbed517dd87bd0ec7761c191a4dcff661a015531c7435d52eab67acc21dcc79fce299702f1dbcd7f9b8f561337375dd064c1720
data/README.md CHANGED
@@ -22,7 +22,15 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ To use this gem,
26
+ first add to your gem file: gem 'data_href_highlight'
27
+ Inside your application javasript file add //= require dataHref
28
+ Inside application.css.scss add *= require dataHref
29
+ then on your table you will want to add the data-href attr set to your path location.
30
+ example:
31
+ <tbody>
32
+ <% @employees.each do |employee| %>
33
+ <tr data-href="<%= employee_url(employee) %>">
26
34
 
27
35
  ## Development
28
36
 
@@ -38,4 +46,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERN
38
46
  ## License
39
47
 
40
48
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
@@ -1,4 +1,4 @@
1
- //= require hrefData
1
+ //= require dataHref
2
2
  $(function(){
3
3
  $('body').click(function(e){
4
4
  var obj = $(e.target.parentNode);
@@ -1,4 +1,4 @@
1
- //= require hrefData
1
+ //= require dataHref
2
2
  *[data-href] {
3
3
  cursor:pointer;
4
4
  &:hover{
@@ -1,3 +1,3 @@
1
1
  module DataHrefHighlight
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gentry Rolofson
@@ -68,15 +68,15 @@ files:
68
68
  - LICENSE.txt
69
69
  - README.md
70
70
  - Rakefile
71
- - app/assets/javascripts/hrefData.js
72
- - app/assets/stylesheets/hrefData.css.scss
71
+ - app/assets/javascripts/dataHref.js
72
+ - app/assets/stylesheets/dataHref.css.scss
73
73
  - bin/console
74
74
  - bin/setup
75
75
  - data_href_highlight.gemspec
76
76
  - lib/data_href_highlight.rb
77
77
  - lib/data_href_highlight/version.rb
78
- - vendor/assets/javascripts/hrefData.js
79
- - vendor/assets/stylesheets/hrefData.css.scss
78
+ - vendor/assets/javascripts/dataHref.js
79
+ - vendor/assets/stylesheets/dataHref.css.scss
80
80
  homepage: https://github.com/xDarkicex/Data_Href_gem
81
81
  licenses:
82
82
  - MIT