test-unit-rails 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -4,7 +4,8 @@
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
7
- # License version 2.1 as published by the Free Software Foundation.
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
8
9
  #
9
10
  # This library is distributed in the hope that it will be useful,
10
11
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -13,10 +14,8 @@
13
14
  #
14
15
  # You should have received a copy of the GNU Lesser General Public
15
16
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
18
 
18
- gem "rails"
19
- gem "test-unit"
20
- gem "test-unit-notify"
21
- gem "test-unit-capybara"
22
- gem "test-unit-rr"
19
+ source :rubygems
20
+
21
+ gemspec
@@ -6,7 +6,7 @@ h2. Description
6
6
 
7
7
  test-unit-rails is a Rails adapter for test-unit 2. You can use full test-unit 2 features, "RR":https://rubygems.org/gems/rr integration and "Capybara":https://rubygems.org/gems/capybara integration with test-unit-rails.
8
8
 
9
- Rails supports Test::Unit bundled in Ruby 1.8 and MiniTest but doesn't suppot test-unit 2. Rails with test-unit 2 works but is not fully worked.
9
+ Rails supports Test::Unit bundled in Ruby 1.8 and MiniTest but doesn't support test-unit 2. Rails with test-unit 2 works but is not fully worked.
10
10
 
11
11
  h2. Install
12
12
 
data/Rakefile CHANGED
@@ -4,7 +4,8 @@
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
7
- # License version 2.1 as published by the Free Software Foundation.
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
8
9
  #
9
10
  # This library is distributed in the hope that it will be useful,
10
11
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -13,58 +14,33 @@
13
14
  #
14
15
  # You should have received a copy of the GNU Lesser General Public
15
16
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
18
 
18
- require 'pathname'
19
-
20
- require './lib/test/unit/rails/version.rb'
19
+ require './lib/test/unit/rails/version'
21
20
 
22
21
  require 'rubygems'
23
22
  require 'rubygems/package_task'
24
23
  require 'yard'
25
- require 'jeweler'
24
+ require 'bundler/gem_helper'
26
25
  require 'packnga'
27
26
 
28
- def cleanup_white_space(entry)
29
- entry.gsub(/(\A\n+|\n+\z)/, '') + "\n"
30
- end
27
+ base_dir = File.join(File.dirname(__FILE__))
31
28
 
32
- ENV["VERSION"] ||= Test::Unit::Rails::VERSION
33
- version = ENV["VERSION"].dup
34
- spec = nil
35
- Jeweler::Tasks.new do |_spec|
36
- spec = _spec
37
- spec.name = "test-unit-rails"
38
- spec.version = version
39
- spec.rubyforge_project = "test-unit"
40
- spec.homepage = "http://test-unit.rubyforge.org/"
41
- spec.authors = ["Kouhei Sutou"]
42
- spec.email = ["kou@clear-code.com"]
43
- entries = File.read("README.textile").split(/^h2\.\s(.*)$/)
44
- description = cleanup_white_space(entries[entries.index("Description") + 1])
45
- spec.summary, spec.description, = description.split(/\n\n+/, 3)
46
- spec.license = "LGPLv2"
47
- spec.files = FileList["{lib,benchmark,misc}/**/*.rb",
48
- "bin/*",
49
- "README",
50
- "COPYING",
51
- "Rakefile",
52
- "Gemfile"]
53
- spec.test_files = FileList["test/**/*.rb"]
29
+ class Bundler::GemHelper
30
+ def version_tag
31
+ "#{version}"
32
+ end
54
33
  end
55
34
 
56
- Rake::Task["release"].prerequisites.clear
57
- Jeweler::RubygemsDotOrgTasks.new do
58
- end
35
+ helper = Bundler::GemHelper.new(base_dir)
36
+ helper.install
37
+ spec = helper.gemspec
59
38
 
60
39
  Gem::PackageTask.new(spec) do |pkg|
61
40
  pkg.need_tar_gz = true
62
41
  end
63
42
 
64
43
  document_task = Packnga::DocumentTask.new(spec) do |t|
65
- t.yard do |yard_task|
66
- yard_task.options += ["--markup", "textile"]
67
- end
68
44
  end
69
45
 
70
46
  Packnga::ReleaseTask.new(spec) do |task|
@@ -0,0 +1,12 @@
1
+ h1. News
2
+
3
+ h2(#1-0-1). 1.0.1 - 2012-06-03
4
+
5
+ h3. Improvements
6
+
7
+ * Extracted ActiveSupport related codes into test-unit-activesupport
8
+ gem and depended on it.
9
+
10
+ h2(#1-0-0). 1.0.0 - 2012-1-2
11
+
12
+ The first release!!!
@@ -1,10 +1,11 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 20121 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
7
- # License version 2.1 as published by the Free Software Foundation.
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
8
9
  #
9
10
  # This library is distributed in the hope that it will be useful,
10
11
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -13,35 +14,15 @@
13
14
  #
14
15
  # You should have received a copy of the GNU Lesser General Public
15
16
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
18
 
18
19
  require "test/unit/rails/version"
19
20
 
20
- require "test/unit"
21
+ require "test/unit/active_support"
21
22
  require "test/unit/notify"
22
23
  require "test/unit/rr"
23
24
  require "test/unit/capybara"
24
25
 
25
- require "active_support/testing/setup_and_teardown"
26
- module ActiveSupport::Testing::SetupAndTeardown
27
- module ClassMethods
28
- remove_method :setup
29
- remove_method :teardown
30
- end
31
-
32
- if const_defined?(:ForClassicTestUnit)
33
- module ForClassicTestUnit
34
- remove_method :run
35
- end
36
- end
37
- end
38
-
39
- unless ActiveSupport::Testing::SetupAndTeardown.const_defined?(:ForClassicTestUnit)
40
- module MiniTest
41
- Assertion = Test::Unit::Assertions
42
- end
43
- end
44
-
45
26
  require "rails/test_help"
46
27
 
47
28
  require "capybara/rails"
@@ -1,10 +1,11 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 20121 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
7
- # License version 2.1 as published by the Free Software Foundation.
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
8
9
  #
9
10
  # This library is distributed in the hope that it will be useful,
10
11
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -13,12 +14,12 @@
13
14
  #
14
15
  # You should have received a copy of the GNU Lesser General Public
15
16
  # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
18
 
18
19
  module Test
19
20
  module Unit
20
21
  module Rails
21
- VERSION = "1.0.0"
22
+ VERSION = "1.0.1"
22
23
  end
23
24
  end
24
25
  end
metadata CHANGED
@@ -1,113 +1,186 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: test-unit-rails
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 21
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 1
10
+ version: 1.0.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Kouhei Sutou
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-01-02 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-06-03 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: rails
16
- requirement: &15101840 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
22
32
  type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: test-unit-activesupport
23
36
  prerelease: false
24
- version_requirements: *15101840
25
- - !ruby/object:Gem::Dependency
26
- name: test-unit
27
- requirement: &15100300 !ruby/object:Gem::Requirement
37
+ requirement: &id002 !ruby/object:Gem::Requirement
28
38
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
33
46
  type: :runtime
34
- prerelease: false
35
- version_requirements: *15100300
36
- - !ruby/object:Gem::Dependency
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
37
49
  name: test-unit-notify
38
- requirement: &15098960 !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
39
52
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
44
60
  type: :runtime
45
- prerelease: false
46
- version_requirements: *15098960
47
- - !ruby/object:Gem::Dependency
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
48
63
  name: test-unit-capybara
49
- requirement: &15097160 !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
50
66
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ hash: 3
71
+ segments:
72
+ - 0
73
+ version: "0"
55
74
  type: :runtime
56
- prerelease: false
57
- version_requirements: *15097160
58
- - !ruby/object:Gem::Dependency
75
+ version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
59
77
  name: test-unit-rr
60
- requirement: &15095900 !ruby/object:Gem::Requirement
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
61
80
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ hash: 3
85
+ segments:
86
+ - 0
87
+ version: "0"
66
88
  type: :runtime
89
+ version_requirements: *id005
90
+ - !ruby/object:Gem::Dependency
91
+ name: bundler
92
+ prerelease: false
93
+ requirement: &id006 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ hash: 3
99
+ segments:
100
+ - 0
101
+ version: "0"
102
+ type: :development
103
+ version_requirements: *id006
104
+ - !ruby/object:Gem::Dependency
105
+ name: rake
106
+ prerelease: false
107
+ requirement: &id007 !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ hash: 3
113
+ segments:
114
+ - 0
115
+ version: "0"
116
+ type: :development
117
+ version_requirements: *id007
118
+ - !ruby/object:Gem::Dependency
119
+ name: packnga
67
120
  prerelease: false
68
- version_requirements: *15095900
69
- description: ! 'Rails supports Test::Unit bundled in Ruby 1.8 and MiniTest but doesn''t
70
- suppot test-unit 2. Rails with test-unit 2 works but is not fully worked.
121
+ requirement: &id008 !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ hash: 3
127
+ segments:
128
+ - 0
129
+ version: "0"
130
+ type: :development
131
+ version_requirements: *id008
132
+ description: |
133
+ Rails supports Test::Unit bundled in Ruby 1.8 and MiniTest but doesn't support test-unit 2. Rails with test-unit 2 works but is not fully worked.
71
134
 
72
- '
73
- email:
135
+ email:
74
136
  - kou@clear-code.com
75
137
  executables: []
138
+
76
139
  extensions: []
77
- extra_rdoc_files:
78
- - README.textile
79
- files:
140
+
141
+ extra_rdoc_files: []
142
+
143
+ files:
80
144
  - COPYING
81
145
  - Gemfile
82
146
  - Rakefile
83
- - lib/test/unit/rails.rb
84
- - lib/test/unit/rails/version.rb
85
147
  - README.textile
86
- homepage: http://test-unit.rubyforge.org/
87
- licenses:
88
- - LGPLv2
148
+ - lib/test/unit/rails/version.rb
149
+ - lib/test/unit/rails.rb
150
+ - doc/text/news.textile
151
+ homepage: http://test-unit.rubyforge.org/#test-unit-rails
152
+ licenses:
153
+ - LGPLv2 or later
89
154
  post_install_message:
90
155
  rdoc_options: []
91
- require_paths:
156
+
157
+ require_paths:
92
158
  - lib
93
- required_ruby_version: !ruby/object:Gem::Requirement
159
+ required_ruby_version: !ruby/object:Gem::Requirement
94
160
  none: false
95
- requirements:
96
- - - ! '>='
97
- - !ruby/object:Gem::Version
98
- version: '0'
99
- required_rubygems_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ hash: 3
165
+ segments:
166
+ - 0
167
+ version: "0"
168
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
169
  none: false
101
- requirements:
102
- - - ! '>='
103
- - !ruby/object:Gem::Version
104
- version: '0'
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ hash: 3
174
+ segments:
175
+ - 0
176
+ version: "0"
105
177
  requirements: []
178
+
106
179
  rubyforge_project: test-unit
107
- rubygems_version: 1.8.11
180
+ rubygems_version: 1.8.15
108
181
  signing_key:
109
182
  specification_version: 3
110
- summary: test-unit-rails is a Rails adapter for test-unit 2. You can use full test-unit
111
- 2 features, "RR":https://rubygems.org/gems/rr integration and "Capybara":https://rubygems.org/gems/capybara
112
- integration with test-unit-rails.
183
+ summary: test-unit-rails is a Rails adapter for test-unit 2. You can use full test-unit 2 features, "RR":https://rubygems.org/gems/rr integration and "Capybara":https://rubygems.org/gems/capybara integration with test-unit-rails.
113
184
  test_files: []
185
+
186
+ has_rdoc: