webmaster_tools 0.1.0 → 0.1.1

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.
@@ -1533,11 +1533,11 @@ http_interactions:
1533
1533
  .meter_available {\n background: #ffffff;\n\
1534
1534
  }\n\n\n -->\n </style>\n <body dir=\"ltr\">\n\
1535
1535
  <div class=topbarwrap>\n\
1536
- <div id=topbar class=topbar>\n <style type=\"text/css\"><!--\n #gbar,#guser{font-size:13px;padding-top:0px !important;}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb4{color:#00c !important}.gbi .gb4{color:#dd8e27 !important}.gbf .gb4{color:#900 !important}\n --></style>\n <div id=gbar><nobr><a class=gb1 href=\"http://www.google.com/webhp?hl=en\">Search</a> <a class=gb1 href=\"http://www.google.com/imghp?hl=en\">Images</a> <a class=gb1 href=\"http://video.google.com/?hl=en\">Videos</a> <a class=gb1 href=\"http://maps.google.com/maps?hl=en\">Maps</a> <a class=gb1 href=\"http://news.google.com/nwshp?hl=en\">News</a> <a class=gb1 href=\"http://www.google.com/shopping?hl=en\">Shopping</a> <a class=gb1 href=\"https://mail.google.com/mail/\">Mail</a> <a class=gb1 style=\"text-decoration:none\" href=\"http://www.google.com/intl/en/options/\"><u>More</u> &raquo;</a></nobr></div><div id=guser width=100%><nobr><span id=gbn class=gbi></span><span id=gbf class=gbf></span><b class=gb4>tobi@soundcloud.com</b> | <span id=gbe></span><a href=\"https://accounts.google.com/b/0/ManageAccount\" class=gb4>My account</a> | <a href=\"http://www.google.com/support/accounts/\" class=gb4>Help</a> | <a id=gb_71 href=\"https://accounts.google.com/Logout\" class=gb4>Sign out</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div>\n <div style=\"clear:both\"></div>\n\
1536
+ <div id=topbar class=topbar>\n <style type=\"text/css\"><!--\n #gbar,#guser{font-size:13px;padding-top:0px !important;}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb4{color:#00c !important}.gbi .gb4{color:#dd8e27 !important}.gbf .gb4{color:#900 !important}\n --></style>\n <div id=gbar><nobr><a class=gb1 href=\"http://www.google.com/webhp?hl=en\">Search</a> <a class=gb1 href=\"http://www.google.com/imghp?hl=en\">Images</a> <a class=gb1 href=\"http://video.google.com/?hl=en\">Videos</a> <a class=gb1 href=\"http://maps.google.com/maps?hl=en\">Maps</a> <a class=gb1 href=\"http://news.google.com/nwshp?hl=en\">News</a> <a class=gb1 href=\"http://www.google.com/shopping?hl=en\">Shopping</a> <a class=gb1 href=\"https://mail.google.com/mail/\">Mail</a> <a class=gb1 style=\"text-decoration:none\" href=\"http://www.google.com/intl/en/options/\"><u>More</u> &raquo;</a></nobr></div><div id=guser width=100%><nobr><span id=gbn class=gbi></span><span id=gbf class=gbf></span><b class=gb4>tobi@testscloud.com</b> | <span id=gbe></span><a href=\"https://accounts.google.com/b/0/ManageAccount\" class=gb4>My account</a> | <a href=\"http://www.google.com/support/accounts/\" class=gb4>Help</a> | <a id=gb_71 href=\"https://accounts.google.com/Logout\" class=gb4>Sign out</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div>\n <div style=\"clear:both\"></div>\n\
1537
1537
  </div>\n\
1538
1538
  </div>\n\
