ical_importer 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/lib/ical_importer/parser.rb +1 -1
- data/lib/ical_importer/version.rb +1 -1
- data/spec/ical_importer/parser_spec.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
data/lib/ical_importer/parser.rb
CHANGED
@@ -12,8 +12,8 @@ module IcalImporter
|
|
12
12
|
# :timeout - Custom timeout for downloading ical feed [Default: 8]
|
13
13
|
def initialize(url, options={})
|
14
14
|
@url = url
|
15
|
-
@bare_feed = open_ical
|
16
15
|
@timeout = options[:timeout] || DEFAULT_TIMEOUT
|
16
|
+
@bare_feed = open_ical
|
17
17
|
if should_parse?
|
18
18
|
@bare_feed.pos = 0
|
19
19
|
begin
|
@@ -25,7 +25,7 @@ module IcalImporter
|
|
25
25
|
|
26
26
|
context "when a user defines a timeout" do
|
27
27
|
it "sets the timeout" do
|
28
|
-
|
28
|
+
Timeout.should_receive(:timeout).with(11)
|
29
29
|
parser = Parser.new(url, :timeout => 11)
|
30
30
|
parser.timeout.should == 11
|
31
31
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ical_importer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
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-10-
|
12
|
+
date: 2012-10-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -159,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: '0'
|
160
160
|
segments:
|
161
161
|
- 0
|
162
|
-
hash:
|
162
|
+
hash: 1818151322400970214
|
163
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
164
|
none: false
|
165
165
|
requirements:
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
segments:
|
170
170
|
- 0
|
171
|
-
hash:
|
171
|
+
hash: 1818151322400970214
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
174
|
rubygems_version: 1.8.24
|