idol-search 0.4.0 → 0.5.0
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 +1 -1
- data/idol-search.gemspec +1 -1
- data/lib/idol-search.rb +1 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/idol-search.gemspec
CHANGED
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
|
+
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: -
|
162
|
+
hash: -3334920589825193263
|
163
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
164
|
none: false
|
165
165
|
requirements:
|