valdemaximus-xx 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -1,5 +1,9 @@
1
1
  class Time
2
+ def blank?
3
+ false
4
+ end
5
+
2
6
  def not_blank?
3
- !blank?
7
+ true
4
8
  end
5
9
  end
data/test/tc_time.rb ADDED
@@ -0,0 +1,11 @@
1
+ require "test/unit"
2
+
3
+ require "extensions/string"
4
+ require "extensions/time"
5
+
6
+ class TestExtensionsTime < Test::Unit::TestCase
7
+ def test_not_blank?
8
+ assert_equal(true, Time.now.not_blank?)
9
+ assert_equal(false, Time.now.blank?)
10
+ end
11
+ end
data/xx.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{xx}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Johnson"]
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
31
31
  "lib/extensions/string.rb",
32
32
  "lib/extensions/time.rb",
33
33
  "lib/xx.rb",
34
+ "test/tc_time.rb",
34
35
  "xx.gemspec"
35
36
  ]
36
37
  s.homepage = %q{http://github.com/valdemaximus/xx}
@@ -38,6 +39,9 @@ Gem::Specification.new do |s|
38
39
  s.require_paths = ["lib"]
39
40
  s.rubygems_version = %q{1.3.5}
40
41
  s.summary = %q{Extensions of standard ruby objects}
42
+ s.test_files = [
43
+ "test/tc_time.rb"
44
+ ]
41
45
 
42
46
  if s.respond_to? :specification_version then
43
47
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valdemaximus-xx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Johnson
@@ -37,6 +37,7 @@ files:
37
37
  - lib/extensions/string.rb
38
38
  - lib/extensions/time.rb
39
39
  - lib/xx.rb
40
+ - test/tc_time.rb
40
41
  - xx.gemspec
41
42
  has_rdoc: false
42
43
  homepage: http://github.com/valdemaximus/xx
@@ -65,5 +66,5 @@ rubygems_version: 1.3.5
65
66
  signing_key:
66
67
  specification_version: 3
67
68
  summary: Extensions of standard ruby objects
68
- test_files: []
69
-
69
+ test_files:
70
+ - test/tc_time.rb