country_select_yaml 1.1.3 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Country_Select
1
+ # Country Select YAML
2
2
 
3
3
  [![Code Climate](https://codeclimate.com/github/waldyr/country_select.png)](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 'country_select_yaml'
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 "country_select/version"
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 = CountrySelect::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/country_select"
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 'country_select/version'
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__) + "/country_select/countries.yml"
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 CountrySelect < Tags::Base
92
+ class CountrySelectYaml < Tags::Base
93
93
  include ToCountrySelectTag
94
94
  end
95
95
  end
@@ -0,0 +1,3 @@
1
+ module CountrySelectYaml
2
+ VERSION = "1.2.0"
3
+ end
@@ -3,7 +3,7 @@ require 'country_select'
3
3
 
4
4
  module ActionView
5
5
  module Helpers
6
- describe CountrySelect do
6
+ describe CountrySelectYaml do
7
7
  let!(:walrus) { Walrus.new }
8
8
  let!(:template) { ActionView::Base.new }
9
9
 
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.1.3
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
- - country_select.gemspec
33
- - lib/country_select.rb
34
- - lib/country_select/countries.yml
35
- - lib/country_select/version.rb
36
- - spec/country_select_spec.rb
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/country_select
38
+ homepage: https://github.com/waldyr/country_select_yaml
39
39
  licenses: []
40
40
  post_install_message:
41
41
  rdoc_options: []
@@ -1,3 +0,0 @@
1
- module CountrySelect
2
- VERSION = "1.1.3"
3
- end