corn 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/corn.rb +5 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7986ea0df882b88eaca2dd47e294c9c71d380659
4
- data.tar.gz: 024d21cb7c3238ef2d648c7e503641def6b4b886
3
+ metadata.gz: 69417032301f90d71946591f896565c78fb935dc
4
+ data.tar.gz: d748f9ef157b3595f51182c823ecf33ad51ee441
5
5
  SHA512:
6
- metadata.gz: 5c185f81f3da5fa27e3d291d899dd80c7f3280203a25da65b52a223b79b784f0dea5e204e546823769610a51dcb1bb8b82093fdbdd7d2f681ab5b482aba1f756
7
- data.tar.gz: 80fd69b2bf7b7ec4f9094697243260c7cf21e6856ae66494948eaf0bd47b56b206929a850f5c964607d19f035b60c6e1897449e14b1a96867947c76fb0014774
6
+ metadata.gz: 49c41f1e71cef91dea0f00fb6eda29ca4be72cfc49dabd478654eb9a3912c08170c139a96aeea24d98de01ed8896f2d22fd24200461334ee13fde5d4380a1117
7
+ data.tar.gz: 998dfbae54b00480195c2f3a964695551cab4ff0ef648ee8fffe018b9d1435a2a9bbdd08444b32e536dba8ad24f48f644da053add2cb3458fdfd65171f73db98
@@ -27,8 +27,11 @@ module Corn
27
27
 
28
28
  def setup
29
29
  if RUBY_VERSION =~ /^1.8/
30
- Test::Unit::TestCase.send(:include, TestUnit18)
31
- else
30
+ if defined?(Test::Unit::TestCase)
31
+ Test::Unit::TestCase.send(:include, TestUnit18)
32
+ end
33
+ end
34
+ if defined?(::MiniTest::Unit::TestCase)
32
35
  ::MiniTest::Unit::TestCase.send(:include, Corn::MiniTest)
33
36
  end
34
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xiao Li