typogruby 1.0.17 → 1.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +27 -21
- data/HISTORY.md +5 -0
- data/lib/typogruby.rb +1 -1
- data/lib/version.rb +1 -1
- data/test/test_typogruby.rb +8 -3
- data/typogruby.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3faaea964e7ce6b76ea2def232a6e5eb8302a3ba
|
4
|
+
data.tar.gz: 71a76ed538de0804824c9859e4d5d693a1a3f55e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce85d0af751af1e8c3482302c365ee5b2b49744e1ecb223233a9e7f974a4ccf791b200ccdbccf763e32429d7065da632f04a9d2012a228ed8780a5a96c78635f
|
7
|
+
data.tar.gz: 28180701c3f7e28e16843031522f38392101dd81040c38347b06ca6771ac208322fbfe1f907a0876e3404aee94baeeb8efb3def9ff49eb162d0913aa4c484ce9
|
data/Gemfile.lock
CHANGED
@@ -1,41 +1,46 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
typogruby (1.0.
|
4
|
+
typogruby (1.0.18)
|
5
5
|
rubypants
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
aruba (0.
|
10
|
+
aruba (0.6.2)
|
11
11
|
childprocess (>= 0.3.6)
|
12
12
|
cucumber (>= 1.1.1)
|
13
13
|
rspec-expectations (>= 2.7.0)
|
14
14
|
bluecloth (2.2.0)
|
15
15
|
builder (3.2.2)
|
16
|
-
childprocess (0.
|
16
|
+
childprocess (0.5.5)
|
17
17
|
ffi (~> 1.0, >= 1.0.11)
|
18
|
-
cucumber (1.3.
|
18
|
+
cucumber (1.3.18)
|
19
19
|
builder (>= 2.1.2)
|
20
20
|
diff-lcs (>= 1.1.3)
|
21
|
-
gherkin (~> 2.12
|
22
|
-
multi_json (
|
23
|
-
multi_test (>= 0.
|
24
|
-
diff-lcs (1.2.
|
25
|
-
ffi (1.9.
|
26
|
-
gherkin (2.12.
|
21
|
+
gherkin (~> 2.12)
|
22
|
+
multi_json (>= 1.7.5, < 2.0)
|
23
|
+
multi_test (>= 0.1.1)
|
24
|
+
diff-lcs (1.2.5)
|
25
|
+
ffi (1.9.6)
|
26
|
+
gherkin (2.12.2)
|
27
27
|
multi_json (~> 1.3)
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
rspec-
|
34
|
-
rspec-
|
35
|
-
|
36
|
-
rspec-
|
37
|
-
|
38
|
-
rspec-
|
28
|
+
minitest (5.5.1)
|
29
|
+
multi_json (1.10.1)
|
30
|
+
multi_test (0.1.1)
|
31
|
+
rake (10.4.2)
|
32
|
+
rspec (3.1.0)
|
33
|
+
rspec-core (~> 3.1.0)
|
34
|
+
rspec-expectations (~> 3.1.0)
|
35
|
+
rspec-mocks (~> 3.1.0)
|
36
|
+
rspec-core (3.1.7)
|
37
|
+
rspec-support (~> 3.1.0)
|
38
|
+
rspec-expectations (3.1.2)
|
39
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
+
rspec-support (~> 3.1.0)
|
41
|
+
rspec-mocks (3.1.3)
|
42
|
+
rspec-support (~> 3.1.0)
|
43
|
+
rspec-support (3.1.2)
|
39
44
|
rubypants (0.2.0)
|
40
45
|
|
41
46
|
PLATFORMS
|
@@ -45,6 +50,7 @@ DEPENDENCIES
|
|
45
50
|
aruba
|
46
51
|
bluecloth
|
47
52
|
cucumber
|
53
|
+
minitest
|
48
54
|
rake
|
49
55
|
rspec
|
50
56
|
typogruby!
|
data/HISTORY.md
CHANGED
data/lib/typogruby.rb
CHANGED
@@ -295,7 +295,7 @@ private
|
|
295
295
|
end
|
296
296
|
|
297
297
|
# Array of all the senstive tags that should be ignored by all the text filters.
|
298
|
-
EXCLUDED_TAGS = %w{head pre code kbd math script textarea}
|
298
|
+
EXCLUDED_TAGS = %w{head pre code kbd math script textarea title}
|
299
299
|
|
300
300
|
extend self
|
301
301
|
end
|
data/lib/version.rb
CHANGED
data/test/test_typogruby.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
require '
|
3
|
-
require 'typogruby'
|
2
|
+
require 'minitest/autorun'
|
3
|
+
require File.expand_path('../../lib/typogruby', __FILE__)
|
4
4
|
|
5
|
-
class
|
5
|
+
class TypogrubyTest < Minitest::Test
|
6
6
|
include Typogruby
|
7
7
|
|
8
8
|
def test_should_replace_amps
|
@@ -92,9 +92,14 @@ class TestTypogruby < Test::Unit::TestCase
|
|
92
92
|
assert_equal '<h1><a href="#"></a></h1>', widont('<h1><a href="#"></a></h1>')
|
93
93
|
end
|
94
94
|
|
95
|
+
def test_should_ignore_caps_in_special_tags
|
96
|
+
assert_equal '<title>I like JSON</title>', caps('<title>I like JSON</title>')
|
97
|
+
end
|
98
|
+
|
95
99
|
def test_should_ignore_widows_in_special_tags
|
96
100
|
assert_equal '<div>Divs get no love!</div>', widont('<div>Divs get no love!</div>')
|
97
101
|
assert_equal '<pre>Neither do PREs</pre>', widont('<pre>Neither do PREs</pre>')
|
102
|
+
assert_equal '<title>or titles</title>', widont('<title>or titles</title>')
|
98
103
|
assert_equal '<textarea>nor text in textarea</textarea>', widont('<textarea>nor text in textarea</textarea>')
|
99
104
|
assert_equal "<script>\nreturn window;\n</script>", widont("<script>\nreturn window;\n</script>")
|
100
105
|
assert_equal '<div><p>But divs with paragraphs do!</p></div>', widont('<div><p>But divs with paragraphs do!</p></div>')
|
data/typogruby.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typogruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arjan van der Gaag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubypants
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: minitest
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
description: Improve web typography using various text filters. This gem prevents
|
98
112
|
widows and applies markup to ampersans, consecutive capitals and initial quotes.
|
99
113
|
email: arjan@arjanvandergaag.nl
|
@@ -147,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
161
|
version: '0'
|
148
162
|
requirements: []
|
149
163
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.4.
|
164
|
+
rubygems_version: 2.4.5
|
151
165
|
signing_key:
|
152
166
|
specification_version: 4
|
153
167
|
summary: Improves web typography like Django's Typogrify
|