em-ventually 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,21 +3,23 @@ require 'bundler/gem_tasks'
3
3
  task :default => :test
4
4
  task :test => [:'test:readme', :'test:suites']
5
5
 
6
+ matchers = {
7
+ 'minitest-2.0' => [/6 tests, 9 assertions, 1 failures, 0 errors/m],
8
+ 'rspec-2.6' => [/\n\.\.\.\.F\.\.\.\n/m],
9
+ 'test-unit' => [/\n\.\.\.F\.\.\n/m, /test_out_of_order\(TestEMVentually\)/m]
10
+ }
11
+
6
12
  namespace :test do
7
13
  task :suites do
8
- matchers = {
9
- 'minitest-2.0' => [/6 tests, 9 assertions, 1 failures, 0 errors/m],
10
- 'rspec-2.6' => [/\n\.\.\.\.F\.\.\.\n/m],
11
- 'test-unit' => [/\n\.\.\.F\.\.\n/m, /test_out_of_order\(TestEMVentually\)/m]
12
- }
13
14
 
14
15
  matchers.each do |type, matcher|
15
16
  STDOUT.sync = true
16
17
  Dir.chdir("./test/#{type}") do
18
+ raise "You should probably run test:prepare first" unless File.exist?('./Gemfile.lock')
17
19
  print "Testing #{type}#{' ' * (22 - type.size )}"
18
20
  fork {
19
21
  ENV['BUNDLE_GEMFILE'] = File.expand_path("./Gemfile")
20
- out = `bundle && bundle exec rake 2>&1`
22
+ out = `bundle exec rake 2>&1`
21
23
  if matcher.all?{|m|out[m]}
22
24
  exit
23
25
  else
@@ -57,4 +59,14 @@ namespace :test do
57
59
  pass_count = passes.inject(0){|m, s| m += (s == :pass ? 1 : 0)}
58
60
  raise "README tests failed" unless pass_count == passes.size
59
61
  end
62
+
63
+ task :prepare do
64
+ matchers.each do |type, matcher|
65
+ puts "Preparing #{type}"
66
+ Dir.chdir("./test/#{type}") do
67
+ ENV['BUNDLE_GEMFILE'] = File.expand_path("./Gemfile")
68
+ out = `bundle 2>&1`
69
+ end
70
+ end
71
+ end
60
72
  end
@@ -24,6 +24,5 @@ Gem::Specification.new do |s|
24
24
  s.add_development_dependency 'code_stats'
25
25
  s.add_development_dependency 'rake', '~> 0.8.7'
26
26
  s.add_development_dependency 'phocus'
27
- s.add_development_dependency 'bundler', '~> 1.0.0'
28
27
  s.add_development_dependency 'minitest', '~> 2.0.0'
29
- end
28
+ end
@@ -1,5 +1,5 @@
1
1
  module EventMachine
2
2
  module Ventually
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
- end
5
+ end
metadata CHANGED
@@ -1,139 +1,89 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: em-ventually
3
- version: !ruby/object:Gem::Version
4
- hash: 31
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Josh Hull
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-08-17 00:00:00 -07:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
32
- requirement: *id001
12
+ date: 2012-03-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
33
15
  name: eventmachine
16
+ requirement: &70275353980580 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
34
22
  type: :runtime
35
- - !ruby/object:Gem::Dependency
36
23
  prerelease: false
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70275353980580
25
+ - !ruby/object:Gem::Dependency
26
+ name: callsite
27
+ requirement: &70275353979660 !ruby/object:Gem::Requirement
38
28
  none: false
39
- requirements:
29
+ requirements:
40
30
  - - ~>
41
- - !ruby/object:Gem::Version
42
- hash: 21
43
- segments:
44
- - 0
45
- - 0
46
- - 5
31
+ - !ruby/object:Gem::Version
47
32
  version: 0.0.5
48
- requirement: *id002
49
- name: callsite
50
33
  type: :runtime
51
- - !ruby/object:Gem::Dependency
52
34
  prerelease: false
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
- version: "0"
62
- requirement: *id003
35
+ version_requirements: *70275353979660
36
+ - !ruby/object:Gem::Dependency
63
37
  name: code_stats
38
+ requirement: &70275353978900 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
64
44
  type: :development
65
- - !ruby/object:Gem::Dependency
66
45
  prerelease: false
67
- version_requirements: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70275353978900
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: &70275353978080 !ruby/object:Gem::Requirement
68
50
  none: false
69
- requirements:
51
+ requirements:
70
52
  - - ~>
71
- - !ruby/object:Gem::Version
72
- hash: 49
73
- segments:
74
- - 0
75
- - 8
76
- - 7
53
+ - !ruby/object:Gem::Version
77
54
  version: 0.8.7
78
- requirement: *id004
79
- name: rake
80
55
  type: :development
81
- - !ruby/object:Gem::Dependency
82
56
  prerelease: false
83
- version_requirements: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- hash: 3
89
- segments:
90
- - 0
91
- version: "0"
92
- requirement: *id005
57
+ version_requirements: *70275353978080
58
+ - !ruby/object:Gem::Dependency
93
59
  name: phocus
94
- type: :development
95
- - !ruby/object:Gem::Dependency
96
- prerelease: false
97
- version_requirements: &id006 !ruby/object:Gem::Requirement
60
+ requirement: &70275353977200 !ruby/object:Gem::Requirement
98
61
  none: false
99
- requirements:
100
- - - ~>
101
- - !ruby/object:Gem::Version
102
- hash: 23
103
- segments:
104
- - 1
105
- - 0
106
- - 0
107
- version: 1.0.0
108
- requirement: *id006
109
- name: bundler
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
110
66
  type: :development
111
- - !ruby/object:Gem::Dependency
112
67
  prerelease: false
113
- version_requirements: &id007 !ruby/object:Gem::Requirement
68
+ version_requirements: *70275353977200
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest
71
+ requirement: &70275353976300 !ruby/object:Gem::Requirement
114
72
  none: false
115
- requirements:
73
+ requirements:
116
74
  - - ~>
117
- - !ruby/object:Gem::Version
118
- hash: 15
119
- segments:
120
- - 2
121
- - 0
122
- - 0
75
+ - !ruby/object:Gem::Version
123
76
  version: 2.0.0
124
- requirement: *id007
125
- name: minitest
126
77
  type: :development
78
+ prerelease: false
79
+ version_requirements: *70275353976300
127
80
  description: Eventually, your tests should pass in EventMachine.
128
- email:
81
+ email:
129
82
  - joshbuddy@gmail.com
130
83
  executables: []
131
-
132
84
  extensions: []
133
-
134
85
  extra_rdoc_files: []
135
-
136
- files:
86
+ files:
137
87
  - .gitignore
138
88
  - Gemfile
139
89
  - README.md
@@ -162,41 +112,31 @@ files:
162
112
  - test/test-unit/Rakefile
163
113
  - test/test-unit/helper.rb
164
114
  - test/test-unit/test_ventually.rb
165
- has_rdoc: true
166
- homepage: ""
115
+ homepage: ''
167
116
  licenses: []
168
-
169
117
  post_install_message:
170
118
  rdoc_options: []
171
-
172
- require_paths:
119
+ require_paths:
173
120
  - lib
174
- required_ruby_version: !ruby/object:Gem::Requirement
121
+ required_ruby_version: !ruby/object:Gem::Requirement
175
122
  none: false
176
- requirements:
177
- - - ">="
178
- - !ruby/object:Gem::Version
179
- hash: 3
180
- segments:
181
- - 0
182
- version: "0"
183
- required_rubygems_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
184
128
  none: false
185
- requirements:
186
- - - ">="
187
- - !ruby/object:Gem::Version
188
- hash: 3
189
- segments:
190
- - 0
191
- version: "0"
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
192
133
  requirements: []
193
-
194
134
  rubyforge_project: em-ventually
195
- rubygems_version: 1.6.2
135
+ rubygems_version: 1.8.15
196
136
  signing_key:
197
137
  specification_version: 3
198
138
  summary: Eventually, your tests should pass in EventMachine
199
- test_files:
139
+ test_files:
200
140
  - test/minitest-2.0/Gemfile
201
141
  - test/minitest-2.0/Rakefile
202
142
  - test/minitest-2.0/helper.rb
@@ -209,3 +149,4 @@ test_files:
209
149
  - test/test-unit/Rakefile
210
150
  - test/test-unit/helper.rb
211
151
  - test/test-unit/test_ventually.rb
152
+ has_rdoc: