feedisco 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -107,6 +107,10 @@ Contribute by forking, tweaking, and sending pull requests, but please add the a
107
107
 
108
108
  ### History
109
109
 
110
+ #### `0.1.2`
111
+
112
+ * Supports `StringIO` as a return from the open-uri `open` method (which is returned instead of a `Tempfile` when the content is smaller than a given size - 10KB).
113
+
110
114
  #### `0.1.1`
111
115
 
112
116
  * Completed `Rakefile`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/feedisco.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "feedisco"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Romain Champourlier"]
12
- s.date = "2012-09-28"
12
+ s.date = "2012-10-18"
13
13
  s.description = "Feedisco is a small and lightweight library focused on RSS/Atom feed discovery. It is intended to do little, but to do it well!"
14
14
  s.email = "romain@softr.li"
15
15
  s.extra_rdoc_files = [
@@ -31,7 +31,7 @@ module Feedisco::Checks
31
31
  file = open(harmonized_url)
32
32
  opened = true
33
33
 
34
- elsif url_or_file.class.to_s == 'Tempfile'
34
+ elsif %w(Tempfile StringIO).include? url_or_file.class.to_s
35
35
  file = url_or_file
36
36
 
37
37
  else raise ArgumentError.new('argument must be a String (url) or a Tempfile created with `open(url)`')
@@ -1,6 +1,6 @@
1
1
  class Feedisco
2
2
 
3
3
  def version
4
- '0.1.1'
4
+ '0.1.2'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feedisco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-28 00:00:00.000000000 Z
12
+ date: 2012-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  segments:
106
106
  - 0
107
- hash: -595904197689466947
107
+ hash: -1864332675888607997
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  none: false
110
110
  requirements: