stratify-instapaper 0.1.3 → 0.1.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stratify-instapaper (0.1.2)
4
+ stratify-instapaper (0.1.3)
5
5
  railties (~> 3.1.0)
6
- stratify-base (~> 0.1.2)
6
+ stratify-base (~> 0.1.3)
7
7
  thoughtafter-simple-rss (~> 1.2.3)
8
8
 
9
9
  GEM
@@ -74,7 +74,7 @@ GEM
74
74
  hike (~> 1.2)
75
75
  rack (~> 1.0)
76
76
  tilt (!= 1.3.0, ~> 1.1)
77
- stratify-base (0.1.2)
77
+ stratify-base (0.1.3)
78
78
  bson_ext (~> 1.3.1)
79
79
  mongoid (~> 2.0.2)
80
80
  tilt (~> 1.3.2)
@@ -16,7 +16,7 @@ module Stratify
16
16
  end
17
17
 
18
18
  def domain
19
- URI.parse(url).host
19
+ URI.parse(URI.escape(url)).host
20
20
  end
21
21
 
22
22
  private
@@ -1,5 +1,5 @@
1
1
  module Stratify
2
2
  module Instapaper
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.3.1"
4
4
  end
5
5
  end
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Stratify::Instapaper::Presenter do
@@ -7,6 +9,12 @@ describe Stratify::Instapaper::Presenter do
7
9
  presenter = Stratify::Instapaper::Presenter.new(activity)
8
10
  presenter.domain.should == "googledocs.blogspot.com"
9
11
  end
12
+
13
+ it "gracefully handles a URL containing 'unsafe' characters" do
14
+ activity = Stratify::Instapaper::Activity.new(:url => 'http://www.heraldsun.com/view/full_story/16332513/article-Transit-tax-passes--“Great-day-for-Durham-”-Bell-says?instance=main_article')
15
+ presenter = Stratify::Instapaper::Presenter.new(activity)
16
+ presenter.domain.should == "www.heraldsun.com"
17
+ end
10
18
  end
11
19
 
12
20
  describe "summary" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stratify-instapaper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-05 00:00:00.000000000Z
12
+ date: 2011-11-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: &70322846241420 !ruby/object:Gem::Requirement
16
+ requirement: &70291247915940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70322846241420
24
+ version_requirements: *70291247915940
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: stratify-base
27
- requirement: &70322846257780 !ruby/object:Gem::Requirement
27
+ requirement: &70291247914340 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.1.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70322846257780
35
+ version_requirements: *70291247914340
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: thoughtafter-simple-rss
38
- requirement: &70322854701960 !ruby/object:Gem::Requirement
38
+ requirement: &70291247913620 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.2.3
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70322854701960
46
+ version_requirements: *70291247913620
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: database_cleaner
49
- requirement: &70322863058260 !ruby/object:Gem::Requirement
49
+ requirement: &70291247910060 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.6.7
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70322863058260
57
+ version_requirements: *70291247910060
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: fakeweb
60
- requirement: &70322863160660 !ruby/object:Gem::Requirement
60
+ requirement: &70291247906980 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.3.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70322863160660
68
+ version_requirements: *70291247906980
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
- requirement: &70322863584020 !ruby/object:Gem::Requirement
71
+ requirement: &70291247905080 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 2.6.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70322863584020
79
+ version_requirements: *70291247905080
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: vcr
82
- requirement: &70322863714880 !ruby/object:Gem::Requirement
82
+ requirement: &70291247904480 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: 1.10.0
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70322863714880
90
+ version_requirements: *70291247904480
91
91
  description: Instapaper plugin for Stratify
92
92
  email:
93
93
  - jason@jasonrudolph.com