thin_man 0.19.7 → 0.19.8

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: 6d0c901eb1d780f09bb66efdf55cd3c961b8d74e
4
- data.tar.gz: 6297c85daccfe287bf75644c81e3908fbd4663f2
3
+ metadata.gz: 563f770524ce3f254803837c23d1d465ac972a78
4
+ data.tar.gz: a711ccb1edec8005bdb242bf0a405232c402854d
5
5
  SHA512:
6
- metadata.gz: 97e18d8ccf7871a07dff8318ee1e308b0688dbc6bdbb82ccd3ae7a288f554d19a3f702a1281f1af7ed3873c257fee99087de7623e740aa75065f05bceac61d44
7
- data.tar.gz: 95a4c711990183133a41c1e6c7383c75a9425bf55f1f77eae8d45432ee0042e7f0febd85ae5f920256b46798e81bc13b540e7ba380370e1a431e1a7e105fea8e
6
+ metadata.gz: e2ab1a98fb597a8cd3e9e5319740631e2490fb48cd22b7a6cedb852778117997d8cb172f188faa5707e0cd84148de49b541ff196b52511aaf523ac12855d8c52
7
+ data.tar.gz: d16cc5458789b29e93ab7e59bdad599cbde78651b1ce5d806d133c75c87361c35dfd9f6f698065a0f127fc8d588bfb986194d7f640b5655074a282937182d656
@@ -49,9 +49,16 @@ module ThinMan
49
49
  ajax_options.merge!('data-sequence-number' => sequence_number) if sequence_number.present?
50
50
  ajax_options.merge!('data-search-path' => search_path) if search_path.present?
51
51
  ajax_options.merge!('data-search-params' => search_params) if search_params.present?
52
- link_to(name,
53
- options,
54
- html_options.merge(ajax_options))
52
+
53
+ a_tag = link_to(name,
54
+ options,
55
+ html_options.merge(ajax_options))
56
+ if(search_path.present?)
57
+ href_attr = a_tag.scan(/href="[^"]*/).first
58
+ href_end_index = a_tag.index(href_attr) + href_attr.length
59
+ a_tag.insert(href_end_index,"#!#{target}")
60
+ end
61
+ a_tag
55
62
  end
56
63
 
57
64
  def ajax_delete(name, options, html_options, target, sub_class: nil, replace_response: false, no_confirm: false, custom_progress: nil, no_mouse_click: nil)
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.19.7"
2
+ VERSION = "0.19.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thin_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.7
4
+ version: 0.19.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut, Adam Bialek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-09 00:00:00.000000000 Z
11
+ date: 2018-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.6.13
131
+ rubygems_version: 2.6.12
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: A Rails library that makes web apps lively while keeping all the logic on
@@ -139,9 +139,9 @@ test_files:
139
139
  - test/dummy/README.rdoc
140
140
  - test/javascript/spec/thinManSpec.js
141
141
  - test/javascript/jasmine-fixture.js
142
- - test/javascript/jquery.js
143
- - test/javascript/karma.conf.js
144
142
  - test/javascript/package.json
143
+ - test/javascript/karma.conf.js
145
144
  - test/javascript/test-main.js
146
- - test/test_helper.rb
145
+ - test/javascript/jquery.js
147
146
  - test/thin_man_test.rb
147
+ - test/test_helper.rb