sinatra-cmd 0.0.10 → 0.0.11

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: c231852d46c97028e6f7bf026e5b4c99319d5a62
4
- data.tar.gz: 1666085b4120ff9499744fe7b356c4e1f8d87b92
3
+ metadata.gz: 652d5717aa4178b5698b1c616c49e41d8bac2173
4
+ data.tar.gz: a6ba25cf24fed7e3ad25be08722c0afed4bcd538
5
5
  SHA512:
6
- metadata.gz: 9dce49b03030877ead66aa770d729afa07e436721c34ccb7bd549e95d370ef91b6d1ebb60d6228cf9650dd4e8ffca51a36a4faf2e200e36a79722723808de309
7
- data.tar.gz: da302fe1b2a431745a050997fe96c65015ff26bb66d6b1a0be3b081b39e843eac9d1851592ec9b9113dde3a4723bf4aa419ad7dccad9e02d254c09d4c09b5a47
6
+ metadata.gz: b11fd3b02089da84227bab3ad80d8948e17c3b26dc3959f561b5da02cc068a09fedb675d46ca993719eb9434cc23fc66fdd715c1db5ac47a73a6cb3905eeb278
7
+ data.tar.gz: 0cd82ba6214d195720513568272e3e0516b54f8dde5d7549079c2cf6fedae9416e538cc8837085e03a8bf745381034c63be8fe105d711ffba4f1216c1582f9d0
@@ -11,22 +11,22 @@ module SinatraCmd
11
11
  end
12
12
 
13
13
  def setup_utils
14
- keep_file "#{app_name}/app/utils"
14
+ keep_file "#{app_name}/utils"
15
15
  end
16
16
 
17
17
  def setup_helpers
18
- keep_file "#{app_name}/app/helpers"
19
- template "app/helpers/application.rb.erb", "#{app_name}/app/helpers/application.rb"
20
- template "app/helpers/error_handling.rb.erb", "#{app_name}/app/helpers/error_handling.rb"
18
+ keep_file "#{app_name}/helpers"
19
+ template "helpers/application.rb.erb", "#{app_name}/helpers/application.rb"
20
+ template "helpers/error_handling.rb.erb", "#{app_name}/helpers/error_handling.rb"
21
21
  end
22
22
 
23
23
  def setup_models
24
- keep_file "#{app_name}/app/models"
24
+ keep_file "#{app_name}/models"
25
25
  end
26
26
 
27
27
  def setup_routes
28
- keep_file "#{app_name}/app/routes"
29
- template "app/routes/demo.rb.erb", "#{app_name}/app/routes/demo.rb"
28
+ keep_file "#{app_name}/routes"
29
+ template "routes/demo.rb.erb", "#{app_name}/routes/demo.rb"
30
30
  end
31
31
 
32
32
  def setup_config
@@ -1,3 +1,3 @@
1
1
  module SinatraCmd
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
data/templates/Gemfile CHANGED
@@ -5,7 +5,6 @@ gem 'sinatra-contrib', '~> 1.4.2', require: false
5
5
  gem 'sinatra-r18n', '~> 2.0.3'
6
6
 
7
7
  gem 'mongoid', '~> 4.0.1'
8
-
9
8
  gem 'rufus-scheduler', '~> 3.0.9'
10
9
 
11
10
  group :test, :development do
@@ -3,7 +3,7 @@
3
3
  require File.expand_path('../boot', __FILE__)
4
4
 
5
5
  %w(utils helpers models routes).each do |folder|
6
- Dir[File.expand_path("../../app/#{folder}/**/*.rb", __FILE__)].each {|file| require file}
6
+ Dir[File.expand_path("../../#{folder}/**/*.rb", __FILE__)].each {|file| require file}
7
7
  end
8
8
 
9
9
  require File.expand_path('../scheduler', __FILE__)
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-cmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - CBluowei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-16 00:00:00.000000000 Z
11
+ date: 2015-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,9 +76,6 @@ files:
76
76
  - templates/Gemfile
77
77
  - templates/README.md.erb
78
78
  - templates/Rakefile
79
- - templates/app/helpers/application.rb.erb
80
- - templates/app/helpers/error_handling.rb.erb
81
- - templates/app/routes/demo.rb.erb
82
79
  - templates/config.ru.erb
83
80
  - templates/config/application.rb.erb
84
81
  - templates/config/boot.rb.erb
@@ -87,6 +84,9 @@ files:
87
84
  - templates/config/i18n/en-us.yml
88
85
  - templates/config/i18n/zh-cn.yml
89
86
  - templates/config/scheduler.rb
87
+ - templates/helpers/application.rb.erb
88
+ - templates/helpers/error_handling.rb.erb
89
+ - templates/routes/demo.rb.erb
90
90
  - templates/spec/spec_helper.rb
91
91
  homepage: https://github.com/hilotus/sinatra-cli
92
92
  licenses: