yelpme 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/yelpme.rb CHANGED
@@ -26,15 +26,20 @@ module Yelpme
26
26
  location = {}
27
27
  location[:location] = args.shift
28
28
  options = {}
29
- OptionParser.new do |opts|
29
+ opts = OptionParser.new do |opts|
30
+
30
31
  opts.on("-r", "--random", "Random result") do |r|
31
32
  options[:random] = r
32
33
  end
34
+
33
35
  opts.on("-V", "--version", "Print the version") do |v|
34
- options[:version] = v
36
+ puts "Version #{Yelpme::VERSION}"
37
+ exit
35
38
  end
36
39
  end.parse!
37
40
 
41
+
42
+
38
43
  raise ArgumentError, "Location needs a value" if location[:location].nil?
39
44
  if %w{YELP_CONSUMER_KEY YELP_CONSUMER_SECRET YELP_TOKEN YELP_TOKEN_SECRET}.all?{|word| ENV.include?(word)}
40
45
  query = Yelp::Base.new(ENV["YELP_CONSUMER_KEY"],ENV["YELP_CONSUMER_SECRET"],ENV["YELP_TOKEN"], ENV["YELP_TOKEN_SECRET"])
@@ -1,3 +1,3 @@
1
1
  module Yelpme
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/yelpme.gemspec CHANGED
@@ -19,6 +19,5 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  s.add_dependency('yelp2', '>= 0.0.3')
22
- s.add_dependency("slop")
23
22
 
24
23
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yelpme
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - brntbeer
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-17 00:00:00 Z
18
+ date: 2011-10-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: yelp2
@@ -33,20 +33,6 @@ dependencies:
33
33
  version: 0.0.3
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: slop
38
- prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
48
- type: :runtime
49
- version_requirements: *id002
50
36
  description: Yelpme is used to utilize Yelp's API from the command line using the already existing yelp2 gem.
51
37
  email:
52
38
  - brent.beer@gmail.com