rails_autolink 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module RailsAutolink
2
- VERSION = '1.0.7'
2
+ VERSION = '1.0.8'
3
3
 
4
4
  class Railtie < ::Rails::Railtie
5
5
  initializer 'rails_autolink' do |app|
@@ -60,12 +60,12 @@ module RailsAutolink
60
60
  options.reverse_merge!(:link => :all, :html => {})
61
61
  sanitize = (options[:sanitize] != false)
62
62
  sanitize_options = options[:sanitize_options] || {}
63
- text = conditional_sanitize(text, sanitize, sanitize_options).to_str
64
- case options[:link].to_sym
63
+ text = case options[:link].to_sym
65
64
  when :all then conditional_html_safe(auto_link_email_addresses(auto_link_urls(text, options[:html], options, &block), options[:html], &block), sanitize)
66
65
  when :email_addresses then conditional_html_safe(auto_link_email_addresses(text, options[:html], &block), sanitize)
67
66
  when :urls then conditional_html_safe(auto_link_urls(text, options[:html], options, &block), sanitize)
68
67
  end
68
+ conditional_sanitize(text, sanitize, sanitize_options).to_str
69
69
  end
70
70
 
71
71
  private
metadata CHANGED
@@ -1,78 +1,86 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rails_autolink
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.7
3
+ version: !ruby/object:Gem::Version
4
+ hash: 7
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 8
10
+ version: 1.0.8
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Aaron Patterson
9
14
  - Juanjo Bazan
10
15
  - Akira Matsuda
11
16
  autorequire:
12
17
  bindir: bin
13
18
  cert_chain: []
14
- date: 2012-04-27 00:00:00.000000000 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
19
+
20
+ date: 2012-05-24 00:00:00 Z
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
17
23
  name: rails
18
- requirement: &2151842080 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ~>
22
- - !ruby/object:Gem::Version
23
- version: '3.1'
24
- type: :runtime
25
24
  prerelease: false
26
- version_requirements: *2151842080
27
- - !ruby/object:Gem::Dependency
28
- name: minitest
29
- requirement: &2151839760 !ruby/object:Gem::Requirement
25
+ requirement: &id001 !ruby/object:Gem::Requirement
30
26
  none: false
31
- requirements:
27
+ requirements:
32
28
  - - ~>
33
- - !ruby/object:Gem::Version
34
- version: '2.11'
35
- type: :development
36
- prerelease: false
37
- version_requirements: *2151839760
38
- - !ruby/object:Gem::Dependency
29
+ - !ruby/object:Gem::Version
30
+ hash: 5
31
+ segments:
32
+ - 3
33
+ - 1
34
+ version: "3.1"
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
39
38
  name: rdoc
40
- requirement: &2151836700 !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
42
- requirements:
42
+ requirements:
43
43
  - - ~>
44
- - !ruby/object:Gem::Version
45
- version: '3.10'
44
+ - !ruby/object:Gem::Version
45
+ hash: 19
46
+ segments:
47
+ - 3
48
+ - 10
49
+ version: "3.10"
46
50
  type: :development
47
- prerelease: false
48
- version_requirements: *2151836700
49
- - !ruby/object:Gem::Dependency
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
50
53
  name: hoe
51
- requirement: &2151834680 !ruby/object:Gem::Requirement
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
52
56
  none: false
53
- requirements:
57
+ requirements:
54
58
  - - ~>
55
- - !ruby/object:Gem::Version
56
- version: '2.13'
59
+ - !ruby/object:Gem::Version
60
+ hash: 7
61
+ segments:
62
+ - 3
63
+ - 0
64
+ version: "3.0"
57
65
  type: :development
58
- prerelease: false
59
- version_requirements: *2151834680
60
- description: ! 'This is an extraction of the `auto_link` method from rails. The `auto_link`
61
-
66
+ version_requirements: *id003
67
+ description: |-
68
+ This is an extraction of the `auto_link` method from rails. The `auto_link`
62
69
  method was removed from Rails in version Rails 3.1. This gem is meant to
63
-
64
- bridge the gap for people migrating.'
65
- email:
70
+ bridge the gap for people migrating.
71
+ email:
66
72
  - aaron@tenderlovemaking.com
67
73
  - jjbazan@gmail.com
68
74
  - ronnie@dio.jp
69
75
  executables: []
76
+
70
77
  extensions: []
71
- extra_rdoc_files:
72
- - Manifest.txt
78
+
79
+ extra_rdoc_files:
73
80
  - CHANGELOG.rdoc
81
+ - Manifest.txt
74
82
  - README.rdoc
75
- files:
83
+ files:
76
84
  - .autotest
77
85
  - CHANGELOG.rdoc
78
86
  - Gemfile
@@ -85,29 +93,37 @@ files:
85
93
  - .gemtest
86
94
  homepage: http://github.com/tenderlove/rails_autolink
87
95
  licenses: []
96
+
88
97
  post_install_message:
89
- rdoc_options:
98
+ rdoc_options:
90
99
  - --main
91
100
  - README.rdoc
92
- require_paths:
101
+ require_paths:
93
102
  - lib
94
- required_ruby_version: !ruby/object:Gem::Requirement
103
+ required_ruby_version: !ruby/object:Gem::Requirement
95
104
  none: false
96
- requirements:
97
- - - ! '>='
98
- - !ruby/object:Gem::Version
99
- version: '0'
100
- required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ hash: 3
109
+ segments:
110
+ - 0
111
+ version: "0"
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
113
  none: false
102
- requirements:
103
- - - ! '>='
104
- - !ruby/object:Gem::Version
105
- version: '0'
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ hash: 3
118
+ segments:
119
+ - 0
120
+ version: "0"
106
121
  requirements: []
122
+
107
123
  rubyforge_project: rails_autolink
108
- rubygems_version: 1.8.15
124
+ rubygems_version: 1.8.24
109
125
  signing_key:
110
126
  specification_version: 3
111
127
  summary: This is an extraction of the `auto_link` method from rails
112
- test_files:
128
+ test_files:
113
129
  - test/test_rails_autolink.rb