seo_checker 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/seo_checker.rb +2 -0
  3. data/seo_checker.gemspec +3 -3
  4. metadata +12 -5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
data/lib/seo_checker.rb CHANGED
@@ -3,6 +3,7 @@ require 'logger'
3
3
  require 'zlib'
4
4
  require 'stringio'
5
5
  require 'net/http'
6
+ require 'net/https'
6
7
  require 'uri'
7
8
 
8
9
  class SEOException < Exception
@@ -90,6 +91,7 @@ class SEOChecker
90
91
  private
91
92
  def get_response(uri)
92
93
  http = Net::HTTP.new(uri.host, uri.port)
94
+ http.use_ssl = true if uri.scheme == 'https'
93
95
  request = Net::HTTP::Get.new(uri.request_uri)
94
96
  request["User-Agent"] = "seo-checker"
95
97
  response = http.request(request)
data/seo_checker.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{seo_checker}
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Richard Huang"]
12
- s.date = %q{2010-03-06}
12
+ s.date = %q{2010-03-07}
13
13
  s.description = %q{seo_checker check your website if it is seo.}
14
14
  s.email = %q{flyerhzm@gmail.com}
15
15
  s.executables = ["seo_checker", "seo_checker"]
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.homepage = %q{http://github.com/flyerhzm/seo_checker}
28
28
  s.rdoc_options = ["--charset=UTF-8"]
29
29
  s.require_paths = ["lib"]
30
- s.rubygems_version = %q{1.3.5}
30
+ s.rubygems_version = %q{1.3.6}
31
31
  s.summary = %q{seo_checker check your website if it is seo.}
32
32
  s.test_files = [
33
33
  "examples/bad_seo/config/routes.rb",
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seo_checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 5
9
+ version: 0.2.5
5
10
  platform: ruby
6
11
  authors:
7
12
  - Richard Huang
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-03-06 00:00:00 +08:00
17
+ date: 2010-03-07 00:00:00 +08:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -42,18 +47,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
42
47
  requirements:
43
48
  - - ">="
44
49
  - !ruby/object:Gem::Version
50
+ segments:
51
+ - 0
45
52
  version: "0"
46
- version:
47
53
  required_rubygems_version: !ruby/object:Gem::Requirement
48
54
  requirements:
49
55
  - - ">="
50
56
  - !ruby/object:Gem::Version
57
+ segments:
58
+ - 0
51
59
  version: "0"
52
- version:
53
60
  requirements: []
54
61
 
55
62
  rubyforge_project:
56
- rubygems_version: 1.3.5
63
+ rubygems_version: 1.3.6
57
64
  signing_key:
58
65
  specification_version: 3
59
66
  summary: seo_checker check your website if it is seo.