au_state_select 1.2 → 1.3
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/au_state_select/instance_tag.rb +7 -1
- data/lib/au_state_select/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44f06a0865c97fb79c535b1d1e4f369722c832c1
|
|
4
|
+
data.tar.gz: 6c9dfe7dd0909b0ffebf54fc76421db4089abb3c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da8a0899bcae10e91d80c090c380d30ac7f7833f270e5ff8fb2e5fda7777115246b74f90d8b4621e0c2bfe77bce2d1e398d49f8f0ca19172ec69030429abeca0
|
|
7
|
+
data.tar.gz: 0bf5a3213d7639a7015d0acbc98213110508bf7e405e855c09aacfda6edb5e6460ce4017cb32ca13d870364d66cd64988a6bb7ad27fb673b4191a0f166a33635
|
|
@@ -28,7 +28,13 @@ module AUStateSelect
|
|
|
28
28
|
states += options_for_select(priority_states, selected)
|
|
29
29
|
states += "<option value=\"\" disabled=\"disabled\">-------------</option>\n"
|
|
30
30
|
end
|
|
31
|
-
|
|
31
|
+
|
|
32
|
+
select_options = if options.key?(:short_name) and options[:short_name]
|
|
33
|
+
['ACT', 'NSW', 'NT', 'QLD', 'SA', 'TAS', 'VIC', 'WA']
|
|
34
|
+
else
|
|
35
|
+
[['Australian Capital Territory', 'ACT'],['New South Wales', 'NSW'],['Northern Territory', 'NT'],['Queensland', 'QLD'],['South Australia', 'SA'],['Tasmania', 'TAS'],['Victoria', 'VIC'],['Western Australia', 'WA']]
|
|
36
|
+
end
|
|
37
|
+
states = states + options_for_select(select_options, selected)
|
|
32
38
|
|
|
33
39
|
html_options = html_options.stringify_keys
|
|
34
40
|
add_default_name_and_id(html_options)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: au_state_select
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.3'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Zhang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-07-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
77
|
version: '0'
|
|
78
78
|
requirements: []
|
|
79
79
|
rubyforge_project:
|
|
80
|
-
rubygems_version: 2.
|
|
80
|
+
rubygems_version: 2.4.3
|
|
81
81
|
signing_key:
|
|
82
82
|
specification_version: 4
|
|
83
83
|
summary: Provides a simple helper to get an HTML select list of Australia states.
|