futures_pipeline 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,9 +1,7 @@
1
1
  rvm:
2
- - 1.8.6
3
2
  - 1.8.7
4
3
  - 1.9.1
5
4
  - 1.9.2
6
5
  - jruby
7
- - rbx
8
6
  - ree
9
7
  - ruby-head
data/Gemfile CHANGED
@@ -1,4 +1,12 @@
1
- source "http://rubygems.org"
1
+ source 'http://rubygems.org'
2
+
3
+ platforms :jruby do
4
+ gem 'jruby-openssl', '~> 0.7'
5
+ end
6
+
7
+ group :development do
8
+ gem 'yard', :git => 'https://github.com/lsegal/yard.git'
9
+ end
2
10
 
3
11
  # Specify your gem's dependencies in gem_template.gemspec
4
12
  gemspec
data/README.md CHANGED
@@ -20,7 +20,6 @@ Usage Examples
20
20
 
21
21
  @client = FuturesPipeline.new
22
22
  @client.careers # Return an array of 50 careers
23
- @client.careers.first # Return an array of 50 careers
24
23
  @client.careers.first.title # => "Chief Executives"
25
24
  @client.careers.first.onet_soc_code # => "11-1011.00"
26
25
  @client.career("11-1011.00") # Return detailed information about Chief Executives
@@ -1,33 +1,28 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "futures_pipeline/version"
2
+ require File.expand_path('../lib/futures_pipeline/version', __FILE__)
4
3
 
5
- Gem::Specification.new do |s|
6
- s.name = "futures_pipeline"
7
- s.version = FuturesPipeline::VERSION
8
- s.platform = Gem::Platform::RUBY
9
- s.authors = ["Erik Michaels-Ober", "Ryan Resella"]
10
- s.email = ["erik@codeforamerica.org", "ryan@codeforamerica.org"]
11
- s.homepage = ""
12
- s.summary = "Ruby wrapper for the Futures, Inc. US Military Pipeline API"
13
- s.description = s.summary
14
-
15
- s.files = `git ls-files`.split("\n")
16
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
- s.require_paths = ["lib"]
19
-
20
- s.add_development_dependency('faraday', '~> 0.6.1')
21
- s.add_development_dependency('faraday_middleware', '~> 0.6.3')
22
- s.add_development_dependency('hashie', '~> 1.0.0')
23
- s.add_development_dependency('json', '~> 1.5.1')
24
- s.add_development_dependency('multi_json', '~> 1.0.1')
25
- s.add_development_dependency('rash', '~> 0.3.0')
26
-
27
- s.add_development_dependency('ZenTest', '~> 4.5')
28
- s.add_development_dependency('maruku', '~> 0.6')
29
- s.add_development_dependency('rake', '~> 0.8')
30
- s.add_development_dependency('rspec', '~> 2.5')
31
- s.add_development_dependency('simplecov', '~> 0.4')
32
- s.add_development_dependency('yard', '~> 0.6')
4
+ Gem::Specification.new do |gem|
5
+ gem.add_development_dependency('ZenTest', '~> 4.5')
6
+ gem.add_development_dependency('maruku', '~> 0.6')
7
+ gem.add_development_dependency('rake', '~> 0.8')
8
+ gem.add_development_dependency('rspec', '~> 2.6')
9
+ gem.add_development_dependency('simplecov', '~> 0.4')
10
+ # gem.add_development_dependency('yard', '~> 0.7')
11
+ gem.add_runtime_dependency('faraday', '~> 0.6.1')
12
+ gem.add_runtime_dependency('faraday_middleware', '~> 0.6.3')
13
+ gem.add_runtime_dependency('hashie', '~> 1.0.0')
14
+ gem.add_runtime_dependency('json', '~> 1.5.1')
15
+ gem.add_runtime_dependency('multi_json', '~> 1.0.1')
16
+ gem.add_runtime_dependency('rash', '~> 0.3.0')
17
+ gem.authors = ["Erik Michaels-Ober", "Ryan Resella"]
18
+ gem.description = %q{Ruby wrapper for the Futures, Inc. US Military Pipeline API}
19
+ gem.email = ['erik@codeforamerica.org', 'ryan@codeforamerica.org']
20
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
+ gem.files = `git ls-files`.split("\n")
22
+ gem.homepage = 'https://github.com/codeforamerica/futures_pipeline'
23
+ gem.name = 'futures_pipeline'
24
+ gem.require_paths = ['lib']
25
+ gem.summary = gem.description
26
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
27
+ gem.version = FuturesPipeline::VERSION
33
28
  end
