feedfilter 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -7
- data/Rakefile +1 -1
- data/lib/feedfilter.rb +1 -0
- data/lib/feedfilter/ads.rb +1 -1
- data/lib/feedfilter/version.rb +1 -1
- data/test/test_includes.rb +32 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5efca587016b13715c7c1e7ed3bf03b6fe179b3f
|
4
|
+
data.tar.gz: 58f310f10c2ca46c15c99bb8a8ce931b091da90d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4f621356f34ef04dea7b51fa3121a40aa07d60570ca4e4d86c81da9d7b6de2272f1659e756bbaf5b3e35797a1b277885ecded7d95b52d0e4251a19de97d2ab0
|
7
|
+
data.tar.gz: 35418794ecf7c405beded9c564511f33f53658f1c253d9f4a2ac134d2c06da0852803429addd5808e3ae51341b4a16488538dc82880b99f8aa1bb4bcc9a0c8e4
|
data/README.md
CHANGED
@@ -65,13 +65,6 @@ FEEDBURNER_BUGS = %r{<img[^>]*?src=("|')(:?http:)?//feeds\.feedburner\.com/~r/[^
|
|
65
65
|
~~~
|
66
66
|
|
67
67
|
|
68
|
-
## Alternatives
|
69
|
-
|
70
|
-
Node.js
|
71
|
-
|
72
|
-
- [node-resanitize](https://github.com/danmactough/node-resanitize)
|
73
|
-
|
74
|
-
|
75
68
|
## License
|
76
69
|
|
77
70
|
The `feedfilter` scripts are dedicated to the public domain.
|
data/Rakefile
CHANGED
data/lib/feedfilter.rb
CHANGED
data/lib/feedfilter/ads.rb
CHANGED
data/lib/feedfilter/version.rb
CHANGED
@@ -0,0 +1,32 @@
|
|
1
|
+
###
|
2
|
+
# to run use
|
3
|
+
# ruby -I ./lib -I ./test test/test_includes.rb
|
4
|
+
# or better
|
5
|
+
# rake test
|
6
|
+
|
7
|
+
require 'helper'
|
8
|
+
|
9
|
+
|
10
|
+
TestItem = Struct.new( :title, :summary, :content )
|
11
|
+
|
12
|
+
class TestIncludes < MiniTest::Test
|
13
|
+
|
14
|
+
def test_item
|
15
|
+
includesFilter = FeedFilter::IncludeFilters.new( 'github pages|jekyll' )
|
16
|
+
|
17
|
+
item1 = TestItem.new
|
18
|
+
item1.title = 'title'
|
19
|
+
item1.summary = 'summary'
|
20
|
+
item1.content = 'content'
|
21
|
+
|
22
|
+
item2 = TestItem.new
|
23
|
+
item2.title = 'title'
|
24
|
+
item2.summary = 'summary'
|
25
|
+
item2.content = 'bla bla JEKYLL bla bla'
|
26
|
+
|
27
|
+
assert false == includesFilter.match_item?( item1 )
|
28
|
+
assert true == includesFilter.match_item?( item2 )
|
29
|
+
end
|
30
|
+
|
31
|
+
end # class TestIncludes
|
32
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feedfilter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: textutils
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.
|
19
|
+
version: 1.0.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.
|
26
|
+
version: 1.0.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- test/helper.rb
|
77
77
|
- test/test_ads.rb
|
78
78
|
- test/test_ads_all.rb
|
79
|
+
- test/test_includes.rb
|
79
80
|
homepage: https://github.com/feedreader/feed.filter
|
80
81
|
licenses:
|
81
82
|
- Public Domain
|
@@ -103,5 +104,6 @@ signing_key:
|
|
103
104
|
specification_version: 4
|
104
105
|
summary: feedfilter - feed filter and rules for easy (re)use
|
105
106
|
test_files:
|
107
|
+
- test/test_includes.rb
|
106
108
|
- test/test_ads_all.rb
|
107
109
|
- test/test_ads.rb
|