congress 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -13,7 +13,7 @@ Documentation
13
13
 
14
14
  Continuous Integration
15
15
  ----------------------
16
- [![Build Status](http://travis-ci.org/codeforamerica/congress.png)](http://travis-ci.org/codeforamerica/congress)
16
+ [![Build Status](https://secure.travis-ci.org/codeforamerica/congress.png)](http://travis-ci.org/codeforamerica/congress)
17
17
 
18
18
  Usage Examples
19
19
  --------------
@@ -91,6 +91,32 @@ Submitting a Pull Request
91
91
  version, or history file. (If you want to create your own version for some
92
92
  reason, please do so in a separate commit.)
93
93
 
94
+ Supported Rubies
95
+ ----------------
96
+ This library aims to support and is [tested
97
+ against](http://travis-ci.org/codeforamerica/congress) the following Ruby
98
+ implementations:
99
+
100
+ * Ruby 1.8.7
101
+ * Ruby 1.9.1
102
+ * Ruby 1.9.2
103
+ * Ruby Enterprise Edition 1.8.7
104
+ * JRuby 1.6
105
+
106
+ If something doesn't work on one of these interpreters, it should be considered
107
+ a bug.
108
+
109
+ This library may inadvertently work (or seem to work) on other Ruby
110
+ implementations, however support will only be provided for the versions listed
111
+ above.
112
+
113
+ If you would like this library to support another Ruby version, you may
114
+ volunteer to be a maintainer. Being a maintainer entails making sure all tests
115
+ run and pass on that implementation. When something breaks on your
116
+ implementation, you will be personally responsible for providing patches in a
117
+ timely fashion. If critical issues for a particular implementation exist at the
118
+ time of a major release, support for that Ruby version may be dropped.
119
+
94
120
  Copyright
95
121
  ---------
96
122
  Copyright (c) 2011, Code for America. All rights reserved.
data/congress.gemspec CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |gem|
23
23
  gem.add_development_dependency 'webmock', '~> 1.6'
24
24
  gem.add_development_dependency 'yard', '~> 0.7'
25
25
 
26
- gem.add_runtime_dependency 'faraday', '~> 0.6.1'
27
- gem.add_runtime_dependency 'faraday_middleware', '~> 0.6.3'
26
+ gem.add_runtime_dependency 'faraday', '~> 0.7.4'
27
+ gem.add_runtime_dependency 'faraday_middleware', '~> 0.7.0'
28
28
  gem.add_runtime_dependency 'hashie', '~> 1.0.0'
29
29
  gem.add_runtime_dependency 'multi_json', '~> 1.0.3'
30
30
  gem.add_runtime_dependency 'rash', '~> 0.3.0'
data/lib/congress.rb CHANGED
@@ -6,22 +6,22 @@ module Congress
6
6
  def configure
7
7
  yield self
8
8
  end
9
- end
10
9
 
11
- # Alias for Congress::Client.new
12
- #
13
- # @return [Congress::Client]
14
- def self.new
15
- Congress::Client.new
16
- end
10
+ # Alias for Congress::Client.new
11
+ #
12
+ # @return [Congress::Client]
13
+ def new
14
+ Congress::Client.new
15
+ end
17
16
 
18
- # Delegate to Congress::Client
19
- def self.method_missing(method, *args, &block)
20
- return super unless new.respond_to?(method)
21
- new.send(method, *args, &block)
22
- end
17
+ # Delegate to Congress::Client
18
+ def method_missing(method, *args, &block)
19
+ return super unless new.respond_to?(method)
20
+ new.send(method, *args, &block)
21
+ end
23
22
 
24
- def self.respond_to?(method, include_private=false)
25
- new.respond_to?(method, include_private) || super(method, include_private)
23
+ def respond_to?(method, include_private=false)
24
+ new.respond_to?(method, include_private) || super(method, include_private)
25
+ end
26
26
  end
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module Congress
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,159 +1,156 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: congress
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
4
5
  prerelease:
5
- version: 0.0.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Erik Michaels-Ober
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-06-23 00:00:00 -07:00
12
+ date: 2011-07-30 00:00:00.000000000 -07:00
14
13
  default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
17
16
  name: ZenTest
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70141125837960 !ruby/object:Gem::Requirement
20
18
  none: false
21
- requirements:
19
+ requirements:
22
20
  - - ~>
23
- - !ruby/object:Gem::Version
24
- version: "4.5"
21
+ - !ruby/object:Gem::Version
22
+ version: '4.5'
25
23
  type: :development
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: maruku
29
24
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *70141125837960
26
+ - !ruby/object:Gem::Dependency
27
+ name: maruku
28
+ requirement: &70141125835980 !ruby/object:Gem::Requirement
31
29
  none: false
32
- requirements:
30
+ requirements:
33
31
  - - ~>
34
- - !ruby/object:Gem::Version
35
- version: "0.6"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.6'
36
34
  type: :development
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: rake
40
35
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *70141125835980
37
+ - !ruby/object:Gem::Dependency
38
+ name: rake
39
+ requirement: &70141125834380 !ruby/object:Gem::Requirement
42
40
  none: false
43
- requirements:
41
+ requirements:
44
42
  - - ~>
45
- - !ruby/object:Gem::Version
46
- version: "0.9"
43
+ - !ruby/object:Gem::Version
44
+ version: '0.9'
47
45
  type: :development
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: rspec
51
46
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *70141125834380
48
+ - !ruby/object:Gem::Dependency
49
+ name: rspec
50
+ requirement: &70141125832040 !ruby/object:Gem::Requirement
53
51
  none: false
54
- requirements:
52
+ requirements:
55
53
  - - ~>
56
- - !ruby/object:Gem::Version
57
- version: "2.6"
54
+ - !ruby/object:Gem::Version
55
+ version: '2.6'
58
56
  type: :development
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: simplecov
62
57
  prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *70141125832040
59
+ - !ruby/object:Gem::Dependency
60
+ name: simplecov
61
+ requirement: &70141125829720 !ruby/object:Gem::Requirement
64
62
  none: false
65
- requirements:
63
+ requirements:
66
64
  - - ~>
67
- - !ruby/object:Gem::Version
68
- version: "0.4"
65
+ - !ruby/object:Gem::Version
66
+ version: '0.4'
69
67
  type: :development
70
- version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
72
- name: webmock
73
68
  prerelease: false
74
- requirement: &id006 !ruby/object:Gem::Requirement
69
+ version_requirements: *70141125829720
70
+ - !ruby/object:Gem::Dependency
71
+ name: webmock
72
+ requirement: &70141125827520 !ruby/object:Gem::Requirement
75
73
  none: false
76
- requirements:
74
+ requirements:
77
75
  - - ~>
78
- - !ruby/object:Gem::Version
79
- version: "1.6"
76
+ - !ruby/object:Gem::Version
77
+ version: '1.6'
80
78
  type: :development
81
- version_requirements: *id006
82
- - !ruby/object:Gem::Dependency
83
- name: yard
84
79
  prerelease: false
85
- requirement: &id007 !ruby/object:Gem::Requirement
80
+ version_requirements: *70141125827520
81
+ - !ruby/object:Gem::Dependency
82
+ name: yard
83
+ requirement: &70141125826300 !ruby/object:Gem::Requirement
86
84
  none: false
87
- requirements:
85
+ requirements:
88
86
  - - ~>
89
- - !ruby/object:Gem::Version
90
- version: "0.7"
87
+ - !ruby/object:Gem::Version
88
+ version: '0.7'
91
89
  type: :development
92
- version_requirements: *id007
93
- - !ruby/object:Gem::Dependency
94
- name: faraday
95
90
  prerelease: false
96
- requirement: &id008 !ruby/object:Gem::Requirement
91
+ version_requirements: *70141125826300
92
+ - !ruby/object:Gem::Dependency
93
+ name: faraday
94
+ requirement: &70141125823740 !ruby/object:Gem::Requirement
97
95
  none: false
98
- requirements:
96
+ requirements:
99
97
  - - ~>
100
- - !ruby/object:Gem::Version
101
- version: 0.6.1
98
+ - !ruby/object:Gem::Version
99
+ version: 0.7.4
102
100
  type: :runtime
103
- version_requirements: *id008
104
- - !ruby/object:Gem::Dependency
105
- name: faraday_middleware
106
101
  prerelease: false
107
- requirement: &id009 !ruby/object:Gem::Requirement
102
+ version_requirements: *70141125823740
103
+ - !ruby/object:Gem::Dependency
104
+ name: faraday_middleware
105
+ requirement: &70141125821880 !ruby/object:Gem::Requirement
108
106
  none: false
109
- requirements:
107
+ requirements:
110
108
  - - ~>
111
- - !ruby/object:Gem::Version
112
- version: 0.6.3
109
+ - !ruby/object:Gem::Version
110
+ version: 0.7.0
113
111
  type: :runtime
114
- version_requirements: *id009
115
- - !ruby/object:Gem::Dependency
116
- name: hashie
117
112
  prerelease: false
118
- requirement: &id010 !ruby/object:Gem::Requirement
113
+ version_requirements: *70141125821880
114
+ - !ruby/object:Gem::Dependency
115
+ name: hashie
116
+ requirement: &70141125821240 !ruby/object:Gem::Requirement
119
117
  none: false
120
- requirements:
118
+ requirements:
121
119
  - - ~>
122
- - !ruby/object:Gem::Version
120
+ - !ruby/object:Gem::Version
123
121
  version: 1.0.0
124
122
  type: :runtime
125
- version_requirements: *id010
126
- - !ruby/object:Gem::Dependency
127
- name: multi_json
128
123
  prerelease: false
129
- requirement: &id011 !ruby/object:Gem::Requirement
124
+ version_requirements: *70141125821240
125
+ - !ruby/object:Gem::Dependency
126
+ name: multi_json
127
+ requirement: &70141125820780 !ruby/object:Gem::Requirement
130
128
  none: false
131
- requirements:
129
+ requirements:
132
130
  - - ~>
133
- - !ruby/object:Gem::Version
131
+ - !ruby/object:Gem::Version
134
132
  version: 1.0.3
135
133
  type: :runtime
136
- version_requirements: *id011
137
- - !ruby/object:Gem::Dependency
138
- name: rash
139
134
  prerelease: false
140
- requirement: &id012 !ruby/object:Gem::Requirement
135
+ version_requirements: *70141125820780
136
+ - !ruby/object:Gem::Dependency
137
+ name: rash
138
+ requirement: &70141125820320 !ruby/object:Gem::Requirement
141
139
  none: false
142
- requirements:
140
+ requirements:
143
141
  - - ~>
144
- - !ruby/object:Gem::Version
142
+ - !ruby/object:Gem::Version
145
143
  version: 0.3.0
146
144
  type: :runtime
147
- version_requirements: *id012
148
- description: Ruby wrapper for the Real-Time Congress API. The Real-Time Congress API is a RESTful API over the artifacts of Congress, in as close to real-time as possible.
145
+ prerelease: false
146
+ version_requirements: *70141125820320
147
+ description: Ruby wrapper for the Real-Time Congress API. The Real-Time Congress API
148
+ is a RESTful API over the artifacts of Congress, in as close to real-time as possible.
149
149
  email: sferik@gmail.com
150
150
  executables: []
151
-
152
151
  extensions: []
153
-
154
152
  extra_rdoc_files: []
155
-
156
- files:
153
+ files:
157
154
  - .autotest
158
155
  - .gemtest
159
156
  - .gitignore
@@ -183,32 +180,29 @@ files:
183
180
  has_rdoc: true
184
181
  homepage: https://github.com/sferik/congress
185
182
  licenses: []
186
-
187
183
  post_install_message:
188
184
  rdoc_options: []
189
-
190
- require_paths:
185
+ require_paths:
191
186
  - lib
192
- required_ruby_version: !ruby/object:Gem::Requirement
187
+ required_ruby_version: !ruby/object:Gem::Requirement
193
188
  none: false
194
- requirements:
195
- - - ">="
196
- - !ruby/object:Gem::Version
197
- version: "0"
198
- required_rubygems_version: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ! '>='
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ required_rubygems_version: !ruby/object:Gem::Requirement
199
194
  none: false
200
- requirements:
201
- - - ">="
202
- - !ruby/object:Gem::Version
203
- version: "0"
195
+ requirements:
196
+ - - ! '>='
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
204
199
  requirements: []
205
-
206
200
  rubyforge_project:
207
- rubygems_version: 1.5.3
201
+ rubygems_version: 1.6.2
208
202
  signing_key:
209
203
  specification_version: 3
210
204
  summary: Ruby wrapper for the Real-Time Congress API
211
- test_files:
205
+ test_files:
212
206
  - spec/congress/client_spec.rb
213
207
  - spec/congress_spec.rb
214
208
  - spec/fixtures/amendments.json