keyword-filter 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.
Files changed (2) hide show
  1. data/lib/keyword-filter.rb +3 -1
  2. metadata +1 -1
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
- # file: keywords-filter.rb
3
+ # file: keywords-filte.rb
4
4
 
5
5
  require 'rexml/document'
6
6
  include REXML
@@ -20,6 +20,8 @@ class KeywordFilter
20
20
  filtered_words.empty? ? raw_s : doc.root
21
21
  end
22
22
 
23
+ private
24
+
23
25
  def open(s)
24
26
  if s[/^https?:\/\//] then # open a file from a url
25
27
  buffer = Kernel.open(s, 'UserAgent' => 'KeywordsFilter-Reader').read
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keyword-filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors: []
7
7