@@ -5,7 +5,7 @@ module FuturesPipeline
5
5
  private
6
6
 
7
7
  def connection
8
- Faraday::Connection.new(:ssl => {:verify => false}, :url => 'http://militarydemo.pipelinenc.com') do |connection|
8
+ Faraday.new(:url => 'http://militarydemo.pipelinenc.com') do |connection|
9
9
  connection.use Faraday::Request::UrlEncoded
10
10
  connection.use Faraday::Response::RaiseError
11
11
  connection.use Faraday::Response::Rashify
@@ -1,3 +1,3 @@
1
1
  module FuturesPipeline
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: futures_pipeline
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Erik Michaels-Ober
@@ -16,194 +16,179 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-05-11 00:00:00 Z
19
+ date: 2011-05-13 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: faraday
22
+ name: ZenTest
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 5
29
+ hash: 17
30
30
  segments:
31
- - 0
32
- - 6
33
- - 1
34
- version: 0.6.1
31
+ - 4
32
+ - 5
33
+ version: "4.5"
35
34
  type: :development
36
35
  version_requirements: *id001
37
36
  - !ruby/object:Gem::Dependency
38
- name: faraday_middleware
37
+ name: maruku
39
38
  prerelease: false
40
39
  requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
42
  - - ~>
44
43
  - !ruby/object:Gem::Version
45
- hash: 1
44
+ hash: 7
46
45
  segments:
47
46
  - 0
48
47
  - 6
49
- - 3
50
- version: 0.6.3
48
+ version: "0.6"
51
49
  type: :development
52
50
  version_requirements: *id002
53
51
  - !ruby/object:Gem::Dependency
54
- name: hashie
52
+ name: rake
55
53
  prerelease: false
56
54
  requirement: &id003 !ruby/object:Gem::Requirement
57
55
  none: false
58
56
  requirements:
59
57
  - - ~>
60
58
  - !ruby/object:Gem::Version
61
- hash: 23
59
+ hash: 27
62
60
  segments:
63
- - 1
64
- - 0
65
61
  - 0
66
- version: 1.0.0
62
+ - 8
63
+ version: "0.8"
67
64
  type: :development
68
65
  version_requirements: *id003
69
66
  - !ruby/object:Gem::Dependency
70
- name: json
67
+ name: rspec
71
68
  prerelease: false
72
69
  requirement: &id004 !ruby/object:Gem::Requirement
73
70
  none: false
74
71
  requirements:
75
72
  - - ~>
76
73
  - !ruby/object:Gem::Version
77
- hash: 1
74
+ hash: 15
78
75
  segments:
79
- - 1
80
- - 5
81
- - 1
82
- version: 1.5.1
76
+ - 2
77
+ - 6
78
+ version: "2.6"
83
79
  type: :development
84
80
  version_requirements: *id004
85
81
  - !ruby/object:Gem::Dependency
86
- name: multi_json
82
+ name: simplecov
87
83
  prerelease: false
88
84
  requirement: &id005 !ruby/object:Gem::Requirement
89
85
  none: false
90
86
  requirements:
91
87
  - - ~>
92
88
  - !ruby/object:Gem::Version
93
- hash: 21
89
+ hash: 3
94
90
  segments:
95
- - 1
96
91
  - 0
97
- - 1
98
- version: 1.0.1
92
+ - 4
93
+ version: "0.4"
99
94
  type: :development
100
95
  version_requirements: *id005
101
96
  - !ruby/object:Gem::Dependency
102
- name: rash
97
+ name: faraday
103
98
  prerelease: false
104
99
  requirement: &id006 !ruby/object:Gem::Requirement
105
100
  none: false
106
101
  requirements:
107
102
  - - ~>
108
103
  - !ruby/object:Gem::Version
109
- hash: 19
104
+ hash: 5
110
105
  segments:
111
106
  - 0
112
- - 3
113
- - 0
114
- version: 0.3.0
115
- type: :development
107
+ - 6
108
+ - 1
109
+ version: 0.6.1
110
+ type: :runtime
116
111
  version_requirements: *id006
117
112
  - !ruby/object:Gem::Dependency
118
- name: ZenTest
113
+ name: faraday_middleware
119
114
  prerelease: false
