potassium 5.1.3 → 5.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d8173e2d9e1987d6bf789dd475cf85b5adae052
4
- data.tar.gz: 434d716a4e19d35a251c40cb88e7dbeab15bf81f
3
+ metadata.gz: 8e3229a27d5e3432c237879deb06753f6d6eba7f
4
+ data.tar.gz: 8b2ee90efb39056ecbdafd7f3e5acfbce40502a9
5
5
  SHA512:
6
- metadata.gz: 7dae70d432ca85b7208b0f8a81bc6771ecd434f13ec20fcdd58bb2d1332ddfca8bcf721574a8702e1e59e02f8ee2c87c16442190a49121a88795061a383326b6
7
- data.tar.gz: 6056a681ec4b28638cf5b0f77ac96a11e7f0d29cab91ddde1d98f20ae81412c3c794bfde2f7a6af52c990953f57195703a1a321f1121b860af3a7aaa294b4e2f
6
+ metadata.gz: 420d0c10911f3c4fa6da1be9e67e9bfb894a6a16431a1fc482b9781bc943013cea3a319dac589e3721af45c770a50edb6196205b96e7555fc3158f09cd1c49d1
7
+ data.tar.gz: d4759c06b04f116e0ff83df017df9c3f03426597e50127049658a50d851bb4bacea7c46b4c7e6c1dec15f5ce7655e8e4ca8eb2fcd64887e1639e11615dbd8016
@@ -1 +1 @@
1
- 2.3
1
+ 2.4
@@ -2,6 +2,17 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 5.1.4
6
+
7
+ Changes:
8
+ - Update ruby to 2.4
9
+
10
+ Features:
11
+ - Always use https in production
12
+
13
+ Fix:
14
+ - Schedule recipe selection
15
+
5
16
  ## 5.1.3
6
17
 
7
18
  Features:
data/circle.yml CHANGED
@@ -1,8 +1,10 @@
1
1
  machine:
2
2
  ruby:
3
- version: 2.3.1
3
+ version: 2.4.1
4
4
  services:
5
5
  - docker
6
+ post:
7
+ - "echo 'export rvm_install_on_use_flag=0' >> /home/ubuntu/.rvmrc"
6
8
 
7
9
  dependencies:
8
10
  override:
@@ -1,4 +1,4 @@
1
- FROM platanus/ruby:2.3
1
+ FROM platanus/ruby:2.4
2
2
 
3
3
  RUN mkdir /app
4
4
  WORKDIR /app
@@ -3,7 +3,7 @@ Rails.application.config.action_mailer.delivery_method = :<%= get(:mailer_delive
3
3
 
4
4
  Rails.application.config.action_mailer.default_url_options = {
5
5
  host: ENV.fetch('APPLICATION_HOST'),
6
- protocol: ENV['FORCE_SSL'] == 'true' ? 'https' : 'http'
6
+ protocol: 'https'
7
7
  }
8
8
 
9
9
  Rails.application.config.action_mailer.default_options = { from: ENV['DEFAULT_EMAIL_ADDRESS'] }
@@ -27,7 +27,7 @@ class Recipes::Paperclip < Rails::AppBuilder
27
27
  <<-RUBY.gsub(/^ {7}/, '')
28
28
  config.paperclip_defaults = {
29
29
  storage: :s3,
30
- s3_protocol: ENV['FORCE_SSL'] == 'true' ? 'https' : 'http',
30
+ s3_protocol: 'https'
31
31
  s3_region: ENV.fetch('AWS_REGION', 'us-east-1'),
32
32
  s3_credentials: {
33
33
  bucket: ENV['S3_BUCKET']
@@ -0,0 +1,5 @@
1
+ class Recipes::Rails < Rails::AppBuilder
2
+ def create
3
+ environment 'config.force_ssl = true', env: 'production'
4
+ end
5
+ end
@@ -20,6 +20,6 @@ class Recipes::Schedule < Rails::AppBuilder
20
20
  end
21
21
 
22
22
  def installed?
23
- gem_exists?("sidekiq-scheduler") && file_exist?('config/sidekiq.yml')
23
+ gem_exists?(/sidekiq-scheduler/) && file_exist?('config/sidekiq.yml')
24
24
  end
25
25
  end
@@ -36,6 +36,7 @@ run_action(:asking) do
36
36
  end
37
37
 
38
38
  run_action(:recipe_loading) do
39
+ create :rails
39
40
  create :readme
40
41
  create :heroku
41
42
  create :ci
@@ -1,6 +1,6 @@
1
1
  module Potassium
2
- VERSION = "5.1.3"
3
- RUBY_VERSION = "2.3.1"
2
+ VERSION = "5.1.4"
3
+ RUBY_VERSION = "2.4.1"
4
4
  RAILS_VERSION = "~> 5.1.3"
5
5
  RUBOCOP_VERSION = "~> 0.49.1"
6
6
  end
@@ -29,7 +29,13 @@ RSpec.describe "A new project" do
29
29
  it "configures the correct ruby version" do
30
30
  ruby_version_file = IO.read("#{project_path}/.ruby-version")
31
31
 
32
- expect(ruby_version_file).to eq("2.3")
32
+ expect(ruby_version_file).to eq("2.4")
33
+ end
34
+
35
+ it "setup ssl" do
36
+ content = IO.read("#{project_path}/config/environments/production.rb")
37
+
38
+ expect(content).to include %{force_ssl = true}
33
39
  end
34
40
 
35
41
  context "seeds related issues" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: potassium
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.3
4
+ version: 5.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - juliogarciag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-01 00:00:00.000000000 Z
11
+ date: 2017-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -279,6 +279,7 @@ files:
279
279
  - lib/potassium/recipes/puma.rb
280
280
  - lib/potassium/recipes/pundit.rb
281
281
  - lib/potassium/recipes/rack_cors.rb
282
+ - lib/potassium/recipes/rails.rb
282
283
  - lib/potassium/recipes/readme.rb
283
284
  - lib/potassium/recipes/ruby.rb
284
285
  - lib/potassium/recipes/schedule.rb
@@ -333,7 +334,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
333
334
  version: '0'
334
335
  requirements: []
335
336
  rubyforge_project:
336
- rubygems_version: 2.6.12
337
+ rubygems_version: 2.6.11
337
338
  signing_key:
338
339
  specification_version: 4
339
340
  summary: An application generator from Platanus