thin_man 0.19.2 → 0.19.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a468d284cf102883e731086fb1143541e743e99
4
- data.tar.gz: eb8c7bd1f073c2e415e4c3f891071ed977620b20
3
+ metadata.gz: abe6b86f005058690a9d7e949931717c73df64f5
4
+ data.tar.gz: e7121fb8de000e29a46ca6429e5cdd8d9b7362d6
5
5
  SHA512:
6
- metadata.gz: fdeb4541d05cffe997f56eea84049a6e4adea87ac4b1d48aa88511a33fc1332b91c15b94279c72a215ca3cb44edfc4e892d9d33badf92ff0a8d9e27e6d9a1714
7
- data.tar.gz: 7c170da8043c6e4b790150f65401f4b6fd220f4658b1f28db1b7de2398ed30c616e67171b02715f6887b44689d6110a3dd67b72f4529eec9f32d72f570027042
6
+ metadata.gz: 2b1f98f8809958df0dfebf5e38ace7ba439a7c3c744737a1d2f149b4d48b83dd60bb687684e22e2270e0aa7cb238de2a91c07f5ffa786b78bcb28ac591ea9064
7
+ data.tar.gz: c447690d68f85055c775efefb6aaaff8cce95a65b83ea66f02266fb97869c7a10e77b2283a4b775c89ab8a148aba35a4372e21b25387363762bc9302a485bec9
@@ -3,6 +3,7 @@ module ThinMan
3
3
  def ajax_link(name, options, html_options, target,
4
4
  sub_class: nil, insert_method: nil, empty_on_success: nil,
5
5
  http_method: nil, no_mouse_click: nil, progress_target: nil,
6
+ mask_target: nil, mask_message: nil,
6
7
  progress_color: nil, scroll_to: nil)
