au_state_select 1.2 → 1.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: 54980a071b0097856c01c7ef49e005bc8138f29f
4
- data.tar.gz: 2597a1b2b589add45dd68c5de9018ac9b31df824
3
+ metadata.gz: 44f06a0865c97fb79c535b1d1e4f369722c832c1
4
+ data.tar.gz: 6c9dfe7dd0909b0ffebf54fc76421db4089abb3c
5
5
  SHA512:
6
- metadata.gz: 6f4268bdfecdf6df8d1c7c2708395873626f16057fd33c479cae9e9a7ab99c74b44b109c156b00c55043d897667da2bec33fd8b8abea4a329c5b4b1568736ec5
7
- data.tar.gz: 48723b83fd4634371b3c49e5e1920190635a3cfe858ab088f2d99043f075013748bf041dd4f8d615d45e61e409f6ed485c93543a09d9f4b4da794964353dbfe4
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
- states = states + options_for_select([['Australian Capital Territory', 'ACT'],['New South Wales', 'NSW'],['Northern Territory', 'NT'],['Queensland', 'QLD'],['South Australia', 'SA'],['Tasmania', 'TAS'],['Victoria', 'VIC'],['Western Australia', 'WA']], selected)
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)
@@ -1,3 +1,3 @@
1
1
  module AuStateSelect
2
- VERSION = "1.2"
2
+ VERSION = "1.3"
3
3
  end
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.2'
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-02-04 00:00:00.000000000 Z
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.2.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.