lolipop-mc-starter-rails 0.2.4 → 0.3.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6307a4e7d983a98706671c4fe0a73b3ef6be48b23b656a3013ab533e15c04ee
|
4
|
+
data.tar.gz: 954bdf4e7f3c9031fde1a463af8aa1d6ac990a822845a2ca848e4a6afe8d2c19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cea057d206b58793b8a53537d40921acbe9a7d142c8118ab0185843509e9dd378730e963ec3375e073477c3da2197ead26293be499d70a867891558af2c477ee
|
7
|
+
data.tar.gz: f31222296c5d6cf200a80e70eac039fbc58b0ee0f91afdf806712ef770f3b94833785af6c1e88904ca0743a3181dbc41df270c45b0d40ff3f2ca0d7fe3c0754b
|
@@ -24,6 +24,12 @@ module Lolipop
|
|
24
24
|
end
|
25
25
|
local_version = config['ruby']
|
26
26
|
"マネージドクラウドのRailsプロジェクトのRubyのバージョンとローカルのRubyのバージョンが同じでないようです\nマネージドクラウド:#{version} ローカル:#{local_version}" unless local_version.include?(version)
|
27
|
+
|
28
|
+
gemfile_path = "#{Dir.pwd}/Gemfile"
|
29
|
+
raise 'Gemfileがありません' unless File.exist?(gemfile_path)
|
30
|
+
content = File.read(gemfile_path)
|
31
|
+
raise 'Gemfileに指定してあるRubyのバージョンとローカルのRubyのバージョンが同じでないようです' unless content.include?("ruby '#{version}'")
|
32
|
+
|
27
33
|
'マネージドクラウドのRailsプロジェクトのRubyのバージョンとローカルのRubyのバージョンが同じです'
|
28
34
|
end
|
29
35
|
|
@@ -14,7 +14,16 @@ module Lolipop
|
|
14
14
|
|
15
15
|
def hint
|
16
16
|
puts 'マネージドクラウドのRailsプロジェクトはMySQLが利用できます'
|
17
|
-
puts
|
17
|
+
puts '本番環境ではMySQLを利用するためmysql2.gemが必要です'
|
18
|
+
puts '以下の2つを実行してください'
|
19
|
+
puts '1. まずGemfileに以下のように追記してください。末尾で構いません'
|
20
|
+
puts ''
|
21
|
+
puts 'group :production do'
|
22
|
+
puts " gem 'mysql2'"
|
23
|
+
puts 'end'
|
24
|
+
puts ''
|
25
|
+
puts '2. 次に `bundle install --without=production` を実行してください'
|
26
|
+
puts '`bundle install`が成功したら再度 `mc-rails check` を実行してください'
|
18
27
|
end
|
19
28
|
end
|
20
29
|
end
|
@@ -8,6 +8,7 @@ module Lolipop
|
|
8
8
|
require 'lolipop/mc/starter/rails/check_item/ruby'
|
9
9
|
require 'lolipop/mc/starter/rails/check_item/rails_dir'
|
10
10
|
require 'lolipop/mc/starter/rails/check_item/ssh'
|
11
|
+
require 'lolipop/mc/starter/rails/check_item/env_ruby'
|
11
12
|
require 'lolipop/mc/starter/rails/check_item/rails'
|
12
13
|
require 'lolipop/mc/starter/rails/check_item/git_log'
|
13
14
|
require 'lolipop/mc/starter/rails/check_item/git_remote'
|
@@ -22,6 +23,7 @@ module Lolipop
|
|
22
23
|
Lolipop::Mc::Starter::Rails::CheckItem::Ruby,
|
23
24
|
Lolipop::Mc::Starter::Rails::CheckItem::RailsDir,
|
24
25
|
Lolipop::Mc::Starter::Rails::CheckItem::SSH,
|
26
|
+
Lolipop::Mc::Starter::Rails::CheckItem::EnvRuby,
|
25
27
|
Lolipop::Mc::Starter::Rails::CheckItem::Rails,
|
26
28
|
Lolipop::Mc::Starter::Rails::CheckItem::GitLog,
|
27
29
|
Lolipop::Mc::Starter::Rails::CheckItem::GitRemote,
|