thin_man 0.19.3 → 0.19.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: abe6b86f005058690a9d7e949931717c73df64f5
4
- data.tar.gz: e7121fb8de000e29a46ca6429e5cdd8d9b7362d6
3
+ metadata.gz: c6800600d4cc20c269bfed66dcd8019ffd7b7b63
4
+ data.tar.gz: c3ac5567bc8531b1d7fa10384aaf6f9eeb3ee8e7
5
5
  SHA512:
6
- metadata.gz: 2b1f98f8809958df0dfebf5e38ace7ba439a7c3c744737a1d2f149b4d48b83dd60bb687684e22e2270e0aa7cb238de2a91c07f5ffa786b78bcb28ac591ea9064
7
- data.tar.gz: c447690d68f85055c775efefb6aaaff8cce95a65b83ea66f02266fb97869c7a10e77b2283a4b775c89ab8a148aba35a4372e21b25387363762bc9302a485bec9
6
+ metadata.gz: f801efe2f0de4e6167543f34166857fa56651fd9276e301517fe425a29b043a97e35a081d163c8ea17a836a3280ecd9a1617cd9503002afacc509540aa4b523d
7
+ data.tar.gz: e831bd796f59f15e4c39a5fdd12d8efc122e5cb542a8ed1310ace29b04b1af17e2b5083513db9b323654a19ebe09704ae6ed317fd5d2d838330c7b2270918952
@@ -1,7 +1,7 @@
1
1
  module ThinMan
2
2
  module AjaxHelper
3
3
  def ajax_link(name, options, html_options, target,
4
- sub_class: nil, insert_method: nil, empty_on_success: nil,
4
+ sub_class: nil, insert_method: nil, empty_on_success: nil, remove_on_success: nil,
5
5
  http_method: nil, no_mouse_click: nil, progress_target: nil,
6
6
  mask_target: nil, mask_message: nil,
7
7
  progress_color: nil, scroll_to: nil)
@@ -13,6 +13,7 @@ module ThinMan
13
13
  ajax_options.merge!('data-insert-method' => insert_method) if insert_method.present?
14
14
  ajax_options.merge!('data-ajax-method' => http_method) if http_method.present?
15
15
  ajax_options.merge!('data-empty-on-success' => empty_on_success) if empty_on_success.present?
16
+ ajax_options.merge!('data-remove-on-success' => remove_on_success) if remove_on_success.present?
16
17
  ajax_options.merge!('data-no-mouse-click' => no_mouse_click) if no_mouse_click.present?
17
18
  ajax_options.merge!('data-progress-target' => progress_target) if progress_target.present?
18
19
  ajax_options.merge!('data-progress-color' => progress_color) if progress_color.present?
@@ -25,7 +26,7 @@ module ThinMan
25
26
  end
26
27
 
27
28
  def ajax_link_now(name, options, html_options, target,
28
- sub_class: nil, insert_method: nil, empty_on_success: nil,
29
+ sub_class: nil, insert_method: nil, empty_on_success: nil, remove_on_success: nil,
29
30
  http_method: nil, no_mouse_click: nil, progress_target: nil,
30
31
  progress_color: nil, mask_target: nil, mask_message: nil,
31
32
  sequence_group: nil, sequence_number: nil)
@@ -37,6 +38,7 @@ module ThinMan
37
38
  ajax_options.merge!('data-insert-method' => insert_method) if insert_method.present?
38
39
  ajax_options.merge!('data-ajax-method' => http_method) if http_method.present?
39
40
  ajax_options.merge!('data-empty-on-success' => empty_on_success) if empty_on_success.present?
41
+ ajax_options.merge!('data-remove-on-success' => remove_on_success) if remove_on_success.present?
40
42
  ajax_options.merge!('data-no-mouse-click' => no_mouse_click) if no_mouse_click.present?
41
43
  ajax_options.merge!('data-progress-target' => progress_target) if progress_target.present?
42
44
  ajax_options.merge!('data-progress-color' => progress_color) if progress_color.present?
@@ -65,7 +67,7 @@ module ThinMan
65
67
  end
66
68
 
67
69
  def ajax_form_hash(target, sub_class: nil, insert_method: nil,
68
- error_target: nil, empty_on_success: nil, reset_on_success: nil,
70
+ error_target: nil, empty_on_success: nil, reset_on_success: nil, remove_on_success: nil,
69
71
  container: nil, custom_progress: nil, no_mouse_click: nil,
70
72
  mask_target: nil, mask_message: nil,
71
73
  progress_target: nil, progress_color: nil)
@@ -78,6 +80,7 @@ module ThinMan
78
80
  ajax_options.merge!('data-container' => container) if container.present?
79
81
  ajax_options.merge!('data-error-target' => error_target) if error_target.present?
80
82
  ajax_options.merge!('data-empty-on-success' => empty_on_success) if empty_on_success.present?
83
+ ajax_options.merge!('data-remove-on-success' => remove_on_success) if remove_on_success.present?
81
84
  ajax_options.merge!('data-reset-on-success' => reset_on_success) if reset_on_success.present?
82
85
  ajax_options.merge!('data-custom-progress' => custom_progress) if custom_progress.present?
83
86
  ajax_options.merge!('data-no-mouse-click' => no_mouse_click) if no_mouse_click.present?
@@ -90,7 +93,7 @@ module ThinMan
90
93
 
91
94
  def ajax_form_now(target, sub_class: nil,
92
95
  insert_method: nil, error_target: nil,
93
- empty_on_success: nil, reset_on_success: nil,
96
+ empty_on_success: nil, reset_on_success: nil, remove_on_success: nil,
94
97
  container: nil, custom_progress: nil,
95
98
  mask_target: nil, mask_message: nil,
96
99
  progress_target: nil, progress_color: nil)
@@ -103,6 +106,7 @@ module ThinMan
103
106
  ajax_options.merge!('data-container' => container) if container.present?
104
107
  ajax_options.merge!('data-error-target' => error_target) if error_target.present?
105
108
  ajax_options.merge!('data-empty-on-success' => empty_on_success) if empty_on_success.present?
109
+ ajax_options.merge!('data-remove-on-success' => remove_on_success) if remove_on_success.present?
106
110
  ajax_options.merge!('data-reset-on-success' => reset_on_success) if reset_on_success.present?
107
111
  ajax_options.merge!('data-custom-progress' => custom_progress) if custom_progress.present?
108
112
  ajax_options.merge!('data-progress-target' => progress_target) if progress_target.present?
@@ -113,7 +117,7 @@ module ThinMan
113
117
  end
114
118
 
115
119
  def ajax_form_attrs(target, sub_class: nil,
116
- insert_method: nil, error_target: nil,
120
+ insert_method: nil, error_target: nil, remove_on_success: nil,
117
121
  empty_on_success: nil, reset_on_success: nil, no_mouse_click: nil,
118
122
  progress_target: nil, progress_color: nil,
119
123
  mask_target: nil, mask_message: nil )
@@ -121,6 +125,7 @@ module ThinMan
121
125
  data_attrs += " data-insert-method=#{insert_method}" if insert_method
122
126
  data_attrs += " data-sub-type=#{sub_class}" if sub_class
123
127
  data_attrs += " data-empty-on-success=#{empty_on_success}" if empty_on_success
128
+ data_attrs += " data-remove-on-success=#{remove_on_success}" if remove_on_success
124
129
  data_attrs += " data-reset-on-success=#{reset_on_success}" if reset_on_success
125
130
  data_attrs += " data-error-target=#{error_target}" if error_target
126
131
  data_attrs += " data-no-mouse-click=#{no_mouse_click}" if no_mouse_click
@@ -133,13 +138,14 @@ module ThinMan
133
138
 
134
139
  def ajax_form_now_attrs(target, sub_class: nil,
135
140
  insert_method: nil, error_target: nil,
136
- empty_on_success: nil, reset_on_success: nil,
141
+ empty_on_success: nil, reset_on_success: nil, remove_on_success: nil,
137
142
  progress_target: nil, progress_color: nil,
138
143
  mask_target: nil, mask_message: nil )
139
144
  data_attrs = "data-ajax-form-now=true data-ajax-target=#{target}"
140
145
  data_attrs += " data-insert-method=#{insert_method}" if insert_method
141
146
  data_attrs += " data-sub-type=#{sub_class}" if sub_class
142
147
  data_attrs += " data-empty-on-success=#{empty_on_success}" if empty_on_success
148
+ data_attrs += " data-remove-on-success=#{remove_on_success}" if remove_on_success
143
149
  data_attrs += " data-reset-on-success=#{reset_on_success}" if reset_on_success
144
150
  data_attrs += " data-error-target=#{error_target}" if error_target
145
151
  data_attrs += " data-progress-target=#{progress_target}" if progress_target
@@ -150,7 +156,7 @@ module ThinMan
150
156
  end
151
157
 
152
158
  def ajax_link_attrs(target,
153
- insert_method: nil, sub_type: nil, empty_on_success: nil,
159
+ insert_method: nil, sub_type: nil, empty_on_success: nil, remove_on_success: nil,
154
160
  http_method: nil, no_mouse_click: nil, progress_target: nil,
155
161
  progress_color: nil,
156
162
  mask_target: nil, mask_message: nil,
@@ -160,6 +166,7 @@ module ThinMan
160
166
  data_attrs += " data-ajax-method=#{http_method}" if http_method
161
167
  data_attrs += " data-sub-type=#{sub_type}" if sub_type
162
168
  data_attrs += " data-empty-on-success=#{empty_on_success}" if empty_on_success
169
+ data_attrs += " data-remove-on-success=#{remove_on_success}" if remove_on_success
163
170
  data_attrs += " data-no-mouse-click=#{no_mouse_click}" if no_mouse_click
164
171
  data_attrs += " data-progress-target=#{progress_target}" if progress_target
165
172
  data_attrs += " data-progress-color=#{progress_color}" if progress_color
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.19.3"
2
+ VERSION = "0.19.4"
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.3
4
+ version: 0.19.4
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: 2017-07-03 00:00:00.000000000 Z
11
+ date: 2017-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.1'
19
+ version: '5.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '6'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.1'
29
+ version: '5.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '6'
@@ -48,22 +48,22 @@ dependencies:
48
48
  name: minitest-rails
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '2'
53
+ version: '3'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: '3'
56
+ version: '4'
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - "~>"
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: '2'
63
+ version: '3'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
- version: '3'
66
+ version: '4'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: rake
69
69
  requirement: !ruby/object:Gem::Requirement