jqr-helpers 1.0.68 → 1.0.69
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 +5 -13
- data/jqr-helpers.gemspec +2 -2
- data/lib/jqr-helpers/helpers.rb +9 -3
- data/lib/jqr-helpers/version.rb +1 -1
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
Y2Y2ZTNiZGZiNWNhZWZkY2YyMDY5YTdhYmNiYWU0ZGE0MzRjZmU5Mw==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 88799f8297c214cee908f918ab0c87150a1fa31e
|
4
|
+
data.tar.gz: d62ae4d5ddbc00ce704946b7bcf25c0d69f8eab7
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
OWQzMmFiM2YxZDZjN2Y1YWJkYjg0NjA2ZGIzOTJiMzllNGM4N2U3MjNiNzg2
|
11
|
-
MWI2NTkxZTE1Y2M1MzkzODM2MzlmNDExZTBhNmQwOGZlOTVjOTE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NDgyYjc3NjdhYzBmZDIyMDRiYjA1MmIxMjQ3ZWYyMGIyOTZkM2Y1OTk2ZDVm
|
14
|
-
MmEwZTJjOThjODlmNWQxOTQyNDdjYjQyMmZhMjY1OGVkM2FmZTRkNGY1MDVl
|
15
|
-
MmIyY2ViNjI5ZjEwOTJlYjU0YTFmNWE3Y2NhYWIwYjNjOTAzYjY=
|
6
|
+
metadata.gz: 57ef0b63461d18039adb77b86100e9f89f35f4b58b606804639586ddd8c956410a97abde7a91ab4705a205371ecd3df9bf89258e5a560e102435137c051cf159
|
7
|
+
data.tar.gz: 50de6dac78c2751d96afb71d76cee7c82ded38f02316f3622b8499458b55a2b744f450f895ced29b3b9d61362275093c155db7e50bc4b04c573dd1b760fec77c
|
data/jqr-helpers.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'jqr-helpers'
|
3
3
|
s.require_paths = %w(. lib lib/jqr-helpers)
|
4
|
-
s.version = '1.0.
|
5
|
-
s.date = '2015-04-
|
4
|
+
s.version = '1.0.69'
|
5
|
+
s.date = '2015-04-30'
|
6
6
|
s.summary = 'Helpers to print unobtrusive jQuery-UI tags.'
|
7
7
|
s.description = <<-EOF
|
8
8
|
This gem adds helper methods to create unobtrusive jQuery code. It outputs
|
data/lib/jqr-helpers/helpers.rb
CHANGED
@@ -312,13 +312,19 @@ module JqrHelpers
|
|
312
312
|
# @param values [Hash<String, String>] a hash of value => label.
|
313
313
|
# @param selected [String] the selected value, if any.
|
314
314
|
# @param html_options [Hash] a set of options that will be passed into
|
315
|
-
# the parent div tag.
|
315
|
+
# the parent div tag. Special option is :input_id, which will be appended
|
316
|
+
# to both label and radio button to avoid having the same ID on different
|
317
|
+
# buttons (e.g. when displaying multiple times for different objects),
|
318
|
+
# which would cause the buttonset not to work.
|
316
319
|
def buttonset(name, values, selected=nil, html_options={})
|
317
320
|
html_options[:class] ||= ''
|
318
321
|
html_options[:class] << ' ujs-button-set'
|
322
|
+
given_id = html_options.delete(:input_id)
|
319
323
|
content = values.inject('') do |sum, (value, label)|
|
320
|
-
|
321
|
-
|
324
|
+
id = "#{name}_#{value}"
|
325
|
+
id << "_#{given_id}" if given_id
|
326
|
+
sum += radio_button_tag(name, value, selected == value, :id => id) +
|
327
|
+
label_tag(id, label)
|
322
328
|
end
|
323
329
|
content_tag(:div, raw(content), html_options)
|
324
330
|
end
|
data/lib/jqr-helpers/version.rb
CHANGED
metadata
CHANGED
@@ -1,47 +1,48 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jqr-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.69
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Orner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
|
-
- -
|
16
|
+
- - '>='
|
17
17
|
- !ruby/object:Gem::Version
|
18
18
|
version: '3.0'
|
19
|
-
|
19
|
+
type: :runtime
|
20
20
|
name: rails
|
21
|
+
prerelease: false
|
21
22
|
version_requirements: !ruby/object:Gem::Requirement
|
22
23
|
requirements:
|
23
|
-
- -
|
24
|
+
- - '>='
|
24
25
|
- !ruby/object:Gem::Version
|
25
26
|
version: '3.0'
|
26
|
-
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '0'
|
33
|
-
|
33
|
+
type: :development
|
34
34
|
name: yard
|
35
|
+
prerelease: false
|
35
36
|
version_requirements: !ruby/object:Gem::Requirement
|
36
37
|
requirements:
|
37
|
-
- -
|
38
|
+
- - '>='
|
38
39
|
- !ruby/object:Gem::Version
|
39
40
|
version: '0'
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
41
|
+
description: |2
|
42
|
+
This gem adds helper methods to create unobtrusive jQuery code. It outputs
|
43
|
+
HTML, which is hooked by an included JavaScript file to provide the
|
44
|
+
functionality. Helpers include links to Ajax requests to update elements on
|
45
|
+
the page, dialogs (including remote dialogs), date pickers and tab containers.
|
45
46
|
email: daniel.orner@wishabi.com
|
46
47
|
executables: []
|
47
48
|
extensions: []
|
@@ -94,18 +95,18 @@ require_paths:
|
|
94
95
|
- lib/jqr-helpers
|
95
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
97
|
requirements:
|
97
|
-
- -
|
98
|
+
- - '>='
|
98
99
|
- !ruby/object:Gem::Version
|
99
100
|
version: '0'
|
100
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
102
|
requirements:
|
102
|
-
- -
|
103
|
+
- - '>='
|
103
104
|
- !ruby/object:Gem::Version
|
104
105
|
version: '0'
|
105
106
|
requirements:
|
106
107
|
- Optionally install will_paginate to allow Ajax pagination
|
107
108
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.4.6
|
109
110
|
signing_key:
|
110
111
|
specification_version: 4
|
111
112
|
summary: Helpers to print unobtrusive jQuery-UI tags.
|