remote_dev_jobs 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc7566fb35977a4914212eb9de77babe38f9d85a
4
- data.tar.gz: 25ad3db3b3e99a6cb84d95e8dfb09d725775ea66
3
+ metadata.gz: 17e1c2a5aeed8f66266f6deda867879479cd5651
4
+ data.tar.gz: 08b9d56e610c10e8f8bfad936cd246c7cf0b2c38
5
5
  SHA512:
6
- metadata.gz: e181d7f22de7137367a20483e4686e4af30f7b3d1487f9c79f960363142fa877e73fb3748d590ade8d0203d964339e2215794d8fba6addc192fbdb7a52b0872f
7
- data.tar.gz: e2de89abdeb2ff6517030467fe6dc8bca7738a591da025130f545c524624a6031959774ab5d3728b3a671db15424d5623ebc75a1b0cf29fc2ddfd36fb48d75ea
6
+ metadata.gz: c9fbc8c8ef8821b6bf1b6e16804a3669f4fe248ed93450a4b9e31efee4194c8e7f326d51bd540990a73dfbab577c07b403feb9b7e4a14250a7baa502e4c725ec
7
+ data.tar.gz: ccb26355e9d533dfab04d1b3a979f5de05d5e2bd94cf8cc8023c3033c303ca1ecb1fe3434ecc5eed34339776f53fe62930ad8ce5f0125c501e2f288c9eeb6795
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in remote_dev_jobs.gemspec
4
4
  gemspec
5
5
 
6
- require 'pry'
7
- require 'require_all'
6
+ # require 'pry'
7
+ # require 'require_all'
@@ -9,6 +9,9 @@ require "remote_dev_jobs"
9
9
 
10
10
  # (If you use this, don't forget to add pry to your Gemfile!)
11
11
  # require "pry"
12
+ RemoteDevJobs::Launch.search_options
13
+ RemoteDevJobs::Launch.sitemenu
14
+
12
15
 
13
16
  require "irb"
14
17
  IRB.start
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+
4
+ # require 'require_all'
5
+ # require_rel '../lib/remote_dev_jobs'
6
+
7
+ require "bundler/setup"
8
+ require "remote_dev_jobs"
9
+
10
+ RemoteDevJobs::Launch.search_options
11
+ RemoteDevJobs::Launch.sitemenu
@@ -5,16 +5,15 @@ module RemoteDevJobs
5
5
 
6
6
  end
7
7
 
8
- require 'remote_dev_jobs/CLI.rb'
9
- require 'remote_dev_jobs/Launch.rb'
10
- require 'remote_dev_jobs/Job.rb'
11
- require 'remote_dev_jobs/AuthenticScraper.rb'
12
- require 'remote_dev_jobs/FlexJobsScraper.rb'
13
- require 'remote_dev_jobs/StackScraper.rb'
8
+ require 'remote_dev_jobs/cli.rb'
9
+ require 'remote_dev_jobs/launch.rb'
10
+ require 'remote_dev_jobs/job.rb'
11
+ require 'remote_dev_jobs/authentic_scraper.rb'
12
+ require 'remote_dev_jobs/flex_jobs_scraper.rb'
13
+ require 'remote_dev_jobs/stack_scraper.rb'
14
14
  require 'remote_dev_jobs/version.rb'
15
- require 'remote_dev_jobs/WeWorkRemotelyScraper.rb'
15
+ require 'remote_dev_jobs/we_work_remotely_scraper.rb'
16
+ require 'remote_dev_jobs/general_scraper.rb'
16
17
 
17
- # require 'require_all'
18
- # require_all 'lib'
19
18
 
20
19
 
@@ -22,8 +22,6 @@ class RemoteDevJobs::CLI
22
22
  end
23
23
 
24
24
  def display_jobs
25
- color_codes = [39, "31", "32", "33", "34", "35", "36", "37", "91", "92", "93", "94", "95", "96"]
26
- i = 0
27
25
  Job.all.each do |job|
28
26
  puts "\e[32m#{job.number}."
29
27
  puts "\n\e[34m#{job.company}:" if job.company
@@ -34,7 +32,6 @@ class RemoteDevJobs::CLI
34
32
  end
35
33
  puts " \e[37mSeniority: #{job.seniority}" if job.seniority
36
34
  puts "\n\e[32m#{'#' * 20}\n"
37
- i += 1
38
35
  end
