yahoo-local 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,14 +18,17 @@ Sign up for a Yahoo API key: [http://developer.yahoo.com/wsregapp/](http://devel
18
18
 
19
19
  ## Usage
20
20
 
21
+ ### Gem config
22
+ config.gem 'yahoo-local', :lib => 'yahoo_local'
23
+
21
24
  ### Instantiate a client
22
25
 
23
- >> yahoo = YahooLocal::Client.new(:api_key => 'your_api_key')
26
+ >> yahoo = YahooLocal::Client.new(:appid => 'your_appid')
24
27
 
25
28
  ### or configure once
26
29
 
27
30
  >> YahooLocal.configure do |config|
28
- >> config.api_key = 'your_api_key'
31
+ >> config.appid = 'your_appid'
29
32
  >> end
30
33
  >> yahoo = YahooLocal::Client.new
31
34
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.3
@@ -10,17 +10,17 @@ module YahooLocal
10
10
  # create config/initializers/yahoo_local.rb
11
11
  #
12
12
  # YahooLocal.configure do |config|
13
- # config.api_key = 'api_key'
13
+ # config.appid = 'appid'
14
14
  # end
15
15
  # client = YahooLocal::Client.new
16
16
  #
17
17
  # or
18
18
  #
19
- # YahooLocal.api_key = 'api_key'
19
+ # YahooLocal.appid = 'appid'
20
20
  #
21
21
  # or
22
22
  #
23
- # YahooLocal::Client.new(:api_key => 'api_key')
23
+ # YahooLocal::Client.new(:appid => 'appid')
24
24
 
25
25
  def self.configure
26
26
  yield self
@@ -28,7 +28,7 @@ module YahooLocal
28
28
  end
29
29
 
30
30
  class << self
31
- attr_accessor :api_key
31
+ attr_accessor :appid
32
32
  end
33
33
 
34
34
  end
@@ -4,10 +4,10 @@ module YahooLocal
4
4
  include HTTParty
5
5
  base_uri "http://local.yahooapis.com/LocalSearchService/V3"
6
6
 
7
- attr_reader :api_key
7
+ attr_reader :appid
8
8
 
9
9
  def initialize(options={})
10
- @api_key = options[:appid] || YahooLocal.api_key
10
+ @appid = options[:appid] || YahooLocal.appid
11
11
  end
12
12
 
13
13
  def search(options={})
@@ -17,7 +17,7 @@ module YahooLocal
17
17
  protected
18
18
 
19
19
  def default_options
20
- {:appid => @api_key, :output => "json"}
20
+ {:appid => @appid, :output => "json"}
21
21
  end
22
22
 
23
23
  end
Binary file
Binary file
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{yahoo-local}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Johnny Khai Nguyen"]
12
- s.date = %q{2010-05-25}
12
+ s.date = %q{2010-05-26}
13
13
  s.description = %q{Ruby wrapper for the Yahoo! Local Search API}
14
14
  s.email = %q{johnnyn@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -25,6 +25,8 @@ Gem::Specification.new do |s|
25
25
  "lib/yahoo_local.rb",
26
26
  "lib/yahoo_local/client.rb",
27
27
  "pkg/yahoo-local-0.1.0.gem",
28
+ "pkg/yahoo-local-0.1.1.gem",
29
+ "pkg/yahoo-local-0.1.2.gem",
28
30
  "tasks/yahoo_local_tasks.rake",
29
31
  "test/test_helper.rb",
30
32
  "test/yahoo_local_test.rb",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Johnny Khai Nguyen
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-25 00:00:00 -05:00
17
+ date: 2010-05-26 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -49,6 +49,8 @@ files:
49
49
  - lib/yahoo_local.rb
50
50
  - lib/yahoo_local/client.rb
51
51
  - pkg/yahoo-local-0.1.0.gem
52
+ - pkg/yahoo-local-0.1.1.gem
53
+ - pkg/yahoo-local-0.1.2.gem
52
54
  - tasks/yahoo_local_tasks.rake
53
55
  - test/test_helper.rb
54
56
  - test/yahoo_local_test.rb