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 +4 -4
- data/VERSION +1 -1
- data/lib/aetherg/aetherg.rb +55 -56
- data/lib/templates/app/routes/welcome.rb +6 -0
- data/lib/templates/application.rb +1 -1
- data/lib/templates/config/initializer.rb +0 -1
- metadata +3 -4
- data/lib/templates/app/controllers/routes.rb +0 -7
- data/lib/templates/config/initializers/helpers.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db5f3f5da897e4e6069290805f5985736007d149
|
4
|
+
data.tar.gz: 85a26938e831221277e0125b12e25d88c15890b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3098f00a9c3f13c0282d1a6ee2192ecf72f2390b6778cd0155b916053729ceae71e4fc70c21e297f98fc1bb9f781163ffe79992b72de7bf6629c2438164c07db
|
7
|
+
data.tar.gz: b69c0cf7e94c07c816b9dfac3b350dfe12344d075e396b3b971ba377db36786d3ec758f160190f5baa5f701f572fa92ece11335cb65cd7cca2c23110c5daea28
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.7
|
data/lib/aetherg/aetherg.rb
CHANGED
@@ -33,72 +33,71 @@ module Aetherg
|
|
33
33
|
end unless @no_views
|
34
34
|
end
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
46
|
-
|
47
|
-
|
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
|
-
|
50
|
-
|
51
|
-
|
46
|
+
def create_gemfile
|
47
|
+
template "Gemfile", File.join(@app_path, "Gemfile")
|
48
|
+
end
|
52
49
|
|
53
|
-
|
54
|
-
|
55
|
-
|
50
|
+
def create_rakefile
|
51
|
+
template "Rakefile", File.join(@app_path, "Rakefile")
|
52
|
+
end
|
56
53
|
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
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
|
-
|
72
|
-
|
73
|
-
|
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
|
-
|
76
|
-
|
77
|
-
|
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
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
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
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
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
|
@@ -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
|
13
|
+
AUTOLOAD_PATHS = ["#{root}/app/*", "#{root}/lib"]
|
14
14
|
|
15
15
|
def self.require_autoload_paths(paths)
|
16
16
|
paths.each do |path|
|
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.
|
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-
|
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/
|
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
|