planet 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/planet.rb +3 -0
  2. data/lib/planet_version.rb +1 -1
  3. metadata +7 -7
data/lib/planet.rb CHANGED
@@ -75,6 +75,7 @@ class Planet
75
75
 
76
76
  def aggregate
77
77
  @@_blogs.each do |blog|
78
+ puts "=> parsing #{ blog.feed }"
78
79
  rss = SimpleRSS.parse open(blog.feed)
79
80
  rss.entries.each do |entry|
80
81
  @@_posts << @post = Post.new(
@@ -86,12 +87,14 @@ class Planet
86
87
  )
87
88
 
88
89
  blog.posts << @post
90
+ puts "=> Found post titled #{ @post.title } - by #{ @post.blog.author }"
89
91
  end
90
92
  end
91
93
  end
92
94
 
93
95
  def write_posts
94
96
  Dir.mkdir("_posts") unless File.directory?("_posts")
97
+ puts "=> Writing #{ posts.size } posts to the _posts directory"
95
98
 
96
99
  posts(filter: {date: true, order: :date}).each do |post|
97
100
  file_name = '_posts/'.concat post.file_name
@@ -1,3 +1,3 @@
1
1
  module Planet
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: planet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &2152640020 !ruby/object:Gem::Requirement
16
+ requirement: &2152631560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2152640020
24
+ version_requirements: *2152631560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: gli
27
- requirement: &2152639180 !ruby/object:Gem::Requirement
27
+ requirement: &2152630800 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2152639180
35
+ version_requirements: *2152630800
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: simple-rss
38
- requirement: &2152637640 !ruby/object:Gem::Requirement
38
+ requirement: &2152626660 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2152637640
46
+ version_requirements: *2152626660
47
47
  description:
48
48
  email: pote@tardis.com.uy
49
49
  executables: