aetherg 0.1.5 → 0.1.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 +7 -3
- metadata +18 -5
- data/lib/templates/Guardfile +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f4804eadacf3d1256afc90c95e669fb60c7ca53
|
4
|
+
data.tar.gz: 7c7615466a76dd5e05e8941989c450f177e3b0e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9992f2e7c58ddc20a42f31cc9282a6d424760f1d27ae6678515345f788ba709041ff5c0925dc98cf4268143fa2e740929db6fca924f7047719dc9077e1228386
|
7
|
+
data.tar.gz: d42a9a272fc1822a0ed11e9134c765d219872cc6c208179e8df5ac2319b38f83977c18f5bf6a07f82dc3fa5260a00206d1020815bde538f86d9d996d2a53831a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
data/lib/aetherg/aetherg.rb
CHANGED
@@ -23,7 +23,7 @@ module Aetherg
|
|
23
23
|
|
24
24
|
# Create empty directories
|
25
25
|
def create_empty_directories
|
26
|
-
%w{app/assets/images app/assets/javascripts app/assets/stylesheets app/models app/routes app/views config/initializers db/migrate lib log tmp public}.each do |dir|
|
26
|
+
%w{app/assets/images app/assets/javascripts app/assets/stylesheets app/models app/helpers app/routes app/views config/initializers db/migrate lib log tmp public}.each do |dir|
|
27
27
|
empty_directory File.join(@app_path, dir)
|
28
28
|
end
|
29
29
|
end
|
@@ -54,11 +54,15 @@ module Aetherg
|
|
54
54
|
end
|
55
55
|
#
|
56
56
|
def create_db_config
|
57
|
-
template("config/database.yml", File.join(@app_path, "config/database.yml")) unless @no_database
|
57
|
+
template("config/database.yml", File.join(@app_path, "config/database.example.yml")) unless @no_database
|
58
58
|
end
|
59
59
|
|
60
60
|
def create_settings_config
|
61
|
-
copy_file "config/settings.yml", File.join(@app_path, "config/settings.yml")
|
61
|
+
copy_file "config/settings.yml", File.join(@app_path, "config/settings.example.yml")
|
62
|
+
end
|
63
|
+
|
64
|
+
def create_gitignore
|
65
|
+
copy_file "gitignore", File.join(@app_path, ".gitignore")
|
62
66
|
end
|
63
67
|
|
64
68
|
def create_initializers
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aetherg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.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: 2015-
|
12
|
-
dependencies:
|
11
|
+
date: 2015-09-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.19'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.19'
|
13
27
|
description: Aetherg (Aether Generator) is a sinatra based App generator, let you
|
14
28
|
quickly generate a sinatra app.
|
15
29
|
email: chenillen@gmail.com
|
@@ -30,7 +44,6 @@ files:
|
|
30
44
|
- lib/aetherg/aetherg.rb
|
31
45
|
- lib/aetherg/string.rb
|
32
46
|
- lib/templates/Gemfile
|
33
|
-
- lib/templates/Guardfile
|
34
47
|
- lib/templates/README.md
|
35
48
|
- lib/templates/Rakefile
|
36
49
|
- lib/templates/app/controllers/routes.rb
|
@@ -58,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
71
|
requirements:
|
59
72
|
- - ">="
|
60
73
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
74
|
+
version: 1.9.3
|
62
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
76
|
requirements:
|
64
77
|
- - ">="
|
data/lib/templates/Guardfile
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
guard 'livereload' do
|
2
|
-
watch(%r{app/views/.+\.(erb|haml|slim)$})
|
3
|
-
watch(%r{app/helpers/.+\.rb})
|
4
|
-
watch(%r{public/.+\.(css|js|html)})
|
5
|
-
watch(%r{config/locales/.+\.yml})
|
6
|
-
# Rails Assets Pipeline
|
7
|
-
watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|html))).*}) { |m| "/assets/#{m[3]}" }
|
8
|
-
end
|
9
|
-
|
10
|
-
guard :rspec do
|
11
|
-
watch(%r{^spec/.+_spec\.rb$})
|
12
|
-
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
13
|
-
watch('spec/spec_helper.rb') { "spec" }
|
14
|
-
|
15
|
-
# Rails example
|
16
|
-
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
17
|
-
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
18
|
-
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
19
|
-
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
20
|
-
watch('config/routes.rb') { "spec/routing" }
|
21
|
-
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
22
|
-
|
23
|
-
# Capybara features specs
|
24
|
-
watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
|
25
|
-
|
26
|
-
# Turnip features and steps
|
27
|
-
watch(%r{^spec/acceptance/(.+)\.feature$})
|
28
|
-
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
29
|
-
end
|
30
|
-
|