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
- # Rakefile for rubypants -*-ruby-*-
2
- require 'rake/rdoctask'
3
- require 'rake/gempackagetask'
1
+ require "rdoc/task"
2
+ require "rake/testtask"
4
3
 
5
-
6
- desc "Run all the tests"
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
- rdoc.options << '--line-numbers --inline-source --all'
27
- rdoc.rdoc_files.include 'README'
28
- rdoc.rdoc_files.include 'rubypants.rb'
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
- # Helper to retrieve the "revision number" of the darcs tree.
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
@@ -0,0 +1,2 @@
1
+ require 'rubypants-unicode/rubypants-unicode'
2
+ require 'rubypants-unicode/version'
@@ -178,7 +178,6 @@
178
178
 
179
179
 
180
180
  class RubyPants < String
181
- VERSION = "0.2"
182
181
 
183
182
  # Create a new RubyPants instance with the text in +string+.
184
183
  #
@@ -0,0 +1,3 @@
1
+ class RubyPants
2
+ VERSION = "0.2.3"
3
+ end
@@ -1,11 +1,8 @@
1
1
  # encoding: utf-8
2
-
3
2
  require 'test/unit'
4
- require './rubypants'
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.1
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
- - install.rb
46
- - rubypants.rb
47
- - test_rubypants.rb
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
- - test_rubypants.rb
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
data/install.rb DELETED
@@ -1,9 +0,0 @@
1
- # Install RubyPants.
2
-
3
- require "rbconfig"
4
- require "fileutils"
5
-
6
- source = "rubypants.rb"
7
- dest = File.join(Config::CONFIG["sitelibdir"], source)
8
-
9
- FileUtils.install(source, dest, :mode => 0644, :verbose => true)