luban-rails 0.1.4 → 0.1.5

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: da8e14d17703cf739c2fc2c843b7ebcfd349843d
4
- data.tar.gz: d98f9b0a04155a1ac84c10cd56b3d095d86f53e0
3
+ metadata.gz: 3c43c028fd7dabe40f6e3483f71ee3d6e2380153
4
+ data.tar.gz: 2470c26fe5bd82a3dcfd73c290155c7c0c333623
5
5
  SHA512:
6
- metadata.gz: a6814a6a85601a71fb9846be1ded6fdfe40952eb241e5e0a6e99cbfef2d291cfea97df58133fef1b2b1deeb9dc8eb296c38afa155453c5ee2126cf38edce66c5
7
- data.tar.gz: 7ca64200457749d76ba98640c6880a04849ddcc4f36b6426702d3813e7216ab9d7c9b7cad27aec1b01521eb002b8b496f2c7a0aa8bca39d9d132af2a9ee9a8a4
6
+ metadata.gz: ed044997a50c4775fb71950bc7c0b7fa4ee8de38c72a0ff9cb9299d110b93dca010c4a75f96b717c13778776274500ac46b9149c3980528c94f7d94e50d00ebe
7
+ data.tar.gz: 64427468477950cbeb8bc21dc3102723fa8f83ac0240566346c06a33fffa65cf8406dbfbc26917ae5200328bd2fd94501aeaedf121821f19c7108c982af59e39
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.1.5 (Sept 05, 2016)
4
+
5
+ Minor enhancements:
6
+ * Added general database configuration template for Rails 4.0 or earlier
7
+
3
8
  ## Version 0.1.4 (Sept 04, 2016)
4
9
 
5
10
  Minor enhancements:
@@ -1,18 +1,47 @@
1
- # It's recommended to use an environment variable, DATABASE_URL, to configure a database
2
- # The database url can be setup in env_vars.rb of Luban:
1
+ # Please refer to Rails Guides for the details of database configuration:
2
+ # http://guides.rubyonrails.org/configuring.html#configuring-a-database
3
+ #
4
+ # For Rails 4.0 or earlier
5
+ #
6
+ # The only way to correctly configure the connection to a database was to
7
+ # use the config/database.yml file.
8
+ #
9
+ # SQLite3:
10
+ #
11
+ # <%= stage %>:
12
+ # adapter: sqlite3
13
+ # database: db/<%= application %>_<%= stage %>.sqlite3
14
+ # pool: 5
15
+ # timeout: 5000
3
16
  #
4
17
  # MySQL:
18
+ #
19
+ # <%= stage %>:
20
+ # adapter: mysql2
21
+ # encoding: utf8
22
+ # host: <%%= ENV["DATABASE_HOST"] %>
23
+ # database: <%= application %>_<%= stage %>
24
+ # pool: 5
25
+ # username: root
26
+ # password: <%%= ENV["DATABASE_PASSWORD"] %>
27
+ # socket: /tmp/mysql.sock
5
28
  #
6
- # env_vars[:database_url] =
7
- # "mysql2://username:password@host:port/#{application}_#{stage}?encoding=utf8&pool=5"
29
+ # Sensitive information like database password is recommended to setup in env_vars.rb of Luban.
30
+ #
31
+ # For Rails 4.1+
32
+ #
33
+ # It's recommended to use an environment variable, DATABASE_URL, to configure a database
34
+ # The database url can be setup in env_vars.rb of Luban:
8
35
  #
9
36
  # SQLite3:
10
37
  #
11
38
  # env_vars[:database_url] =
12
39
  # "sqlite3:db/#{application}_#{stage}.sqlite3?pool=5&timeout=5000"
13
40
  #
14
- # Please refer to Rails Guides for the details of database url:
15
- # http://guides.rubyonrails.org/configuring.html#configuring-a-database
16
-
17
- <%= stage %>:
18
- url: <%%= ENV["DATABASE_URL"] %>
41
+ # MySQL:
42
+ #
43
+ # env_vars[:database_url] =
44
+ # "mysql2://username:password@host:port/#{application}_#{stage}?encoding=utf8&pool=5"
45
+ #
46
+ # <%= stage %>:
47
+ # url: <%%= ENV["DATABASE_URL"] %>
@@ -2,7 +2,7 @@ module Luban
2
2
  module Deployment
3
3
  module Applications
4
4
  class Rails
5
- VERSION = '0.1.4'
5
+ VERSION = '0.1.5'
6
6
  end
7
7
  end
8
8
  end
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
4
+ version: 0.1.5
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-09-04 00:00:00.000000000 Z
11
+ date: 2016-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban