idol-search 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
data/idol-search.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "idol-search"
8
- s.version = "0.4.0"
8
+ s.version = "0.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Shane Sherman"]
data/lib/idol-search.rb CHANGED
@@ -42,12 +42,10 @@ module Idol
42
42
  def has_optional_params(*params)
43
43
  params.flatten.each do |opt_param|
44
44
 
45
- # reader
46
- define_method("#{opt_param}") { @parameters[opt_param] }
47
-
48
45
  # write the value to params
49
46
  define_method :"#{opt_param}" do |value|
50
47
  instance_variable_set("@#{opt_param}", value)
48
+ self.class.send(:attr_accessor, opt_param)
51
49
  @parameters[opt_param.gsub("_", "")] = value
52
50
  return self
53
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idol-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -159,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  segments:
161
161
  - 0
162
- hash: -3348675117184048522
162
+ hash: -3334920589825193263
163
163
  required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  none: false
165
165
  requirements: