bones 1.2.0 → 1.2.1
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.txt +6 -0
- data/README.txt +2 -2
- data/Rakefile +1 -1
- data/lib/bones.rb +2 -2
- data/lib/bones/main.rb +4 -4
- metadata +2 -2
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -172,8 +172,8 @@ the ".mrbones" directory before it is removed.
|
|
172
172
|
==== Custom Modifications
|
173
173
|
|
174
174
|
Mr Bones will perform a limited set of substitutions on the files in the
|
175
|
-
skeleton when it generates a new project. ERB is
|
176
|
-
and the derived class name into
|
175
|
+
skeleton when it generates a new project. ERB is used to insert the project
|
176
|
+
name and the derived class name into template files. The file must end in an
|
177
177
|
".erb" suffix for ERB substitutions to take place. The ".erb" suffix is
|
178
178
|
stripped from the file during project generation. Therefore, your ERB files
|
179
179
|
should have two suffixes -- the ".erb" suffix that will be stripped, and the
|
data/Rakefile
CHANGED
data/lib/bones.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
# $Id: bones.rb
|
1
|
+
# $Id: bones.rb 448 2008-01-02 16:40:37Z tim_pease $
|
2
2
|
|
3
3
|
module Bones
|
4
4
|
|
5
5
|
# :stopdoc:
|
6
|
-
VERSION = '1.2.
|
6
|
+
VERSION = '1.2.1'
|
7
7
|
PATH = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
8
8
|
WIN32 = %r/win32/ =~ RUBY_PLATFORM
|
9
9
|
DEV_NULL = WIN32 ? 'NUL:' : '/dev/null'
|
data/lib/bones/main.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: main.rb
|
1
|
+
# $Id: main.rb 448 2008-01-02 16:40:37Z tim_pease $
|
2
2
|
|
3
3
|
require 'fileutils'
|
4
4
|
require 'optparse'
|
@@ -61,7 +61,7 @@ class Main
|
|
61
61
|
|
62
62
|
# parse the command line arguments
|
63
63
|
opts.parse! args
|
64
|
-
self.name = args.join('_')
|
64
|
+
self.name = args.empty? ? nil : args.join('_')
|
65
65
|
|
66
66
|
if name.nil?
|
67
67
|
puts opts
|
@@ -142,7 +142,7 @@ class Main
|
|
142
142
|
# Bones skeleton will be copied to the user's data directory.
|
143
143
|
#
|
144
144
|
def freeze
|
145
|
-
|
145
|
+
self.data = File.join(::Bones::PATH, 'data')
|
146
146
|
data_dir = File.join(mrbones_dir, 'data')
|
147
147
|
archive_dir = File.join(mrbones_dir, 'archive')
|
148
148
|
tasks_only = false
|
@@ -160,7 +160,7 @@ class Main
|
|
160
160
|
files_to_copy.each do |file|
|
161
161
|
next if tasks_only && !(%r/^tasks\// =~ file)
|
162
162
|
|
163
|
-
src = File.join(
|
163
|
+
src = File.join(data, file)
|
164
164
|
dst = File.join(data_dir, file)
|
165
165
|
|
166
166
|
STDOUT.puts "freezing #{dst}" if verbose
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pease
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2008-01-02 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|