zip_recruiter 1.1.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7144dd6b697ed5d49d6b089211521d11275c7a51
4
+ data.tar.gz: 9539e809cbf38442c82b4bd52a4a9543f68d5a9d
5
+ SHA512:
6
+ metadata.gz: e1370bd3615a09017956edf2a8d3c508a06d618610a15899fc43c5c6b4e4522dd8f7ae04357505ed275d8ec0e1b3134d0b5263a19d2cbd7404fec0e38c86a3c1
7
+ data.tar.gz: 6ad5bcf2eaee56d3d9fb2b5041b7bc5786f66a110fbdbe6352d3d5d6505b4be709f094145daae1a41d12227307d20ccf6a6a8270ed19894a087a8e68e044ed57
data/README.md CHANGED
@@ -23,9 +23,15 @@ Run the following to display CLI usage:
23
23
  $ ziprecruiter
24
24
 
25
25
  Additionally, you may use the ZipRecruiter::API class directly in a ruby
26
- script.
26
+ script, e.g.:
27
27
 
28
- require 'zip_recruiter'
28
+ ```ruby
29
+ require 'zip_recruiter'
30
+ ZipRecruiter::API.api_key = 'your-api-key'
31
+ ZipRecruiter::JobAlerts::API.subscribe '/path/to/file.csv'
32
+ ZipRecruiter::JobAlerts::API.unsubscribe '/path/to/file.csv'
33
+ ZipRecruiter::JobAlerts::API.status 'task-id'
34
+ ```
29
35
 
30
36
  ## Contributing
31
37
 
@@ -34,11 +40,3 @@ script.
34
40
  3. Commit your changes (`git commit -am 'Add some feature'`)
35
41
  4. Push to the branch (`git push origin my-new-feature`)
36
42
  5. Create new Pull Request
37
-
38
- ## Notes
39
-
40
- There is a bug in Thor (see
41
- [issue 261](https://github.com/wycats/thor/issues/261)) where the help command
42
- for a subcommand will display the wrong name for the subcommand due to the way
43
- it generates the help output. E.g., `$ ziprecruiter jobalerts` shows
44
- `ziprecruiter c_l_i` in the output.
@@ -3,6 +3,7 @@ require 'zip_recruiter/job_alerts/cli'
3
3
 
4
4
  module ZipRecruiter
5
5
  class CLI < Thor
6
+ class_option :api_key, :aliases => "-k", :desc => "Specify your ZipRecruiter API key."
6
7
  register ZipRecruiter::JobAlerts::CLI, 'jobalerts', 'jobalerts [COMMAND]', 'Type ziprecruiter jobalerts for more help.'
7
8
  end
8
9
  end
@@ -17,9 +17,6 @@ module ZipRecruiter
17
17
  # path to a CSV file. The +status+ action requires an argument that is the
18
18
  # task ID of a previously submitted API request.
19
19
  #
20
- # You should not call this method directly, but instead use one of the
21
- # helper methods below.
22
- #
23
20
  def self.perform_action(action, arg)
24
21
  c = Curl::Easy.new("https://api.ziprecruiter.com/job-alerts/v1/#{action.to_s}")
25
22
  c.http_auth_types = :basic
@@ -13,8 +13,6 @@ module ZipRecruiter
13
13
  "#{basename} jobalerts #{command.usage}"
14
14
  end
15
15
 
16
- class_option :api_key, :aliases => "-k", :desc => "Specify your ZipRecruiter Job Alerts API key."
17
-
18
16
  desc "subscribe [PATH]", "A Subscribe action is used to upload a collection of job seekers to subscribe to the ZipRecruiter job alerts program."
19
17
  def subscribe(path)
20
18
  ZipRecruiter::API.api_key = options[:api_key] unless options[:api_key].nil?
@@ -1,3 +1,3 @@
1
1
  module ZipRecruiter
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zip_recruiter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ version: 1.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Dunson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-28 00:00:00.000000000 Z
11
+ date: 2013-08-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: curb
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: thor
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: Provides a CLI and ruby interface to the ZipRecruiter Job Alerts API.
@@ -87,27 +80,26 @@ files:
87
80
  - zip_recruiter.gemspec
88
81
  homepage: https://github.com/adamdunson/zip_recruiter/
89
82
  licenses: []
83
+ metadata: {}
90
84
  post_install_message:
91
85
  rdoc_options: []
92
86
  require_paths:
93
87
  - lib
94
88
  required_ruby_version: !ruby/object:Gem::Requirement
95
- none: false
96
89
  requirements:
97
- - - ! '>='
90
+ - - '>='
98
91
  - !ruby/object:Gem::Version
99
92
  version: '0'
100
93
  required_rubygems_version: !ruby/object:Gem::Requirement
101
- none: false
102
94
  requirements:
103
- - - ! '>='
95
+ - - '>='
104
96
  - !ruby/object:Gem::Version
105
97
  version: '0'
106
98
  requirements: []
107
99
  rubyforge_project:
108
- rubygems_version: 1.8.25
100
+ rubygems_version: 2.0.3
109
101
  signing_key:
110
- specification_version: 3
102
+ specification_version: 4
111
103
  summary: Ruby ZipRecruiter Job Alerts API interface
112
104
  test_files:
113
105
  - spec/spec_helper.rb