planet 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bc71a4ca0c085c6d0bb470b6c0959d85a147459
4
- data.tar.gz: 897d0fca5b14c0e472ae667c0fbf7bf428e2f4e1
3
+ metadata.gz: a1f4989634ecdb5454e840c0b88c0c129421193c
4
+ data.tar.gz: f473dbb805e8e7bdc5aff4322c039bef7083e762
5
5
  SHA512:
6
- metadata.gz: 2c73c7b13cfc15fa982293285a1f4df2d6f28de8e4104df026f8f533fcd7b3e90d5ef9128b5184f9f6ce0e59b590606a55e77f2abe06abec8d2257ed976f207f
7
- data.tar.gz: 3c144e476307381e2a7444059b3507dab3f3a8dad31e3ca181d1f87b8cda672274a7d186e2cbac2d297310e8d4549354ce2b0375f405b0c3eeee5f87cc77d96a
6
+ metadata.gz: 77850b377fdf5b87cafa6db8d8d3028d2af975fe7fe094a3d10c348b54a56a052e3e56d2c5232cfe9b26b8500e0e62f4d6a2784550560a38e598916d08516817
7
+ data.tar.gz: 4520ba82e6a3e2448589faa2a9c88499a429615c10322ec29759067b98a5983f00ef869c6a04d4498d54490781d20854ac87c276e9943867eac791cc92934f65
data/bin/planet CHANGED
@@ -97,7 +97,7 @@ command :update_templates do |c|
97
97
  File.delete(author) if File.exists?(author)
98
98
  File.delete(header) if File.exists?(header)
99
99
 
100
- response = `#{$0} -d #{global_options[:config]} create_templates`
100
+ response = `#{$0} -c #{global_options[:config]} create_templates`
101
101
  puts response
102
102
  end
103
103
  end
@@ -153,7 +153,7 @@ __END__
153
153
  title: "{{ post_title }}"
154
154
  kind: article
155
155
  created_at: {{ post_date }}
156
- author: {{ author }}
156
+ author: "{{ author }}"
157
157
  categories: {{ blog_categories }}
158
158
  tags: {{ blog_tags }}
159
159
  layout: post
@@ -170,15 +170,15 @@ planet:
170
170
 
171
171
  blogs:
172
172
  # Bare minimum to get it working
173
- - author: "Cubox"
174
- feed: "http://blog.cuboxlabs.com/atom.xml"
175
- image: "http://cuboxlabs.com/img/cubox-humans/could-be-you.png"
173
+ - author: "Sample: RSS Specifications"
174
+ feed: "http://www.rss-specifications.com/blog-feed.xml"
175
+ image: "http://www.rss-specifications.com/rss-spec-rss.gif"
176
176
 
177
- - author: "Pablo Astigarraga"
178
- feed: "http://blog.poteland.com/atom.xml"
179
- image: "http://poteland.com/images/avatars/red_mage.png"
177
+ - author: "Anonimus Author"
178
+ feed: "http://www.feedforall.com/sample.xml"
179
+ image: "http://www.feedforall.com/ffalogo48x48.gif"
180
180
  # Other fields:
181
181
  twitter: "poteland"
182
182
  categories: "programming"
183
- tags: "go ruby jekyll git"
184
- url: "http://blog.poteland.com" # => only required for people that don\'t have a \'url\' field on their RSS/Atom field'
183
+ tags: "test rss feed"
184
+ url: "http://www.feedforall.com/sample-feeds.htm" # => only required for people that don\'t have a \'url\' field on their RSS/Atom field'
@@ -47,7 +47,7 @@ class Planet
47
47
  # parser instances should mimick Feedzirra interface
48
48
  parser.fetch_and_parse(self.feed,
49
49
  :on_success => lambda { |url, feed| on_fetch_success(feed) },
50
- :on_failure => lambda { |url, response_code, response_header, response_body| puts "\t=> Failed to fetch #{url} with response_code: #{response_code}" })
50
+ :on_failure => lambda { |url, response| puts "\t=> Failed to fetch #{url.inspect} the server returned: #{response}" })
51
51
  end
52
52
 
53
53
  def on_fetch_success(feed)
