webmaster_tools 0.1.0.rc2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ rvm:
2
+ - 1.9.2
3
+ script: "bundle exec rake spec"
data/CHANGELOG.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Changes
2
2
 
3
3
  ## v0.1.x - ???
4
- * add tests
5
- * add docu
6
- * check different auth optinos
7
- * integrate official API
4
+ * check different auth optinos
5
+ * integrate official API
8
6
 
9
7
  ## v0.1.0 - 05-03-2012
10
-
11
8
  _inital release_
9
+
10
+ * added basic docu
11
+ * added basic tests based on rspec/vcr
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
- # Webmaster Tools
1
+ # Webmaster Tools [![](http://travis-ci.org/rngtng/webmaster_tools.png)](http://travis-ci.org/rngtng/webmaster_tools)
2
+
3
+ Webmaster Tools extends the official API to give programmatically access to various crawl information and functions which are available via the webinterface
4
+
5
+ The [Google Webmaster Tool API](http://code.google.com/apis/webmastertools/) is very limited and provides only a little subset of data available via the [webinterface](https://www.google.com/webmasters/tools/home?hl=en). By making use of mechanize, Webmaster Tools gives access to crawl_info, crawl_errors, crawl_stats and allows to submit url removal request (up to 1000 per day)
2
6
 
3
- * API very limited
4
- * subset of tools
5
- * based on mechanize
6
7
 
7
8
  ## Usage
8
9
 
@@ -17,22 +18,10 @@ pp client.crawl_error_counts(<url>)
17
18
 
18
19
  ```
19
20
 
20
- ## Interface
21
-
22
- ### crawl
23
-
24
- #### info
25
- #### errors
26
- #### stats
27
-
28
- ### other
29
-
30
- #### submit removal request
31
-
32
21
 
33
22
  ## Dependencies
34
23
 
35
- Depends on [mechanize](http://mechanize.rubyforge.org/) to access the Webinterface
24
+ Depends on [mechanize](http://mechanize.rubyforge.org/) to access the webinterface
36
25
 
37
26
 
38
27
  ## Contributing
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0.rc2
1
+ 0.1.0
@@ -3,14 +3,10 @@
3
3
  require 'mechanize'
4
4
 
5
5
  # WebmasterTools
6
- # Parameters:
7
- # required:
8
- # :username -
9
- # :password -
6
+ # required parameters:
10
7
  #
11
- # optional:
12
- # :url -
13
- # :security_token -
8
+ # :username - google username or email
9
+ # :password - password in plaintext
14
10
  class WebmasterTools
15
11
  LOGIN = "https://accounts.google.com/ServiceLogin?service=sitemaps"
16
12
  AUTH = "https://accounts.google.com/ServiceLoginAuth"
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
7
7
  s.authors = ["Tobias Bielohlawek"]
8
8
  s.email = ["tobi@soundcloud.com"]
9
9
  s.homepage = "http://github.com/rngtng/webmaster_tools"
10
- s.summary = %q{Gives access to Webmaster Tools Interface data programmatically which is not provided by the official API}
11
- s.description = %q{Webmaster Tools extends the official API to give programmatically access to various crawl information and functions which are available via the Interface}
10
+ s.summary = %q{Get programmatically access to Webmaster Tools Interface data}
11
+ s.description = %q{Webmaster Tools extends the official API to give programmatically access to various crawl information and functions which are available via the webinterface}
12
12
 
13
13
  s.files = `git ls-files`.split("\n")
14
14
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmaster_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.rc2
5
- prerelease: 6
4
+ version: 0.1.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tobias Bielohlawek
@@ -13,7 +13,7 @@ date: 2012-03-08 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mechanize
16
- requirement: &70180064527420 !ruby/object:Gem::Requirement
16
+ requirement: &70094299163080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70180064527420
24
+ version_requirements: *70094299163080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70180064526860 !ruby/object:Gem::Requirement
27
+ requirement: &70094299162500 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70180064526860
35
+ version_requirements: *70094299162500
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70180064526400 !ruby/object:Gem::Requirement
38
+ requirement: &70094299162040 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70180064526400
46
+ version_requirements: *70094299162040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: vcr
49
- requirement: &70180064525940 !ruby/object:Gem::Requirement
49
+ requirement: &70094299161580 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70180064525940
57
+ version_requirements: *70094299161580
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: webmock
60
- requirement: &70180064525480 !ruby/object:Gem::Requirement
60
+ requirement: &70094299161120 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,9 +65,9 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70180064525480
68
+ version_requirements: *70094299161120
69
69
  description: Webmaster Tools extends the official API to give programmatically access
70
- to various crawl information and functions which are available via the Interface
70
+ to various crawl information and functions which are available via the webinterface
71
71
  email:
72
72
  - tobi@soundcloud.com
73
73
  executables: []
@@ -75,6 +75,7 @@ extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
77
  - .gitignore
78
+ - .travis.yml
78
79
  - CHANGELOG.md
79
80
  - Gemfile
80
81
  - LICENCE
@@ -106,16 +107,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
107
  required_rubygems_version: !ruby/object:Gem::Requirement
107
108
  none: false
108
109
  requirements:
109
- - - ! '>'
110
+ - - ! '>='
110
111
  - !ruby/object:Gem::Version
111
- version: 1.3.1
112
+ version: '0'
112
113
  requirements: []
113
114
  rubyforge_project:
114
115
  rubygems_version: 1.8.15
115
116
  signing_key:
116
117
  specification_version: 3
117
- summary: Gives access to Webmaster Tools Interface data programmatically which is
118
- not provided by the official API
118
+ summary: Get programmatically access to Webmaster Tools Interface data
119
119
  test_files:
120
120
  - spec/fixtures/cassettes/WebmasterTools/_crawl_error_counts/gets_crawl_error_counts.yml
121
121
  - spec/fixtures/cassettes/WebmasterTools/_crawl_info/gets_crawl_info.yml