lucky 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/lucky.rb +5 -3
  2. data/lib/lucky/version.rb +1 -1
  3. metadata +1 -1
data/lib/lucky.rb CHANGED
@@ -10,10 +10,12 @@ require "uri"
10
10
  def self.printname(name)
11
11
 
12
12
 
13
-
14
- uri = URI.parse("http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%20%3D%20%22http%3A%2F%2Fwww.ganeshaspeaks.com%2Faries%2Faries-daily-horoscope.action%22%20and%20xpath%3D%22%2F%2Fdiv%5B%40class%3D'gs_txt_box_1'%5D%22&diagnostics=true")
13
+ hscope="http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%20%3D%20%22http%3A%2F%2Fwww.ganeshaspeaks.com%2Faries%2Faries-daily-horoscope.action%22%20and%20xpath%3D%22%2F%2Fdiv%5B%40class%3D'gs_txt_box_1'%5D%22&diagnostics=true"
14
+ hscope.gsub!("aries",name)
15
+ uri=URI.parse(hscope)
16
+ #uri = URI.parse("http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%20%3D%20%22http%3A%2F%2Fwww.ganeshaspeaks.com%2Faries%2Faries-daily-horoscope.action%22%20and%20xpath%3D%22%2F%2Fdiv%5B%40class%3D'gs_txt_box_1'%5D%22&diagnostics=true")
15
17
  #uri = URI.parse("http://www.ganeshaspeaks.com/taurus/taurus-daily-horoscope.action")
16
- uri=uri.gsub("aries",name)
18
+
17
19
  http = Net::HTTP.new(uri.host, uri.port)
18
20
  #http.use_ssl = true
19
21
  #http.verify_mode = OpenSSL::SSL::VERIFY_NONE
data/lib/lucky/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lucky
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: