aetherg 0.2.5 → 0.2.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: daa703c22c59a89dd84808192bd2027dc5a52f66
4
- data.tar.gz: 490735bc92e745d8b23b1ecee150cc1e0ee1ead3
3
+ metadata.gz: db5f3f5da897e4e6069290805f5985736007d149
4
+ data.tar.gz: 85a26938e831221277e0125b12e25d88c15890b4
5
5
  SHA512:
6
- metadata.gz: 4fc311fce1c037f68ac81ede30b3e996c375a6d4568c5ddd9b4944ce796a1c999c7a49526682735424c79b2062f664d017883ac3e00d1f2196edbdf5d5a64a74
7
- data.tar.gz: 02d37a479fac0c79e93aecfb5dfb29ff8bbef9bfa8aea50267ada90bc60d182c1ea37ee80e1535d83b6afe3fe551370d8ce6ea13a67506995a393bb68f1d1c70
6
+ metadata.gz: 3098f00a9c3f13c0282d1a6ee2192ecf72f2390b6778cd0155b916053729ceae71e4fc70c21e297f98fc1bb9f781163ffe79992b72de7bf6629c2438164c07db
7
+ data.tar.gz: b69c0cf7e94c07c816b9dfac3b350dfe12344d075e396b3b971ba377db36786d3ec758f160190f5baa5f701f572fa92ece11335cb65cd7cca2c23110c5daea28
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.7
@@ -33,72 +33,71 @@ module Aetherg
33
33
  end unless @no_views
34
34
  end
35
35
 
36
- def create_app
37
- template "application.rb", File.join(@app_path, "application.rb")
38
- end
39
-
40
- def create_config_with_boot
41
- template "config.ru", File.join(@app_path, "config.ru")
42
- template "boot.rb", File.join(@app_path, "boot.rb")
43
- end
36
+ def create_app
37
+ template "application.rb", File.join(@app_path, "application.rb")
38
+ template "app/routes/welcome.rb", File.join(@app_path, "/app/routes/welcome.rb")
39
+ end
44
40
 
45
- def create_gemfile
46
- template "Gemfile", File.join(@app_path, "Gemfile")
47
- end
41
+ def create_config_with_boot
42
+ template "config.ru", File.join(@app_path, "config.ru")
43
+ template "boot.rb", File.join(@app_path, "boot.rb")
44
+ end
48
45
 
49
- def create_rakefile
50
- template "Rakefile", File.join(@app_path, "Rakefile")
51
- end
46
+ def create_gemfile
47
+ template "Gemfile", File.join(@app_path, "Gemfile")
48
+ end
52
49
 
53
- def create_readme
54
- template "README.md", File.join(@app_path, "README.md")
55
- end
50
+ def create_rakefile
51
+ template "Rakefile", File.join(@app_path, "Rakefile")
52
+ end
56
53
 
57
- def create_server_config
58
- copy_file "config/puma.rb", File.join(@app_path, "config/puma.example.rb")
59
- end
60
- #
61
- def create_db_config
62
- template("config/database.yml", File.join(@app_path, "config/database.example.yml")) unless @no_database
63
- template("config/database.yml", File.join(@app_path, "config/database.yml")) unless @no_database
64
- end
54
+ def create_readme
55
+ template "README.md", File.join(@app_path, "README.md")
56
+ end
65
57
 
66
- def create_settings_config
67
- template("config/settings.yml", File.join(@app_path, "config/settings.example.yml"))
68
- template("config/settings.yml", File.join(@app_path, "config/settings.yml"))
69
- end
58
+ def create_server_config
59
+ copy_file "config/puma.rb", File.join(@app_path, "config/puma.example.rb")
60
+ end
61
+ #
62
+ def create_db_config
63
+ template("config/database.yml", File.join(@app_path, "config/database.example.yml")) unless @no_database
64
+ template("config/database.yml", File.join(@app_path, "config/database.yml")) unless @no_database
65
+ end
70
66
 
71
- def create_gitignore
72
- copy_file "gitignore", File.join(@app_path, ".gitignore")
73
- end
67
+ def create_settings_config
68
+ template("config/settings.yml", File.join(@app_path, "config/settings.example.yml"))
69
+ template("config/settings.yml", File.join(@app_path, "config/settings.yml"))
70
+ end
74
71
 
75
- def create_initializers
76
- template("config/initializers/connection.rb", File.join(@app_path, "config/initializers/connection.rb")) unless @no_database
77
- template("config/initializers/helpers.rb", File.join(@app_path, "config/initializers/helpers.rb"))
78
- template("config/initializers/environment.rb", File.join(@app_path, "config/initializers/environment.rb"))
79
- template("config/initializer.rb", File.join(@app_path, "config/initializer.rb"))
80
- end
72
+ def create_gitignore
73
+ copy_file "gitignore", File.join(@app_path, ".gitignore")
74
+ end
81
75
 
