netroots-ruby-votesmart 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.
@@ -0,0 +1,24 @@
1
+ require 'rubygems'
2
+ require 'ym4r/google_maps/geocoding'
3
+ require 'active_support'
4
+ include Ym4r::GoogleMaps
5
+
6
+ module ProjectVoteSmart
7
+ VERSION = '0.0.1'
8
+
9
+ API_URL = "http://api.votesmart.org/"
10
+ API_FORMAT = "JSON"
11
+
12
+ mattr_accessor :api_key
13
+
14
+ class RequestFailed < Exception; end
15
+ end
16
+
17
+ ProjectVoteSmart.api_key = "key"
18
+
19
+ require "#{File.dirname(__FILE__)}/mcll4r/mcll4r.rb"
20
+ require "#{File.dirname(__FILE__)}/project_vote_smart/common.rb"
21
+
22
+ Dir["#{File.dirname(__FILE__)}/project_vote_smart/*.rb"].each do |source_file|
23
+ require source_file unless source_file == "#{File.dirname(__FILE__)}/project_vote_smart/common.rb"
24
+ end
@@ -0,0 +1,13 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "ruby-votesmart"
3
+ s.version = "0.1.0"
4
+ s.date = "2009-02-10"
5
+ s.summary = "Library for accessing the Project Vote Smart API."
6
+ s.email = "dancunning@gmail.com"
7
+ s.homepage = "http://github.com/netroots/ruby-votesmart"
8
+ s.authors = ["Dan Cunning"]
9
+ s.files = ['project-vote-smart.gemspec', 'lib/project_vote_smart.rb']
10
+ s.add_dependency("json", [">= 1.1.3"])
11
+ s.add_dependency("ym4r", [">= 0.6.1"])
12
+ s.has_rdoc = true
13
+ end
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: netroots-ruby-votesmart
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Dan Cunning
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-02-10 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: json
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.1.3
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: ym4r
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.6.1
34
+ version:
35
+ description:
36
+ email: dancunning@gmail.com
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files: []
42
+
43
+ files:
44
+ - project-vote-smart.gemspec
45
+ - lib/project_vote_smart.rb
46
+ has_rdoc: true
47
+ homepage: http://github.com/netroots/ruby-votesmart
48
+ post_install_message:
49
+ rdoc_options: []
50
+
51
+ require_paths:
52
+ - lib
53
+ required_ruby_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
58
+ version:
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ requirements: []
66
+
67
+ rubyforge_project:
68
+ rubygems_version: 1.2.0
69
+ signing_key:
70
+ specification_version: 2
71
+ summary: Library for accessing the Project Vote Smart API.
72
+ test_files: []
73
+