1539
1539
  <div class=\"header\">\n <a href='https://accounts.google.com/'>\n <img class=\"logo\"\n src='https://www.google.com/intl/en/images/logos/accounts_logo.gif'\n alt=\"Google\" />\n </a>\n\
1540
- </div>\n <div class=\"body\">\n <div class=\"manage-account\">\n <div class=\"account clearfix\">\n <div class=\"profile clearfix\">\n <h2>Profile</h2>\n <div class=\"info\">\n <img src=\"https://www.google.com/s2\" alt=\"\" class=\"img\" />\n </div>\n </div>\n <div class=\"settings\">\n <h2>Personal Settings</h2>\n <table>\n <tr>\n <td class=\"headings\">Security</td>\n <td>\n <ul>\n </ul>\n </td>\n </tr>\n <tr>\n <td class=\"headings\">\n Dashboard</td>\n <td>\n <ul>\n <li>\n <a href=\"https://www.google.com/dashboard?hl=en\">\n View data stored with this account\n </a>\n </li>\n </ul>\n </td>\n </tr>\n <tr>\n <td class=\"headings\">Email addresses</td>\n <td>\n <ul>\n <li>tobi@soundcloud.com&nbsp;\n <span class=\"light\">(Primary email)</span></li>\n </ul>\n </td>\n </tr>\n <tr>\n <td class=\"headings\">Connected accounts</td>\n <td>\n <ul>\n <li>\n <a href=\"https://profiles.google.com/connectedaccounts\">View and manage your accounts from other services</a>\n </li>\n </ul>\n </td>\n </tr>\n </table>\n </div>\n </div>\n <div id=\"my-products\">\n <h2>\n My products\n </h2>\n <ul class=\"products clearfix\">\n </ul>\n </div>\n </div>\n </div>\n\
1540
+ </div>\n <div class=\"body\">\n <div class=\"manage-account\">\n <div class=\"account clearfix\">\n <div class=\"profile clearfix\">\n <h2>Profile</h2>\n <div class=\"info\">\n <img src=\"https://www.google.com/s2\" alt=\"\" class=\"img\" />\n </div>\n </div>\n <div class=\"settings\">\n <h2>Personal Settings</h2>\n <table>\n <tr>\n <td class=\"headings\">Security</td>\n <td>\n <ul>\n </ul>\n </td>\n </tr>\n <tr>\n <td class=\"headings\">\n Dashboard</td>\n <td>\n <ul>\n <li>\n <a href=\"https://www.google.com/dashboard?hl=en\">\n View data stored with this account\n </a>\n </li>\n </ul>\n </td>\n </tr>\n <tr>\n <td class=\"headings\">Email addresses</td>\n <td>\n <ul>\n <li>tobi@testscloud.com&nbsp;\n <span class=\"light\">(Primary email)</span></li>\n </ul>\n </td>\n </tr>\n <tr>\n <td class=\"headings\">Connected accounts</td>\n <td>\n <ul>\n <li>\n <a href=\"https://profiles.google.com/connectedaccounts\">View and manage your accounts from other services</a>\n </li>\n </ul>\n </td>\n </tr>\n </table>\n </div>\n </div>\n <div id=\"my-products\">\n <h2>\n My products\n </h2>\n <ul class=\"products clearfix\">\n </ul>\n </div>\n </div>\n </div>\n\
1541
1541
  <div class=\"footer\">\n &copy;2012 Google\n -\n <a href='http://www.google.com/'>Google Home</a>\n -\n <a href='https://accounts.google.com/TOS?hl=en'>Terms of Service</a>\n -\n <a href='http://www.google.com/intl/en/privacy/'>Privacy Policy</a>\n -\n <a href='http://www.google.com/support/accounts?hl=en'>Help</a>\n\
1542
1542
  </div>\n\
1543
1543
  <script type=\"text/javascript\">\n var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");\n document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\"));\n\
@@ -1740,7 +1740,7 @@ http_interactions:
1740
1740
  body:
1741
1741
  encoding: US-ASCII
1742
1742
  string: |-
1743
- <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=9, IE=8, chrome=1" /><base href="https://www.google.com/settings/"><title>Account Overview</title><link rel="stylesheet" href="/settings/_/ac-static/_/ss/settings/ver=1bsvvhxkt12is/am=!vfW6jRA52psNDFFIhcI/bf=/r=O"><script type = "text/javascript">AC_urlprefix="\/settings";</script></head><body class="e5I8sd"><div class="Ff16dd"><div class="DUrjUe"><div class="g2qkBd"><a href="/settings"><img src="https://www.google.com/intl/en/images/logos/accounts_logo.png"></a></div></div></div><div class="kUb8n">You are using an old browser version which Google accounts no longer supports. Some features may not work correctly. Please upgrade to a modern browser, such as <a href="http://www.google.com/chrome/?hl=en">Google Chrome</a>.</div><div class=kqUche><div><table class="SFuzMb"><tbody><tr><td class="RPkX2e"><div class="d9hkqd">Profile</div></td><td class="jnCQFc"><div class="J7Bdmc"><span><img src="//lh5.googleusercontent.com/-9IJPRbWv6lE/AAAAAAAAAAI/AAAAAAAAAAA/dGoOg49t4Fs/photo.jpg" class="AUQ0ke" /></span><div></td></tr></tbody></table></div><div class="fq2Mlb"></div><div><table class="SFuzMb"><tbody><tr><td class="RPkX2e"><div class="d9hkqd">Security</div></td><td class="jnCQFc"><div><a href="https://www.google.com/accounts/b/0/EditPasswd">Change password</a></div><div><a href="https://www.google.com/accounts/b/0/IssuedAuthSubTokens?hl=en">Authorize applications & sites</a><div><div><a href="https://www.google.com/accounts/b/0/MultipleSessions">Multiple sign-in</a></div></td></tr></tbody></table></div><div class="fq2Mlb"></div><div><table class="SFuzMb"><tbody><tr><td class="RPkX2e"><div class="d9hkqd">Email addresses</div><div><a href="https://www.google.com/accounts/b/0/EditUserInfo">Edit</a></div></td><td class="jnCQFc"><div><div class="fW7Pgf">Primary email address</div><div>tobi@soundcloud.com</div></div></td></tr></tbody></table></div><div class="fq2Mlb"></div><div><table class="SFuzMb"><tbody><tr><td class="RPkX2e"><div class="d9hkqd">Connected accounts</div></td><td class="jnCQFc"><a href="https://profiles.google.com/connectedaccounts?authuser=0" class="PRnjWc">View and manage your accounts from other services</a></td></tr></tbody></table></div></div><div class="f1S3me"></div><div class="y9XO1d">&copy;2012 Google - <a href="http://www.google.com/webhp?hl=en">Google Home</a> - <a href="https://www.google.com/accounts/TOS?hl=en">Terms of Service</a> - <a href="http://www.google.com/intl/en/privacy/privacy-policy.html">Privacy Policy</a> - <a href="http://www.google.com/support/accounts?hl=en">Help</a></div><script type="text/javascript">var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-25279800-1']); _gaq.push(['_setCookiePath', '/settings/']); _gaq.push(['_setDomainName', 'google.com']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']);
1743
+ <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=9, IE=8, chrome=1" /><base href="https://www.google.com/settings/"><title>Account Overview</title><link rel="stylesheet" href="/settings/_/ac-static/_/ss/settings/ver=1bsvvhxkt12is/am=!vfW6jRA52psNDFFIhcI/bf=/r=O"><script type = "text/javascript">AC_urlprefix="\/settings";</script></head><body class="e5I8sd"><div class="Ff16dd"><div class="DUrjUe"><div class="g2qkBd"><a href="/settings"><img src="https://www.google.com/intl/en/images/logos/accounts_logo.png"></a></div></div></div><div class="kUb8n">You are using an old browser version which Google accounts no longer supports. Some features may not work correctly. Please upgrade to a modern browser, such as <a href="http://www.google.com/chrome/?hl=en">Google Chrome</a>.</div><div class=kqUche><div><table class="SFuzMb"><tbody><tr><td class="RPkX2e"><div class="d9hkqd">Profile</div></td><td class="jnCQFc"><div class="J7Bdmc"><span><img src="//lh5.googleusercontent.com/-9IJPRbWv6lE/AAAAAAAAAAI/AAAAAAAAAAA/dGoOg49t4Fs/photo.jpg" class="AUQ0ke" /></span><div></td></tr></tbody></table></div><div class="fq2Mlb"></div><div><table class="SFuzMb"><tbody><tr><td class="RPkX2e"><div class="d9hkqd">Security</div></td><td class="jnCQFc"><div><a href="https://www.google.com/accounts/b/0/EditPasswd">Change password</a></div><div><a href="https://www.google.com/accounts/b/0/IssuedAuthSubTokens?hl=en">Authorize applications & sites</a><div><div><a href="https://www.google.com/accounts/b/0/MultipleSessions">Multiple sign-in</a></div></td></tr></tbody></table></div><div class="fq2Mlb"></div><div><table class="SFuzMb"><tbody><tr><td class="RPkX2e"><div class="d9hkqd">Email addresses</div><div><a href="https://www.google.com/accounts/b/0/EditUserInfo">Edit</a></div></td><td class="jnCQFc"><div><div class="fW7Pgf">Primary email address</div><div>tobi@testscloud.com</div></div></td></tr></tbody></table></div><div class="fq2Mlb"></div><div><table class="SFuzMb"><tbody><tr><td class="RPkX2e"><div class="d9hkqd">Connected accounts</div></td><td class="jnCQFc"><a href="https://profiles.google.com/connectedaccounts?authuser=0" class="PRnjWc">View and manage your accounts from other services</a></td></tr></tbody></table></div></div><div class="f1S3me"></div><div class="y9XO1d">&copy;2012 Google - <a href="http://www.google.com/webhp?hl=en">Google Home</a> - <a href="https://www.google.com/accounts/TOS?hl=en">Terms of Service</a> - <a href="http://www.google.com/intl/en/privacy/privacy-policy.html">Privacy Policy</a> - <a href="http://www.google.com/support/accounts?hl=en">Help</a></div><script type="text/javascript">var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-25279800-1']); _gaq.push(['_setCookiePath', '/settings/']); _gaq.push(['_setDomainName', 'google.com']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']);
1744
1744
  (function() {
1745
1745
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
1746
1746
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
@@ -68,4 +68,20 @@ describe WebmasterTools do
68
68
  }
69
69
  end
70
70
  end
71
+
72
+ describe "#remove_url", :vcr do
73
+ let(:url) { "http://soundcloud-sitemaps.s3-website-us-east-1.amazonaws.com/" }
74
+
75
+ it 'removes url' do
76
+ expect do
77
+ webmaster_tools.remove_url(url + "test")
78
+ end.to_not raise_error
79
+ end
80
+
81
+ it 'refuses url and throws error' do
82
+ expect do
83
+ webmaster_tools.remove_url("http://wrongurl.com/wrong.html")
84
+ end.to raise_error
85
+ end
86
+ end
71
87
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmaster_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-08 00:00:00.000000000Z
12
+ date: 2012-03-11 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mechanize
16
- requirement: &70094299163080 !ruby/object:Gem::Requirement
16
+ requirement: &70178172784080 !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: *70094299163080
24
+ version_requirements: *70178172784080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70094299162500 !ruby/object:Gem::Requirement
27
+ requirement: &70178172783500 !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: *70094299162500
35
+ version_requirements: *70178172783500
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70094299162040 !ruby/object:Gem::Requirement
38
+ requirement: &70178172783040 !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: *70094299162040
46
+ version_requirements: *70178172783040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: vcr
49
- requirement: &70094299161580 !ruby/object:Gem::Requirement
49
+ requirement: &70178172782580 !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: *70094299161580
57
+ version_requirements: *70178172782580
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: webmock
60
- requirement: &70094299161120 !ruby/object:Gem::Requirement
60
+ requirement: &70178172782120 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70094299161120
68
+ version_requirements: *70178172782120
69
69
  description: Webmaster Tools extends the official API to give programmatically access
70
70
  to various crawl information and functions which are available via the webinterface
71
71
  email:
@@ -88,6 +88,8 @@ files:
88
88
  - spec/fixtures/cassettes/WebmasterTools/_crawl_stats/gets_crawl_stats.yml
89
89
  - spec/fixtures/cassettes/WebmasterTools/_dashboard/gets_dashboard.yml
90
90
  - spec/fixtures/cassettes/WebmasterTools/_login/passes_with_correct_username_password.yml
91
+ - spec/fixtures/cassettes/WebmasterTools/_remove_url/refuses_url_and_throws_error.yml
92
+ - spec/fixtures/cassettes/WebmasterTools/_remove_url/removes_url.yml
91
93
  - spec/fixtures/cassettes/WebmasterTools/_security_token/gets_security_token.yml
92
94
  - spec/spec_helper.rb
93
95
  - spec/webmaster_tools_spec.rb
@@ -122,6 +124,8 @@ test_files:
122
124
  - spec/fixtures/cassettes/WebmasterTools/_crawl_stats/gets_crawl_stats.yml
123
125
  - spec/fixtures/cassettes/WebmasterTools/_dashboard/gets_dashboard.yml
124
126
  - spec/fixtures/cassettes/WebmasterTools/_login/passes_with_correct_username_password.yml
127
+ - spec/fixtures/cassettes/WebmasterTools/_remove_url/refuses_url_and_throws_error.yml
128
+ - spec/fixtures/cassettes/WebmasterTools/_remove_url/removes_url.yml
125
129
  - spec/fixtures/cassettes/WebmasterTools/_security_token/gets_security_token.yml
126
130
  - spec/spec_helper.rb
127
131
  - spec/webmaster_tools_spec.rb