goodies 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +18 -1
- data/lib/goodies/rake.rb +19 -0
- metadata +4 -4
- data/Rakefile +0 -59
data/README
CHANGED
@@ -1,3 +1,20 @@
|
|
1
1
|
== ruby-goodies
|
2
2
|
|
3
|
-
Developer tools to make your life easier. As blogged about on goodercode.com
|
3
|
+
Developer tools to make your life easier. As blogged about on goodercode.com
|
4
|
+
|
5
|
+
goodies/lang
|
6
|
+
================================================================================
|
7
|
+
String
|
8
|
+
- Adds / operator for joining file paths ('path'/'to'/'a'/'dir')
|
9
|
+
Hash
|
10
|
+
- Adds ability to access hash values similar to objects (hash.key)
|
11
|
+
|
12
|
+
|
13
|
+
goodies/rake
|
14
|
+
================================================================================
|
15
|
+
- Add install task to GemPackageTask
|
16
|
+
|
17
|
+
|
18
|
+
VERSION HISTORY:
|
19
|
+
0.1 - String '/' overload, Hash object accessor
|
20
|
+
0.2 - Rake Gem install task
|
data/lib/goodies/rake.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'rake/gempackagetask'
|
2
|
+
|
3
|
+
class Rake::GemPackageTask
|
4
|
+
|
5
|
+
def define_intercepted
|
6
|
+
define_method_call
|
7
|
+
namespace 'gem' do
|
8
|
+
desc "Install the gem file #{gem_file}"
|
9
|
+
task :install => :gem do
|
10
|
+
require 'rubygems/installer'
|
11
|
+
Gem::Installer.new(File.join('pkg',gem_file)).install
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
alias define_method_call define
|
17
|
+
alias define define_intercepted
|
18
|
+
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goodies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kerry R Wilson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-19 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -25,13 +25,13 @@ extra_rdoc_files:
|
|
25
25
|
files:
|
26
26
|
- LICENSE
|
27
27
|
- README
|
28
|
-
- Rakefile
|
29
28
|
- lib/goodies.rb
|
30
29
|
- lib/goodies/lang.rb
|
30
|
+
- lib/goodies/rake.rb
|
31
31
|
- lib/goodies/lang/hash.rb
|
32
32
|
- lib/goodies/lang/string.rb
|
33
33
|
has_rdoc: true
|
34
|
-
homepage:
|
34
|
+
homepage: http://www.goodercode.com
|
35
35
|
licenses: []
|
36
36
|
|
37
37
|
post_install_message:
|
data/Rakefile
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# To change this template, choose Tools | Templates
|
3
|
-
# and open the template in the editor.
|
4
|
-
|
5
|
-
|
6
|
-
require 'rubygems'
|
7
|
-
require 'rake'
|
8
|
-
require 'rake/clean'
|
9
|
-
require 'rake/gempackagetask'
|
10
|
-
require 'rake/rdoctask'
|
11
|
-
require 'rake/testtask'
|
12
|
-
require 'spec/rake/spectask'
|
13
|
-
|
14
|
-
spec = Gem::Specification.new do |s|
|
15
|
-
s.name = 'goodies'
|
16
|
-
s.version = '0.0.1'
|
17
|
-
s.has_rdoc = true
|
18
|
-
s.extra_rdoc_files = ['README', 'LICENSE']
|
19
|
-
s.summary = 'Developer tools to make your life easier'
|
20
|
-
s.description = <<DESC
|
21
|
-
Developer tools to make your life easier. As seen on goodercode.com.
|
22
|
-
DESC
|
23
|
-
s.author = 'Kerry R Wilson'
|
24
|
-
s.email = 'kwilson@goodercode.com'
|
25
|
-
# s.executables = ['your_executable_here']
|
26
|
-
s.files = %w(LICENSE README Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
|
27
|
-
s.require_path = "lib"
|
28
|
-
s.bindir = "bin"
|
29
|
-
end
|
30
|
-
|
31
|
-
Rake::GemPackageTask.new(spec) do |p|
|
32
|
-
p.gem_spec = spec
|
33
|
-
p.need_tar = true
|
34
|
-
p.need_zip = true
|
35
|
-
end
|
36
|
-
|
37
|
-
Rake::RDocTask.new do |rdoc|
|
38
|
-
files =['README', 'LICENSE', 'lib/**/*.rb']
|
39
|
-
rdoc.rdoc_files.add(files)
|
40
|
-
rdoc.main = "README" # page to start on
|
41
|
-
rdoc.title = "ruby-goodies Docs"
|
42
|
-
rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
|
43
|
-
rdoc.options << '--line-numbers'
|
44
|
-
end
|
45
|
-
|
46
|
-
Rake::TestTask.new do |t|
|
47
|
-
t.test_files = FileList['test/**/*.rb']
|
48
|
-
end
|
49
|
-
|
50
|
-
Spec::Rake::SpecTask.new do |t|
|
51
|
-
t.spec_files = FileList['spec/**/*.rb']
|
52
|
-
t.libs << Dir["lib"]
|
53
|
-
end
|
54
|
-
|
55
|
-
gem_file = "#{spec.name}-#{spec.version}.gem"
|
56
|
-
desc "Install the gem file #{gem_file}"
|
57
|
-
Rake::Task.define_task :install => :gem do |t|
|
58
|
-
exec "gem install pkg/#{gem_file}"
|
59
|
-
end
|