aetherg 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/templates/config/initializers/connection.rb +4 -2
- data/lib/templates/config/initializers/environment.rb +5 -1
- data/lib/templates/gitignore +30 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ab8ac1f082866d78f1c768c90755d54f0c149f0
|
4
|
+
data.tar.gz: 9376b310a29790fa3bff268c08e3ac223e940910
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d27634ee746ad2a450bc66aec71641e488b65c5480ac8f18b9d1e74a0b41d379c7ce5aa924600016dd083c5457508019e923668a89b54682aedc95f493a5957a
|
7
|
+
data.tar.gz: ba2e378452d836aff6c993dfb205516206cceac12b7c7fc198f762f0f11f61c46b8e93035eeda59b5f117b0c846b6a1e776456b9c286483f4e135d3634147ebb
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
@@ -1,7 +1,8 @@
|
|
1
1
|
class <%= @name.camelcase %>::Application
|
2
|
-
|
2
|
+
<%- unless @no_database -%>
|
3
3
|
default_dbconfig_file = File.expand_path('../../../config/database.yml', __FILE__)
|
4
|
-
|
4
|
+
<%- if @database != 'mongo' || @database != 'mongodb' -%>
|
5
|
+
|
5
6
|
# ActiveRecord connection
|
6
7
|
require 'active_record'
|
7
8
|
if File.exist? default_dbconfig_file
|
@@ -15,4 +16,5 @@ class <%= @name.camelcase %>::Application
|
|
15
16
|
Mongoid.load!(default_dbconfig_file, environment)
|
16
17
|
<% end -%>
|
17
18
|
<% end -%>
|
19
|
+
|
18
20
|
end
|
@@ -10,7 +10,11 @@ class <%= @name.camelcase %>::Application
|
|
10
10
|
enable :logging
|
11
11
|
enable :static_cache_control
|
12
12
|
file = File.new("#{root}/log/#{environment.to_s}.log", 'a+')
|
13
|
-
|
13
|
+
|
14
|
+
<%- unless @no_database || @database == 'mongodb' || @database == 'mongo' -%>
|
15
|
+
ActiveRecord::Base.logger = Logger.new(file)
|
16
|
+
<%- end -%>
|
17
|
+
|
14
18
|
file.sync = true
|
15
19
|
use Rack::CommonLogger, file
|
16
20
|
|
@@ -0,0 +1,30 @@
|
|
1
|
+
*/.DS_Store
|
2
|
+
.DS_Store
|
3
|
+
log/
|
4
|
+
tmp/
|
5
|
+
.bundle
|
6
|
+
db/*.sqlite3
|
7
|
+
.svn/*
|
8
|
+
.sass-cache/
|
9
|
+
.localized
|
10
|
+
.tm_properties
|
11
|
+
*.gem
|
12
|
+
*.rbc
|
13
|
+
.bundle
|
14
|
+
.config
|
15
|
+
coverage
|
16
|
+
InstalledFiles
|
17
|
+
lib/bundler/man
|
18
|
+
pkg
|
19
|
+
rdoc
|
20
|
+
spec/reports
|
21
|
+
test/tmp
|
22
|
+
test/version_tmp
|
23
|
+
tmp
|
24
|
+
config/database.yml
|
25
|
+
config/settings.yml
|
26
|
+
config/puma.rb
|
27
|
+
# YARD artifacts
|
28
|
+
.yardoc
|
29
|
+
_yardoc
|
30
|
+
doc/
|
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.1.
|
4
|
+
version: 0.1.8
|
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-09-
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- lib/templates/config/puma.rb
|
60
60
|
- lib/templates/config/redis.yml
|
61
61
|
- lib/templates/config/settings.yml
|
62
|
+
- lib/templates/gitignore
|
62
63
|
homepage: https://github.com/octomusic/aetherg
|
63
64
|
licenses:
|
64
65
|
- MIT
|
@@ -79,9 +80,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
80
|
version: '0'
|
80
81
|
requirements: []
|
81
82
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.4.
|
83
|
+
rubygems_version: 2.4.8
|
83
84
|
signing_key:
|
84
85
|
specification_version: 4
|
85
|
-
summary: Aetherg (Aether Generator) is
|
86
|
+
summary: Aetherg (Aether Generator) is a generator of sinatra app.
|
86
87
|
test_files: []
|
87
88
|
has_rdoc:
|