sinatra-cmd 0.0.6 → 0.0.7
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.
- checksums.yaml +4 -4
- data/lib/sinatra_cmd/generator.rb +16 -6
- data/lib/sinatra_cmd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae4e83a2399ed264aa75cbc4607813e8f3048524
|
4
|
+
data.tar.gz: 31457ae8ecda43b17a3cce64650b532d37c4a4ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c791661fd09d4d3134a5de4e4ead759e50e97ca57b61f342bf3e905b4045d3ac72dab597382e504ad3402fb166b58e16b1a692cde307099b81d66a2d323815d
|
7
|
+
data.tar.gz: 33b30684aed317f6cc7a2213e198a45aa7be503215922d02b043762e39d6002793a7b9cc0c6e42639fa3ed657aec1cdaed92a47bede682959fbffe2ad2174ce4
|
@@ -10,16 +10,26 @@ module SinatraCmd
|
|
10
10
|
File.join(File.dirname(__FILE__), "../../", "templates")
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
13
|
+
def setup_helpers
|
14
|
+
keep_file "#{app_name}/helpers"
|
15
|
+
template "helpers/application.rb.erb", "#{app_name}/helpers/application.rb"
|
16
|
+
template "helpers/error_handling.rb.erb", "#{app_name}/helpers/error_handling.rb"
|
17
|
+
end
|
18
|
+
|
19
|
+
def setup_models
|
14
20
|
keep_file "#{app_name}/models"
|
15
21
|
end
|
16
22
|
|
17
|
-
def
|
23
|
+
def setup_utils
|
24
|
+
keep_file "#{app_name}/utils"
|
25
|
+
end
|
26
|
+
|
27
|
+
def setup_routes
|
18
28
|
keep_file "#{app_name}/routes"
|
19
29
|
template "routes/demo.rb.erb", "#{app_name}/routes/demo.rb"
|
20
30
|
end
|
21
31
|
|
22
|
-
def
|
32
|
+
def setup_config
|
23
33
|
template "config/database.yml.erb", "#{app_name}/config/database.yml"
|
24
34
|
template "config/application.rb.erb", "#{app_name}/config/application.rb"
|
25
35
|
template "config/boot.rb.erb", "#{app_name}/config/boot.rb"
|
@@ -27,7 +37,7 @@ module SinatraCmd
|
|
27
37
|
copy_file "config/scheduler.rb", "#{app_name}/config/scheduler.rb"
|
28
38
|
end
|
29
39
|
|
30
|
-
def
|
40
|
+
def setup_appfile
|
31
41
|
copy_file ".gitignore", "#{app_name}/.gitignore"
|
32
42
|
copy_file "Gemfile", "#{app_name}/Gemfile"
|
33
43
|
copy_file "Rakefile", "#{app_name}/Rakefile"
|
@@ -36,9 +46,9 @@ module SinatraCmd
|
|
36
46
|
end
|
37
47
|
|
38
48
|
def setup_rspec
|
39
|
-
keep_file "#{app_name}/
|
40
|
-
copy_file "sepc/spec_helper.rb", "#{app_name}/sepc/spec_helper.rb"
|
49
|
+
keep_file "#{app_name}/spec"
|
41
50
|
copy_file ".rspec", "#{app_name}/.rspec"
|
51
|
+
copy_file "spec/spec_helper.rb", "#{app_name}/spec/spec_helper.rb"
|
42
52
|
end
|
43
53
|
|
44
54
|
def bundle_install
|
data/lib/sinatra_cmd/version.rb
CHANGED