Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rename to googleajax for consistency with gem name and so you can sim…

…ply require 'googleajax'
  • Loading branch information...
commit ab2df1429ec9def0dc3601978df8bc524a55f2be 1 parent 23c1ae5
Wesley Beary authored
View
14 Manifest.txt
@@ -2,10 +2,10 @@ History.txt
Manifest.txt
README.txt
Rakefile
-lib/google_ajax.rb
-lib/google_ajax/feed.rb
-lib/google_ajax/language.rb
-lib/google_ajax/parser.rb
-lib/google_ajax/search.rb
-lib/google_ajax/version.rb
-test/test_google_ajax.rb
+lib/googleajax.rb
+lib/googleajax/feed.rb
+lib/googleajax/language.rb
+lib/googleajax/parser.rb
+lib/googleajax/search.rb
+lib/googleajax/version.rb
+test/test_googleajax.rb
View
4 Rakefile
@@ -3,7 +3,7 @@
require 'rubygems'
require 'hoe'
$: << File.dirname(__FILE__) + '/lib'
-require './lib/google_ajax.rb'
+require './lib/googleajax.rb'
Hoe.new('GoogleAjax', GoogleAjax::VERSION::STRING) do |p|
p.rubyforge_name = 'googleajax'
@@ -11,7 +11,7 @@ Hoe.new('GoogleAjax', GoogleAjax::VERSION::STRING) do |p|
p.summary = 'Ruby wrapper to the Google AJAX API REST interfaces(Feeds, Language and Search).'
p.url = 'http://googleajax.rubyforge.com'
p.remote_rdoc_dir = ''
- p.extra_deps << ['json', '>= 1.0.0']
+ p.extra_deps << ['json', '>= 1.0.0']
end
# vim: syntax=Ruby
View
5 googleajax.gemspec
@@ -1,4 +1,3 @@
-(in /Users/monki/dev/google_ajax)
Gem::Specification.new do |s|
s.name = %q{GoogleAjax}
s.version = "0.1.0"
@@ -11,7 +10,7 @@ Gem::Specification.new do |s|
s.description = %q{Ruby wrapper to the Google AJAX API REST interfaces(Feeds, Language and Search).}
s.email = ["monki@geemus.com"]
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
- s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "lib/google_ajax.rb", "lib/google_ajax/feed.rb", "lib/google_ajax/language.rb", "lib/google_ajax/parser.rb", "lib/google_ajax/search.rb", "lib/google_ajax/version.rb", "test/test_google_ajax.rb"]
+ s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "lib/googleajax.rb", "lib/googleajax/feed.rb", "lib/googleajax/language.rb", "lib/googleajax/parser.rb", "lib/googleajax/search.rb", "lib/googleajax/version.rb", "test/test_googleajax.rb"]
s.has_rdoc = true
s.homepage = %q{http://googleajax.rubyforge.com}
s.rdoc_options = ["--main", "README.txt"]
@@ -19,7 +18,7 @@ Gem::Specification.new do |s|
s.rubyforge_project = %q{googleajax}
s.rubygems_version = %q{1.1.1}
s.summary = %q{Ruby wrapper to the Google AJAX API REST interfaces(Feeds, Language and Search).}
- s.test_files = ["test/test_google_ajax.rb"]
+ s.test_files = ["test/test_googleajax.rb"]
s.add_dependency(%q<json>, [">= 1.0.0"])
s.add_dependency(%q<hoe>, [">= 1.5.1"])
View
14 lib/google_ajax.rb → lib/googleajax.rb
@@ -4,16 +4,16 @@
require 'rubygems'
require 'json'
-require 'google_ajax/feed'
-require 'google_ajax/language'
-require 'google_ajax/parser'
-require 'google_ajax/search'
-require 'google_ajax/version'
+require 'googleajax/feed'
+require 'googleajax/language'
+require 'googleajax/parser'
+require 'googleajax/search'
+require 'googleajax/version'
class GoogleAjax
API_BASE = 'http://ajax.googleapis.com/ajax/services/'
@@api_key = @@referer = nil
-
+
def self.api_key
@@api_key
end
@@ -36,5 +36,5 @@ def self.get(api, method, query, args = nil)
url += "&" + args.collect {|key, value| "#{key}=#{value}"}.join('&') if args && !args.empty?
data = open(url, "Referer" => @@referer).read
Parser.parse(api, method, data)
- end
+ end
end
View
0  lib/google_ajax/feed.rb → lib/googleajax/feed.rb
File renamed without changes
View
0  lib/google_ajax/language.rb → lib/googleajax/language.rb
File renamed without changes
View
0  lib/google_ajax/parser.rb → lib/googleajax/parser.rb
File renamed without changes
View
0  lib/google_ajax/search.rb → lib/googleajax/search.rb
File renamed without changes
View
0  lib/google_ajax/version.rb → lib/googleajax/version.rb
File renamed without changes
View
0  test/test_google_ajax.rb → test/test_googleajax.rb
File renamed without changes

0 comments on commit ab2df14

Please sign in to comment.
Something went wrong with that request. Please try again.