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 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
- require 'rake/rdoctask'
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
@@ -1,4 +1,5 @@
1
- ---
1
+ ---
2
2
  :major: 1
3
- :minor: 5
3
+ :minor: 6
4
4
  :patch: 0
5
+ :build:
@@ -0,0 +1,14 @@
1
+ class File
2
+ class << self
3
+ def create(filename,str)
4
+ open(filename,"w") do |f|
5
+ f << str
6
+ end
7
+ end
8
+ def append(filename,str)
9
+ open(filename,"a") do |f|
10
+ f << str
11
+ end
12
+ end
13
+ end
14
+ end
@@ -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 `rake gemspec`
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 = %q{mharris_ext}
8
- s.version = "1.5.0"
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 = %q{2009-12-17}
13
- s.description = %q{mharris717 utlity methods}
14
- s.email = %q{mharris717@gmail.com}
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
- "README"
17
+ "README"
18
18
  ]
19
19
  s.files = [
20
- ".gitignore",
21
- "LICENSE",
22
- "README",
23
- "Rakefile",
24
- "VERSION.yml",
25
- "features/mharris_ext.feature",
26
- "features/steps/mharris_ext_steps.rb",
27
- "features/support/env.rb",
28
- "lib/mharris_ext.rb",
29
- "lib/mharris_ext/accessor.rb",
30
- "lib/mharris_ext/benchmark.rb",
31
- "lib/mharris_ext/cmd.rb",
32
- "lib/mharris_ext/enumerable.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/time.rb",
40
- "mharris_ext.gemspec",
41
- "test/mharris_ext_test.rb",
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
- "test/test_helper.rb"
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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
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.5.0
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
- date: 2009-12-17 00:00:00 -05:00
13
- default_executable:
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
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
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
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
- version:
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
- - --charset=UTF-8
75
- require_paths:
81
+ rdoc_options: []
82
+ require_paths:
76
83
  - lib
77
- required_ruby_version: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: "0"
82
- version:
83
- required_rubygems_version: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- version: "0"
88
- version:
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.3.5
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
@@ -1,3 +0,0 @@
1
- *.sw?
2
- .DS_Store
3
- coverage