@@ -1,5 +1,6 @@
1
1
  require 'feedjira'
2
2
  require 'set'
3
+ require 'uri'
3
4
 
4
5
  # Parsers class - manager for the feed parsers
5
6
  #
@@ -2,7 +2,7 @@ class Planet
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- PATCH = 4
5
+ PATCH = 5
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, PATCH].join('.')
metadata CHANGED
@@ -1,100 +1,137 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: planet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - PoTe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-27 00:00:00.000000000 Z
11
+ date: 2016-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.12'
17
20
  - - ">="
18
21
  - !ruby/object:Gem::Version
19
- version: '0'
22
+ version: 2.12.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '2.12'
24
30
  - - ">="
25
31
  - !ruby/object:Gem::Version
26
- version: '0'
32
+ version: 2.12.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: feedjira
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.3'
31
40
  - - ">="
32
41
  - !ruby/object:Gem::Version
33
- version: '0'
42
+ version: 1.3.1
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.3'
38
50
  - - ">="
39
51
  - !ruby/object:Gem::Version
40
- version: '0'
52
+ version: 1.3.1
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: mustache
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0.99'
45
60
  - - ">="
46
61
  - !ruby/object:Gem::Version
47
- version: '0'
62
+ version: 0.99.6
48
63
  type: :runtime
49
64
  prerelease: false
50
65
  version_requirements: !ruby/object:Gem::Requirement
51
66
  requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.99'
52
70
  - - ">="
53
71
  - !ruby/object:Gem::Version
54
- version: '0'
72
+ version: 0.99.6
55
73
  - !ruby/object:Gem::Dependency
56
74
  name: box
57
75
  requirement: !ruby/object:Gem::Requirement
58
76
  requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '0.1'
59
80
  - - ">="
60
81
  - !ruby/object:Gem::Version
61
- version: '0'
82
+ version: 0.1.1
62
83
  type: :runtime
63
84
  prerelease: false
64
85
  version_requirements: !ruby/object:Gem::Requirement
65
86
  requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.1'
66
90
  - - ">="
67
91
  - !ruby/object:Gem::Version
68
- version: '0'
92
+ version: 0.1.1
69
93
  - !ruby/object:Gem::Dependency
70
94
  name: stringex
71
95
  requirement: !ruby/object:Gem::Requirement
72
96
  requirements:
97
+ - - "~>"
98
+ - !ruby/object:Gem::Version
99
+ version: '2.5'
73
100
  - - ">="
74
101
  - !ruby/object:Gem::Version
75
- version: '0'
102
+ version: 2.5.2
76
103
  type: :runtime
77
104
  prerelease: false
78
105
  version_requirements: !ruby/object:Gem::Requirement
79
106
  requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '2.5'
80
110
  - - ">="
81
111
  - !ruby/object:Gem::Version
82
- version: '0'
112
+ version: 2.5.2
83
113
  - !ruby/object:Gem::Dependency
84
114
  name: sanitize
85
115
  requirement: !ruby/object:Gem::Requirement
86
116
  requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '3.0'
87
120
  - - ">="
88
121
  - !ruby/object:Gem::Version
89
- version: '0'
122
+ version: 3.0.0
90
123
  type: :runtime
91
124
  prerelease: false
92
125
  version_requirements: !ruby/object:Gem::Requirement
93
126
  requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '3.0'
94
130
  - - ">="
95
131
  - !ruby/object:Gem::Version
96
- version: '0'
97
- description:
132
+ version: 3.0.0
133
+ description: |2
134
+ A feed aggregator implementation intended to be used with Octopress/Jekyll
98
135
  email: pote@tardis.com.uy
99
136
  executables:
100
137
  - planet
@@ -130,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
167
  version: '0'
131
168
  requirements: []
132
169
  rubyforge_project:
133
- rubygems_version: 2.2.2
170
+ rubygems_version: 2.4.8
134
171
  signing_key:
135
172
  specification_version: 4
136
- summary: An rss/atom feed aggregator designed to work with Octopress/Jekyll
173
+ summary: Feed aggregator for Octopress/Jekyll
137
174
  test_files: []