eivo-rails-api 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: 45e9a81d9ab17fd835d7468253d88671965e90c81a7759afdfc225c6b62a8e08
4
- data.tar.gz: 3d741d2d882848aac8fb8044ae13f940bf93f3ca789be6a6034dd1f799e3d633
3
+ metadata.gz: 98d59893bb4d0085ea41ba1f79ec8490449a9f833fcd12df40e7eed270fcc136
4
+ data.tar.gz: 88393475fe971a0c9e2155398531d27d02b84bdb5069d559cb3e5121262390d2
5
5
  SHA512:
6
- metadata.gz: 328e6ab2f20813f38c7d6e2344b82e9f9f23d13f822dd738e98913b5072a82bf074ea825cd245ce3325d9ebc057ad70b098badd0a8ebb2cb3e23cdb99d651a91
7
- data.tar.gz: 03fd6422987189d172e2d0beca75ce4a3a641113dc51c06979fa8b482a8d706d2d7443511e68d784890576a69235aa6e85a5e0212f9dfca7d83cba10b9ea319f
6
+ metadata.gz: 7569e7eebca7deb164ec7ef4f11760dd9fd8c9a1e7d6013ba286246c3904770d6504f275ac6bfc83ebeb6e5110b60da90357e7949692b03d68753c3afe496469
7
+ data.tar.gz: 42488d944d04b958398ca5d07e21f9fb6d22905c42046670c3ae91d1a28ca7237c612fe0b10b1693be489f89d9c6cec7b775cadc59c41318ded16e147036f280
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'eivo-rails-api'
7
- spec.version = '0.1.2'
7
+ spec.version = '0.1.3'
8
8
  spec.authors = ['Jonathan VUKOVICH-TRIBOUHARET']
9
9
  spec.email = ['jonathan@eivo.co']
10
10
 
@@ -33,8 +33,8 @@ module EIVO
33
33
 
34
34
  template 'config/application.rb'
35
35
  copy_file 'config/puma.rb'
36
- template 'config/database.example.yml'
37
- template 'config/database.example.yml', 'config/database.yml', skip: true
36
+ copy_file 'config/database.example.yml'
37
+ template 'config/database.local.yml', 'config/database.yml', skip: true
38
38
 
39
39
  copy_file 'app/controllers/application_controller.rb'
40
40
 
@@ -0,0 +1,22 @@
1
+ default: &default
2
+ adapter: postgresql
3
+ encoding: unicode
4
+ pool: <%%= ENV.fetch('DATABASE_POOL') { 5 } %>
5
+ host: db
6
+ username: postgres
7
+
8
+ development:
9
+ <<: *default
10
+ database: <%= @application.parameterize %>_development
11
+
12
+ test:
13
+ <<: *default
14
+ database: <%= @application.parameterize %>_test
15
+
16
+ staging:
17
+ <<: *default
18
+ database: <%= @application.parameterize %>_staging
19
+
20
+ production:
21
+ <<: *default
22
+ database: <%= @application.parameterize %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eivo-rails-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan VUKOVICH-TRIBOUHARET
@@ -192,6 +192,7 @@ files:
192
192
  - lib/generators/eivo/templates/app/controllers/application_controller.rb
193
193
  - lib/generators/eivo/templates/config/application.rb
194
194
  - lib/generators/eivo/templates/config/database.example.yml
195
+ - lib/generators/eivo/templates/config/database.local.yml
195
196
  - lib/generators/eivo/templates/config/puma.rb
196
197
  - lib/generators/eivo/templates/db/migrate/enable_btree_gin_extension.rb
197
198
  - lib/generators/eivo/templates/db/migrate/enable_pg_stat_statements_extension.rb