rss-atom-feed_history 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.md CHANGED
@@ -1,10 +1,12 @@
1
- # RSS::Atom::FeedHistory
1
+ RSS::Atom::FeedHistory
2
+ ======================
2
3
 
3
4
  Enables standard bundled RSS library parse and make feeds including "[Feed Paging and Archiving][RFC5005]."
4
5
 
5
6
  [RFC5005]:http://www.ietf.org/rfc/rfc5005.txt
6
7
 
7
- ## Installation
8
+ Installation
9
+ ------------
8
10
 
9
11
  Add this line to your application's Gemfile:
10
12
 
@@ -18,7 +20,8 @@ Or install it yourself as:
18
20
 
19
21
  $ gem install rss-atom-feed_history
20
22
 
21
- ## Usage
23
+ Usage
24
+ -----
22
25
 
23
26
  require 'rss/atom/feed_history/atom'
24
27
 
@@ -26,10 +29,18 @@ Or install it yourself as:
26
29
  feed.complete? # => true when the feed includes <fh:complete/>
27
30
  arch = open(feed.previous_archive_page) if feed.archived?
28
31
 
29
- ## Contributing
32
+ Contributing
33
+ ------------
30
34
 
31
35
  1. Fork it
32
36
  2. Create your feature branch (`git checkout -b my-new-feature`)
33
37
  3. Commit your changes (`git commit -am 'Added some feature'`)
34
38
  4. Push to the branch (`git push origin my-new-feature`)
35
39
  5. Create new Merge Request
40
+
41
+ To do
42
+ -----
43
+
44
+ * Consideration whether the method name `***_page` is proper or not.
45
+ * Validation.
46
+ * Maker.
@@ -1,7 +1,7 @@
1
1
  module RSS
2
2
  module Atom
3
3
  module FeedHistory
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -35,7 +35,7 @@ module RSS
35
35
  end
36
36
 
37
37
  (PAGED_FEED_RELS + ARCHIVED_FEED_RELS).each do |rel|
38
- method_name = "#{rel}_page".gsub(/-/, '_')
38
+ method_name = rel.gsub(/-/, '_') + '_page'
39
39
  define_method(method_name) do
40
40
  if link = links.find {|link| link.rel == rel}
41
41
  link.href
@@ -66,7 +66,7 @@ module RSS
66
66
 
67
67
  def to_s(need_conevert=true, indent='')
68
68
  # want to use Element#tag method
69
- make_start_tag(indent, indent + INDENT, {}) + '/>'
69
+ make_start_tag(indent, indent + INDENT, collect_attrs) + '/>'
70
70
  end
71
71
  end
72
72
  EOC
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rss-atom-feed_history
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-03 00:00:00.000000000Z
12
+ date: 2012-04-06 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit
16
- requirement: &17839340 !ruby/object:Gem::Requirement
16
+ requirement: &15470620 !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: *17839340
24
+ version_requirements: *15470620
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: simplecov
27
- requirement: &17838920 !ruby/object:Gem::Requirement
27
+ requirement: &15470200 !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: :development
34
34
  prerelease: false
35
- version_requirements: *17838920
35
+ version_requirements: *15470200
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: yard
38
- requirement: &17838500 !ruby/object:Gem::Requirement
38
+ requirement: &15469780 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *17838500
46
+ version_requirements: *15469780
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: pry
49
- requirement: &17838080 !ruby/object:Gem::Requirement
49
+ requirement: &15469360 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *17838080
57
+ version_requirements: *15469360
58
58
  description: Enables standard bundled RSS library parse and make feeds including "Feed
59
59
  Paging and Archiving"(RFC 5005).
60
60
  email:
@@ -87,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  segments:
89
89
  - 0
90
- hash: -2424412047240753055
90
+ hash: -1372296683592622860
91
91
  required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  none: false
93
93
  requirements:
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  segments:
98
98
  - 0
99
- hash: -2424412047240753055
99
+ hash: -1372296683592622860
100
100
  requirements: []
101
101
  rubyforge_project:
102
102
  rubygems_version: 1.8.8