has_enum 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ require 'jeweler'
13
13
  Jeweler::Tasks.new do |gem|
14
14
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
15
  gem.name = "has_enum"
16
- gem.homepage = "https://github.com/etehtsea/has_enum"
16
+ gem.homepage = "https://github.com/openteam/has_enum"
17
17
  gem.license = "MIT"
18
18
  gem.summary = %Q{Gem for Rails to easily handle enumeration attributes in models}
19
19
  gem.email = "kes.eclipse@gmail.com"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/has_enum.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{has_enum}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andreas Korth", "Konstantin Shabanov"]
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  "spec/spec_helper.rb",
34
34
  "spec/test_model.rb"
35
35
  ]
36
- s.homepage = %q{https://github.com/etehtsea/has_enum}
36
+ s.homepage = %q{https://github.com/openteam/has_enum}
37
37
  s.licenses = ["MIT"]
38
38
  s.require_paths = ["lib"]
39
39
  s.rubygems_version = %q{1.3.7}
@@ -1,5 +1,4 @@
1
1
  module ActionView::Helpers::FormHelper
2
-
3
2
  def radio_button_enum(object_name, method, options = {})
4
3
  ActionView::Helpers::InstanceTag.new(object_name, method, self, options.delete(:object)).to_radio_button_enum_tag(options)
5
4
  end
@@ -7,12 +6,10 @@ module ActionView::Helpers::FormHelper
7
6
  def select_enum(object_name, method, options = {})
8
7
  ActionView::Helpers::InstanceTag.new(object_name, method, self, options.delete(:object)).to_select_enum_tag(options)
9
8
  end
10
-
11
9
  end
12
10
 
13
11
 
14
12
  class ActionView::Helpers::InstanceTag
15
-
16
13
  def to_radio_button_enum_tag(options = {})
17
14
  values_for_enum_tag.map do |val|
18
15
  radio_button = to_radio_button_tag(val.last, options)
@@ -38,7 +35,6 @@ end
38
35
 
39
36
 
40
37
  class ActionView::Helpers::FormBuilder
41
-
42
38
  def radio_button_enum(method, options = {})
43
39
  @template.radio_button_enum(@object_name, method, objectify_options(options))
44
40
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andreas Korth
@@ -208,7 +208,7 @@ files:
208
208
  - spec/spec_helper.rb
209
209
  - spec/test_model.rb
210
210
  has_rdoc: true
211
- homepage: https://github.com/etehtsea/has_enum
211
+ homepage: https://github.com/openteam/has_enum
212
212
  licenses:
213
213
  - MIT
214
214
  post_install_message:
@@ -221,7 +221,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
221
  requirements:
222
222
  - - ">="
223
223
  - !ruby/object:Gem::Version
224
- hash: -2399266451107921661
224
+ hash: -2823146482083694437
225
225
  segments:
226
226
  - 0
227
227
  version: "0"