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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "jobboards-parser"
3
- s.version = "0.0.3"
3
+ s.version = "0.0.4"
4
4
  s.date = "2010-05-15"
5
5
  s.summary = "Simple ruby library for parsing tech jobboards"
6
6
  s.email = "g.marcilhacy@gmail.com"
@@ -2,8 +2,8 @@ module JobboardsParser
2
2
  module Jobboard
3
3
  class Signal < Jobboard
4
4
 
5
- def initialize(title, url, location, company, content, published_at)
6
- super(title, url, location, company, content, published_at)
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("&gt;").last.strip }
16
16
  company = item.title.split(":").first.strip
17
- content = item.description
17
+ description = item.description
18
18
  published_at = item.pubDate
19
19
 
20
- acc << self.new(title, url, location, company, content, published_at).attributes
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, content, published_at)
6
- super(title, url, location, company, content, published_at)
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
- content = item.description
16
+ description = item.description
17
17
  published_at = item.pubDate
18
18
 
19
- acc << self.new(title, url, location, company, content, published_at).attributes
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, content, published_at)
6
- super(title, url, location, company, content, published_at)
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("&gt;")[1].split("-").last.split("&lt;").first.strip
15
15
  company = item.description.split("&gt;")[1].split(")").first.split("(").last.strip
16
- content = item.description
17
- published_at = item.updated
16
+ description = item.description
17
+ published_at = item.pubDate
18
18
 
19
- acc << self.new(title, url, location, company, content, published_at).attributes
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, content, published_at)
6
- super(title, url, location, company, content, published_at)
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
- content = item.content
16
+ description = item.description
17
17
  published_at = item.updated
18
18
 
19
- acc << self.new(title, url, location, company, content, published_at).attributes
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, content, published_at)
6
- super(title, url, location, company, content, published_at)
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
- content = item.description
16
+ description = item.description
17
17
  published_at = item.updated
18
18
 
19
- acc << self.new(title, url, location, company, content, published_at).attributes
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, content, published_at)
6
- super(title, url, location, company, content, published_at)
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
- content = item.description
16
+ description = item.description
17
17
  published_at = item.pudDate
18
18
 
19
- acc << self.new(title, url, location, company, content, published_at).attributes
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, content, published_at)
6
- super(title, url, location, company, content, published_at)
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
- content = Jobboard.extract_content(item.link)
16
+ description = Jobboard.extract_description(item.link)
17
17
  published_at = item.pubDate
18
18
 
19
- acc << self.new(title, url, location, company, content, published_at).attributes
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, content, published_at)
6
- super(title, url, location, company, content, published_at)
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
- content = item.description
16
+ description = item.description
17
17
  published_at = item.pudDate
18
18
 
19
- acc << self.new(title, url, location, company, content, published_at).attributes
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, content, published_at)
6
- super(title, url, location, company, content, published_at)
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
- content = extract_content(item.link)
16
+ description = extract_description(item.link)
17
17
  published_at = item.updated
18
18
 
19
- acc << self.new(title, url, location, company, content, published_at).attributes
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, content, published_at)
6
- super(title, url, location, company, content, published_at)
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
- content = extract_content(item.link)
16
+ description = extract_description(item.link)
17
17
  published_at = item.pubdate
18
18
 
19
- acc << self.new(title, url, location, company, content, published_at).attributes
19
+ acc << self.new(title, url, location, company, description, published_at).attributes
20
20
  acc
21
21
  end
22
22
  end
@@ -16,7 +16,7 @@ module JobboardsParser
16
16
  attrs[:title] = @title
17
17
  attrs[:url] = @url
18
18
  attrs[:company] = @company
19
- attrs[:description] = @content
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: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
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.4.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