geography_helper 0.1.1 → 0.1.2
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.
- data/README.md +5 -2
- data/geography_helper.gemspec +1 -1
- data/lib/geography_helper/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -21,13 +21,16 @@ Or install it yourself as:
|
|
21
21
|
## Usage
|
22
22
|
|
23
23
|
call `GeographyHelper::States.new.states` for a hash of nested states
|
24
|
+
|
24
25
|
call `GeographyHelper::States.new.provinces` for a hash of nested provinces
|
26
|
+
|
25
27
|
call `GeographyHelper::Countries.new.countries` for a hash of countries
|
26
28
|
|
27
|
-
The gem also provides helper
|
29
|
+
### The gem also provides two helper methods to render state/province and country dropdowns from a Rails select dropdown.
|
28
30
|
|
29
31
|
* `country_options_for_select`
|
30
|
-
* `state_options_for_select`
|
32
|
+
* `state_options_for_select()`
|
33
|
+
- this method takes an optional selected argument, 'NY'
|
31
34
|
|
32
35
|
``` ruby example.html.erb
|
33
36
|
<%= form.select :country, country_options_for_select, {include_blank: true} %>
|
data/geography_helper.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Eric Iacutone"]
|
10
10
|
spec.email = ["eric.iacutone@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary = "
|
12
|
+
spec.summary = "Ruby hash state, province and country abbreviations."
|
13
13
|
spec.homepage = "https://github.com/iacutone/geography_helper"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geography_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
segments:
|
98
98
|
- 0
|
99
|
-
hash:
|
99
|
+
hash: -2610513749692464919
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
none: false
|
102
102
|
requirements:
|
@@ -105,11 +105,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
segments:
|
107
107
|
- 0
|
108
|
-
hash:
|
108
|
+
hash: -2610513749692464919
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
111
|
rubygems_version: 1.8.25
|
112
112
|
signing_key:
|
113
113
|
specification_version: 3
|
114
|
-
summary:
|
114
|
+
summary: Ruby hash state, province and country abbreviations.
|
115
115
|
test_files: []
|