citron 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ testcase Array do
2
+
3
+ context '#join' do
4
+
5
+ test "call Array#join" do
6
+ [1,2,3].join.assert == "123"
7
+ end
8
+
9
+ test "unit should be class and method" do
10
+ @_parent.instance_variable_get(:@_case).unit.assert == "Array#join"
11
+ end
12
+
13
+ end
14
+
15
+ end
metadata CHANGED
@@ -1,147 +1,122 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: citron
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
4
5
  prerelease:
5
- version: 0.2.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Thomas Sawyer
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-08-12 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: test
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-02-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rubytest
16
+ requirement: &22941000 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
24
22
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: ae
28
23
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *22941000
25
+ - !ruby/object:Gem::Dependency
26
+ name: ae
27
+ requirement: &22940460 !ruby/object:Gem::Requirement
30
28
  none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
35
33
  type: :runtime
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: detroit
39
34
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *22940460
36
+ - !ruby/object:Gem::Dependency
37
+ name: detroit
38
+ requirement: &22939960 !ruby/object:Gem::Requirement
41
39
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
46
44
  type: :development
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: reap
50
45
  prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *22939960
47
+ - !ruby/object:Gem::Dependency
48
+ name: reap
49
+ requirement: &22939440 !ruby/object:Gem::Requirement
52
50
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
57
55
  type: :development
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
60
- name: qed
61
56
  prerelease: false
62
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *22939440
58
+ - !ruby/object:Gem::Dependency
59
+ name: qed
60
+ requirement: &22938940 !ruby/object:Gem::Requirement
63
61
  none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
68
66
  type: :development
69
- version_requirements: *id005
70
- description: Citron is a unit testing framework with a classic test-case/test-unit style.
71
- email:
67
+ prerelease: false
68
+ version_requirements: *22938940
69
+ description: Citron is a unit testing framework with a classic test-case/test-unit
70
+ style.
71
+ email:
72
72
  - transfire@gmail.com
73
73
  executables: []
74
-
75
74
  extensions: []
76
-
77
- extra_rdoc_files:
75
+ extra_rdoc_files:
78
76
  - LICENSE.txt
79
- - HISTORY.rdoc
80
- - README.rdoc
81
- - COPYING.rdoc
82
- files:
83
- - .gemspec
84
- - .gitignore
77
+ - COPYING.md
78
+ - HISTORY.md
79
+ - README.md
80
+ files:
85
81
  - .ruby
86
- - .yardopts
87
- - Assembly
88
- - COPYING.rdoc
89
- - HISTORY.rdoc
90
- - LICENSE.txt
91
- - MANIFEST
92
- - PROFILE
93
- - README.rdoc
94
- - VERSION
95
- - bm/minitest_example.rb
96
- - lib/citron.rb
97
- - lib/citron/test_advice.rb
98
82
  - lib/citron/test_case.rb
99
83
  - lib/citron/test_proc.rb
100
84
  - lib/citron/test_setup.rb
85
+ - lib/citron/test_teardown.rb
101
86
  - lib/citron/world.rb
102
- - site/assets/images/citrons-are-good.png
103
- - site/assets/images/cut-citron.png
104
- - site/assets/images/forkme.png
105
- - site/assets/images/github-logo.png
106
- - site/assets/images/opensource.png
107
- - site/assets/images/ruby-logo.png
108
- - site/assets/images/skin.jpg
109
- - site/assets/images/skin1.jpg
110
- - site/assets/images/tap.png
111
- - site/assets/images/title.png
112
- - site/assets/images/title2.png
113
- - site/assets/styles/reset.css
114
- - site/assets/styles/site.css
115
- - site/index.html
116
- - try/.test
117
- - try/case_example.rb
118
- - try/case_setup.rb
87
+ - lib/citron.rb
88
+ - test/case_basic.rb
89
+ - test/case_parametric_tests.rb
90
+ - test/case_scope.rb
91
+ - test/case_setup.rb
92
+ - test/case_unit.rb
93
+ - COPYING.md
94
+ - LICENSE.txt
95
+ - HISTORY.md
96
+ - README.md
119
97
  homepage: http://rubyworks.github.com/citron
