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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4247790dfcce5e1adc63e8555620d1f042fbc01b
4
- data.tar.gz: 9bf526dc9be83276231f843f15e3fc44146621f9
3
+ metadata.gz: ae4e83a2399ed264aa75cbc4607813e8f3048524
4
+ data.tar.gz: 31457ae8ecda43b17a3cce64650b532d37c4a4ea
5
5
  SHA512:
6
- metadata.gz: 8260dec33abaf4a0ceae16fb0611775a0bf07677e6c31afd4982a9b6741783930f2c4081bf3942dd038f5a9a7867353795e4cb0756a0699186cfea3730b2609b
7
- data.tar.gz: ff9301cd5b4f7b1ce5e91d9ee20323fc57e8daabbdfd5cee57ecbd32586e4df30a2d9a9b84c89366672044c7887a427589a3692a9e3f6fd02415ddd9e950b770
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 create_models_dir
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 create_routes_dir
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 create_config
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 create_appfile
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}/sepc"
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
@@ -1,3 +1,3 @@
1
1
  module SinatraCmd
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-cmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - CBluowei