luban-rails 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4070e543cb7c26b6fd3c368b9798063e785ae35d
|
4
|
+
data.tar.gz: e2b6a9e254844c6f5cda16766f237f90a15a1c4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bb684e296bf56808156b93ed252a25b3820cdc956fb7e3824c465249c26c090854206ce68b4b0fb9d1e936bd3b9ba8b031a229b15d72768e1acc3fd114ae391
|
7
|
+
data.tar.gz: 7b25b927045a68db7435e850131af32bcde6e4e614fe886b3857ded6cf8e09484b7585128d927a56617c2c18f6a7f00bb95c672d5d42c93b017b462aa8c62330
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,11 @@ module Luban
|
|
7
7
|
super("RAILS_ENV=#{stage} #{bundle_cmd} exec #{cmd}")
|
8
8
|
end
|
9
9
|
|
10
|
+
def after_publish
|
11
|
+
super
|
12
|
+
publish_assets! if publish_app?
|
13
|
+
end
|
14
|
+
|
10
15
|
protected
|
11
16
|
|
12
17
|
def init
|
@@ -14,11 +19,6 @@ module Luban
|
|
14
19
|
linked_files.push('database.yml', 'secrets.yml')
|
15
20
|
end
|
16
21
|
|
17
|
-
def publish!
|
18
|
-
super
|
19
|
-
publish_assets! if publish_app?
|
20
|
-
end
|
21
|
-
|
22
22
|
def publish_assets!
|
23
23
|
compile_assets!
|
24
24
|
cleanup_assets!
|
@@ -1,8 +1,15 @@
|
|
1
1
|
# It's recommended to use an environment variable, DATABASE_URL, to configure a database
|
2
2
|
# The database url can be setup in env_vars.rb of Luban:
|
3
3
|
#
|
4
|
+
# MySQL:
|
5
|
+
#
|
6
|
+
# env_vars[:database_url] =
|
7
|
+
# "mysql2://username:password@host:port/#{application}_#{stage}?encoding=utf8&pool=5"
|
8
|
+
#
|
9
|
+
# SQLite3:
|
10
|
+
#
|
4
11
|
# env_vars[:database_url] =
|
5
|
-
# "
|
12
|
+
# "sqlite3:db/#{application}_#{stage}.sqlite3?pool=5&timeout=5000"
|
6
13
|
#
|
7
14
|
# Please refer to Rails Guides for the details of database url:
|
8
15
|
# http://guides.rubyonrails.org/configuring.html#configuring-a-database
|
data/luban-rails.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
22
|
spec.required_ruby_version = ">= 2.1.0"
|
23
|
-
spec.add_dependency 'luban', ">= 0.7.
|
23
|
+
spec.add_dependency 'luban', ">= 0.7.9"
|
24
24
|
spec.add_dependency 'luban-rack', ">= 0.2.4"
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.12"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luban-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rubyist Chi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: luban
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.7.
|
19
|
+
version: 0.7.9
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.7.
|
26
|
+
version: 0.7.9
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: luban-rack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|