iso-country-select 0.1.2 → 0.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "iso-country-select"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
@@ -25,7 +25,7 @@ require 'rails'
25
25
  require 'iso3166'
26
26
 
27
27
  module ActionView
28
- module Helpers
28
+ module Helpers
29
29
  module FormOptionsHelper
30
30
  def country_select(object, method, priority_countries = nil, options = {}, html_options = {})
31
31
  InstanceTag.new(object, method, self, options.delete(:object)).to_country_select_tag(priority_countries, options, html_options)
@@ -68,3 +68,15 @@ module ActionView
68
68
  end
69
69
  end
70
70
  end
71
+
72
+ module IsoCountrySelect
73
+ extend ActiveSupport::Concern
74
+
75
+ def country_name(code)
76
+ Iso3166.localize(code)
77
+ end
78
+
79
+ end
80
+
81
+ ActionView::Base.send :include, IsoCountrySelect
82
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iso-country-select
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -80,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  segments:
82
82
  - 0
83
- hash: -3857963336751534480
83
+ hash: 1710174622913132056
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements: