country_select_yaml 1.1.3 → 1.2.0
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 +2 -2
- data/{country_select.gemspec → country_select_yaml.gemspec} +3 -3
- data/lib/{country_select.rb → country_select_yaml.rb} +3 -3
- data/lib/{country_select → country_select_yaml}/countries.yml +0 -0
- data/lib/country_select_yaml/version.rb +3 -0
- data/spec/{country_select_spec.rb → country_select_yaml_spec.rb} +1 -1
- metadata +7 -7
- data/lib/country_select/version.rb +0 -3
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# Country Select YAML
|
|
2
2
|
|
|
3
3
|
[](https://codeclimate.com/github/waldyr/country_select.png)
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@ Install as a gem using
|
|
|
16
16
|
|
|
17
17
|
Or put the following in your Gemfile
|
|
18
18
|
|
|
19
|
-
gem
|
|
19
|
+
gem "country_select_yaml", "~> 1.1.3"
|
|
20
20
|
|
|
21
21
|
## Example
|
|
22
22
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
|
3
|
-
require "
|
|
3
|
+
require "country_select_yaml/version"
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |s|
|
|
6
6
|
s.name = "country_select_yaml"
|
|
7
|
-
s.version =
|
|
7
|
+
s.version = CountrySelectYaml::VERSION
|
|
8
8
|
s.authors = ["Stefan Penner", "Waldyr Araújo"]
|
|
9
9
|
s.email = ["stefan.penner@gmail.com", "waldyr.ar@gmail.com"]
|
|
10
|
-
s.homepage = "https://github.com/waldyr/
|
|
10
|
+
s.homepage = "https://github.com/waldyr/country_select_yaml"
|
|
11
11
|
s.summary = %q{Country Select Plugin}
|
|
12
12
|
s.description = %q{Provides a simple helper to get an HTML select list of countries by a YAML file. The list of countries comes from the ISO 3166 standard. While it is a relatively neutral source of country names, it will still offend some users.}
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# Adds #country_select method to
|
|
4
4
|
# ActionView::FormBuilder
|
|
5
5
|
#
|
|
6
|
-
require '
|
|
6
|
+
require 'country_select_yaml/version'
|
|
7
7
|
require 'yaml'
|
|
8
8
|
|
|
9
9
|
module ActionView
|
|
@@ -65,7 +65,7 @@ module ActionView
|
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
# All the countries included in the country_options output.
|
|
68
|
-
path_to_yaml = File.dirname(__FILE__) + "/
|
|
68
|
+
path_to_yaml = File.dirname(__FILE__) + "/country_select_yaml/countries.yml"
|
|
69
69
|
COUNTRIES = YAML.load_file(path_to_yaml) unless const_defined?("COUNTRIES")
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -89,7 +89,7 @@ module ActionView
|
|
|
89
89
|
include ToCountrySelectTag
|
|
90
90
|
end
|
|
91
91
|
else
|
|
92
|
-
class
|
|
92
|
+
class CountrySelectYaml < Tags::Base
|
|
93
93
|
include ToCountrySelectTag
|
|
94
94
|
end
|
|
95
95
|
end
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: country_select_yaml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -29,13 +29,13 @@ files:
|
|
|
29
29
|
- README.md
|
|
30
30
|
- Rakefile
|
|
31
31
|
- VERSION
|
|
32
|
-
-
|
|
33
|
-
- lib/
|
|
34
|
-
- lib/
|
|
35
|
-
- lib/
|
|
36
|
-
- spec/
|
|
32
|
+
- country_select_yaml.gemspec
|
|
33
|
+
- lib/country_select_yaml.rb
|
|
34
|
+
- lib/country_select_yaml/countries.yml
|
|
35
|
+
- lib/country_select_yaml/version.rb
|
|
36
|
+
- spec/country_select_yaml_spec.rb
|
|
37
37
|
- spec/spec_helper.rb
|
|
38
|
-
homepage: https://github.com/waldyr/
|
|
38
|
+
homepage: https://github.com/waldyr/country_select_yaml
|
|
39
39
|
licenses: []
|
|
40
40
|
post_install_message:
|
|
41
41
|
rdoc_options: []
|