jobboards-parser 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +3 -1
- data/jobboards-parser.gemspec +1 -1
- data/lib/jobboards/boards/krop.rb +1 -1
- data/lib/jobboards/core.rb +5 -5
- metadata +4 -4
data/README.textile
CHANGED
@@ -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
|
data/jobboards-parser.gemspec
CHANGED
@@ -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.
|
17
|
+
published_at = item.pudDate
|
18
18
|
|
19
19
|
acc << self.new(title, url, location, company, content, published_at).attributes
|
20
20
|
acc
|
data/lib/jobboards/core.rb
CHANGED
@@ -2,12 +2,12 @@ module JobboardsParser
|
|
2
2
|
module Jobboard
|
3
3
|
class Jobboard
|
4
4
|
|
5
|
-
def initialize(title, url, location, company,
|
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
|
-
@
|
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[:
|
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
|
27
|
-
@
|
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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.
|
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
|