valdemaximus-xx 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -1
- data/VERSION +1 -1
- data/lib/helper_methods.rb +9 -0
- data/lib/xx.rb +2 -1
- data/test/tc_helper_methonds.rb +13 -0
- data/xx.gemspec +7 -4
- metadata +8 -4
data/Rakefile
CHANGED
@@ -20,13 +20,14 @@ end
|
|
20
20
|
begin
|
21
21
|
require 'jeweler'
|
22
22
|
Jeweler::Tasks.new do |gemspec|
|
23
|
-
gemspec.name = "xx"
|
23
|
+
gemspec.name = "valdemaximus-xx"
|
24
24
|
gemspec.summary = "Extensions of standard ruby objects"
|
25
25
|
gemspec.description = "Extensions of standard ruby objects"
|
26
26
|
gemspec.email = "valde.maximus@gmail.com"
|
27
27
|
gemspec.homepage = "http://github.com/valdemaximus/xx"
|
28
28
|
gemspec.authors = ["Tom Johnson"]
|
29
29
|
end
|
30
|
+
Jeweler::GemcutterTasks.new
|
30
31
|
rescue LoadError
|
31
32
|
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
32
33
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.6.0
|
data/lib/xx.rb
CHANGED
@@ -7,4 +7,5 @@ require "#{File.dirname(__FILE__)}/extensions/array"
|
|
7
7
|
require "#{File.dirname(__FILE__)}/extensions/hash"
|
8
8
|
require "#{File.dirname(__FILE__)}/extensions/time"
|
9
9
|
require "#{File.dirname(__FILE__)}/extensions/hash_key"
|
10
|
-
require "#{File.dirname(__FILE__)}/extensions/parse"
|
10
|
+
require "#{File.dirname(__FILE__)}/extensions/parse"
|
11
|
+
require "#{File.dirname(__FILE__)}/helper_methods"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require "test/unit"
|
2
|
+
|
3
|
+
require "helper_methods"
|
4
|
+
|
5
|
+
class TestExtensionsTime < Test::Unit::TestCase
|
6
|
+
def test_not_blank?
|
7
|
+
assert_equal('groups', XX.pluralize(0, 'group', 'groups'))
|
8
|
+
assert_equal('group', XX.pluralize(1, 'group', 'groups'))
|
9
|
+
assert_equal('group', XX.pluralize(-1, 'group', 'groups'))
|
10
|
+
assert_equal('groups', XX.pluralize(2, 'group', 'groups'))
|
11
|
+
assert_equal('groups', XX.pluralize(60, 'group', 'groups'))
|
12
|
+
end
|
13
|
+
end
|
data/xx.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{xx}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.6.0"
|
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"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-10-31}
|
13
13
|
s.description = %q{Extensions of standard ruby objects}
|
14
14
|
s.email = %q{valde.maximus@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
"lib/extensions/pp_s.rb",
|
32
32
|
"lib/extensions/string.rb",
|
33
33
|
"lib/extensions/time.rb",
|
34
|
+
"lib/helper_methods.rb",
|
34
35
|
"lib/xx.rb",
|
35
36
|
"test/tc_hash.rb",
|
36
37
|
"test/tc_time.rb",
|
@@ -43,6 +44,7 @@ Gem::Specification.new do |s|
|
|
43
44
|
s.summary = %q{Extensions of standard ruby objects}
|
44
45
|
s.test_files = [
|
45
46
|
"test/tc_hash.rb",
|
47
|
+
"test/tc_helper_methonds.rb",
|
46
48
|
"test/tc_time.rb"
|
47
49
|
]
|
48
50
|
|
@@ -56,3 +58,4 @@ Gem::Specification.new do |s|
|
|
56
58
|
else
|
57
59
|
end
|
58
60
|
end
|
61
|
+
|
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.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Johnson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-31 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -37,12 +37,15 @@ files:
|
|
37
37
|
- lib/extensions/pp_s.rb
|
38
38
|
- lib/extensions/string.rb
|
39
39
|
- lib/extensions/time.rb
|
40
|
+
- lib/helper_methods.rb
|
40
41
|
- lib/xx.rb
|
41
42
|
- test/tc_hash.rb
|
42
43
|
- test/tc_time.rb
|
43
44
|
- xx.gemspec
|
44
|
-
has_rdoc:
|
45
|
+
has_rdoc: true
|
45
46
|
homepage: http://github.com/valdemaximus/xx
|
47
|
+
licenses: []
|
48
|
+
|
46
49
|
post_install_message:
|
47
50
|
rdoc_options:
|
48
51
|
- --charset=UTF-8
|
@@ -63,10 +66,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
66
|
requirements: []
|
64
67
|
|
65
68
|
rubyforge_project:
|
66
|
-
rubygems_version: 1.
|
69
|
+
rubygems_version: 1.3.5
|
67
70
|
signing_key:
|
68
71
|
specification_version: 3
|
69
72
|
summary: Extensions of standard ruby objects
|
70
73
|
test_files:
|
71
74
|
- test/tc_hash.rb
|
75
|
+
- test/tc_helper_methonds.rb
|
72
76
|
- test/tc_time.rb
|