direct_employers 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,5 @@ rvm:
3
3
  - 1.9.1
4
4
  - 1.9.2
5
5
  - jruby
6
- - rbx
7
6
  - ree
8
- - ruby-head
7
+ - ruby-head
data/README.md CHANGED
@@ -12,14 +12,14 @@ Documentation
12
12
 
13
13
  Continuous Integration
14
14
  ----------------------
15
- [![Build Status](http://travis-ci.org/codeforamerica/direct_employers.png)](http://travis-ci.org/codeforamerica/direct_employers)
15
+ [![Build Status](https://secure.travis-ci.org/codeforamerica/direct_employers.png)](http://travis-ci.org/codeforamerica/direct_employers)
16
16
 
17
17
  Usage Examples
18
18
  --------------
19
19
  require 'direct_employers'
20
20
 
21
- @client = DirectEmployers.new({key: => "abc123"}) #Add your development key
22
- @client.search({moc: => ""11b}) # Return an array for all matching job listings for MOC of 11b
21
+ @client = DirectEmployers.new({key: => "abc123"}) #Add your development key
22
+ @client.search({:moc => "11b"}) # Return an array for all matching job listings for MOC of 11b
23
23
  @client.search.query # => "First-Line Supervisors/Managers of Weapons Specialists/Crew Members, Infantry"
24
24
  @client.search.api.jobs.job.first.company # => "Tennessee Employer"
25
25
 
@@ -64,6 +64,32 @@ Submitting a Pull Request
64
64
  8. Commit and push your changes.
65
65
  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.)
66
66
 
67
+ Supported Rubies
68
+ ----------------
69
+ This library aims to support and is [tested
70
+ against](http://travis-ci.org/codeforamerica/direct_employers) the following
71
+ Ruby implementations:
72
+
73
+ * Ruby 1.8.7
74
+ * Ruby 1.9.1
75
+ * Ruby 1.9.2
76
+ * Ruby Enterprise Edition 1.8.7
77
+ * JRuby 1.6
78
+
79
+ If something doesn't work on one of these interpreters, it should be considered
80
+ a bug.
81
+
82
+ This library may inadvertently work (or seem to work) on other Ruby
83
+ implementations, however support will only be provided for the versions listed
84
+ above.
85
+
86
+ If you would like this library to support another Ruby version, you may
87
+ volunteer to be a maintainer. Being a maintainer entails making sure all tests
88
+ run and pass on that implementation. When something breaks on your
89
+ implementation, you will be personally responsible for providing patches in a
90
+ timely fashion. If critical issues for a particular implementation exist at the
91
+ time of a major release, support for that Ruby version may be dropped.
92
+
67
93
  Credits
68
94
  -------
69
95
  [Job Central](http://www.jobcentral.com)
@@ -73,4 +99,4 @@ Copyright
73
99
  Copyright (c) 2011 Code for America.
74
100
  See [LICENSE](https://github.com/codeforamerica/direct_employers/blob/master/LICENSE.md) for details.
75
101
 
76
- [![Code for America Tracker](http://stats.codeforamerica.org/codeforamerica/direct_employers.png)](http://stats.codeforamerica.org/projects/direct_employers)
102
+ [![Code for America Tracker](http://stats.codeforamerica.org/codeforamerica/direct_employers.png)](http://stats.codeforamerica.org/projects/direct_employers)
@@ -7,8 +7,8 @@ Gem::Specification.new do |gem|
7
7
  gem.authors = ["Erik Michaels-Ober", "Ryan Resella"]
8
8
  gem.email = ['erik@codeforamerica.org', 'ryan@codeforamerica.org']
9
9
  gem.homepage = 'https://github.com/codeforamerica.org/direct_employers'
10
- gem.summary = gem.description
11
10
  gem.description = %q{Ruby Wrapper for the Direct Employers API}
11
+ gem.summary = gem.description
12
12
 
13
13
  gem.files = `git ls-files`.split("\n")
14
14
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -22,10 +22,9 @@ Gem::Specification.new do |gem|
22
22
  gem.add_development_dependency 'simplecov', '~> 0.4'
23
23
  gem.add_development_dependency 'webmock', '~> 1.6'
24
24
  gem.add_development_dependency 'yard', '~> 0.7'
25
- gem.add_runtime_dependency 'faraday', '~> 0.6.1'
26
- gem.add_runtime_dependency 'faraday_middleware', '~> 0.6.3'
25
+ gem.add_runtime_dependency 'faraday', '~> 0.7.4'
26
+ gem.add_runtime_dependency 'faraday_middleware', '~> 0.7.0'
27
27
  gem.add_runtime_dependency 'hashie', '~> 1.0.0'
28
28
  gem.add_runtime_dependency 'multi_json', '~> 1.0.2'
29
29
  gem.add_runtime_dependency 'multi_xml', '~> 0.2.2'
30
- gem.add_runtime_dependency 'rash', '~> 0.3.0'
31
30
  end
@@ -1,17 +1,19 @@
1
1
  require 'direct_employers/client'
2
2
 
3
3
  module DirectEmployers
4
- def self.new(options={})
5
- DirectEmployers::Client.new(options)
6
- end
4
+ class << self
5
+ def new(options={})
6
+ DirectEmployers::Client.new(options)
7
+ end
7
8
 
8
- # Delegate to DirectEmployers::Client
9
- def self.method_missing(method, *args, &block)
10
- return super unless new.respond_to?(method)
11
- new.send(method, *args, &block)
12
- end
9
+ # Delegate to DirectEmployers::Client
10
+ def method_missing(method, *args, &block)
11
+ return super unless new.respond_to?(method)
12
+ new.send(method, *args, &block)
13
+ end
13
14
 
14
- def self.respond_to?(method, include_private=false)
15
- new.respond_to?(method, include_private) || super(method, include_private)
15
+ def respond_to?(method, include_private=false)
16
+ new.respond_to?(method, include_private) || super(method, include_private)
17
+ end
16
18
  end
17
19
  end
@@ -9,7 +9,7 @@ module DirectEmployers
9
9
  Faraday.new(:url => 'http://www.jobcentral.com') do |connection|
10
10
  connection.use Faraday::Request::UrlEncoded
11
11
  connection.use Faraday::Response::RaiseError
12
- connection.use Faraday::Response::Rashify
12
+ connection.use Faraday::Response::Mashify
13
13
  connection.use Faraday::Response::ParseXml
14
14
  connection.use Faraday::Response::ParseError
15
15
  connection.adapter(Faraday.default_adapter)
@@ -1,3 +1,3 @@
1
1
  module DirectEmployers
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: direct_employers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,12 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-06-07 00:00:00.000000000Z
13
+ date: 2011-07-30 00:00:00.000000000 -07:00
14
+ default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: ZenTest
17
- requirement: &2161326740 !ruby/object:Gem::Requirement
18
+ requirement: &70095360975200 !ruby/object:Gem::Requirement
18
19
  none: false
19
20
  requirements:
20
21
  - - ~>
@@ -22,10 +23,10 @@ dependencies:
22
23
  version: '4.5'
23
24
  type: :development
24
25
  prerelease: false
25
- version_requirements: *2161326740
26
+ version_requirements: *70095360975200
26
27
  - !ruby/object:Gem::Dependency
27
28
  name: maruku
28
- requirement: &2161326180 !ruby/object:Gem::Requirement
29
+ requirement: &70095360974560 !ruby/object:Gem::Requirement
29
30
  none: false
30
31
  requirements:
31
32
  - - ~>
@@ -33,10 +34,10 @@ dependencies:
33
34
  version: '0.6'
34
35
  type: :development
35
36
  prerelease: false
36
- version_requirements: *2161326180
37
+ version_requirements: *70095360974560
37
38
  - !ruby/object:Gem::Dependency
38
39
  name: rake
39
- requirement: &2161325600 !ruby/object:Gem::Requirement
40
+ requirement: &70095360973980 !ruby/object:Gem::Requirement
40
41
  none: false
41
42
  requirements:
42
43
  - - ~>
@@ -44,10 +45,10 @@ dependencies:
44
45
  version: '0.9'
45
46
  type: :development
46
47
  prerelease: false
47
- version_requirements: *2161325600
48
+ version_requirements: *70095360973980
48
49
  - !ruby/object:Gem::Dependency
49
50
  name: rspec
50
- requirement: &2161325120 !ruby/object:Gem::Requirement
51
+ requirement: &70095360973400 !ruby/object:Gem::Requirement
51
52
  none: false
52
53
  requirements:
53
54
  - - ~>
@@ -55,10 +56,10 @@ dependencies:
55
56
  version: '2.6'
56
57
  type: :development
57
58
  prerelease: false
58
- version_requirements: *2161325120
59
+ version_requirements: *70095360973400
59
60
  - !ruby/object:Gem::Dependency
60
61
  name: simplecov
61
- requirement: &2161324540 !ruby/object:Gem::Requirement
62
+ requirement: &70095360972820 !ruby/object:Gem::Requirement
62
63
  none: false
63
64
  requirements:
64
65
  - - ~>
@@ -66,10 +67,10 @@ dependencies:
66
67
  version: '0.4'
67
68
  type: :development
68
69
  prerelease: false
69
- version_requirements: *2161324540
70
+ version_requirements: *70095360972820
70
71
  - !ruby/object:Gem::Dependency
71
72
  name: webmock
72
- requirement: &2161324040 !ruby/object:Gem::Requirement
73
+ requirement: &70095360972240 !ruby/object:Gem::Requirement
73
74
  none: false
74
75
  requirements:
75
76
  - - ~>
@@ -77,10 +78,10 @@ dependencies:
77
78
  version: '1.6'
78
79
  type: :development
79
80
  prerelease: false
80
- version_requirements: *2161324040
81
+ version_requirements: *70095360972240
81
82
  - !ruby/object:Gem::Dependency
82
83
  name: yard
83
- requirement: &2161323540 !ruby/object:Gem::Requirement
84
+ requirement: &70095360971660 !ruby/object:Gem::Requirement
84
85
  none: false
85
86
  requirements:
86
87
  - - ~>
@@ -88,32 +89,32 @@ dependencies:
88
89
  version: '0.7'
89
90
  type: :development
90
91
  prerelease: false
91
- version_requirements: *2161323540
92
+ version_requirements: *70095360971660
92
93
  - !ruby/object:Gem::Dependency
93
94
  name: faraday
94
- requirement: &2161323080 !ruby/object:Gem::Requirement
95
+ requirement: &70095360971080 !ruby/object:Gem::Requirement
95
96
  none: false
96
97
  requirements:
97
98
  - - ~>
98
99
  - !ruby/object:Gem::Version
99
- version: 0.6.1
100
+ version: 0.7.4
100
101
  type: :runtime
101
102
  prerelease: false
102
- version_requirements: *2161323080
103
+ version_requirements: *70095360971080
103
104
  - !ruby/object:Gem::Dependency
104
105
  name: faraday_middleware
105
- requirement: &2161322620 !ruby/object:Gem::Requirement
106
+ requirement: &70095360970500 !ruby/object:Gem::Requirement
106
107
  none: false
107
108
  requirements:
108
109
  - - ~>
109
110
  - !ruby/object:Gem::Version
110
- version: 0.6.3
111
+ version: 0.7.0
111
112
  type: :runtime
112
113
  prerelease: false
113
- version_requirements: *2161322620
114
+ version_requirements: *70095360970500
114
115
  - !ruby/object:Gem::Dependency
115
116
  name: hashie
116
- requirement: &2161312940 !ruby/object:Gem::Requirement
117
+ requirement: &70095360969920 !ruby/object:Gem::Requirement
117
118
  none: false
118
119
  requirements:
119
120
  - - ~>
@@ -121,10 +122,10 @@ dependencies:
121
122
  version: 1.0.0
122
123
  type: :runtime
123
124
  prerelease: false
124
- version_requirements: *2161312940
125
+ version_requirements: *70095360969920
125
126
  - !ruby/object:Gem::Dependency
126
127
  name: multi_json
127
- requirement: &2161312360 !ruby/object:Gem::Requirement
128
+ requirement: &70095360969340 !ruby/object:Gem::Requirement
128
129
  none: false
129
130
  requirements:
130
131
  - - ~>
@@ -132,10 +133,10 @@ dependencies:
132
133
  version: 1.0.2
133
134
  type: :runtime
134
135
  prerelease: false
135
- version_requirements: *2161312360
136
+ version_requirements: *70095360969340
136
137
  - !ruby/object:Gem::Dependency
137
138
  name: multi_xml
138
- requirement: &2161311760 !ruby/object:Gem::Requirement
139
+ requirement: &70095360968760 !ruby/object:Gem::Requirement
139
140
  none: false
140
141
  requirements:
141
142
  - - ~>
@@ -143,18 +144,7 @@ dependencies:
143
144
  version: 0.2.2
144
145
  type: :runtime
145
146
  prerelease: false
146
- version_requirements: *2161311760
147
- - !ruby/object:Gem::Dependency
148
- name: rash
149
- requirement: &2161311180 !ruby/object:Gem::Requirement
150
- none: false
151
- requirements:
152
- - - ~>
153
- - !ruby/object:Gem::Version
154
- version: 0.3.0
155
- type: :runtime
156
- prerelease: false
157
- version_requirements: *2161311180
147
+ version_requirements: *70095360968760
158
148
  description: Ruby Wrapper for the Direct Employers API
159
149
  email:
160
150
  - erik@codeforamerica.org
@@ -186,6 +176,7 @@ files:
186
176
  - spec/fixtures/11bquery.xml
187
177
  - spec/fixtures/search_to_broad.xml
188
178
  - spec/helper.rb
179
+ has_rdoc: true
189
180
  homepage: https://github.com/codeforamerica.org/direct_employers
190
181
  licenses: []
191
182
  post_install_message:
@@ -206,10 +197,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
197
  version: '0'
207
198
  requirements: []
208
199
  rubyforge_project:
209
- rubygems_version: 1.8.5
200
+ rubygems_version: 1.6.2
210
201
  signing_key:
211
202
  specification_version: 3
212
- summary: ''
203
+ summary: Ruby Wrapper for the Direct Employers API
213
204
  test_files:
214
205
  - spec/direct_employers/client_spec.rb
215
206
  - spec/direct_employers_spec.rb