RbST 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development, :test do
9
+ gem "jeweler", "~> 1.8.4"
10
+ gem "mocha", ">= 0"
11
+ gem "rdoc", "~> 3.12"
12
+ gem "shoulda", ">= 0"
13
+ end
@@ -0,0 +1,36 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activesupport (3.2.8)
5
+ i18n (~> 0.6)
6
+ multi_json (~> 1.0)
7
+ git (1.2.5)
8
+ i18n (0.6.1)
9
+ jeweler (1.8.4)
10
+ bundler (~> 1.0)
11
+ git (>= 1.2.5)
12
+ rake
13
+ rdoc
14
+ json (1.7.5)
15
+ metaclass (0.0.1)
16
+ mocha (0.12.7)
17
+ metaclass (~> 0.0.1)
18
+ multi_json (1.3.6)
19
+ rake (0.9.2.2)
20
+ rdoc (3.12)
21
+ json (~> 1.4)
22
+ shoulda (3.3.0)
23
+ shoulda-context (~> 1.0)
24
+ shoulda-matchers (~> 1.4)
25
+ shoulda-context (1.0.0)
26
+ shoulda-matchers (1.4.0)
27
+ activesupport (>= 3.0.0)
28
+
29
+ PLATFORMS
30
+ ruby
31
+
32
+ DEPENDENCIES
33
+ jeweler (~> 1.8.4)
34
+ mocha
35
+ rdoc (~> 3.12)
36
+ shoulda
@@ -6,7 +6,7 @@ A simple Ruby wrapper for processing reStructuredText via Python's Docutils.
6
6
 
7
7
  Python 2.3+ is required.
8
8
 
9
- RbST is available on [gemcutter](http://gemcutter.org/gems/RbST).
9
+ RbST is available on [RubyGems.org](http://gemcutter.org/gems/RbST).
10
10
 
11
11
  gem install RbST
12
12
 
@@ -68,4 +68,4 @@ For more information on reStructuredText, see the
68
68
 
69
69
  ## Copyright
70
70
 
71
- Copyright (c) 2009 William Melody. See LICENSE for details.
71
+ Copyright (c) 2009-2012 William Melody. See LICENSE for details.
data/Rakefile CHANGED
@@ -1,22 +1,29 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
2
12
  require 'rake'
3
13
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "RbST"
8
- gem.summary = %Q{A simple Ruby wrapper for processing reStructuredText via Python's Docutils}
9
- gem.description = %Q{A simple Ruby wrapper for processing reStructuredText via Python's Docutils}
10
- gem.email = "wmelody@gmail.com"
11
- gem.homepage = "http://rdoc.info/projects/alphabetum/rbst"
12
- gem.authors = ["William Melody"]
13
- gem.add_development_dependency "shoulda"
14
- gem.add_development_dependency "mocha"
15
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
- end
17
- rescue LoadError
18
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "RbST"
18
+ gem.homepage = "http://github.com/alphabetum/rbst"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{A simple Ruby wrapper for processing reStructuredText via Python's Docutils}
21
+ gem.description = %Q{A simple Ruby wrapper for processing reStructuredText via Python's Docutils}
22
+ gem.email = "hi@williammelody.com"
23
+ gem.authors = ["William Melody"]
24
+ # dependencies defined in Gemfile
19
25
  end
26
+ Jeweler::RubygemsDotOrgTasks.new
20
27
 
21
28
  require 'rake/testtask'
22
29
  Rake::TestTask.new(:test) do |test|
@@ -25,33 +32,14 @@ Rake::TestTask.new(:test) do |test|
25
32
  test.verbose = true
26
33
  end
27
34
 
28
- begin
29
- require 'rcov/rcovtask'
30
- Rcov::RcovTask.new do |test|
31
- test.libs << 'test'
32
- test.pattern = 'test/**/test_*.rb'
33
- test.verbose = true
34
- end
35
- rescue LoadError
36
- task :rcov do
37
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
38
- end
39
- end
40
-
41
- task :test => :check_dependencies
42
-
43
35
  task :default => :test
44
36
 
45
- require 'rake/rdoctask'
37
+ require 'rdoc/task'
46
38
  Rake::RDocTask.new do |rdoc|
47
- if File.exist?('VERSION')
48
- version = File.read('VERSION')
49
- else
50
- version = ""
51
- end
39
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
52
40
 
53
41
  rdoc.rdoc_dir = 'rdoc'
54
42
  rdoc.title = "RbST #{version}"
55
43
  rdoc.rdoc_files.include('README*')
56
44
  rdoc.rdoc_files.include('lib/**/*.rb')
57
- end
45
+ end
@@ -1,64 +1,66 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{RbST}
8
- s.version = "0.1.3"
7
+ s.name = "RbST"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["William Melody"]
12
- s.date = %q{2010-05-12}
13
- s.description = %q{A simple Ruby wrapper for processing reStructuredText via Python's Docutils}
14
- s.email = %q{wmelody@gmail.com}
12
+ s.date = "2012-11-01"
13
+ s.description = "A simple Ruby wrapper for processing reStructuredText via Python's Docutils"
14
+ s.email = "hi@williammelody.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.markdown"
17
+ "README.markdown"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.markdown",
24
- "Rakefile",
25
- "RbST.gemspec",
26
- "VERSION",
27
- "lib/rbst.rb",
28
- "lib/rst2parts/__init__.py",
29
- "lib/rst2parts/rst2html.py",
30
- "lib/rst2parts/rst2latex.py",
31
- "lib/rst2parts/transform.py",
32
- "test/files/test.html",
33
- "test/files/test.latex",
34
- "test/files/test.rst",
35
- "test/test_helper.rb",
36
- "test/test_rbst.rb"
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE",
24
+ "README.markdown",
25
+ "Rakefile",
26
+ "RbST.gemspec",
27
+ "VERSION",
28
+ "lib/rbst.rb",
29
+ "lib/rst2parts/__init__.py",
30
+ "lib/rst2parts/rst2html.py",
31
+ "lib/rst2parts/rst2latex.py",
32
+ "lib/rst2parts/transform.py",
33
+ "test/files/test.html",
34
+ "test/files/test.latex",
35
+ "test/files/test.rst",
36
+ "test/helper.rb",
37
+ "test/test_rbst.rb"
37
38
  ]
38
- s.homepage = %q{http://rdoc.info/projects/alphabetum/rbst}
39
- s.rdoc_options = ["--charset=UTF-8"]
39
+ s.homepage = "http://github.com/alphabetum/rbst"
40
+ s.licenses = ["MIT"]
40
41
  s.require_paths = ["lib"]
41
- s.rubygems_version = %q{1.3.6}
42
- s.summary = %q{A simple Ruby wrapper for processing reStructuredText via Python's Docutils}
43
- s.test_files = [
44
- "test/test_helper.rb",
45
- "test/test_rbst.rb"
46
- ]
42
+ s.rubygems_version = "1.8.24"
43
+ s.summary = "A simple Ruby wrapper for processing reStructuredText via Python's Docutils"
47
44
 
48
45
  if s.respond_to? :specification_version then
49
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
50
46
  s.specification_version = 3
51
47
 
52
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
53
- s.add_development_dependency(%q<shoulda>, [">= 0"])
48
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
54
50
  s.add_development_dependency(%q<mocha>, [">= 0"])
51
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
52
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
55
53
  else
56
- s.add_dependency(%q<shoulda>, [">= 0"])
54
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
57
55
  s.add_dependency(%q<mocha>, [">= 0"])
56
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
57
+ s.add_dependency(%q<shoulda>, [">= 0"])
58
58
  end
59
59
  else
60
- s.add_dependency(%q<shoulda>, [">= 0"])
60
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
61
61
  s.add_dependency(%q<mocha>, [">= 0"])
62
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
63
+ s.add_dependency(%q<shoulda>, [">= 0"])
62
64
  end
63
65
  end
64
66
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.2.0
@@ -0,0 +1,19 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'shoulda'
12
+ require 'mocha'
13
+
14
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
15
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
16
+ require 'rbst'
17
+
18
+ class Test::Unit::TestCase
19
+ end
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require 'helper'
2
2
  require 'mocha'
3
3
 
4
4
  class TestRbST < Test::Unit::TestCase
metadata CHANGED
@@ -1,58 +1,91 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: RbST
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 3
9
- version: 0.1.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - William Melody
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-05-12 00:00:00 -05:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: shoulda
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
12
+ date: 2012-11-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: jeweler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 1.8.4
30
22
  type: :development
31
- version_requirements: *id001
32
- - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.8.4
30
+ - !ruby/object:Gem::Dependency
33
31
  name: mocha
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
34
39
  prerelease: false
35
- requirement: &id002 !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- segments:
40
- - 0
41
- version: "0"
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rdoc
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '3.12'
42
54
  type: :development
43
- version_requirements: *id002
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.12'
62
+ - !ruby/object:Gem::Dependency
63
+ name: shoulda
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
44
78
  description: A simple Ruby wrapper for processing reStructuredText via Python's Docutils
45
- email: wmelody@gmail.com
79
+ email: hi@williammelody.com
46
80
  executables: []
47
-
48
81
  extensions: []
49
-
50
- extra_rdoc_files:
82
+ extra_rdoc_files:
51
83
  - LICENSE
52
84
  - README.markdown
53
- files:
85
+ files:
54
86
  - .document
55
- - .gitignore
87
+ - Gemfile
88
+ - Gemfile.lock
56
89
  - LICENSE
57
90
  - README.markdown
58
91
  - Rakefile
@@ -66,38 +99,34 @@ files:
66
99
  - test/files/test.html
67
100
  - test/files/test.latex
68
101
  - test/files/test.rst
69
- - test/test_helper.rb
102
+ - test/helper.rb
70
103
  - test/test_rbst.rb
71
- has_rdoc: true
72
- homepage: http://rdoc.info/projects/alphabetum/rbst
73
- licenses: []
74
-
104
+ homepage: http://github.com/alphabetum/rbst
105
+ licenses:
106
+ - MIT
75
107
  post_install_message:
76
- rdoc_options:
77
- - --charset=UTF-8
78
- require_paths:
108
+ rdoc_options: []
109
+ require_paths:
79
110
  - lib
80
- required_ruby_version: !ruby/object:Gem::Requirement
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- segments:
111
+ required_ruby_version: !ruby/object:Gem::Requirement
112
+ none: false
113
+ requirements:
114
+ - - ! '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ segments:
85
118
  - 0
86
- version: "0"
87
- required_rubygems_version: !ruby/object:Gem::Requirement
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- segments:
92
- - 0
93
- version: "0"
119
+ hash: 679996262089713862
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
94
126
  requirements: []
95
-
96
127
  rubyforge_project:
97
- rubygems_version: 1.3.6
128
+ rubygems_version: 1.8.24
98
129
  signing_key:
99
130
  specification_version: 3
100
131
  summary: A simple Ruby wrapper for processing reStructuredText via Python's Docutils
101
- test_files:
102
- - test/test_helper.rb
103
- - test/test_rbst.rb
132
+ test_files: []
data/.gitignore DELETED
@@ -1,6 +0,0 @@
1
- *.sw?
2
- .DS_Store
3
- coverage
4
- rdoc
5
- pkg
6
- *.pyc
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- require 'test/unit'
3
- require 'shoulda'
4
-
5
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
- $LOAD_PATH.unshift(File.dirname(__FILE__))
7
- require 'rbst'
8
-
9
- class Test::Unit::TestCase
10
- end