39
36
  end
40
37
 
@@ -31,11 +31,11 @@ class RemoteDevJobs::CLI::Job
31
31
  attributes_hash.each do |attr, value|
32
32
  self.send("#{attr}=", value)
33
33
  end
34
- self
35
34
  end
36
35
 
37
36
  def self.all
38
37
  @@all
39
38
  end
40
39
 
41
- end
40
+ end
41
+
@@ -0,0 +1,9 @@
1
+ class GeneralScraper
2
+
3
+
4
+
5
+ def data
6
+ @data ||= Nokogiri::HTML(open(URL))
7
+ end
8
+
9
+ end
@@ -30,4 +30,4 @@ class RemoteDevJobs::Launch::StackScraper
30
30
  company_site: company_site
31
31
  }
32
32
  end
33
- end
33
+ end
@@ -1,3 +1,3 @@
1
1
  module RemoteDevJobs
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -1,7 +1,9 @@
1
1
  require 'nokogiri'
2
2
  require 'open-uri'
3
+ require 'general_scraper'
3
4
 
4
- class RemoteDevJobs::Launch::WeWorkRemotelyScraper
5
+ class RemoteDevJobs::Launch::WeWorkRemotelyScraper < GeneralScraper
6
+
5
7
  def self.scrape_job_list
6
8
  data = Nokogiri::HTML(open("https://weworkremotely.com/categories/2-programming/jobs#intro"))
7
9
  base = "https://weworkremotely.com"
Binary file
@@ -24,13 +24,13 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
26
  spec.bindir = "bin"
27
- spec.executables = ["run"]
27
+ spec.executables = ["remote_dev_jobs"]
28
28
  spec.require_paths = ["lib", "lib/remote_dev_jobs"]
29
29
 
30
30
  spec.add_development_dependency "bundler", "~> 1.10"
31
31
  spec.add_development_dependency "rake", "~> 10.0"
32
32
  spec.add_development_dependency 'pry', '~> 0'
33
- spec.add_development_dependency 'require_all'
33
+ spec.add_dependency 'require_all'
34
34
  spec.add_development_dependency 'nokogiri'
35
35
  spec.add_development_dependency 'launchy'
36
36
  spec.add_development_dependency 'rspec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_dev_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Goldberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,7 +59,7 @@ dependencies:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
- type: :development
62
+ type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
@@ -112,7 +112,7 @@ description: This gem searches several sites for remote web development position
112
112
  email:
113
113
  - seth@jsgold.co
114
114
  executables:
115
- - run
115
+ - remote_dev_jobs
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
@@ -124,18 +124,20 @@ files:
124
124
  - README.md
125
125
  - Rakefile
126
126
  - bin/console
127
- - bin/run
127
+ - bin/remote_dev_jobs
128
128
  - bin/setup
129
129
  - lib/remote_dev_jobs.rb
130
- - lib/remote_dev_jobs/AuthenticScraper.rb
131
130
  - lib/remote_dev_jobs/CLI.rb
132
- - lib/remote_dev_jobs/FlexJobsScraper.rb
133
131
  - lib/remote_dev_jobs/Job.rb
134
132
  - lib/remote_dev_jobs/Launch.rb
135
- - lib/remote_dev_jobs/StackScraper.rb
136
- - lib/remote_dev_jobs/WeWorkRemotelyScraper.rb
133
+ - lib/remote_dev_jobs/authentic_scraper.rb
134
+ - lib/remote_dev_jobs/flex_jobs_scraper.rb
135
+ - lib/remote_dev_jobs/general_scraper.rb
136
+ - lib/remote_dev_jobs/stack_scraper.rb
137
137
  - lib/remote_dev_jobs/version.rb
138
+ - lib/remote_dev_jobs/we_work_remotely_scraper.rb
138
139
  - remote_dev_jobs-0.2.0.gem
140
+ - remote_dev_jobs-0.2.1.gem
139
141
  - remote_dev_jobs.gemspec
140
142
  homepage: https://github.com/jsgoldb/remote-dev-jobs-cli-gem.git
141
143
  licenses:
data/bin/run DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
-
4
- require 'require_all'
5
- require_rel '../lib/remote_dev_jobs'
6
- # require 'remote_dev_jobs'
7
-
8
-
9
- RemoteDevJobs::Launch.search_options
10
- RemoteDevJobs::Launch.sitemenu