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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 428b8a9ca829c9fc22891127c72a4e14b84ff358
4
- data.tar.gz: 519ac2778b2f578b5cf74281071b84e495978c6d
3
+ metadata.gz: 5efca587016b13715c7c1e7ed3bf03b6fe179b3f
4
+ data.tar.gz: 58f310f10c2ca46c15c99bb8a8ce931b091da90d
5
5
  SHA512:
6
- metadata.gz: 9cb9b0318659a95e50bd0b4f4f3d4c55d1436f69f9931aa0241ce32505f02d1a5f3c8bc51622cab0423951c5ac769f027b3b5db4d502e21f8be06933f889c605
7
- data.tar.gz: 9c2397bd3660b5c4359da8a5aefbf6ac626a97c3ce81c28dbc513ef023030993607805eaadc66eaa447b277cfe590be0341724a2e01957263c46c8ba2b1a2f1f
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
@@ -18,7 +18,7 @@ Hoe.spec 'feedfilter' do
18
18
  self.history_file = 'HISTORY.md'
19
19
 
20
20
  self.extra_deps = [
21
- ['textutils', '>=1.0.0'],
21
+ ['textutils', '>=1.0.1'],
22
22
  ]
23
23
 
24
24
  self.licenses = ['Public Domain']
data/lib/feedfilter.rb CHANGED
@@ -12,6 +12,7 @@ require 'textutils'
12
12
 
13
13
  require 'feedfilter/version' # let it always go first
14
14
  require 'feedfilter/ads'
15
+ require 'feedfilter/includes'
15
16
 
16
17
 
17
18
  # say hello
@@ -58,5 +58,5 @@ end # AdsFilters
58
58
  end
59
59
  end # module AdsFilter
60
60
 
61
- end # module FeedFitler
61
+ end # module FeedFilter
62
62
 
@@ -3,7 +3,7 @@
3
3
  module FeedFilter
4
4
 
5
5
  MAJOR = 1
6
- MINOR = 0
6
+ MINOR = 1
7
7
  PATCH = 0
8
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
9
 
@@ -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.0.0
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-10 00:00:00.000000000 Z
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.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.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