audrey2 0.1.0 → 0.1.1
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.
- data/VERSION +1 -1
- data/audrey2.gemspec +2 -2
- data/lib/audrey2.rb +2 -2
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
data/audrey2.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{audrey2}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Sven Aas"]
|
|
12
|
-
s.date = %q{2010-07-
|
|
12
|
+
s.date = %q{2010-07-21}
|
|
13
13
|
s.default_executable = %q{feedme}
|
|
14
14
|
s.description = %q{Gem for feed processing and aggregation}
|
|
15
15
|
s.email = %q{sven.aas@gmail.com}
|
data/lib/audrey2.rb
CHANGED
|
@@ -17,6 +17,7 @@ module Audrey2
|
|
|
17
17
|
init_theme(recipe['theme'])
|
|
18
18
|
output_file = recipe['output_file']
|
|
19
19
|
verify_output_file(output_file)
|
|
20
|
+
max_entries = recipe['max_entries'] || 1000
|
|
20
21
|
|
|
21
22
|
# Download and parse the feeds
|
|
22
23
|
entry_sources = {}
|
|
@@ -35,7 +36,7 @@ module Audrey2
|
|
|
35
36
|
output = ''
|
|
36
37
|
engine ||= Haml::Engine.new(@entry_template)
|
|
37
38
|
|
|
38
|
-
entries[0
|
|
39
|
+
entries[0..max_entries - 1].each do |entry|
|
|
39
40
|
output << engine.render(scope, :entry => entry, :source => entry_sources[entry])
|
|
40
41
|
end
|
|
41
42
|
|
|
@@ -161,7 +162,6 @@ module Audrey2
|
|
|
161
162
|
end
|
|
162
163
|
|
|
163
164
|
@user_agent = config['user_agent'] || 'Audrey 2.0 Feed Aggregator'
|
|
164
|
-
@max_entries = config['max_entries'] || 1000
|
|
165
165
|
@sort = config['sort'] || 'reverse-chronological'
|
|
166
166
|
end
|
|
167
167
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: audrey2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.1.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Sven Aas
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-07-
|
|
18
|
+
date: 2010-07-21 00:00:00 -04:00
|
|
19
19
|
default_executable: feedme
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|