woefoo 0.0.7 → 0.0.8

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/lib/woefoo/config.rb CHANGED
@@ -1,20 +1,22 @@
1
- module Woefoo::Config
2
- # appid is the user's Yahoo app id (http://developer.yahoo.com/geo/placefinder/)
3
- attr :appid, true
4
- # the number of results to return for each request
5
- attr :placefinder_result_count, true
6
- # the minimum input quality for a canonical town match
7
- attr :min_input_quality, true
1
+ module Woefoo
2
+ module Config
3
+ # appid is the user's Yahoo app id (http://developer.yahoo.com/geo/placefinder/)
4
+ attr :appid, true
5
+ # the number of results to return for each request
6
+ attr :placefinder_result_count, true
7
+ # the minimum input quality for a canonical town match
8
+ attr :min_input_quality, true
8
9
 
9
- def placefinder_result_count
10
- (@placefinder_result_count && @placefinder_result_count > 0) ? @placefinder_result_count : 3
11
- end
10
+ def placefinder_result_count
11
+ (@placefinder_result_count && @placefinder_result_count > 0) ? @placefinder_result_count : 3
12
+ end
12
13
 
13
- def min_input_quality
14
- (@min_input_quality && @min_input_quality > 0) ? @min_input_quality : 40
15
- end
14
+ def min_input_quality
15
+ (@min_input_quality && @min_input_quality > 0) ? @min_input_quality : 40
16
+ end
16
17
 
17
- def min_result_quality
18
- (@min_result_quality && @min_result_quality > 0) ? @min_result_quality : 80
18
+ def min_result_quality
19
+ (@min_result_quality && @min_result_quality > 0) ? @min_result_quality : 80
20
+ end
19
21
  end
20
22
  end
@@ -1,3 +1,3 @@
1
1
  module Woefoo
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woefoo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - smnirven