rubypants-unicode 0.2.1 → 0.2.3
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/Rakefile
CHANGED
@@ -1,56 +1,16 @@
|
|
1
|
-
|
2
|
-
require
|
3
|
-
require 'rake/gempackagetask'
|
1
|
+
require "rdoc/task"
|
2
|
+
require "rake/testtask"
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
task :default => [:test]
|
8
|
-
|
9
|
-
desc "Do predistribution stuff"
|
10
|
-
task :predist => [:doc]
|
11
|
-
|
12
|
-
|
13
|
-
desc "Run all the tests"
|
14
|
-
task :test do
|
15
|
-
ruby 'test_rubypants.rb'
|
16
|
-
end
|
17
|
-
|
18
|
-
desc "Make an archive as .tar.gz"
|
19
|
-
task :dist => :test do
|
20
|
-
system "darcs dist -d rubypants#{get_darcs_tree_version}"
|
4
|
+
Rake::TestTask.new do |t|
|
5
|
+
t.libs << 'test'
|
21
6
|
end
|
22
7
|
|
23
|
-
|
24
8
|
desc "Generate RDoc documentation"
|
25
9
|
Rake::RDocTask.new(:doc) do |rdoc|
|
26
|
-
|
27
|
-
|
28
|
-
|
10
|
+
rdoc.options << '--line-numbers --inline-source --all'
|
11
|
+
rdoc.rdoc_files.include 'README.md'
|
12
|
+
rdoc.rdoc_files.include 'lib'
|
29
13
|
end
|
30
14
|
|
31
|
-
|
32
|
-
|
33
|
-
def get_darcs_tree_version
|
34
|
-
return "" unless File.directory? "_darcs"
|
35
|
-
|
36
|
-
changes = `darcs changes`
|
37
|
-
count = 0
|
38
|
-
tag = "0.0"
|
39
|
-
|
40
|
-
changes.each("\n\n") { |change|
|
41
|
-
head, title, desc = change.split("\n", 3)
|
42
|
-
|
43
|
-
if title =~ /^ \*/
|
44
|
-
# Normal change.
|
45
|
-
count += 1
|
46
|
-
elsif title =~ /tagged (.*)/
|
47
|
-
# Tag. We look for these.
|
48
|
-
tag = $1
|
49
|
-
break
|
50
|
-
else
|
51
|
-
warn "Unparsable change: #{change}"
|
52
|
-
end
|
53
|
-
}
|
54
|
-
|
55
|
-
"-" + tag + "." + count.to_s
|
56
|
-
end
|
15
|
+
desc "Run the tests"
|
16
|
+
task :default => :test
|
@@ -1,11 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
|
3
2
|
require 'test/unit'
|
4
|
-
require '
|
3
|
+
require 'rubypants-unicode'
|
5
4
|
|
6
5
|
# Test EVERYTHING against SmartyPants.pl output!
|
7
|
-
|
8
|
-
|
9
6
|
class TestRubyPants < Test::Unit::TestCase
|
10
7
|
def assert_rp_equal(str, orig, options=[2])
|
11
8
|
assert_equal orig, RubyPants.new(str, options).to_html
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubypants-unicode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Chris Chapman
|
9
8
|
- Christian Neukirchen
|
9
|
+
- Chris Chapman
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
@@ -42,11 +42,12 @@ extensions: []
|
|
42
42
|
extra_rdoc_files:
|
43
43
|
- README.md
|
44
44
|
files:
|
45
|
-
-
|
46
|
-
- rubypants.rb
|
47
|
-
-
|
45
|
+
- lib/rubypants-unicode/rubypants-unicode.rb
|
46
|
+
- lib/rubypants-unicode/version.rb
|
47
|
+
- lib/rubypants-unicode.rb
|
48
48
|
- README.md
|
49
49
|
- Rakefile
|
50
|
+
- test/test_rubypants.rb
|
50
51
|
homepage: https://github.com/cdchapman/rubypants-unicode
|
51
52
|
licenses: []
|
52
53
|
post_install_message:
|
@@ -57,9 +58,9 @@ rdoc_options:
|
|
57
58
|
- --inline-source
|
58
59
|
- --all
|
59
60
|
- --exclude
|
60
|
-
-
|
61
|
+
- test
|
61
62
|
require_paths:
|
62
|
-
-
|
63
|
+
- lib
|
63
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
65
|
none: false
|
65
66
|
requirements:
|
@@ -79,4 +80,4 @@ signing_key:
|
|
79
80
|
specification_version: 3
|
80
81
|
summary: RubyPants-Unicode is a Ruby port of the smart-quotes library SmartyPants.
|
81
82
|
test_files:
|
82
|
-
- test_rubypants.rb
|
83
|
+
- test/test_rubypants.rb
|