120
115
  requirement: &id007 !ruby/object:Gem::Requirement
121
116
  none: false
122
117
  requirements:
123
118
  - - ~>
124
119
  - !ruby/object:Gem::Version
125
- hash: 17
120
+ hash: 1
126
121
  segments:
127
- - 4
128
- - 5
129
- version: "4.5"
130
- type: :development
122
+ - 0
123
+ - 6
124
+ - 3
125
+ version: 0.6.3
126
+ type: :runtime
131
127
  version_requirements: *id007
132
128
  - !ruby/object:Gem::Dependency
133
- name: maruku
129
+ name: hashie
134
130
  prerelease: false
135
131
  requirement: &id008 !ruby/object:Gem::Requirement
136
132
  none: false
137
133
  requirements:
138
134
  - - ~>
139
135
  - !ruby/object:Gem::Version
140
- hash: 7
136
+ hash: 23
141
137
  segments:
138
+ - 1
142
139
  - 0
143
- - 6
144
- version: "0.6"
145
- type: :development
140
+ - 0
141
+ version: 1.0.0
142
+ type: :runtime
146
143
  version_requirements: *id008
147
144
  - !ruby/object:Gem::Dependency
148
- name: rake
145
+ name: json
149
146
  prerelease: false
150
147
  requirement: &id009 !ruby/object:Gem::Requirement
151
148
  none: false
152
149
  requirements:
153
150
  - - ~>
154
151
  - !ruby/object:Gem::Version
155
- hash: 27
152
+ hash: 1
156
153
  segments:
157
- - 0
158
- - 8
159
- version: "0.8"
160
- type: :development
154
+ - 1
155
+ - 5
156
+ - 1
157
+ version: 1.5.1
158
+ type: :runtime
161
159
  version_requirements: *id009
162
160
  - !ruby/object:Gem::Dependency
163
- name: rspec
161
+ name: multi_json
164
162
  prerelease: false
165
163
  requirement: &id010 !ruby/object:Gem::Requirement
166
164
  none: false
167
165
  requirements:
168
166
  - - ~>
169
167
  - !ruby/object:Gem::Version
170
- hash: 9
168
+ hash: 21
171
169
  segments:
172
- - 2
173
- - 5
174
- version: "2.5"
175
- type: :development
170
+ - 1
171
+ - 0
172
+ - 1
173
+ version: 1.0.1
174
+ type: :runtime
176
175
  version_requirements: *id010
177
176
  - !ruby/object:Gem::Dependency
178
- name: simplecov
177
+ name: rash
179
178
  prerelease: false
180
179
  requirement: &id011 !ruby/object:Gem::Requirement
181
180
  none: false
182
181
  requirements:
183
182
  - - ~>
184
183
  - !ruby/object:Gem::Version
185
- hash: 3
184
+ hash: 19
186
185
  segments:
187
186
  - 0
188
- - 4
189
- version: "0.4"
190
- type: :development
191
- version_requirements: *id011
192
- - !ruby/object:Gem::Dependency
193
- name: yard
194
- prerelease: false
195
- requirement: &id012 !ruby/object:Gem::Requirement
196
- none: false
197
- requirements:
198
- - - ~>
199
- - !ruby/object:Gem::Version
200
- hash: 7
201
- segments:
187
+ - 3
202
188
  - 0
203
- - 6
204
- version: "0.6"
205
- type: :development
206
- version_requirements: *id012
189
+ version: 0.3.0
190
+ type: :runtime
191
+ version_requirements: *id011
207
192
  description: Ruby wrapper for the Futures, Inc. US Military Pipeline API
208
193
  email:
209
194
  - erik@codeforamerica.org
@@ -237,7 +222,7 @@ files:
237
222
  - spec/futures_pipeline/client_spec.rb
238
223
  - spec/futures_pipeline_spec.rb
239
224
  - spec/helper.rb
240
- homepage: ""
225
+ homepage: https://github.com/codeforamerica/futures_pipeline
241
226
  licenses: []
242
227
 
243
228
  post_install_message:
@@ -266,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
251
  requirements: []
267
252
 
268
253
  rubyforge_project:
269
- rubygems_version: 1.8.1
254
+ rubygems_version: 1.8.2
270
255
  signing_key:
271
256
  specification_version: 3
272
257
  summary: Ruby wrapper for the Futures, Inc. US Military Pipeline API