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 +4 -4
- data/lib/thin_man/ajax_helper.rb +10 -3
- data/lib/thin_man/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 563f770524ce3f254803837c23d1d465ac972a78
|
4
|
+
data.tar.gz: a711ccb1edec8005bdb242bf0a405232c402854d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2ab1a98fb597a8cd3e9e5319740631e2490fb48cd22b7a6cedb852778117997d8cb172f188faa5707e0cd84148de49b541ff196b52511aaf523ac12855d8c52
|
7
|
+
data.tar.gz: d16cc5458789b29e93ab7e59bdad599cbde78651b1ce5d806d133c75c87361c35dfd9f6f698065a0f127fc8d588bfb986194d7f640b5655074a282937182d656
|
data/lib/thin_man/ajax_helper.rb
CHANGED
@@ -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
|
-
|
53
|
-
|
54
|
-
|
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)
|
data/lib/thin_man/version.rb
CHANGED
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.
|
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-
|
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.
|
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/
|
145
|
+
- test/javascript/jquery.js
|
147
146
|
- test/thin_man_test.rb
|
147
|
+
- test/test_helper.rb
|