countryselect0r 0.0.1

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.
File without changes
@@ -0,0 +1,4 @@
1
+ === 0.0.1 2012-12-13
2
+
3
+ * 1 major enhancement:
4
+ * Initial release
@@ -0,0 +1,13 @@
1
+ History.txt
2
+ Manifest.txt
3
+ PostInstall.txt
4
+ README.rdoc
5
+ Rakefile
6
+ lib/countryselect0r.rb
7
+ lib/countryselect0r/base.rb
8
+ lib/countryselect0r/iso3166.rb
9
+ script/console
10
+ script/destroy
11
+ script/generate
12
+ test/test_countryselect0r.rb
13
+ test/test_helper.rb
@@ -0,0 +1,7 @@
1
+
2
+ For more information on countryselect0r, see http://countryselect0r.rubyforge.org
3
+
4
+ NOTE: Change this information in PostInstall.txt
5
+ You can also delete it if you don't want it.
6
+
7
+
@@ -0,0 +1,64 @@
1
+ = countryselect0r
2
+
3
+ * http://github.com/cmdjohnson/countryselect0r
4
+
5
+ == DESCRIPTION:
6
+
7
+ Fork of the country-select (version 1.1.1) gem by Michael Koziarski and James Dean Shepherd.
8
+ With mashup code from the iso-country-select (version 0.1.4) gem by Maurizio Casimirri.
9
+
10
+ == FEATURES/PROBLEMS:
11
+
12
+ Stores countries as ISO 3166 codes instead of English strings
13
+ Accepts a list of priority countries
14
+ Queries i18n for localized country names
15
+ Works with Formtastic and ActiveAdmin
16
+
17
+ == SYNOPSIS:
18
+
19
+ # When using formtastic, it will usually detect the "country" column for you.
20
+ f.input :country
21
+ # Specify it yourself
22
+ f.input :my_country_column, :as => :country
23
+ # Specify a list of priority countries
24
+ f.input :country, { :priority_countries => [ "NLD", "BEL", "DEU", "LUX" ] }
25
+
26
+ == REQUIREMENTS:
27
+
28
+ - Ruby
29
+ - Rails
30
+
31
+ This gem was tested with Ruby 1.9.3p194 and Rails 3.2.9.
32
+
33
+ == INSTALL:
34
+
35
+ gem install countryselect0r
36
+
37
+ Add this line to your config/application.rb:
38
+
39
+ require 'countryselect0r/base'
40
+
41
+ == LICENSE:
42
+
43
+ (The MIT License)
44
+
45
+ Copyright (c) 2012 Commander Johnson <commanderjohnson@gmail.com>
46
+
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of this software and associated documentation files (the
49
+ 'Software'), to deal in the Software without restriction, including
50
+ without limitation the rights to use, copy, modify, merge, publish,
51
+ distribute, sublicense, and/or sell copies of the Software, and to
52
+ permit persons to whom the Software is furnished to do so, subject to
53
+ the following conditions:
54
+
55
+ The above copyright notice and this permission notice shall be
56
+ included in all copies or substantial portions of the Software.
57
+
58
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
59
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
60
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
61
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
62
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
63
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
64
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,25 @@
1
+ require 'rubygems'
2
+ gem 'hoe', '>= 2.1.0'
3
+ require 'hoe'
4
+ require 'fileutils'
5
+ require './lib/countryselect0r'
6
+
7
+ Hoe.plugin :newgem
8
+ # Hoe.plugin :website
9
+ # Hoe.plugin :cucumberfeatures
10
+
11
+ # Generate all the Rake tasks
12
+ # Run 'rake -T' to see list of generated tasks (from gem root directory)
13
+ $hoe = Hoe.spec 'countryselect0r' do
14
+ self.developer 'Commander Johnson', 'commanderjohnson@gmail.com'
15
+ self.rubyforge_name = self.name # TODO this is default value
16
+ # self.extra_deps = [['activesupport','>= 2.0.2']]
17
+
18
+ end
19
+
20
+ require 'newgem/tasks'
21
+ Dir['tasks/**/*.rake'].each { |t| load t }
22
+
23
+ # TODO - want other tests/tasks run by default? Add them to the list
24
+ # remove_task :default
25
+ # task :default => [:spec, :features]
@@ -0,0 +1,17 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # -- begin header --
3
+ ###############################################################################
4
+ # Fork of the country-select (version 1.1.1) gem by Michael Koziarski and James Dean Shepherd.
5
+ # With mashup code from the iso-country-select (version 0.1.4) gem by Maurizio Casimirri.
6
+ #
7
+ # (c) 2012 Commander Johnson. Licensed under the MIT license.
8
+ ###############################################################################
9
+ # -- end header --
10
+ $:.unshift(File.dirname(__FILE__)) unless
11
+ $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
12
+
13
+ module Countryselect0r
14
+ VERSION = '0.0.1'
15
+ end
16
+
17
+ #require 'countryselect0r/base'
@@ -0,0 +1,75 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # -- begin header --
3
+ ###############################################################################
4
+ # Fork of the country-select (version 1.1.1) gem by Michael Koziarski and James Dean Shepherd.
5
+ # With mashup code from the iso-country-select (version 0.1.4) gem by Maurizio Casimirri.
6
+ #
7
+ # (c) 2012 Commander Johnson. Licensed under the MIT license.
8
+ ###############################################################################
9
+ # -- end header --
10
+ #require 'rails'
11
+ require 'countryselect0r/iso3166'
12
+
13
+ module ActionView
14
+ module Helpers
15
+ module FormOptionsHelper
16
+ def country_select(object, method, priority_countries = nil, options = {}, html_options = {})
17
+ InstanceTag.new(object, method, self, options.delete(:object)).to_country_select_tag(priority_countries, options, html_options)
18
+ end
19
+
20
+ def country_options_for_select(selected = nil, priority_countries = nil)
21
+ country_options = ""
22
+
23
+ if priority_countries && priority_countries.is_a?(Array)
24
+ # +_+ #
25
+ priority_countries.each do |pc|
26
+ # +_+ #
27
+ country_options += options_for_select({ Iso3166.localize(pc) => pc }, selected)
28
+ end
29
+ #country_options += options_for_select(priority_countries, selected)
30
+ country_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n"
31
+ selected=nil if priority_countries.include?(selected)
32
+ end
33
+
34
+ countries = Iso3166.codes.map { |code|
35
+ [Iso3166.localize(code), code]
36
+ }
37
+
38
+ country_options = country_options.html_safe if country_options.respond_to?(:html_safe)
39
+
40
+ return country_options + options_for_select(countries, selected)
41
+ end
42
+ end
43
+
44
+ class InstanceTag
45
+ def to_country_select_tag(priority_countries, options, html_options)
46
+ html_options = html_options.stringify_keys
47
+ add_default_name_and_id(html_options)
48
+ value = value(object)
49
+ content_tag("select",
50
+ add_options(
51
+ country_options_for_select(value, priority_countries),
52
+ options, value
53
+ ), html_options
54
+ )
55
+ end
56
+ end
57
+
58
+ class FormBuilder
59
+ def country_select(method, priority_countries = nil, options = {}, html_options = {})
60
+ @template.country_select(@object_name, method, priority_countries, options.merge(:object => @object), html_options)
61
+ end
62
+ end
63
+ end
64
+ end
65
+
66
+ module IsoCountrySelect
67
+ extend ActiveSupport::Concern
68
+
69
+ def country_name(code)
70
+ Iso3166.localize(code)
71
+ end
72
+
73
+ end
74
+
75
+ ActionView::Base.send :include, IsoCountrySelect
@@ -0,0 +1,33 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # -- begin header --
3
+ ###############################################################################
4
+ # Fork of the country-select (version 1.1.1) gem by Michael Koziarski and James Dean Shepherd.
5
+ # With mashup code from the iso-country-select (version 0.1.4) gem by Maurizio Casimirri.
6
+ #
7
+ # (c) 2012 Commander Johnson. Licensed under the MIT license.
8
+ ###############################################################################
9
+ # -- end header --
10
+ # encoding: UTF-8
11
+
12
+ module Iso3166
13
+ ALPHA_3_CODES = ["AFG", "ALA", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "KHM", "CMR", "CAN", "CPV", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COG", "COD", "COK", "CRI", "CIV", "HRV", "CUB", "CUW", "CYP", "CZE", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MKD", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "REU", "ROU", "RUS", "RWA", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWZ", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "USA", "UMI", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE"]
14
+ DEFAULTS = ActiveSupport::HashWithIndifferentAccess.new("AFG" => "Afghanistan", "ALA" => "Aland Islands", "ALB" => "Albania", "DZA" => "Algeria", "ASM" => "American Samoa", "AND" => "Andorra", "AGO" => "Angola", "AIA" => "Anguilla", "ATA" => "Antarctica", "ATG" => "Antigua and Barbuda", "ARG" => "Argentina", "ARM" => "Armenia", "ABW" => "Aruba", "AUS" => "Australia", "AUT" => "Austria", "AZE" => "Azerbaijan", "BHS" => "Bahamas", "BHR" => "Bahrain", "BGD" => "Bangladesh", "BRB" => "Barbados", "BLR" => "Belarus", "BEL" => "Belgium", "BLZ" => "Belize", "BEN" => "Benin", "BMU" => "Bermuda", "BTN" => "Bhutan", "BOL" => "Bolivia, Plurinational State of", "BES" => "Bonaire, Sint Eustatius and Saba", "BIH" => "Bosnia and Herzegovina", "BWA" => "Botswana", "BVT" => "Bouvet Island", "BRA" => "Brazil", "IOT" => "British Indian Ocean Territory", "BRN" => "Brunei Darussalam", "BGR" => "Bulgaria", "BFA" => "Burkina Faso", "BDI" => "Burundi", "KHM" => "Cambodia", "CMR" => "Cameroon", "CAN" => "Canada", "CPV" => "Cape Verde", "CYM" => "Cayman Islands", "CAF" => "Central African Republic", "TCD" => "Chad", "CHL" => "Chile", "CHN" => "China", "CXR" => "Christmas Island", "CCK" => "Cocos (Keeling) Islands", "COL" => "Colombia", "COM" => "Comoros", "COG" => "Congo", "COD" => "Congo, the Democratic Republic of the", "COK" => "Cook Islands", "CRI" => "Costa Rica", "CIV" => "Cote d'Ivoire", "HRV" => "Croatia", "CUB" => "Cuba", "CUW" => "Curaçao", "CYP" => "Cyprus", "CZE" => "Czech Republic", "DNK" => "Denmark", "DJI" => "Djibouti", "DMA" => "Dominica", "DOM" => "Dominican Republic", "ECU" => "Ecuador", "EGY" => "Egypt", "SLV" => "El Salvador", "GNQ" => "Equatorial Guinea", "ERI" => "Eritrea", "EST" => "Estonia", "ETH" => "Ethiopia", "FLK" => "Falkland Islands (Malvinas)", "FRO" => "Faroe Islands", "FJI" => "Fiji", "FIN" => "Finland", "FRA" => "France", "GUF" => "French Guiana", "PYF" => "French Polynesia", "ATF" => "French Southern Territories", "GAB" => "Gabon", "GMB" => "Gambia", "GEO" => "Georgia", "DEU" => "Germany", "GHA" => "Ghana", "GIB" => "Gibraltar", "GRC" => "Greece", "GRL" => "Greenland", "GRD" => "Grenada", "GLP" => "Guadeloupe", "GUM" => "Guam", "GTM" => "Guatemala", "GGY" => "Guernsey", "GIN" => "Guinea", "GNB" => "Guinea-Bissau", "GUY" => "Guyana", "HTI" => "Haiti", "HMD" => "Heard Island and McDonald Islands", "VAT" => "Holy See (Vatican City State)", "HND" => "Honduras", "HKG" => "Hong Kong", "HUN" => "Hungary", "ISL" => "Iceland", "IND" => "India", "IDN" => "Indonesia", "IRN" => "Iran, Islamic Republic of", "IRQ" => "Iraq", "IRL" => "Ireland", "IMN" => "Isle of Man", "ISR" => "Israel", "ITA" => "Italy", "JAM" => "Jamaica", "JPN" => "Japan", "JEY" => "Jersey", "JOR" => "Jordan", "KAZ" => "Kazakhstan", "KEN" => "Kenya", "KIR" => "Kiribati", "PRK" => "Korea, Democratic People's Republic of", "KOR" => "Korea, Republic of", "KWT" => "Kuwait", "KGZ" => "Kyrgyzstan", "LAO" => "Lao People's Democratic Republic", "LVA" => "Latvia", "LBN" => "Lebanon", "LSO" => "Lesotho", "LBR" => "Liberia", "LBY" => "Libya", "LIE" => "Liechtenstein", "LTU" => "Lithuania", "LUX" => "Luxembourg", "MAC" => "Macao", "MKD" => "Macedonia, the former Yugoslav Republic of", "MDG" => "Madagascar", "MWI" => "Malawi", "MYS" => "Malaysia", "MDV" => "Maldives", "MLI" => "Mali", "MLT" => "Malta", "MHL" => "Marshall Islands", "MTQ" => "Martinique", "MRT" => "Mauritania", "MUS" => "Mauritius", "MYT" => "Mayotte", "MEX" => "Mexico", "FSM" => "Micronesia, Federated States of", "MDA" => "Moldova, Republic of", "MCO" => "Monaco", "MNG" => "Mongolia", "MNE" => "Montenegro", "MSR" => "Montserrat", "MAR" => "Morocco", "MOZ" => "Mozambique", "MMR" => "Myanmar", "NAM" => "Namibia", "NRU" => "Nauru", "NPL" => "Nepal", "NLD" => "Netherlands", "NCL" => "New Caledonia", "NZL" => "New Zealand", "NIC" => "Nicaragua", "NER" => "Niger", "NGA" => "Nigeria", "NIU" => "Niue", "NFK" => "Norfolk Island", "MNP" => "Northern Mariana Islands", "NOR" => "Norway", "OMN" => "Oman", "PAK" => "Pakistan", "PLW" => "Palau", "PSE" => "Palestinian Territory, Occupied", "PAN" => "Panama", "PNG" => "Papua New Guinea", "PRY" => "Paraguay", "PER" => "Peru", "PHL" => "Philippines", "PCN" => "Pitcairn", "POL" => "Poland", "PRT" => "Portugal", "PRI" => "Puerto Rico", "QAT" => "Qatar", "REU" => "Reunion", "ROU" => "Romania", "RUS" => "Russian Federation", "RWA" => "Rwanda", "BLM" => "Saint Barthélemy", "SHN" => "Saint Helena, Ascension and Tristan da Cunha", "KNA" => "Saint Kitts and Nevis", "LCA" => "Saint Lucia", "MAF" => "Saint Martin (French part)", "SPM" => "Saint Pierre and Miquelon", "VCT" => "Saint Vincent and the Grenadines", "WSM" => "Samoa", "SMR" => "San Marino", "STP" => "Sao Tome and Principe", "SAU" => "Saudi Arabia", "SEN" => "Senegal", "SRB" => "Serbia", "SYC" => "Seychelles", "SLE" => "Sierra Leone", "SGP" => "Singapore", "SXM" => "Sint Maarten (Dutch part)", "SVK" => "Slovakia", "SVN" => "Slovenia", "SLB" => "Solomon Islands", "SOM" => "Somalia", "ZAF" => "South Africa", "SGS" => "South Georgia and the South Sandwich Islands", "SSD" => "South Sudan", "ESP" => "Spain", "LKA" => "Sri Lanka", "SDN" => "Sudan", "SUR" => "Suriname", "SJM" => "Svalbard and Jan Mayen", "SWZ" => "Swaziland", "SWE" => "Sweden", "CHE" => "Switzerland", "SYR" => "Syrian Arab Republic", "TWN" => "Taiwan, Province of China", "TJK" => "Tajikistan", "TZA" => "Tanzania, United Republic of", "THA" => "Thailand", "TLS" => "Timor-Leste", "TGO" => "Togo", "TKL" => "Tokelau", "TON" => "Tonga", "TTO" => "Trinidad and Tobago", "TUN" => "Tunisia", "TUR" => "Turkey", "TKM" => "Turkmenistan", "TCA" => "Turks and Caicos Islands", "TUV" => "Tuvalu", "UGA" => "Uganda", "UKR" => "Ukraine", "ARE" => "United Arab Emirates", "GBR" => "United Kingdom", "USA" => "United States", "UMI" => "United States Minor Outlying Islands", "URY" => "Uruguay", "UZB" => "Uzbekistan", "VUT" => "Vanuatu", "VEN" => "Venezuela, Bolivarian Republic of", "VNM" => "Viet Nam", "VGB" => "Virgin Islands, British", "VIR" => "Virgin Islands, U.S.", "WLF" => "Wallis and Futuna", "ESH" => "Western Sahara", "YEM" => "Yemen", "ZMB" => "Zambia", "ZWE" => "Zimbabwe")
15
+
16
+ def default(code)
17
+ DEFAULTS[code] || code
18
+ end
19
+
20
+ module_function :default
21
+
22
+ def localize(code)
23
+ I18n.t(code, :scope => "iso3166", :default => default(code))
24
+ end
25
+
26
+ module_function :localize
27
+
28
+ def codes
29
+ ALPHA_3_CODES
30
+ end
31
+
32
+ module_function :codes
33
+ end
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+ # File: script/console
3
+ irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
+
5
+ libs = " -r irb/completion"
6
+ # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
+ # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
+ libs << " -r #{File.dirname(__FILE__) + '/../lib/countryselect0r.rb'}"
9
+ puts "Loading countryselect0r gem"
10
+ exec "#{irb} #{libs} --simple-prompt"
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
+
4
+ begin
5
+ require 'rubigen'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ require 'rubigen'
9
+ end
10
+ require 'rubigen/scripts/destroy'
11
+
12
+ ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
+ RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
+ RubiGen::Scripts::Destroy.new.run(ARGV)
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+ APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
+
4
+ begin
5
+ require 'rubigen'
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ require 'rubigen'
9
+ end
10
+ require 'rubigen/scripts/generate'
11
+
12
+ ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
+ RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
+ RubiGen::Scripts::Generate.new.run(ARGV)
@@ -0,0 +1,20 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # -- begin header --
3
+ ###############################################################################
4
+ # Fork of the country-select (version 1.1.1) gem by Michael Koziarski and James Dean Shepherd.
5
+ # With mashup code from the iso-country-select (version 0.1.4) gem by Maurizio Casimirri.
6
+ #
7
+ # (c) 2012 Commander Johnson. Licensed under the MIT license.
8
+ ###############################################################################
9
+ # -- end header --
10
+ require File.dirname(__FILE__) + '/test_helper.rb'
11
+
12
+ class TestCountryselect0r < Test::Unit::TestCase
13
+
14
+ def setup
15
+ end
16
+
17
+ def test_truth
18
+ assert true
19
+ end
20
+ end
@@ -0,0 +1,12 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # -- begin header --
3
+ ###############################################################################
4
+ # Fork of the country-select (version 1.1.1) gem by Michael Koziarski and James Dean Shepherd.
5
+ # With mashup code from the iso-country-select (version 0.1.4) gem by Maurizio Casimirri.
6
+ #
7
+ # (c) 2012 Commander Johnson. Licensed under the MIT license.
8
+ ###############################################################################
9
+ # -- end header --
10
+ require 'stringio'
11
+ require 'test/unit'
12
+ require File.dirname(__FILE__) + '/../lib/countryselect0r'
metadata ADDED
@@ -0,0 +1,119 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: countryselect0r
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Commander Johnson
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-12-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rdoc
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.10'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.10'
30
+ - !ruby/object:Gem::Dependency
31
+ name: newgem
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 1.5.3
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 1.5.3
46
+ - !ruby/object:Gem::Dependency
47
+ name: hoe
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '3.3'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.3'
62
+ description: ! 'Fork of the country-select (version 1.1.1) gem by Michael Koziarski
63
+ and James Dean Shepherd.
64
+
65
+ With mashup code from the iso-country-select (version 0.1.4) gem by Maurizio Casimirri.'
66
+ email:
67
+ - commanderjohnson@gmail.com
68
+ executables: []
69
+ extensions: []
70
+ extra_rdoc_files:
71
+ - History.txt
72
+ - Manifest.txt
73
+ - PostInstall.txt
74
+ - README.rdoc
75
+ files:
76
+ - History.txt
77
+ - Manifest.txt
78
+ - PostInstall.txt
79
+ - README.rdoc
80
+ - Rakefile
81
+ - lib/countryselect0r.rb
82
+ - lib/countryselect0r/base.rb
83
+ - lib/countryselect0r/iso3166.rb
84
+ - script/console
85
+ - script/destroy
86
+ - script/generate
87
+ - test/test_countryselect0r.rb
88
+ - test/test_helper.rb
89
+ - .gemtest
90
+ homepage: http://github.com/cmdjohnson/countryselect0r
91
+ licenses: []
92
+ post_install_message:
93
+ rdoc_options:
94
+ - --main
95
+ - README.rdoc
96
+ require_paths:
97
+ - lib
98
+ required_ruby_version: !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubyforge_project: countryselect0r
112
+ rubygems_version: 1.8.23
113
+ signing_key:
114
+ specification_version: 3
115
+ summary: Fork of the country-select (version 1.1.1) gem by Michael Koziarski and James
116
+ Dean Shepherd
117
+ test_files:
118
+ - test/test_countryselect0r.rb
119
+ - test/test_helper.rb