120
- licenses: []
121
-
98
+ licenses:
99
+ - BSD-2-Clause
122
100
  post_install_message:
123
101
  rdoc_options: []
124
-
125
- require_paths:
102
+ require_paths:
126
103
  - lib
127
- required_ruby_version: !ruby/object:Gem::Requirement
104
+ required_ruby_version: !ruby/object:Gem::Requirement
128
105
  none: false
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: "0"
133
- required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
111
  none: false
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: "0"
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
139
116
  requirements: []
140
-
141
117
  rubyforge_project:
142
- rubygems_version: 1.8.2
118
+ rubygems_version: 1.8.11
143
119
  signing_key:
144
120
  specification_version: 3
145
121
  summary: Classic Unit-style Test Framework
146
122
  test_files: []
147
-
data/.gemspec DELETED
@@ -1,152 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require 'yaml'
4
-
5
- Gem::Specification.new do |gemspec|
6
-
7
- manifest = Dir.glob('manifest{,.txt)', File::FNM_CASEFOLD).first
8
-
9
- scm = case
10
- when File.directory?('.git')
11
- :git
12
- end
13
-
14
- files = case
15
- when manifest
16
- File.readlines(manifest).
17
- map{ |line| line.srtip }.
18
- reject{ |line| line.empty? || line[0,1] == '#' }
19
- when scm == :git
20
- `git ls-files -z`.split("\0")
21
- else
22
- Dir.glob('{**/}{.*,*}') # TODO: be more specific using standard locations ?
23
- end.select{ |path| File.file?(path) }
24
-
25
- patterns = {
26
- :bin_files => 'bin/*',
27
- :lib_files => 'lib/{**/}*.rb',
28
- :ext_files => 'ext/{**/}extconf.rb',
29
- :doc_files => '*.{txt,rdoc,md,markdown,tt,textile}',
30
- :test_files => '{test/{**/}*_test.rb,spec/{**/}*_spec.rb}'
31
- }
32
-
33
- glob_files = lambda { |pattern|
34
- Dir.glob(pattern).select { |path|
35
- File.file?(path) && files.include?(path)
36
- }
37
- }
38
-
39
- #files = glob_files[patterns[:files]]
40
-
41
- executables = glob_files[patterns[:bin_files]].map do |path|
42
- File.basename(path)
43
- end
44
-
45
- extensions = glob_files[patterns[:ext_files]].map do |path|
46
- File.basename(path)
47
- end
48
-
49
- metadata = YAML.load_file('.ruby')
50
-
51
- # build-out the gemspec
52
-
53
- case metadata['revision']
54
- when 0
55
- gemspec.name = metadata['name']
56
- gemspec.version = metadata['version']
57
- gemspec.summary = metadata['summary']
58
- gemspec.description = metadata['description']
59
-
60
- metadata['authors'].each do |author|
61
- gemspec.authors << author['name']
62
-
63
- if author.has_key?('email')
64
- if gemspec.email
65
- gemspec.email << author['email']
66
- else
67
- gemspec.email = [author['email']]
68
- end
69
- end
70
- end
71
-
72
- gemspec.licenses = metadata['licenses']
73
-
74
- metadata['requirements'].each do |req|
75
- name = req['name']
76
- version = req['version']
77
- groups = req['groups'] || []
78
-
79
- if md = /^(.*?)([+-~])$/.match(version)
80
- version = case md[2]
81
- when '+' then ">= #{$1}"
82
- when '-' then "< #{$1}"
83
- when '~' then "~> #{$1}"
84
- else version
85
- end
86
- end
87
-
88
- #development = req['development']
89
- #if development
90
- # # populate development dependencies
91
- # if gemspec.respond_to?(:add_development_dependency)
92
- # gemspec.add_development_dependency(name,*version)
93
- # else
94
- # gemspec.add_dependency(name,*version)
95
- # end
96
- #else
97
- # # populate runtime dependencies
98
- # if gemspec.respond_to?(:add_runtime_dependency)
99
- # gemspec.add_runtime_dependency(name,*version)
100
- # else
101
- # gemspec.add_dependency(name,*version)
102
- # end
103
- #end
104
-
105
- if groups.empty? or groups.include?('runtime')
106
- # populate runtime dependencies
107
- if gemspec.respond_to?(:add_runtime_dependency)
108
- gemspec.add_runtime_dependency(name,*version)
109
- else
110
- gemspec.add_dependency(name,*version)
111
- end
112
- else
113
- # populate development dependencies
114
- if gemspec.respond_to?(:add_development_dependency)
115
- gemspec.add_development_dependency(name,*version)
116
- else
117
- gemspec.add_dependency(name,*version)
118
- end
119
- end
120
- end
121
-
122
- # convert external dependencies into a requirements
123
- if metadata['external_dependencies']
124
- ##gemspec.requirements = [] unless metadata['external_dependencies'].empty?
125
- metadata['external_dependencies'].each do |req|
126
- gemspec.requirements << req.to_s
127
- end
128
- end
129
-
130
- # determine homepage from resources
131
- homepage = metadata['resources'].find{ |key, url| key =~ /^home/ }
132
- gemspec.homepage = homepage.last if homepage
133
-
134
- gemspec.require_paths = metadata['load_path'] || ['lib']
135
- gemspec.post_install_message = metadata['install_message']
136
-
137
- # RubyGems specific metadata
138
- gemspec.files = files
139
- gemspec.extensions = extensions
140
- gemspec.executables = executables
141
-
142
- if Gem::VERSION < '1.7.'
143
- gemspec.default_executable = gemspec.executables.first
144
- end
145
-
146
- gemspec.test_files = glob_files[patterns[:test_files]]
147
-
148
- unless gemspec.files.include?('.document')
149
- gemspec.extra_rdoc_files = glob_files[patterns[:doc_files]]
150
- end
151
- end
152
- end
data/.gitignore DELETED
@@ -1,6 +0,0 @@
1
- .yardoc
2
- doc
3
- log
4
- pkg
5
- site/api
6
- tmp
data/.yardopts DELETED
@@ -1,7 +0,0 @@
1
- --output-dir doc
2
- --protected
3
- --readme README.rdoc
4
- lib
5
- -
6
- [A-Z]*.*
7
-
data/Assembly DELETED
@@ -1,56 +0,0 @@
1
- ---
2
- github:
3
- active: true
4
-
5
- gem:
6
- active: true
7
-
8
- dnote:
9
- labels: ~
10
- output: log/NOTES.rdoc
11
-
12
- yard:
13
- yardopts: true
14
-
15
- qed:
16
- files : ~
17
- #exclude : ~
18
- #loadpath: ~
19
- #requires: ~
20
- #live : false
21
- active : false
22
-
23
- qedoc:
24
- files : spec/
25
- output: QED.rdoc
26
- active: false
27
-
28
- vclog:
29
- output: log/ChangeLog.rdoc
30
- active: false
31
-
32
- email:
33
- service: Email
34
- file : ~
35
- subject: ~
36
- mailto :
37
- - ruby-talk@ruby-lang.org
38
- - rubyworks-mailinglist@googlegroups.com
39
- from : <%= ENV['EMAIL_ACCOUNT'] %>
40
- server : <%= ENV['EMAIL_SERVER'] %>
41
- port : <%= ENV['EMAIL_PORT'] %>
42
- account: <%= ENV['EMAIL_ACCOUNT'] %>
43
- domain : <%= ENV['EMAIL_DOMAIN'] %>
44
- login : <%= ENV['EMAIL_LOGIN'] %>
45
- secure : <%= ENV['EMAIL_SECURE'] %>
46
-
47
- rdoc:
48
- format: redfish
49
- output: site/api
50
- main: README.rdoc
51
- include:
52
- - 'lib'
53
- - '[A-Z]*.*'
54
- active: false
55
-
56
-