platform_sh_rails 0.1.3 → 0.1.4

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: 541febb1528aac828666b36ae7beb707ad815ee8
4
- data.tar.gz: 352764b00bc3d274ee68598bb8af0d3537f8e3b0
3
+ metadata.gz: 451d4e8cda66838bfb50cdb148581a1ee1dc006d
4
+ data.tar.gz: c6bdb24afcfd05962bd71dd6d40daf3b69b1b5d4
5
5
  SHA512:
6
- metadata.gz: ca60323692713b1fb4dcbe1d18de09e0f6f30f419a236048798f3923549d6cabef4f0f11d269fa5be3cdcf29aec770bdf4f2313ae96ad8a12a40674b2c8be41b
7
- data.tar.gz: 9b87d3eae59d6813e95c08957f70e22e374d755f9c6b8821ae01b253a2d02b393d26ecceea091f3306e9b22616b9d0d3b3879e183e5fa78879ab4a3d3d7584d6
6
+ metadata.gz: fa011ce5547b9c0664a733388fa84302495c4ff683b75fe8cdae01c9fc4e10bbb08fb144a256a00795a08389ccfaceabac2aa569282586f07fa0fce0cb812bd9
7
+ data.tar.gz: 4d0633b0ad7627ae3f72d18e114ad885b5b3a94c458081d18cfc768c13e70a4715806343760f2022b106515daf4362795c579fb918c61929052fccc26264b3f8
data/README.md CHANGED
@@ -21,6 +21,22 @@ Or install it yourself as:
21
21
 
22
22
  ## Usage
23
23
 
24
+ This gem setups the environment for Rails, it will autoconfigure:
25
+
26
+ * ActiveRecord
27
+ * RabbitMQ (using bunny)
28
+ * Redis
29
+ * ElasticSearch
30
+ * Solr
31
+ * Mongodb
32
+
33
+ The gem will autoconfigure rails to use the first service it finds. So if you just add this gem to yout Gemfile
34
+ and push everything should work automagically.
35
+
36
+ If you have multiple services of the same type.. or multiple relational databases (like a postgres + a mysql) in your .platform/services file .. well you should configure by hand.
37
+
38
+ Also note that for ActiveRecord this will default to mysql2, but if you loaded the mysql Gem it should still work.
39
+
24
40
 
25
41
  ## Development
26
42
 
@@ -1,3 +1,3 @@
1
1
  class PlatformSHRails
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -7,7 +7,7 @@ class PlatformSHRailtie < Rails::Railtie
7
7
  ENV['TMPDIR']="/tmp"
8
8
  end
9
9
  if PlatformSH::on_platform? && !PlatformSH::is_build_environment?
10
- ENV['DATABASE_URL']=PlatformSH::guess_database_url
10
+ PlatformSH::export_services_urls
11
11
  end
12
12
  if PlatformSH::on_platform? && PlatformSH::is_build_environment?
13
13
  ENV['DB_ADAPTER']="nulldb"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platform_sh_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ori Pekelman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-07 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: platform_sh