maml 0.3.0 → 0.3.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/lib/maml/maml.rb +13 -13
- data/maml.gemspec +1 -1
- data/maml.yml +1 -13
- metadata +3 -3
data/lib/maml/maml.rb
CHANGED
@@ -82,7 +82,7 @@ module Maml
|
|
82
82
|
|
83
83
|
maml.each do |app|
|
84
84
|
puts "\napplication:#{app[0]}"
|
85
|
-
print "models: "
|
85
|
+
print "models: \n"
|
86
86
|
app[1].each do |model|
|
87
87
|
current_model_args=[]
|
88
88
|
current_model_options=[]
|
@@ -129,7 +129,7 @@ module Maml
|
|
129
129
|
else
|
130
130
|
generate_command = generate_command.join(" ")
|
131
131
|
end
|
132
|
-
puts "****
|
132
|
+
puts "**** script/generate command=#{generate_command}"
|
133
133
|
return generate_command,file, go
|
134
134
|
end
|
135
135
|
|
@@ -160,20 +160,20 @@ module Maml
|
|
160
160
|
puts "Visit http://lazymaml.org for more details"
|
161
161
|
puts "Copyright 2009 Zigelo and Nick Van Weerdenburg, Licensed under MIT License\n\n"
|
162
162
|
puts "usage: maml.rb [--file <filename>] [your script/generate options] [--go]"
|
163
|
-
puts "
|
164
|
-
puts "
|
163
|
+
puts ""
|
164
|
+
puts "MAML automates multiple script/generate calls by collecting your model and field names in a DSL."
|
165
|
+
puts "Command-line usage is the ame as script/generate with addition of --file and --go"
|
166
|
+
puts "--file specifies a yaml file with the models and fields (maml.yml by default)"
|
167
|
+
puts "(run maml create_sample to generate a sample file)"
|
168
|
+
puts "--go runs script/generate for real. Running without --go is a trial"
|
169
|
+
puts "EXAMPLES:"
|
165
170
|
puts "e.g. maml.rb --file=blog.yml scaffold"
|
166
|
-
puts "OR"
|
167
171
|
puts "e.g. maml.rb --file=blog.yml scaffold --go"
|
168
|
-
puts "
|
169
|
-
puts "
|
170
|
-
puts "
|
171
|
-
puts "Additional arguments are passed to script/generate, such as --haml and --rspec"
|
172
|
+
puts "e.g. maml.rb scaffold --go"
|
173
|
+
puts "The last example looks for maml.yml by default\n\n"
|
174
|
+
puts "Additional arguments are passed straight through to script/generate, such as --haml and --rspec"
|
172
175
|
puts " e.g. maml nifty_scaffold --haml --rspec"
|
173
|
-
puts "
|
174
|
-
puts " to actually generate code:"
|
175
|
-
puts " e.g. maml nifty_scaffold --haml --rspec --go"
|
176
|
-
# puts "generated files are in <rails_root>/maml"
|
176
|
+
# puts "Generated files are in <rails_root>/maml"
|
177
177
|
puts "Run 'maml.rb create_sample' to generate a sample maml.yml file for a starting point. Note: this will overwrite any existing maml.yml."
|
178
178
|
puts "\nSpecify field type by symbol prefix as follows:"
|
179
179
|
puts "no prefix=string ; no prefix and _id suffix = integer ; override _id by adding prefix"
|
data/maml.gemspec
CHANGED
data/maml.yml
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
#
|
18
18
|
# level 1: module, level 2: class, level 3: field
|
19
19
|
# maml.yml is a sample file for a starting point. maml sample copies it to current directory.
|
20
|
-
|
20
|
+
feedbackdiet:
|
21
21
|
default: # applies to all items
|
22
22
|
- nifty_scaffold
|
23
23
|
- --haml
|
@@ -56,18 +56,6 @@ innerplate:
|
|
56
56
|
- name
|
57
57
|
- .proportion
|
58
58
|
- type %w[Meal Snack]
|
59
|
-
|
60
|
-
# loaded as my test case...
|
61
|
-
# Commitment:
|
62
|
-
# - %start_date
|
63
|
-
# - %end_date
|
64
|
-
# - ..goal_weight
|
65
|
-
# - ..start_weight
|
66
|
-
# - ..end_weight
|
67
|
-
# - ..current_weight
|
68
|
-
# - .stable_daily_calories
|
69
|
-
# - .goal_daily_calories
|
70
|
-
# - .calorie_margin
|
71
59
|
|
72
60
|
Item:
|
73
61
|
- =in_library
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nick Van Weerdenburg
|