mharris_ext 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -8
- data/VERSION.yml +3 -2
- data/lib/mharris_ext/file.rb +14 -0
- data/lib/mharris_ext/string.rb +18 -0
- data/mharris_ext.gemspec +37 -41
- metadata +55 -51
- data/.gitignore +0 -3
data/Rakefile
CHANGED
@@ -16,14 +16,7 @@ rescue LoadError
|
|
16
16
|
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
17
17
|
end
|
18
18
|
|
19
|
-
|
20
|
-
Rake::RDocTask.new do |rdoc|
|
21
|
-
rdoc.rdoc_dir = 'rdoc'
|
22
|
-
rdoc.title = 'mharris_ext'
|
23
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
24
|
-
rdoc.rdoc_files.include('README*')
|
25
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
26
|
-
end
|
19
|
+
|
27
20
|
|
28
21
|
require 'rake/testtask'
|
29
22
|
Rake::TestTask.new(:test) do |t|
|
data/VERSION.yml
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
class String
|
2
|
+
def rpad(n,pad_char=" ")
|
3
|
+
return self if length >= n
|
4
|
+
pad = pad_char * (n-length)
|
5
|
+
self + pad
|
6
|
+
end
|
7
|
+
def lpad(n,pad_char=" ")
|
8
|
+
return self if length >= n
|
9
|
+
pad = pad_char * (n-length)
|
10
|
+
pad + self
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
class Numeric
|
15
|
+
def lpad(n,pad_char="0")
|
16
|
+
to_s.lpad(n,pad_char)
|
17
|
+
end
|
18
|
+
end
|
data/mharris_ext.gemspec
CHANGED
@@ -1,61 +1,56 @@
|
|
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 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "1.
|
7
|
+
s.name = "mharris_ext"
|
8
|
+
s.version = "1.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 = ["Mike Harris"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2012-11-13"
|
13
|
+
s.description = "mharris717 utlity methods"
|
14
|
+
s.email = "mharris717@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
"
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
"test/test_helper.rb"
|
43
|
-
]
|
44
|
-
s.homepage = %q{http://github.com/GFunk911/mharris_ext}
|
45
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
46
|
-
s.require_paths = ["lib"]
|
47
|
-
s.rubygems_version = %q{1.3.5}
|
48
|
-
s.summary = %q{mharris717 utility methods}
|
49
|
-
s.test_files = [
|
20
|
+
"LICENSE",
|
21
|
+
"README",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION.yml",
|
24
|
+
"features/mharris_ext.feature",
|
25
|
+
"features/steps/mharris_ext_steps.rb",
|
26
|
+
"features/support/env.rb",
|
27
|
+
"lib/mharris_ext.rb",
|
28
|
+
"lib/mharris_ext/accessor.rb",
|
29
|
+
"lib/mharris_ext/benchmark.rb",
|
30
|
+
"lib/mharris_ext/cmd.rb",
|
31
|
+
"lib/mharris_ext/enumerable.rb",
|
32
|
+
"lib/mharris_ext/file.rb",
|
33
|
+
"lib/mharris_ext/fileutils.rb",
|
34
|
+
"lib/mharris_ext/from_hash.rb",
|
35
|
+
"lib/mharris_ext/gems.rb",
|
36
|
+
"lib/mharris_ext/methods.rb",
|
37
|
+
"lib/mharris_ext/object.rb",
|
38
|
+
"lib/mharris_ext/regexp.rb",
|
39
|
+
"lib/mharris_ext/string.rb",
|
40
|
+
"lib/mharris_ext/time.rb",
|
41
|
+
"mharris_ext.gemspec",
|
50
42
|
"test/mharris_ext_test.rb",
|
51
|
-
|
43
|
+
"test/test_helper.rb"
|
52
44
|
]
|
45
|
+
s.homepage = "http://github.com/GFunk911/mharris_ext"
|
46
|
+
s.require_paths = ["lib"]
|
47
|
+
s.rubygems_version = "1.8.24"
|
48
|
+
s.summary = "mharris717 utility methods"
|
53
49
|
|
54
50
|
if s.respond_to? :specification_version then
|
55
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
56
51
|
s.specification_version = 3
|
57
52
|
|
58
|
-
if Gem::Version.new(Gem::
|
53
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
59
54
|
s.add_runtime_dependency(%q<fattr>, [">= 0"])
|
60
55
|
s.add_runtime_dependency(%q<facets>, [">= 0"])
|
61
56
|
else
|
@@ -67,3 +62,4 @@ Gem::Specification.new do |s|
|
|
67
62
|
s.add_dependency(%q<facets>, [">= 0"])
|
68
63
|
end
|
69
64
|
end
|
65
|
+
|
metadata
CHANGED
@@ -1,48 +1,56 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mharris_ext
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.6.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- Mike Harris
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-11-13 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: fattr
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
17
22
|
type: :runtime
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
26
31
|
name: facets
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
27
38
|
type: :runtime
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
35
46
|
description: mharris717 utlity methods
|
36
47
|
email: mharris717@gmail.com
|
37
48
|
executables: []
|
38
|
-
|
39
49
|
extensions: []
|
40
|
-
|
41
|
-
extra_rdoc_files:
|
50
|
+
extra_rdoc_files:
|
42
51
|
- LICENSE
|
43
52
|
- README
|
44
|
-
files:
|
45
|
-
- .gitignore
|
53
|
+
files:
|
46
54
|
- LICENSE
|
47
55
|
- README
|
48
56
|
- Rakefile
|
@@ -55,44 +63,40 @@ files:
|
|
55
63
|
- lib/mharris_ext/benchmark.rb
|
56
64
|
- lib/mharris_ext/cmd.rb
|
57
65
|
- lib/mharris_ext/enumerable.rb
|
66
|
+
- lib/mharris_ext/file.rb
|
58
67
|
- lib/mharris_ext/fileutils.rb
|
59
68
|
- lib/mharris_ext/from_hash.rb
|
60
69
|
- lib/mharris_ext/gems.rb
|
61
70
|
- lib/mharris_ext/methods.rb
|
62
71
|
- lib/mharris_ext/object.rb
|
63
72
|
- lib/mharris_ext/regexp.rb
|
73
|
+
- lib/mharris_ext/string.rb
|
64
74
|
- lib/mharris_ext/time.rb
|
65
75
|
- mharris_ext.gemspec
|
66
76
|
- test/mharris_ext_test.rb
|
67
77
|
- test/test_helper.rb
|
68
|
-
has_rdoc: true
|
69
78
|
homepage: http://github.com/GFunk911/mharris_ext
|
70
79
|
licenses: []
|
71
|
-
|
72
80
|
post_install_message:
|
73
|
-
rdoc_options:
|
74
|
-
|
75
|
-
require_paths:
|
81
|
+
rdoc_options: []
|
82
|
+
require_paths:
|
76
83
|
- lib
|
77
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ! '>='
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
89
96
|
requirements: []
|
90
|
-
|
91
97
|
rubyforge_project:
|
92
|
-
rubygems_version: 1.
|
98
|
+
rubygems_version: 1.8.24
|
93
99
|
signing_key:
|
94
100
|
specification_version: 3
|
95
101
|
summary: mharris717 utility methods
|
96
|
-
test_files:
|
97
|
-
- test/mharris_ext_test.rb
|
98
|
-
- test/test_helper.rb
|
102
|
+
test_files: []
|
data/.gitignore
DELETED