markauskas-googlebase 0.3.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.
@@ -0,0 +1,35 @@
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
+
3
+ # I am fully aware these are lacking. Haven't had the time to figure out best way to test this since it is in essence a hack.
4
+
5
+ class TestGooglebase < Test::Unit::TestCase
6
+
7
+ def setup
8
+ end
9
+
10
+ def test_should_make_http_get_request
11
+ html = Google::Base.get('http://www.google.com/reader/user-info')
12
+ assert html =~ /webgroup@nd\.edu/
13
+ end
14
+
15
+ def test_should_make_https_get_request
16
+ html = Google::Base.get('https://www.google.com:443/analytics/home/')
17
+ assert html =~ /webgroup\.nd\.edu/
18
+ end
19
+
20
+ def test_should_make_http_post_request
21
+
22
+ end
23
+
24
+ def test_should_make_https_post_request
25
+
26
+ end
27
+
28
+ def test_should_make_http_post_request_with_raw_data
29
+
30
+ end
31
+
32
+ def test_should_make_https_post_request_with_raw_data
33
+
34
+ end
35
+ end
@@ -0,0 +1,6 @@
1
+ require 'test/unit'
2
+ require 'yaml'
3
+ require File.dirname(__FILE__) + '/../lib/google/base'
4
+
5
+ config = YAML::load(open(File.join(ENV['HOME'], '.statwhore')))
6
+ Google::Base.establish_connection(config[:username], config[:password])
metadata ADDED
@@ -0,0 +1,68 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: markauskas-googlebase
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ platform: ruby
6
+ authors:
7
+ - Tomas Markauskas
8
+ - John Nunemaker
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2010-01-12 00:00:00 +01:00
14
+ default_executable:
15
+ dependencies: []
16
+
17
+ description:
18
+ email: info@tamole.net
19
+ executables: []
20
+
21
+ extensions: []
22
+
23
+ extra_rdoc_files:
24
+ - README.txt
25
+ files:
26
+ - History.txt
27
+ - License.txt
28
+ - README.txt
29
+ - Rakefile
30
+ - lib/google/base.rb
31
+ - lib/google/version.rb
32
+ - markauskas-googlebase.gemspec
33
+ - script/destroy
34
+ - script/generate
35
+ - setup.rb
36
+ - test/test_googlebase.rb
37
+ - test/test_helper.rb
38
+ has_rdoc: true
39
+ homepage: http://github.com/markauskas/googlebase
40
+ licenses: []
41
+
42
+ post_install_message:
43
+ rdoc_options:
44
+ - --charset=UTF-8
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: "0"
52
+ version:
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
58
+ version:
59
+ requirements: []
60
+
61
+ rubyforge_project:
62
+ rubygems_version: 1.3.5
63
+ signing_key:
64
+ specification_version: 3
65
+ summary: googlebase allows google to authenticate your requests to google services
66
+ test_files:
67
+ - test/test_googlebase.rb
68
+ - test/test_helper.rb