visionmedia-mygem 0.0.2 → 0.0.4
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/History.rdoc +9 -0
- data/Manifest +1 -0
- data/bin/mygem +1 -1
- data/lib/mygem/commands/init.rb +2 -2
- data/lib/mygem/template.rb +3 -3
- data/lib/mygem/version.rb +1 -1
- data/lib/mygem.rb +1 -0
- data/mygem.gemspec +3 -3
- metadata +3 -3
data/History.rdoc
CHANGED
@@ -1,4 +1,13 @@
|
|
1
1
|
|
2
|
+
=== 0.0.4 / 2009-03-13
|
3
|
+
|
4
|
+
* Fixed some bugs (dont use this gem anyway im replacing it soon)
|
5
|
+
* Added .re for release gem
|
6
|
+
|
7
|
+
=== 0.0.3 / 2009-03-13
|
8
|
+
|
9
|
+
* Fixed missing FileUtils error due to latest commander
|
10
|
+
|
2
11
|
=== 0.0.1 / 2009-02-25
|
3
12
|
|
4
13
|
* Initial release
|
data/Manifest
CHANGED
data/bin/mygem
CHANGED
data/lib/mygem/commands/init.rb
CHANGED
@@ -19,8 +19,8 @@ command :init do |c|
|
|
19
19
|
options.class = gemname.camelcase
|
20
20
|
dest = File.expand_path gemname
|
21
21
|
source = File.join(MyGem::Templates.path(options.template || :default), ".")
|
22
|
-
mkdir dest
|
23
|
-
cp_r source, dest
|
22
|
+
FileUtils.mkdir dest
|
23
|
+
FileUtils.cp_r source, dest
|
24
24
|
MyGem::Templates.replace_tokens_with_struct Dir["#{dest}/**/*"], options
|
25
25
|
rescue Exception => e
|
26
26
|
abort "Error: #{e}"
|
data/lib/mygem/template.rb
CHANGED
@@ -27,8 +27,8 @@ module MyGem
|
|
27
27
|
|
28
28
|
def init
|
29
29
|
unless File.directory? DEST
|
30
|
-
mkdir DEST
|
31
|
-
cp_r SOURCE, DEST
|
30
|
+
FileUtils.mkdir DEST
|
31
|
+
FileUtils.cp_r SOURCE, DEST
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -80,7 +80,7 @@ module MyGem
|
|
80
80
|
dest = lambda { File.join(File.dirname(input), "#{struct.name}#{$1}") }
|
81
81
|
|
82
82
|
# Move input to destination
|
83
|
-
move = lambda { mv input, dest.call, :force => true if File.basename(input).match token }
|
83
|
+
move = lambda { FileUtils.mv input, dest.call, :force => true if File.basename(input).match token }
|
84
84
|
|
85
85
|
# Iterate and replace all files or directories
|
86
86
|
replace_list = lambda { |a| a.each { |f| replace_tokens_with_struct f, struct } }
|
data/lib/mygem/version.rb
CHANGED
data/lib/mygem.rb
CHANGED
data/mygem.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{mygem}
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["TJ Holowaychuk"]
|
9
|
-
s.date = %q{2009-03-
|
9
|
+
s.date = %q{2009-03-13}
|
10
10
|
s.default_executable = %q{mygem}
|
11
11
|
s.description = %q{Rubygem generation, done YOUR way.}
|
12
12
|
s.email = %q{tj@vision-media.ca}
|
13
13
|
s.executables = ["mygem"]
|
14
14
|
s.extra_rdoc_files = ["bin/mygem", "lib/mygem/commands/init.rb", "lib/mygem/commands.rb", "lib/mygem/template.rb", "lib/mygem/templates/exceptions.rb", "lib/mygem/templates/init.rb", "lib/mygem/version.rb", "lib/mygem.rb", "README.rdoc", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/mygem.rake", "tasks/spec.rake"]
|
15
|
-
s.files = ["bin/mygem", "History.rdoc", "lib/mygem/commands/init.rb", "lib/mygem/commands.rb", "lib/mygem/template.rb", "lib/mygem/templates/exceptions.rb", "lib/mygem/templates/init.rb", "lib/mygem/version.rb", "lib/mygem.rb", "Manifest", "my-test-gem/README.rdoc", "my-test-gem/spec/spec_helper.rb", "Rakefile", "README.rdoc", "spec/fixtures/_replace_tokens.rb", "spec/fixtures/foo/bar/cookies.rb", "spec/fixtures/foo/GEM/GEM_something.rb", "spec/mygem_spec.rb", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/mygem.rake", "tasks/spec.rake", "templates/default/History.rdoc", "templates/default/lib/GEM/version.rb", "templates/default/lib/GEM.rb", "templates/default/Rakefile", "templates/default/README.rdoc", "templates/default/spec/GEM_spec.rb", "templates/default/spec/spec_helper.rb", "templates/default/tasks/docs.rake", "templates/default/tasks/gemspec.rake", "templates/default/tasks/spec.rake", "templates/default/Todo.rdoc", "templates/small/History.rdoc", "templates/small/lib/GEM/version.rb", "templates/small/lib/GEM.rb", "templates/small/Rakefile", "templates/small/README.rdoc", "Todo.rdoc"
|
15
|
+
s.files = ["bin/mygem", "History.rdoc", "lib/mygem/commands/init.rb", "lib/mygem/commands.rb", "lib/mygem/template.rb", "lib/mygem/templates/exceptions.rb", "lib/mygem/templates/init.rb", "lib/mygem/version.rb", "lib/mygem.rb", "Manifest", "my-test-gem/README.rdoc", "my-test-gem/spec/spec_helper.rb", "mygem.gemspec", "Rakefile", "README.rdoc", "spec/fixtures/_replace_tokens.rb", "spec/fixtures/foo/bar/cookies.rb", "spec/fixtures/foo/GEM/GEM_something.rb", "spec/mygem_spec.rb", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/mygem.rake", "tasks/spec.rake", "templates/default/History.rdoc", "templates/default/lib/GEM/version.rb", "templates/default/lib/GEM.rb", "templates/default/Rakefile", "templates/default/README.rdoc", "templates/default/spec/GEM_spec.rb", "templates/default/spec/spec_helper.rb", "templates/default/tasks/docs.rake", "templates/default/tasks/gemspec.rake", "templates/default/tasks/spec.rake", "templates/default/Todo.rdoc", "templates/small/History.rdoc", "templates/small/lib/GEM/version.rb", "templates/small/lib/GEM.rb", "templates/small/Rakefile", "templates/small/README.rdoc", "Todo.rdoc"]
|
16
16
|
s.has_rdoc = true
|
17
17
|
s.homepage = %q{http://github.com/visionmedia/mygem}
|
18
18
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Mygem", "--main", "README.rdoc"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: visionmedia-mygem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TJ Holowaychuk
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-13 00:00:00 -07:00
|
13
13
|
default_executable: mygem
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- Manifest
|
66
66
|
- my-test-gem/README.rdoc
|
67
67
|
- my-test-gem/spec/spec_helper.rb
|
68
|
+
- mygem.gemspec
|
68
69
|
- Rakefile
|
69
70
|
- README.rdoc
|
70
71
|
- spec/fixtures/_replace_tokens.rb
|
@@ -93,7 +94,6 @@ files:
|
|
93
94
|
- templates/small/Rakefile
|
94
95
|
- templates/small/README.rdoc
|
95
96
|
- Todo.rdoc
|
96
|
-
- mygem.gemspec
|
97
97
|
has_rdoc: true
|
98
98
|
homepage: http://github.com/visionmedia/mygem
|
99
99
|
post_install_message:
|