ical_importer 0.0.15 → 0.0.16

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ #### 2012-10-11 **Version 0.16**
2
+
3
+ * Fixes initialize method with new timeout attribute
4
+
5
+ > @NickLaMuro: https://github.com/tstmedia/ical_importer/pull/3
1
6
  #### 2012-10-10 **Version 0.15**
2
7
 
3
8
  * Adjustable request timeout on ical feed retrieval
@@ -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
@@ -1,3 +1,3 @@
1
1
  module IcalImporter
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.16'
3
3
  end
@@ -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
- Parser.any_instance.stub(:open_ical).and_return bare_stuff
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.15
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-10 00:00:00.000000000 Z
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: 3561992931881412650
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: 3561992931881412650
171
+ hash: 1818151322400970214
172
172
  requirements: []
173
173
  rubyforge_project:
174
174
  rubygems_version: 1.8.24