rails_country_select 1.0.4.pre1 → 1.0.4.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ede905f0a7869ce094b600b35fe0aa3949565fb
4
- data.tar.gz: 38e024c5c63a2efe6b5f422987280af230fad1c6
3
+ metadata.gz: 578510a2ed61feb119c8d1981e0109ba3eda2c44
4
+ data.tar.gz: 6b11ee6b21ed3869ea04a0c067cabb775eccf55e
5
5
  SHA512:
6
- metadata.gz: 5fc444d8291455a241bf54bae787e766028bbde49c63ca86c9d5ce6e717a5a3f68ecd9dfad56795fce0ffd6be8a115afbcf3c0bd307d358ff2ef8c860e142e57
7
- data.tar.gz: 8c4e1e0af16d0285bdea5d255955a0baa05a65fc3f4af39c300e1fe7432a67123d1733e3a9fdb7ef62f5d51c38157bcfa954084ff19dfbb5a130a926b5edb925
6
+ metadata.gz: 1c422cc7c9cfd9e1d44729b02fac76a28f410c6065c075ee66a0958db95828b85c01e874edebd51b932a6aaa80e77e92d84dfad62ebb38d1b8367d91bfaec7ea
7
+ data.tar.gz: e23252364ef286cb13a1ba209c9efd07cc57afb62f84b15bd6ef14a04004b93afc9bd8a4c4234fe58617bb237ba70a40f2524e77aa407212f6f5425c0646b56d
data/Gemfile CHANGED
@@ -4,4 +4,4 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
  gem 'rspec'
6
6
  gem 'coveralls', :require => false
7
- gem 'rails'
7
+ gem 'rails', '~> 3.0.0'
@@ -3,7 +3,7 @@ require "rails_country_select/version"
3
3
  require File.expand_path('../country_definitions', __FILE__)
4
4
 
5
5
  #if defined?(Rails) && defined?(ActionView)
6
- module ActionView
6
+ module ActionView
7
7
  module Helpers
8
8
  autoload :CountryHelper, 'rails_country_select/helpers/rails_country_select'
9
9
  module FormOptionsHelper
@@ -17,7 +17,7 @@ require File.expand_path('../country_definitions', __FILE__)
17
17
  :alpha2s => COUNTRY_ALPHA2S,
18
18
  :alpha3s => COUNTRY_ALPHA3S
19
19
  }
20
- options = options.delete(:object)
20
+ #options = options.delete(:object)
21
21
  select_options = potential[options[:keys]].zip(potential[options[:values]])
22
22
  Tags::Select.new(object, method, self, select_options, options, html_options)
23
23
  end
@@ -25,7 +25,7 @@ require File.expand_path('../country_definitions', __FILE__)
25
25
 
26
26
  class FormBuilder
27
27
  def country_select(method, options = {}, html_options = {})
28
- @template.country_select(@object_name, method, options.merge({:object => @object}), html_options)
28
+ @template.country_select(@object_name, method, options, html_options)
29
29
  end
30
30
  end
31
31
 
@@ -1,3 +1,3 @@
1
1
  module RailsCountrySelect
2
- VERSION = "1.0.4.pre1"
2
+ VERSION = "1.0.4.pre3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_country_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4.pre1
4
+ version: 1.0.4.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Espinosa