webmaster_tools 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/VERSION +1 -1
  3. data/lib/webmaster_tools.rb +5 -3
  4. metadata +5 -17
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3e1357f8efae6c6f0dddb032a1bb3a2bdfc5cf0f
4
+ data.tar.gz: a7816484f734eaafea1fe1b4517ae56d004a582c
5
+ SHA512:
6
+ metadata.gz: be4b352a17c8e7fc51ddc4c4993e72087e7c6f7b0da6475fe369872c4a6e97f0cf76981a0b22560f9f9667772b012511b9519ff341166858ec3cd1e7fbb83961
7
+ data.tar.gz: f11baa0f4219e73e2b598b82d8f847de4045602e06180761145cc7835e688b6c4974282eaa00f9e9871cdc002815b7447bd1aa411055751451b351693c043063
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
@@ -108,9 +108,9 @@ class WebmasterTools
108
108
  next if row.at("td[1]").nil?
109
109
 
110
110
  url = row.search('.wmt-external-url').text.strip
111
- status = row.at("td[2]").text.strip
112
- type = row.at("td[3]").text.strip
113
- date = row.at("td[4]").text.strip
111
+ status = row.search(".removal-status").text.strip.split(' ')[0]
112
+ type = row.search('td')[2].text.strip
113
+ date = row.search('td')[3].text.strip
114
114
 
115
115
  if status.include?('Removed')
116
116
  status = 'Removed'
@@ -118,6 +118,8 @@ class WebmasterTools
118
118
  status = 'Denied'
119
119
  elsif status.include?('Pending')
120
120
  status = 'Pending'
121
+ else
122
+ status = 'Unknown'
121
123
  end
122
124
 
123
125
  {:url => url, :status => status, :type => type, :date => date}
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmaster_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
5
- prerelease:
4
+ version: 0.1.9
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tobias Bielohlawek
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-08 00:00:00.000000000 Z
11
+ date: 2013-05-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: mechanize
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: vcr
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: webmock
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>='
92
81
  - !ruby/object:Gem::Version
@@ -125,27 +114,26 @@ files:
125
114
  - webmaster_tools.gemspec
126
115
  homepage: http://github.com/rngtng/webmaster_tools
127
116
  licenses: []
117
+ metadata: {}
128
118
  post_install_message:
129
119
  rdoc_options: []
130
120
  require_paths:
131
121
  - lib
132
122
  required_ruby_version: !ruby/object:Gem::Requirement
133
- none: false
134
123
  requirements:
135
124
  - - ! '>='
136
125
  - !ruby/object:Gem::Version
137
126
  version: '0'
138
127
  required_rubygems_version: !ruby/object:Gem::Requirement
139
- none: false
140
128
  requirements:
141
129
  - - ! '>='
142
130
  - !ruby/object:Gem::Version
143
131
  version: '0'
144
132
  requirements: []
145
133
  rubyforge_project:
146
- rubygems_version: 1.8.24
134
+ rubygems_version: 2.0.3
147
135
  signing_key:
148
- specification_version: 3
136
+ specification_version: 4
149
137
  summary: Get programmatically access to Webmaster Tools Interface data
150
138
  test_files:
151
139
  - spec/fixtures/cassettes/WebmasterTools/_crawl_error_counts/gets_crawl_error_counts.yml