jobby_job 0.0.1.alpha1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b1f0679a56e955953f877b5180d67fabf24b4461
4
+ data.tar.gz: c67546c51027302b98988aed3f207d8a883a87e9
5
+ SHA512:
6
+ metadata.gz: 3ce0cf150fe0d071ab826773d3cc5b24f135cd3a5d36e997ab1ba795f5fc22c6711f7b45b1506849901fbcdf3fa08541c141a08506a3c73f3d85d41d65a4ee49
7
+ data.tar.gz: 633b74e564160aa03507c083260c91db7726c162760ea30508eb55945ca3a51d0aa848388a7c82d18a72347031557a1555d8f74ac05496373b22d499d1e5a0b5
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 AdamT
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # JobbyJob
2
+
3
+ Time for you to get a JobbyJob
4
+
5
+ The lazy job hunter can now search for jobs from the command-line. No
6
+ need to cmd+tab from the terminal to FF and then cmd+t for new tabs. It's all
7
+ right here. Go on, be lazy. Warning: applying to jobs by way of
8
+ JobbyJob may result in more work, such as doing multiple phone screens, or solving
9
+ FizzBuzz exercises.
10
+
11
+ This gem's dependancies include:
12
+
13
+ 1. OS X
14
+ 2. Firefox
15
+
16
+ ## Installation
17
+
18
+ Just run the following in your terminal:
19
+
20
+ $ gem install jobby_job
21
+
22
+ ## Usage
23
+
24
+ $ jobby_job ruby ios
25
+
26
+ This will open up some job sites with ruby and ios in the search fields.
27
+
28
+ TODO:
29
+
30
+ 1. Add more sites
31
+
32
+ ## Contributing
33
+
34
+ 1. Fork it
35
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
36
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
37
+ 4. Push to the branch (`git push origin my-new-feature`)
38
+ 5. Create new Pull Request
39
+
40
+ ## Sites used
41
+
42
+ 1. stackoverflow
43
+ 2. github
44
+ 3. ycombinator
45
+ 4. 37signals
46
+ 5. indeed
47
+ 6. weworkremotely
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/jobby_job ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require './lib/jobby_job'
4
+
5
+ cli = JobbyJob::Cli.new(ARGV)
6
+ urls = cli.get
7
+
8
+ urls.each do |url|
9
+ p url
10
+ sleep 1.5
11
+ system("open -a firefox #{url.to_s}")
12
+ end
13
+
data/jobby_job.gemspec ADDED
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'jobby_job/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "jobby_job"
8
+ spec.version = JobbyJob::VERSION
9
+ spec.authors = ["AdamT"]
10
+ spec.email = ["atal421@yahoo.com"]
11
+ spec.description = %q{Search for jobs from the command-line}
12
+ spec.summary = %q{JobbyJob opens a few job sites in Firefox with your search terms included.}
13
+ spec.homepage = "https://github.com/AdamT/JobbyJob"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = ['jobby_job']
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
@@ -0,0 +1,42 @@
1
+ module JobbyJob
2
+ class Sites
3
+
4
+ attr_reader :input, :zipcode, :keywords
5
+
6
+ def initialize(inputs)
7
+ @keywords = inputs[:keywords].join('+') || ""
8
+ @zipcode = inputs[:zipcode] || ""
9
+ end
10
+
11
+ def get
12
+ [stackoverflow, github, ycombinator, thirtyseven_signals, indeed, we_work_remotely]
13
+ end
14
+
15
+ private
16
+
17
+ def stackoverflow
18
+ "http://careers.stackoverflow.com/jobs?searchTerm=#{keywords}&location=#{zipcode}&range=20&distanceUnits=Miles"
19
+ end
20
+
21
+ def github
22
+ "https://jobs.github.com/positions?description=#{keywords}&location=#{zipcode}"
23
+ end
24
+
25
+ def ycombinator
26
+ "http://news.ycombinator.com/jobs"
27
+ end
28
+
29
+ def thirtyseven_signals
30
+ "http://jobs.37signals.com/jobs/search?term=#{keywords}"
31
+ end
32
+
33
+ def indeed
34
+ "https://www.indeed.com/jobs?q=#{keywords}&l=#{zipcode}"
35
+ end
36
+
37
+ def we_work_remotely
38
+ "https://weworkremotely.com/jobs/search?term=#{keywords}"
39
+ end
40
+ end
41
+ end
42
+
@@ -0,0 +1,3 @@
1
+ module JobbyJob
2
+ VERSION = "0.0.1.alpha1"
3
+ end
data/lib/jobby_job.rb ADDED
@@ -0,0 +1,33 @@
1
+ require "jobby_job/version"
2
+ require "jobby_job/sites"
3
+
4
+ module JobbyJob
5
+ class Cli
6
+
7
+ attr_reader :input, :zipcode, :keywords
8
+
9
+ def initialize(input)
10
+ @input = input
11
+ parse
12
+ @dev_job_sites = JobbyJob::Sites.new(inputs)
13
+ end
14
+
15
+ def get
16
+ @dev_job_sites.get
17
+ end
18
+
19
+ def parse
20
+ @zipcode = input.select do |k|
21
+ k if k.to_i > 0 && k.length == 5
22
+ end.first
23
+
24
+ input.delete(zipcode)
25
+ @keywords = input
26
+ end
27
+
28
+ def inputs
29
+ {keywords: keywords, zipcode: zipcode}
30
+ end
31
+ end
32
+ end
33
+
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jobby_job
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.alpha1
5
+ platform: ruby
6
+ authors:
7
+ - AdamT
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-11-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Search for jobs from the command-line
42
+ email:
43
+ - atal421@yahoo.com
44
+ executables:
45
+ - jobby_job
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - .gitignore
50
+ - Gemfile
51
+ - LICENSE.txt
52
+ - README.md
53
+ - Rakefile
54
+ - bin/jobby_job
55
+ - jobby_job.gemspec
56
+ - lib/jobby_job.rb
57
+ - lib/jobby_job/sites.rb
58
+ - lib/jobby_job/version.rb
59
+ homepage: https://github.com/AdamT/JobbyJob
60
+ licenses:
61
+ - MIT
62
+ metadata: {}
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - '>'
75
+ - !ruby/object:Gem::Version
76
+ version: 1.3.1
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 2.1.3
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: JobbyJob opens a few job sites in Firefox with your search terms included.
83
+ test_files: []