82
- def create_redis_config_and_initializer
83
- if @redis
84
- copy_file("config/redis.yml", File.join(@app_path, "config/redis.yml"))
85
- template("config/initializers/redis.rb", File.join(@app_path, "config/initializers/redis.rb"))
86
- end
87
- end
76
+ def create_initializers
77
+ template("config/initializers/connection.rb", File.join(@app_path, "config/initializers/connection.rb")) unless @no_database
78
+ template("config/initializers/environment.rb", File.join(@app_path, "config/initializers/environment.rb"))
79
+ template("config/initializer.rb", File.join(@app_path, "config/initializer.rb"))
80
+ end
88
81
 
89
- def create_gitkeep
90
- create_file File.join(@app_path, "app", "assets", "images", ".keep") unless @no_views
91
- create_file File.join(@app_path, "app", "assets", "stylesheets", ".keep") unless @no_views
92
- create_file File.join(@app_path, "app", "assets", "javascripts", ".keep") unless @no_views
93
- create_file File.join(@app_path, "app", "models", ".keep")
94
- create_file File.join(@app_path, "app", "routes", ".keep")
95
- create_file File.join(@app_path, "log", ".keep")
96
- create_file File.join(@app_path, "tmp", ".keep")
97
- create_file File.join(@app_path, "app", "views", ".keep")
98
- create_file File.join(@app_path, "lib", ".keep")
99
- create_file File.join(@app_path, "db", "migrate", ".keep")
100
- create_file File.join(@app_path, "public", ".keep") unless @no_views
82
+ def create_redis_config_and_initializer
83
+ if @redis
84
+ copy_file("config/redis.yml", File.join(@app_path, "config/redis.yml"))
85
+ template("config/initializers/redis.rb", File.join(@app_path, "config/initializers/redis.rb"))
101
86
  end
87
+ end
102
88
 
89
+ def create_gitkeep
90
+ create_file File.join(@app_path, "app", "assets", "images", ".keep") unless @no_views
91
+ create_file File.join(@app_path, "app", "assets", "stylesheets", ".keep") unless @no_views
92
+ create_file File.join(@app_path, "app", "assets", "javascripts", ".keep") unless @no_views
93
+ create_file File.join(@app_path, "app", "models", ".keep")
94
+ create_file File.join(@app_path, "app", "routes", ".keep")
95
+ create_file File.join(@app_path, "log", ".keep")
96
+ create_file File.join(@app_path, "tmp", ".keep")
97
+ create_file File.join(@app_path, "app", "views", ".keep")
98
+ create_file File.join(@app_path, "lib", ".keep")
99
+ create_file File.join(@app_path, "db", "migrate", ".keep")
100
+ create_file File.join(@app_path, "public", ".keep") unless @no_views
101
+ end
103
102
  end
104
103
  end
@@ -0,0 +1,6 @@
1
+ class <%= @name.camelcase %>::Application
2
+ # root default route
3
+ get "/" do
4
+ "Hello World! from #{@name.camelcase}."
5
+ end
6
+ end
@@ -10,7 +10,7 @@ module <%= @name.camelcase %>
10
10
  set :raise_errors, true
11
11
  set :app_file, __FILE__
12
12
 
13
- AUTOLOAD_PATHS = ["#{root}/app/models", "#{root}/app/routes", "#{root}/lib"]
13
+ AUTOLOAD_PATHS = ["#{root}/app/*", "#{root}/lib"]
14
14
 
15
15
  def self.require_autoload_paths(paths)
16
16
  paths.each do |path|
@@ -5,4 +5,3 @@ require File.expand_path('../initializers/connection', __FILE__)
5
5
  require File.expand_path('../initializers/redis', __FILE__)
6
6
  <%- end -%>
7
7
  require File.expand_path('../initializers/environment', __FILE__)
8
- require File.expand_path('../initializers/helpers', __FILE__)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aetherg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Chan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-25 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -46,7 +46,7 @@ files:
46
46
  - lib/templates/Gemfile
47
47
  - lib/templates/README.md
48
48
  - lib/templates/Rakefile
49
- - lib/templates/app/controllers/routes.rb
49
+ - lib/templates/app/routes/welcome.rb
50
50
  - lib/templates/application.rb
51
51
  - lib/templates/boot.rb
52
52
  - lib/templates/config.ru
@@ -54,7 +54,6 @@ files:
54
54
  - lib/templates/config/initializer.rb
55
55
  - lib/templates/config/initializers/connection.rb
56
56
  - lib/templates/config/initializers/environment.rb
57
- - lib/templates/config/initializers/helpers.rb
58
57
  - lib/templates/config/initializers/redis.rb
59
58
  - lib/templates/config/puma.rb
60
59
  - lib/templates/config/redis.yml
@@ -1,7 +0,0 @@
1
- class Aether::Application
2
- # root route
3
- get "/" do
4
- "Hello World! from Aether."
5
- end
6
-
7
- end
@@ -1,4 +0,0 @@
1
- class <%= @name.camelcase %>::Application
2
- helpers do
3
- end
4
- end