open311 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -0
- data/Gemfile +0 -10
- data/README.md +14 -23
- data/Rakefile +0 -0
- data/lib/open311/version.rb +1 -1
- data/open311.gemspec +17 -19
- metadata +67 -80
- data/.autotest +0 -1
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,25 +1,19 @@
|
|
1
|
-
Open311
|
2
|
-
=======
|
1
|
+
# Open311
|
3
2
|
A Ruby wrapper for the Open311 API v2.
|
4
3
|
|
5
|
-
Does your project or organization use this gem
|
6
|
-
------------------------------------------
|
4
|
+
## <a name="apps">Does your project or organization use this gem?</a>
|
7
5
|
Add it to the [apps](https://github.com/codeforamerica/open311/wiki/apps) wiki!
|
8
6
|
|
9
|
-
Installation
|
10
|
-
------------
|
7
|
+
## <a name="installation">Installation</a>
|
11
8
|
gem install open311
|
12
9
|
|
13
|
-
Documentation
|
14
|
-
-------------
|
10
|
+
## <a name="documentation">Documentation</a>
|
15
11
|
[http://rdoc.info/gems/open311](http://rdoc.info/gems/open311)
|
16
12
|
|
17
|
-
Continuous Integration
|
18
|
-
----------------------
|
13
|
+
## <a name="ci">Continuous Integration</a>
|
19
14
|
[![Build Status](https://secure.travis-ci.org/codeforamerica/open311.png)](http://travis-ci.org/codeforamerica/open311)
|
20
15
|
|
21
|
-
Usage Examples
|
22
|
-
--------------
|
16
|
+
## <a name="examples">Usage Examples</a>
|
23
17
|
require 'open311'
|
24
18
|
|
25
19
|
# Certain methods require an API key
|
@@ -58,8 +52,7 @@ Usage Examples
|
|
58
52
|
# Get multiple service requests by ids, comma separated
|
59
53
|
Open311.service_requests({"service_request_id" => "101000119824,101000119823"})
|
60
54
|
|
61
|
-
Contributing
|
62
|
-
------------
|
55
|
+
## <a name="contributing">Contributing</a>
|
63
56
|
In the spirit of [free software](http://www.fsf.org/licensing/essays/free-sw.html), **everyone** is encouraged to help improve this project.
|
64
57
|
|
65
58
|
Here are some ways *you* can contribute:
|
@@ -74,8 +67,7 @@ Here are some ways *you* can contribute:
|
|
74
67
|
* by resolving [issues](https://github.com/codeforamerica/open311/issues)
|
75
68
|
* by reviewing patches
|
76
69
|
|
77
|
-
Submitting an Issue
|
78
|
-
-------------------
|
70
|
+
## <a name="issues">Submitting an Issue</a>
|
79
71
|
We use the [GitHub issue tracker](https://github.com/codeforamerica/open311/issues) to track bugs and
|
80
72
|
features. Before submitting a bug report or feature request, check to make sure it hasn't already
|
81
73
|
been submitted. You can indicate support for an existing issuse by voting it up. When submitting a
|
@@ -83,8 +75,7 @@ bug report, please include a [Gist](https://gist.github.com/) that includes a st
|
|
83
75
|
details that may be necessary to reproduce the bug, including your gem version, Ruby version, and
|
84
76
|
operating system. Ideally, a bug report should include a pull request with failing specs.
|
85
77
|
|
86
|
-
Submitting a Pull Request
|
87
|
-
-------------------------
|
78
|
+
## <a name="pulls">Submitting a Pull Request</a>
|
88
79
|
1. Fork the project.
|
89
80
|
2. Create a topic branch.
|
90
81
|
3. Implement your feature or bug fix.
|
@@ -95,15 +86,16 @@ Submitting a Pull Request
|
|
95
86
|
8. Commit and push your changes.
|
96
87
|
9. Submit a pull request. Please do not include changes to the gemspec, version, or history file. (If you want to create your own version for some reason, please do so in a separate commit.)
|
97
88
|
|
98
|
-
Supported Rubies
|
99
|
-
----------------
|
89
|
+
## <a name="rubies">Supported Rubies</a>
|
100
90
|
This library aims to support and is [tested
|
101
91
|
against](http://travis-ci.org/codeforamerica/open311) the following Ruby
|
102
92
|
implementations:
|
103
93
|
|
104
94
|
* Ruby 1.8.7
|
105
95
|
* Ruby 1.9.2
|
106
|
-
*
|
96
|
+
* [JRuby](http://www.jruby.org/)
|
97
|
+
* [Rubinius](http://rubini.us/)
|
98
|
+
* [Ruby Enterprise Edition](http://www.rubyenterpriseedition.com/)
|
107
99
|
|
108
100
|
If something doesn't work on one of these interpreters, it should be considered
|
109
101
|
a bug.
|
@@ -119,8 +111,7 @@ implementation, you will be personally responsible for providing patches in a
|
|
119
111
|
timely fashion. If critical issues for a particular implementation exist at the
|
120
112
|
time of a major release, support for that Ruby version may be dropped.
|
121
113
|
|
122
|
-
Copyright
|
123
|
-
---------
|
114
|
+
## <a name="copyright">Copyright</a>
|
124
115
|
Copyright (c) 2010 Code for America.
|
125
116
|
See [LICENSE](https://github.com/codeforamerica/open311/blob/master/LICENSE.md) for details.
|
126
117
|
|
data/Rakefile
CHANGED
File without changes
|
data/lib/open311/version.rb
CHANGED
data/open311.gemspec
CHANGED
@@ -1,31 +1,29 @@
|
|
1
|
-
#
|
1
|
+
# encoding: utf-8
|
2
2
|
require File.expand_path('../lib/open311/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.
|
6
|
-
gem.
|
7
|
-
gem.
|
8
|
-
gem.
|
9
|
-
gem.
|
10
|
-
gem.add_development_dependency '
|
11
|
-
gem.add_development_dependency '
|
12
|
-
gem.add_development_dependency '
|
13
|
-
gem.
|
14
|
-
gem.
|
15
|
-
gem.
|
16
|
-
gem.
|
17
|
-
gem.add_runtime_dependency 'multi_xml', '~> 0.2.0'
|
5
|
+
gem.add_dependency 'faraday', '~> 0.7'
|
6
|
+
gem.add_dependency 'faraday_middleware', '~> 0.7'
|
7
|
+
gem.add_dependency 'hashie', '~> 1.2'
|
8
|
+
gem.add_dependency 'multi_json', '~> 1.0'
|
9
|
+
gem.add_dependency 'multi_xml', '~> 0.4'
|
10
|
+
gem.add_development_dependency 'ox'
|
11
|
+
gem.add_development_dependency 'rake'
|
12
|
+
gem.add_development_dependency 'rdiscount'
|
13
|
+
gem.add_development_dependency 'rspec'
|
14
|
+
gem.add_development_dependency 'simplecov'
|
15
|
+
gem.add_development_dependency 'webmock'
|
16
|
+
gem.add_development_dependency 'yard'
|
18
17
|
gem.authors = ["Dan Melton", "Erik Michaels-Ober"]
|
19
18
|
gem.description = %q{A Ruby wrapper for the Open311 API v2.}
|
20
|
-
gem.post_install_message =<<eos
|
21
|
-
Using this gem in your project or organization? Add it to the apps wiki!
|
22
|
-
https://github.com/codeforamerica/open311/wiki/apps
|
23
|
-
eos
|
24
19
|
gem.email = ['dan@codeforamerica.org', 'erik@codeforamerica.org']
|
25
|
-
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
26
20
|
gem.files = `git ls-files`.split("\n")
|
27
21
|
gem.homepage = 'https://github.com/codeforamerica/open311'
|
28
22
|
gem.name = 'open311'
|
23
|
+
gem.post_install_message =<<eos
|
24
|
+
Using this gem in your project or organization? Add it to the apps wiki!
|
25
|
+
https://github.com/codeforamerica/open311/wiki/apps
|
26
|
+
eos
|
29
27
|
gem.require_paths = ['lib']
|
30
28
|
gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
|
31
29
|
gem.summary = gem.description
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: open311
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,152 +10,140 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-
|
14
|
-
default_executable:
|
13
|
+
date: 2011-11-02 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
|
-
name:
|
18
|
-
requirement: &
|
16
|
+
name: faraday
|
17
|
+
requirement: &70280786651900 !ruby/object:Gem::Requirement
|
19
18
|
none: false
|
20
19
|
requirements:
|
21
20
|
- - ~>
|
22
21
|
- !ruby/object:Gem::Version
|
23
|
-
version: '0.
|
24
|
-
type: :
|
22
|
+
version: '0.7'
|
23
|
+
type: :runtime
|
25
24
|
prerelease: false
|
26
|
-
version_requirements: *
|
25
|
+
version_requirements: *70280786651900
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
29
|
-
requirement: &
|
27
|
+
name: faraday_middleware
|
28
|
+
requirement: &70280786651260 !ruby/object:Gem::Requirement
|
30
29
|
none: false
|
31
30
|
requirements:
|
32
31
|
- - ~>
|
33
32
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
35
|
-
type: :
|
33
|
+
version: '0.7'
|
34
|
+
type: :runtime
|
36
35
|
prerelease: false
|
37
|
-
version_requirements: *
|
36
|
+
version_requirements: *70280786651260
|
38
37
|
- !ruby/object:Gem::Dependency
|
39
|
-
name:
|
40
|
-
requirement: &
|
38
|
+
name: hashie
|
39
|
+
requirement: &70280786650040 !ruby/object:Gem::Requirement
|
41
40
|
none: false
|
42
41
|
requirements:
|
43
42
|
- - ~>
|
44
43
|
- !ruby/object:Gem::Version
|
45
|
-
version: '
|
46
|
-
type: :
|
44
|
+
version: '1.2'
|
45
|
+
type: :runtime
|
47
46
|
prerelease: false
|
48
|
-
version_requirements: *
|
47
|
+
version_requirements: *70280786650040
|
49
48
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
51
|
-
requirement: &
|
49
|
+
name: multi_json
|
50
|
+
requirement: &70280786647920 !ruby/object:Gem::Requirement
|
52
51
|
none: false
|
53
52
|
requirements:
|
54
53
|
- - ~>
|
55
54
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
57
|
-
type: :
|
55
|
+
version: '1.0'
|
56
|
+
type: :runtime
|
58
57
|
prerelease: false
|
59
|
-
version_requirements: *
|
58
|
+
version_requirements: *70280786647920
|
60
59
|
- !ruby/object:Gem::Dependency
|
61
|
-
name:
|
62
|
-
requirement: &
|
60
|
+
name: multi_xml
|
61
|
+
requirement: &70280786664880 !ruby/object:Gem::Requirement
|
63
62
|
none: false
|
64
63
|
requirements:
|
65
64
|
- - ~>
|
66
65
|
- !ruby/object:Gem::Version
|
67
66
|
version: '0.4'
|
68
|
-
type: :
|
67
|
+
type: :runtime
|
69
68
|
prerelease: false
|
70
|
-
version_requirements: *
|
69
|
+
version_requirements: *70280786664880
|
71
70
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
73
|
-
requirement: &
|
71
|
+
name: ox
|
72
|
+
requirement: &70280786663920 !ruby/object:Gem::Requirement
|
74
73
|
none: false
|
75
74
|
requirements:
|
76
|
-
- -
|
75
|
+
- - ! '>='
|
77
76
|
- !ruby/object:Gem::Version
|
78
|
-
version: '
|
77
|
+
version: '0'
|
79
78
|
type: :development
|
80
79
|
prerelease: false
|
81
|
-
version_requirements: *
|
80
|
+
version_requirements: *70280786663920
|
82
81
|
- !ruby/object:Gem::Dependency
|
83
|
-
name:
|
84
|
-
requirement: &
|
82
|
+
name: rake
|
83
|
+
requirement: &70280786658200 !ruby/object:Gem::Requirement
|
85
84
|
none: false
|
86
85
|
requirements:
|
87
|
-
- -
|
86
|
+
- - ! '>='
|
88
87
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0
|
88
|
+
version: '0'
|
90
89
|
type: :development
|
91
90
|
prerelease: false
|
92
|
-
version_requirements: *
|
91
|
+
version_requirements: *70280786658200
|
93
92
|
- !ruby/object:Gem::Dependency
|
94
|
-
name:
|
95
|
-
requirement: &
|
93
|
+
name: rdiscount
|
94
|
+
requirement: &70280786673400 !ruby/object:Gem::Requirement
|
96
95
|
none: false
|
97
96
|
requirements:
|
98
|
-
- -
|
97
|
+
- - ! '>='
|
99
98
|
- !ruby/object:Gem::Version
|
100
|
-
version: '
|
99
|
+
version: '0'
|
101
100
|
type: :development
|
102
101
|
prerelease: false
|
103
|
-
version_requirements: *
|
102
|
+
version_requirements: *70280786673400
|
104
103
|
- !ruby/object:Gem::Dependency
|
105
|
-
name:
|
106
|
-
requirement: &
|
104
|
+
name: rspec
|
105
|
+
requirement: &70280786672260 !ruby/object:Gem::Requirement
|
107
106
|
none: false
|
108
107
|
requirements:
|
109
|
-
- -
|
108
|
+
- - ! '>='
|
110
109
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
112
|
-
type: :
|
110
|
+
version: '0'
|
111
|
+
type: :development
|
113
112
|
prerelease: false
|
114
|
-
version_requirements: *
|
113
|
+
version_requirements: *70280786672260
|
115
114
|
- !ruby/object:Gem::Dependency
|
116
|
-
name:
|
117
|
-
requirement: &
|
115
|
+
name: simplecov
|
116
|
+
requirement: &70280786669460 !ruby/object:Gem::Requirement
|
118
117
|
none: false
|
119
118
|
requirements:
|
120
|
-
- -
|
119
|
+
- - ! '>='
|
121
120
|
- !ruby/object:Gem::Version
|
122
|
-
version: 0
|
123
|
-
type: :
|
124
|
-
prerelease: false
|
125
|
-
version_requirements: *70119050058420
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: faraday_middleware
|
128
|
-
requirement: &70119050057940 !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ~>
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 0.7.0
|
134
|
-
type: :runtime
|
121
|
+
version: '0'
|
122
|
+
type: :development
|
135
123
|
prerelease: false
|
136
|
-
version_requirements: *
|
124
|
+
version_requirements: *70280786669460
|
137
125
|
- !ruby/object:Gem::Dependency
|
138
|
-
name:
|
139
|
-
requirement: &
|
126
|
+
name: webmock
|
127
|
+
requirement: &70280786668140 !ruby/object:Gem::Requirement
|
140
128
|
none: false
|
141
129
|
requirements:
|
142
|
-
- -
|
130
|
+
- - ! '>='
|
143
131
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
145
|
-
type: :
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
146
134
|
prerelease: false
|
147
|
-
version_requirements: *
|
135
|
+
version_requirements: *70280786668140
|
148
136
|
- !ruby/object:Gem::Dependency
|
149
|
-
name:
|
150
|
-
requirement: &
|
137
|
+
name: yard
|
138
|
+
requirement: &70280786667500 !ruby/object:Gem::Requirement
|
151
139
|
none: false
|
152
140
|
requirements:
|
153
|
-
- -
|
141
|
+
- - ! '>='
|
154
142
|
- !ruby/object:Gem::Version
|
155
|
-
version: 0
|
156
|
-
type: :
|
143
|
+
version: '0'
|
144
|
+
type: :development
|
157
145
|
prerelease: false
|
158
|
-
version_requirements: *
|
146
|
+
version_requirements: *70280786667500
|
159
147
|
description: A Ruby wrapper for the Open311 API v2.
|
160
148
|
email:
|
161
149
|
- dan@codeforamerica.org
|
@@ -164,7 +152,6 @@ executables: []
|
|
164
152
|
extensions: []
|
165
153
|
extra_rdoc_files: []
|
166
154
|
files:
|
167
|
-
- .autotest
|
168
155
|
- .gemtest
|
169
156
|
- .gitignore
|
170
157
|
- .rspec
|
@@ -194,7 +181,6 @@ files:
|
|
194
181
|
- spec/fixtures/services.xml
|
195
182
|
- spec/helper.rb
|
196
183
|
- spec/open311_spec.rb
|
197
|
-
has_rdoc: true
|
198
184
|
homepage: https://github.com/codeforamerica/open311
|
199
185
|
licenses: []
|
200
186
|
post_install_message: ! 'Using this gem in your project or organization? Add it to
|
@@ -220,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
206
|
version: 1.3.6
|
221
207
|
requirements: []
|
222
208
|
rubyforge_project:
|
223
|
-
rubygems_version: 1.
|
209
|
+
rubygems_version: 1.8.11
|
224
210
|
signing_key:
|
225
211
|
specification_version: 3
|
226
212
|
summary: A Ruby wrapper for the Open311 API v2.
|
@@ -235,3 +221,4 @@ test_files:
|
|
235
221
|
- spec/fixtures/services.xml
|
236
222
|
- spec/helper.rb
|
237
223
|
- spec/open311_spec.rb
|
224
|
+
has_rdoc:
|
data/.autotest
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'autotest/bundler'
|