simple-rss 1.3.3 → 2.0.0
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.
- checksums.yaml +4 -4
- data/LICENSE +79 -7
- data/README.markdown +1 -1
- data/Rakefile +134 -136
- data/lib/simple-rss.rb +273 -154
- data/simple-rss.gemspec +4 -5
- data/test/base/array_tags_test.rb +37 -0
- data/test/base/base_test.rb +76 -77
- data/test/base/empty_tag_test.rb +56 -0
- data/test/base/encoding_test.rb +87 -0
- data/test/base/feed_attributes_test.rb +26 -0
- data/test/base/item_attributes_test.rb +26 -0
- data/test/data/atom_with_entry_attrs.xml +13 -0
- data/test/data/atom_with_feed_attrs.xml +13 -0
- data/test/data/media_rss.xml +465 -0
- data/test/data/rss20_utf8.xml +61 -0
- data/test/data/rss20_with_channel_attrs.xml +13 -0
- data/test/data/rss20_with_item_attrs.xml +13 -0
- data/test/test_helper.rb +10 -3
- metadata +14 -8
- data/install.rb +0 -40
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simple-rss
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lucas Carlson
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2025-12-28 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rake
|
|
@@ -63,19 +62,28 @@ files:
|
|
|
63
62
|
- LICENSE
|
|
64
63
|
- README.markdown
|
|
65
64
|
- Rakefile
|
|
66
|
-
- install.rb
|
|
67
65
|
- lib/simple-rss.rb
|
|
68
66
|
- simple-rss.gemspec
|
|
67
|
+
- test/base/array_tags_test.rb
|
|
69
68
|
- test/base/base_test.rb
|
|
69
|
+
- test/base/empty_tag_test.rb
|
|
70
|
+
- test/base/encoding_test.rb
|
|
71
|
+
- test/base/feed_attributes_test.rb
|
|
72
|
+
- test/base/item_attributes_test.rb
|
|
70
73
|
- test/data/atom.xml
|
|
74
|
+
- test/data/atom_with_entry_attrs.xml
|
|
75
|
+
- test/data/atom_with_feed_attrs.xml
|
|
76
|
+
- test/data/media_rss.xml
|
|
71
77
|
- test/data/not-rss.xml
|
|
72
78
|
- test/data/rss09.rdf
|
|
73
79
|
- test/data/rss20.xml
|
|
80
|
+
- test/data/rss20_utf8.xml
|
|
81
|
+
- test/data/rss20_with_channel_attrs.xml
|
|
82
|
+
- test/data/rss20_with_item_attrs.xml
|
|
74
83
|
- test/test_helper.rb
|
|
75
84
|
homepage: http://github.com/cardmagic/simple-rss
|
|
76
85
|
licenses: []
|
|
77
86
|
metadata: {}
|
|
78
|
-
post_install_message:
|
|
79
87
|
rdoc_options: []
|
|
80
88
|
require_paths:
|
|
81
89
|
- lib
|
|
@@ -90,9 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
90
98
|
- !ruby/object:Gem::Version
|
|
91
99
|
version: '0'
|
|
92
100
|
requirements: []
|
|
93
|
-
|
|
94
|
-
rubygems_version: 2.7.6
|
|
95
|
-
signing_key:
|
|
101
|
+
rubygems_version: 4.0.3
|
|
96
102
|
specification_version: 4
|
|
97
103
|
summary: A simple, flexible, extensible, and liberal RSS and Atom reader for Ruby.
|
|
98
104
|
It is designed to be backwards compatible with the standard RSS parser, but will
|
data/install.rb
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
require 'rbconfig'
|
|
2
|
-
require 'find'
|
|
3
|
-
require 'ftools'
|
|
4
|
-
|
|
5
|
-
include Config
|
|
6
|
-
|
|
7
|
-
# this was adapted from rdoc's install.rb by ways of Log4r
|
|
8
|
-
|
|
9
|
-
$sitedir = CONFIG["sitelibdir"]
|
|
10
|
-
unless $sitedir
|
|
11
|
-
version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
|
|
12
|
-
$libdir = File.join(CONFIG["libdir"], "ruby", version)
|
|
13
|
-
$sitedir = $:.find {|x| x =~ /site_ruby/ }
|
|
14
|
-
if !$sitedir
|
|
15
|
-
$sitedir = File.join($libdir, "site_ruby")
|
|
16
|
-
elsif $sitedir !~ Regexp.quote(version)
|
|
17
|
-
$sitedir = File.join($sitedir, version)
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
makedirs = %w{ shipping }
|
|
22
|
-
makedirs.each {|f| File::makedirs(File.join($sitedir, *f.split(/\//)))}
|
|
23
|
-
|
|
24
|
-
Dir.chdir("lib")
|
|
25
|
-
begin
|
|
26
|
-
require 'rubygems'
|
|
27
|
-
require 'rake'
|
|
28
|
-
rescue LoadError
|
|
29
|
-
puts
|
|
30
|
-
puts "Please install Gem and Rake from http://rubyforge.org/projects/rubygems and http://rubyforge.org/projects/rake"
|
|
31
|
-
puts
|
|
32
|
-
exit(-1)
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
files = FileList["**/*"]
|
|
36
|
-
|
|
37
|
-
# File::safe_unlink *deprecated.collect{|f| File.join($sitedir, f.split(/\//))}
|
|
38
|
-
files.each {|f|
|
|
39
|
-
File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
|
|
40
|
-
}
|