7
8
  ajax_options = {
8
9
  'data-ajax-link' => true,
@@ -15,6 +16,8 @@ module ThinMan
15
16
  ajax_options.merge!('data-no-mouse-click' => no_mouse_click) if no_mouse_click.present?
16
17
  ajax_options.merge!('data-progress-target' => progress_target) if progress_target.present?
17
18
  ajax_options.merge!('data-progress-color' => progress_color) if progress_color.present?
19
+ ajax_options.merge!('data-mask-target' => mask_target) if mask_target.present?
20
+ ajax_options.merge!('data-mask-message' => mask_message) if mask_message.present?
18
21
  ajax_options.merge!('data-scroll-to' => scroll_to) if scroll_to.present?
19
22
  link_to(name,
20
23
  options,
@@ -24,7 +27,8 @@ module ThinMan
24
27
  def ajax_link_now(name, options, html_options, target,
25
28
  sub_class: nil, insert_method: nil, empty_on_success: nil,
26
29
  http_method: nil, no_mouse_click: nil, progress_target: nil,
27
- progress_color: nil, sequence_group: nil, sequence_number: nil)
30
+ progress_color: nil, mask_target: nil, mask_message: nil,
31
+ sequence_group: nil, sequence_number: nil)
28
32
  ajax_options = {
29
33
  'data-ajax-link-now' => true,
30
34
  'data-ajax-target' => target
@@ -36,6 +40,8 @@ module ThinMan
36
40
  ajax_options.merge!('data-no-mouse-click' => no_mouse_click) if no_mouse_click.present?
37
41
  ajax_options.merge!('data-progress-target' => progress_target) if progress_target.present?
38
42
  ajax_options.merge!('data-progress-color' => progress_color) if progress_color.present?
43
+ ajax_options.merge!('data-mask-target' => mask_target) if mask_target.present?
44
+ ajax_options.merge!('data-mask-message' => mask_message) if mask_message.present?
39
45
  ajax_options.merge!('data-sequence-group' => sequence_group) if sequence_group.present?
40
46
  ajax_options.merge!('data-sequence-number' => sequence_number) if sequence_number.present?
41
47
  link_to(name,
@@ -58,7 +64,11 @@ module ThinMan
58
64
  html_options.merge(ajax_options))
59
65
  end
60
66
 
61
- def ajax_form_hash(target, sub_class: nil, insert_method: nil, error_target: nil, empty_on_success: nil, reset_on_success: nil, container: nil, custom_progress: nil, no_mouse_click: nil, progress_target: nil, progress_color: nil)
67
+ def ajax_form_hash(target, sub_class: nil, insert_method: nil,
68
+ error_target: nil, empty_on_success: nil, reset_on_success: nil,
69
+ container: nil, custom_progress: nil, no_mouse_click: nil,
70
+ mask_target: nil, mask_message: nil,
71
+ progress_target: nil, progress_color: nil)
62
72
  ajax_options = {
63
73
  'data-ajax-form' => true,
64
74
  'data-ajax-target' => target
@@ -73,10 +83,17 @@ module ThinMan
73
83
  ajax_options.merge!('data-no-mouse-click' => no_mouse_click) if no_mouse_click.present?
74
84
  ajax_options.merge!('data-progress-target' => progress_target) if progress_target.present?
75
85
  ajax_options.merge!('data-progress-color' => progress_color) if progress_color.present?
86
+ ajax_options.merge!('data-mask-target' => mask_target) if mask_target.present?
87
+ ajax_options.merge!('data-mask-message' => mask_message) if mask_message.present?
76
88
  ajax_options
77
89
  end
78
90
 
79
- def ajax_form_now(target, sub_class: nil, insert_method: nil, error_target: nil, empty_on_success: nil, reset_on_success: nil, container: nil, custom_progress: nil, progress_target: nil, progress_color: nil)
91
+ def ajax_form_now(target, sub_class: nil,
92
+ insert_method: nil, error_target: nil,
93
+ empty_on_success: nil, reset_on_success: nil,
94
+ container: nil, custom_progress: nil,
95
+ mask_target: nil, mask_message: nil,
96
+ progress_target: nil, progress_color: nil)
80
97
  ajax_options = {
81
98
  'data-ajax-form-now' => true,
82
99
  'data-ajax-target' => target
@@ -90,10 +107,16 @@ module ThinMan
90
107
  ajax_options.merge!('data-custom-progress' => custom_progress) if custom_progress.present?
91
108
  ajax_options.merge!('data-progress-target' => progress_target) if progress_target.present?
92
109
  ajax_options.merge!('data-progress-color' => progress_color) if progress_color.present?
110
+ ajax_options.merge!('data-mask-target' => mask_target) if mask_target.present?
111
+ ajax_options.merge!('data-mask-message' => mask_message) if mask_message.present?
93
112
  ajax_options
94
113
  end
95
114
 
96
- def ajax_form_attrs(target, sub_class: nil, insert_method: nil, error_target: nil, empty_on_success: nil, reset_on_success: nil, no_mouse_click: nil, progress_target: nil, progress_color: nil)
115
+ def ajax_form_attrs(target, sub_class: nil,
116
+ insert_method: nil, error_target: nil,
117
+ empty_on_success: nil, reset_on_success: nil, no_mouse_click: nil,
118
+ progress_target: nil, progress_color: nil,
119
+ mask_target: nil, mask_message: nil )
97
120
  data_attrs = "data-ajax-form=true data-ajax-target=#{target}"
98
121
  data_attrs += " data-insert-method=#{insert_method}" if insert_method
99
122
  data_attrs += " data-sub-type=#{sub_class}" if sub_class
@@ -103,10 +126,16 @@ module ThinMan
103
126
  data_attrs += " data-no-mouse-click=#{no_mouse_click}" if no_mouse_click
104
127
  data_attrs += " data-progress-target=#{progress_target}" if progress_target
105
128
  data_attrs += " data-progress-color=#{progress_color}" if progress_color
129
+ data_attrs += " data-mask-target=#{mask_target}" if mask_target
130
+ data_attrs += " data-mask-message=#{mask_message}" if mask_message
106
131
  data_attrs
107
132
  end
108
133
 
109
- def ajax_form_now_attrs(target, sub_class: nil, insert_method: nil, error_target: nil, empty_on_success: nil, reset_on_success: nil, progress_target: nil, progress_color: nil)
134
+ def ajax_form_now_attrs(target, sub_class: nil,
135
+ insert_method: nil, error_target: nil,
136
+ empty_on_success: nil, reset_on_success: nil,
137
+ progress_target: nil, progress_color: nil,
138
+ mask_target: nil, mask_message: nil )
110
139
  data_attrs = "data-ajax-form-now=true data-ajax-target=#{target}"
111
140
  data_attrs += " data-insert-method=#{insert_method}" if insert_method
112
141
  data_attrs += " data-sub-type=#{sub_class}" if sub_class
@@ -115,13 +144,17 @@ module ThinMan
115
144
  data_attrs += " data-error-target=#{error_target}" if error_target
116
145
  data_attrs += " data-progress-target=#{progress_target}" if progress_target
117
146
  data_attrs += " data-progress-color=#{progress_color}" if progress_color
147
+ data_attrs += " data-mask-target=#{mask_target}" if mask_target
148
+ data_attrs += " data-mask-message=#{mask_message}" if mask_message
118
149
  data_attrs
119
150
  end
120
151
 
121
152
  def ajax_link_attrs(target,
122
153
  insert_method: nil, sub_type: nil, empty_on_success: nil,
123
154
  http_method: nil, no_mouse_click: nil, progress_target: nil,
124
- progress_color: nil, scroll_to: nil)
155
+ progress_color: nil,
156
+ mask_target: nil, mask_message: nil,
157
+ scroll_to: nil)
125
158
  data_attrs = "data-ajax-link=true data-ajax-target=#{target}"
126
159
  data_attrs += " data-insert-method=#{insert_method}" if insert_method
127
160
  data_attrs += " data-ajax-method=#{http_method}" if http_method
@@ -131,6 +164,8 @@ module ThinMan
131
164
  data_attrs += " data-progress-target=#{progress_target}" if progress_target
132
165
  data_attrs += " data-progress-color=#{progress_color}" if progress_color
133
166
  data_attrs += " data-scroll-to=#{scroll_to}" if scroll_to
167
+ data_attrs += " data-mask-target=#{mask_target}" if mask_target
168
+ data_attrs += " data-mask-message=#{mask_message}" if mask_message
134
169
  data_attrs
135
170
  end
136
171
 
@@ -1,3 +1,3 @@
1
1
  module ThinMan
2
- VERSION = "0.19.2"
2
+ VERSION = "0.19.3"
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.2
4
+ version: 0.19.3
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-06-16 00:00:00.000000000 Z
11
+ date: 2017-07-03 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.11
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