jobboards-parser 0.0.2 → 0.0.3

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.
@@ -1,3 +1,5 @@
1
+ h1. Jobboards-parser (alpha release)
2
+
1
3
  simple ruby librairy for parsing tech jobboards
2
4
 
3
5
  h1. Available jobboards
@@ -35,4 +37,4 @@ h1. Upcoming jobboards
35
37
  h1. TODO
36
38
  * Use regex in boards class
37
39
  * Complete the readme file
38
- * Write test
40
+ * Write test
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "jobboards-parser"
3
- s.version = "0.0.2"
3
+ s.version = "0.0.3"
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"
@@ -14,7 +14,7 @@ module JobboardsParser
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
  content = item.description
17
- published_at = item.updated
17
+ published_at = item.pudDate
18
18
 
19
19
  acc << self.new(title, url, location, company, content, published_at).attributes
20
20
  acc
@@ -2,12 +2,12 @@ module JobboardsParser
2
2
  module Jobboard
3
3
  class Jobboard
4
4
 
5
- def initialize(title, url, location, company, content, published_at)
5
+ def initialize(title, url, location, company, description, published_at)
6
6
  @title = title
7
7
  @url = url
8
8
  @location = location
9
9
  @company = company
10
- @content = content
10
+ @description = description
11
11
  @published_at = published_at
12
12
  end
13
13
 
@@ -16,15 +16,15 @@ module JobboardsParser
16
16
  attrs[:title] = @title
17
17
  attrs[:url] = @url
18
18
  attrs[:company] = @company
19
- attrs[:content] = @content
19
+ attrs[:description] = @content
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) }
23
23
  attrs
24
24
  end
25
25
 
26
- def content=(text)
27
- @content = htmlize(text)
26
+ def description=(text)
27
+ @description = htmlize(text)
28
28
  end
29
29
 
30
30
  def self.feed
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
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.6.2
122
+ rubygems_version: 1.4.1
123
123
  signing_key:
124
124
  specification_version: 3
125
125
  summary: Simple ruby library for parsing tech jobboards