jobboards-parser 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/jobboards-parser.gemspec +1 -1
- data/lib/jobboards/boards/37_signals.rb +4 -4
- data/lib/jobboards/boards/authentic_jobs.rb +4 -4
- data/lib/jobboards/boards/crunchboard.rb +5 -5
- data/lib/jobboards/boards/github.rb +4 -4
- data/lib/jobboards/boards/joel_on_software.rb +4 -4
- data/lib/jobboards/boards/krop.rb +4 -4
- data/lib/jobboards/boards/ruby_inside.rb +4 -4
- data/lib/jobboards/boards/ruby_now.rb +4 -4
- data/lib/jobboards/boards/smashing_magazine.rb +4 -4
- data/lib/jobboards/boards/startuply.rb +4 -4
- data/lib/jobboards/core.rb +1 -1
- metadata +4 -4
data/jobboards-parser.gemspec
CHANGED
@@ -2,8 +2,8 @@ module JobboardsParser
|
|
2
2
|
module Jobboard
|
3
3
|
class Signal < Jobboard
|
4
4
|
|
5
|
-
def initialize(title, url, location, company,
|
6
|
-
super(title, url, location, company,
|
5
|
+
def initialize(title, url, location, company, description, published_at)
|
6
|
+
super(title, url, location, company, description, published_at)
|
7
7
|
@jobboard = self.class.jobboard_name
|
8
8
|
end
|
9
9
|
|
@@ -14,10 +14,10 @@ module JobboardsParser
|
|
14
14
|
location = item.description.split("\n").each {|ugly|
|
15
15
|
next unless ugly.include?("Location"); ugly.split(">").last.strip }
|
16
16
|
company = item.title.split(":").first.strip
|
17
|
-
|
17
|
+
description = item.description
|
18
18
|
published_at = item.pubDate
|
19
19
|
|
20
|
-
acc << self.new(title, url, location, company,
|
20
|
+
acc << self.new(title, url, location, company, description, published_at).attributes
|
21
21
|
acc
|
22
22
|
end
|
23
23
|
end
|
@@ -2,8 +2,8 @@ module JobboardsParser
|
|
2
2
|
module Jobboard
|
3
3
|
class AuthenticJob < Jobboard
|
4
4
|
|
5
|
-
def initialize(title, url, location, company,
|
6
|
-
super(title, url, location, company,
|
5
|
+
def initialize(title, url, location, company, description, published_at)
|
6
|
+
super(title, url, location, company, description, published_at)
|
7
7
|
@jobboard = self.class.jobboard_name
|
8
8
|
end
|
9
9
|
|
@@ -13,10 +13,10 @@ module JobboardsParser
|
|
13
13
|
url = item.link
|
14
14
|
location = nil
|
15
15
|
company = item.title.split(" at ").last.strip
|
16
|
-
|
16
|
+
description = item.description
|
17
17
|
published_at = item.pubDate
|
18
18
|
|
19
|
-
acc << self.new(title, url, location, company,
|
19
|
+
acc << self.new(title, url, location, company, description, published_at).attributes
|
20
20
|
acc
|
21
21
|
end
|
22
22
|
end
|
@@ -2,8 +2,8 @@ module JobboardsParser
|
|
2
2
|
module Jobboard
|
3
3
|
class Crunchboard < Jobboard
|
4
4
|
|
5
|
-
def initialize(title, url, location, company,
|
6
|
-
super(title, url, location, company,
|
5
|
+
def initialize(title, url, location, company, description, published_at)
|
6
|
+
super(title, url, location, company, description, published_at)
|
7
7
|
@jobboard = self.class.jobboard_name
|
8
8
|
end
|
9
9
|
|
@@ -13,10 +13,10 @@ module JobboardsParser
|
|
13
13
|
url = item.link
|
14
14
|
location = item.description.split(">")[1].split("-").last.split("<").first.strip
|
15
15
|
company = item.description.split(">")[1].split(")").first.split("(").last.strip
|
16
|
-
|
17
|
-
published_at = item.
|
16
|
+
description = item.description
|
17
|
+
published_at = item.pubDate
|
18
18
|
|
19
|
-
acc << self.new(title, url, location, company,
|
19
|
+
acc << self.new(title, url, location, company, description, published_at).attributes
|
20
20
|
acc
|
21
21
|
end
|
22
22
|
end
|
@@ -2,8 +2,8 @@ module JobboardsParser
|
|
2
2
|
module Jobboard
|
3
3
|
class Github < Jobboard
|
4
4
|
|
5
|
-
def initialize(title, url, location, company,
|
6
|
-
super(title, url, location, company,
|
5
|
+
def initialize(title, url, location, company, description, published_at)
|
6
|
+
super(title, url, location, company, description, published_at)
|
7
7
|
@jobboard = self.class.jobboard_name
|
8
8
|
end
|
9
9
|
|
@@ -13,10 +13,10 @@ module JobboardsParser
|
|
13
13
|
url = item.link
|
14
14
|
location = item.title.split(" in ").last.strip
|
15
15
|
company = item.title.split(" at ").last.split("in").first.strip
|
16
|
-
|
16
|
+
description = item.description
|
17
17
|
published_at = item.updated
|
18
18
|
|
19
|
-
acc << self.new(title, url, location, company,
|
19
|
+
acc << self.new(title, url, location, company, description, published_at).attributes
|
20
20
|
acc
|
21
21
|
end
|
22
22
|
end
|
@@ -2,8 +2,8 @@ module JobboardsParser
|
|
2
2
|
module Jobboard
|
3
3
|
class JoelOnSoftware < Jobboard
|
4
4
|
|
5
|
-
def initialize(title, url, location, company,
|
6
|
-
super(title, url, location, company,
|
5
|
+
def initialize(title, url, location, company, description, published_at)
|
6
|
+
super(title, url, location, company, description, published_at)
|
7
7
|
@jobboard = self.class.jobboard_name
|
8
8
|
end
|
9
9
|
|
@@ -13,10 +13,10 @@ module JobboardsParser
|
|
13
13
|
url = item.link
|
14
14
|
location = item.title.split("(").last.split(")").first.strip
|
15
15
|
company = item.title.split(" at ").last.split("(").first.strip
|
16
|
-
|
16
|
+
description = item.description
|
17
17
|
published_at = item.updated
|
18
18
|
|
19
|
-
acc << self.new(title, url, location, company,
|
19
|
+
acc << self.new(title, url, location, company, description, published_at).attributes
|
20
20
|
acc
|
21
21
|
end
|
22
22
|
end
|
@@ -2,8 +2,8 @@ module JobboardsParser
|
|
2
2
|
module Jobboard
|
3
3
|
class Krop < Jobboard
|
4
4
|
|
5
|
-
def initialize(title, url, location, company,
|
6
|
-
super(title, url, location, company,
|
5
|
+
def initialize(title, url, location, company, description, published_at)
|
6
|
+
super(title, url, location, company, description, published_at)
|
7
7
|
@jobboard = self.class.jobboard_name
|
8
8
|
end
|
9
9
|
|
@@ -13,10 +13,10 @@ module JobboardsParser
|
|
13
13
|
url = item.link
|
14
14
|
location = item.title.split(" is looking for a").last.split(" in").last.strip
|
15
15
|
company = item.title.split(" is looking for a").first.strip
|
16
|
-
|
16
|
+
description = item.description
|
17
17
|
published_at = item.pudDate
|
18
18
|
|
19
|
-
acc << self.new(title, url, location, company,
|
19
|
+
acc << self.new(title, url, location, company, description, published_at).attributes
|
20
20
|
acc
|
21
21
|
end
|
22
22
|
end
|
@@ -2,8 +2,8 @@ module JobboardsParser
|
|
2
2
|
module Jobboard
|
3
3
|
class RubyInside < Jobboard
|
4
4
|
|
5
|
-
def initialize(title, url, location, company,
|
6
|
-
super(title, url, location, company,
|
5
|
+
def initialize(title, url, location, company, description, published_at)
|
6
|
+
super(title, url, location, company, description, published_at)
|
7
7
|
@jobboard = self.class.jobboard_name
|
8
8
|
end
|
9
9
|
|
@@ -13,10 +13,10 @@ module JobboardsParser
|
|
13
13
|
url = item.link
|
14
14
|
location = item.title.split(" at ").last.split("(").last.sub(")","").strip
|
15
15
|
company = item.title.split(" at ").last.split("(").first.strip
|
16
|
-
|
16
|
+
description = Jobboard.extract_description(item.link)
|
17
17
|
published_at = item.pubDate
|
18
18
|
|
19
|
-
acc << self.new(title, url, location, company,
|
19
|
+
acc << self.new(title, url, location, company, description, published_at).attributes
|
20
20
|
acc
|
21
21
|
end
|
22
22
|
end
|
@@ -2,8 +2,8 @@ module JobboardsParser
|
|
2
2
|
module Jobboard
|
3
3
|
class RubyNow < Jobboard
|
4
4
|
|
5
|
-
def initialize(title, url, location, company,
|
6
|
-
super(title, url, location, company,
|
5
|
+
def initialize(title, url, location, company, description, published_at)
|
6
|
+
super(title, url, location, company, description, published_at)
|
7
7
|
@jobboard = self.class.jobboard_name
|
8
8
|
end
|
9
9
|
|
@@ -13,10 +13,10 @@ module JobboardsParser
|
|
13
13
|
url = item.guid
|
14
14
|
location = item.title.split(" at:").last.strip
|
15
15
|
company = nil
|
16
|
-
|
16
|
+
description = item.description
|
17
17
|
published_at = item.pudDate
|
18
18
|
|
19
|
-
acc << self.new(title, url, location, company,
|
19
|
+
acc << self.new(title, url, location, company, description, published_at).attributes
|
20
20
|
acc
|
21
21
|
end
|
22
22
|
end
|
@@ -2,8 +2,8 @@ module JobboardsParser
|
|
2
2
|
module Jobboard
|
3
3
|
class SmashingMagazine < Jobboard
|
4
4
|
|
5
|
-
def initialize(title, url, location, company,
|
6
|
-
super(title, url, location, company,
|
5
|
+
def initialize(title, url, location, company, description, published_at)
|
6
|
+
super(title, url, location, company, description, published_at)
|
7
7
|
@jobboard = self.class.jobboard_name
|
8
8
|
end
|
9
9
|
|
@@ -13,10 +13,10 @@ module JobboardsParser
|
|
13
13
|
url = item.link
|
14
14
|
location = item.title.split("-")[2].split("(").last.split(")").first.strip
|
15
15
|
company = item.title.split("-")[1].strip
|
16
|
-
|
16
|
+
description = extract_description(item.link)
|
17
17
|
published_at = item.updated
|
18
18
|
|
19
|
-
acc << self.new(title, url, location, company,
|
19
|
+
acc << self.new(title, url, location, company, description, published_at).attributes
|
20
20
|
acc
|
21
21
|
end
|
22
22
|
end
|
@@ -2,8 +2,8 @@ module JobboardsParser
|
|
2
2
|
module Jobboard
|
3
3
|
class Startuply < Jobboard
|
4
4
|
|
5
|
-
def initialize(title, url, location, company,
|
6
|
-
super(title, url, location, company,
|
5
|
+
def initialize(title, url, location, company, description, published_at)
|
6
|
+
super(title, url, location, company, description, published_at)
|
7
7
|
@jobboard = self.class.jobboard_name
|
8
8
|
end
|
9
9
|
|
@@ -13,10 +13,10 @@ module JobboardsParser
|
|
13
13
|
url = item.link
|
14
14
|
location = item.title.split(" in ").last.strip
|
15
15
|
company = item.description.split("href")[1].split("Companies")[1].split(".aspx").first.split("_").delete_if {|x| x.to_i > 0}.join(" ").split("/").last
|
16
|
-
|
16
|
+
description = extract_description(item.link)
|
17
17
|
published_at = item.pubdate
|
18
18
|
|
19
|
-
acc << self.new(title, url, location, company,
|
19
|
+
acc << self.new(title, url, location, company, description, published_at).attributes
|
20
20
|
acc
|
21
21
|
end
|
22
22
|
end
|
data/lib/jobboards/core.rb
CHANGED
@@ -16,7 +16,7 @@ module JobboardsParser
|
|
16
16
|
attrs[:title] = @title
|
17
17
|
attrs[:url] = @url
|
18
18
|
attrs[:company] = @company
|
19
|
-
attrs[:description] = @
|
19
|
+
attrs[:description] = @description
|
20
20
|
attrs[:published_at]= @published_at
|
21
21
|
attrs[:jobboard] = @jobboard
|
22
22
|
attrs.each{ |k,v| v.strip! if v.is_a?(String) }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jobboards-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Gr\xC3\xA9gory Marcilhacy"
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
requirements: []
|
120
120
|
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 1.
|
122
|
+
rubygems_version: 1.6.2
|
123
123
|
signing_key:
|
124
124
|
specification_version: 3
|
125
125
|
summary: Simple ruby library for parsing tech jobboards
|