platter 0.0.3 → 0.0.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: fcaf733eb6093f9492c8e0ee118b1ffae27eca1a
4
- data.tar.gz: 46237ff9b45d7f23b06fbe4ba792c982da99a85a
3
+ metadata.gz: 84c526d7bc9e4aee3d4d0a400173bdab8fb8e7d5
4
+ data.tar.gz: ba51f7c814dccd80bc51753eaf459a3ff381e562
5
5
  SHA512:
6
- metadata.gz: 545789cc9de6a737bad10f904ff97d6faebf6f104f23bf54c101cbe286317014b9697caa5aac9e6b3882631c2668554e84fec003ab06afedcb9b44da87e8fa37
7
- data.tar.gz: c9330071e4d62d52cc004ab91f7d6efd2562e0353398ac19b5beeb0b3ef382ecea68b70b4dc4488382831ecd029ccd75cc912929cbe4a4a853620734ac0f7842
6
+ metadata.gz: 3b588d29b10108df6b722d0f95d32a9ae807c54b960a5dd38f90ad497e7f3f460b214cb6274765781cbb45146686e8e6c748066863da222a1cc4abb475f9d225
7
+ data.tar.gz: 29afb5d063dcd8f74bc9ec280285a1d56b6eb37f3a282289bc427bb0873e9a7216e7565ed4d3a3b1a36685ed21ef6f05e801ea28ca70c7c3bf1f8b3737fbf63b
@@ -159,5 +159,17 @@ gem "active_model_serializers", github: "rails-api/active_model_serializers", br
159
159
  end
160
160
  end
161
161
 
162
+ def add_smtp_configuration_for_deployment
163
+ %w{ production staging }.each do |env|
164
+ inject_into_file "config/environments/#{env}.rb",
165
+ %Q{
166
+
167
+ # STMP configuration
168
+ config.action_mailer.default_url_options = { :host => ENV['HOST_DEFAULT_URL'], only_path: false }
169
+ config.action_mailer.delivery_method = :smtp
170
+ },
171
+ after: "config.active_record.dump_schema_after_migration = false"
172
+ end
173
+ end
162
174
  end
163
175
  end
@@ -91,6 +91,7 @@ module Platter
91
91
  say "Setting up Sendgrid configuration"
92
92
  build :init_sendgrid_initialize_file
93
93
  build :add_exception_notification_mailer_configuration
94
+ build :add_smtp_configuration_for_deployment
94
95
  end
95
96
 
96
97
  protected
@@ -1,5 +1,5 @@
1
1
  module Platter
2
2
  RAILS_VERSION = "4.2.1"
3
- RUBY_VERSION = "2.2.1"
4
- VERSION = "0.0.3"
3
+ RUBY_VERSION = "2.2.3"
4
+ VERSION = "0.0.4"
5
5
  end
@@ -15,6 +15,7 @@ group :development do
15
15
  gem "spring"
16
16
  gem "spring-commands-rspec"
17
17
  gem "web-console"
18
+ gem "quiet_assets"
18
19
  end
19
20
 
20
21
  group :development, :test do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Icalia Labs
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-09 00:00:00.000000000 Z
12
+ date: 2015-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - ">="
113
113
  - !ruby/object:Gem::Version
114
- version: 2.2.1
114
+ version: 2.2.3
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - ">="
@@ -119,9 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.4.5
122
+ rubygems_version: 2.4.8
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: A solution to create custom Rails apps used at @icalialabs
126
126
  test_files: []
127
- has_rdoc: