bizside 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bizside/coverage/launch.rb +24 -22
- data/lib/bizside/coverage/rcov_formatter.rb +9 -7
- data/lib/bizside/itamae_conf.rb +1 -1
- data/lib/bizside/railtie.rb +1 -1
- data/lib/bizside/test_help.rb +1 -1
- data/lib/bizside/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83e0bd569cc69b29a5b94149fe19c1c05b693d068efb431e4df4f3e1316227f4
|
4
|
+
data.tar.gz: 68c1a8dfb0b3b9aec6ff5ac295065db4349eb9b9137111875970d37283489dfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e73e54b48e6ad6403b2500e59f6ad22771b16a7b7216152ab1c695307443bd8cdbeb682cc7da751705f2cd26e6554151e69fc0d91011545a94f194bb51802ac5
|
7
|
+
data.tar.gz: 240ea5e5d179e532e6698f765e2c5057eebb3d1e8f76b5886f83fa8416c7d5bff6db5dd7826ba31b62083604eeabca1428e4627d269c415a4de306fe54034de7
|
@@ -1,33 +1,35 @@
|
|
1
1
|
module Bizside
|
2
|
-
|
2
|
+
module Coverage
|
3
|
+
class Launch
|
3
4
|
|
4
|
-
|
5
|
-
|
6
|
-
|
5
|
+
def self.load
|
6
|
+
if ENV["COVERAGE"].to_s.downcase == 'true' and ENV['ACCEPTANCE_TEST'].to_s.downcase == 'true'
|
7
|
+
setup()
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
9
|
+
SimpleCov.start 'rails' do
|
10
|
+
SimpleCov.command_name(ENV['COMMAND_NAME']) if ENV['COMMAND_NAME']
|
11
|
+
SimpleCov.merge_timeout(7200)
|
12
|
+
end
|
11
13
|
end
|
12
14
|
end
|
13
|
-
end
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
def self.load_from_test_helper
|
17
|
+
if ENV["COVERAGE"] == 'true'
|
18
|
+
setup()
|
19
|
+
SimpleCov.start 'rails'
|
20
|
+
end
|
19
21
|
end
|
20
|
-
end
|
21
22
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
23
|
+
def self.setup
|
24
|
+
require 'simplecov'
|
25
|
+
require 'simplecov-rcov'
|
26
|
+
require_relative 'rcov_formatter'
|
27
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
28
|
+
SimpleCov::Formatter::HTMLFormatter,
|
29
|
+
Bizside::Coverage::RcovFormatter
|
30
|
+
])
|
31
|
+
end
|
32
|
+
private_class_method :setup
|
30
33
|
end
|
31
|
-
private_class_method :setup
|
32
34
|
end
|
33
35
|
end
|
@@ -1,12 +1,14 @@
|
|
1
|
-
module
|
2
|
-
|
1
|
+
module Bizside
|
2
|
+
module Coverage
|
3
|
+
class RcovFormatter < SimpleCov::Formatter::RcovFormatter
|
3
4
|
|
4
|
-
|
5
|
+
private
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
def write_file(template, output_filename, binding)
|
8
|
+
rcov_result = template.result( binding ).force_encoding('UTF-8')
|
9
|
+
File.open( output_filename, "w" ) do |file_result|
|
10
|
+
file_result.write rcov_result
|
11
|
+
end
|
10
12
|
end
|
11
13
|
end
|
12
14
|
end
|
data/lib/bizside/itamae_conf.rb
CHANGED
@@ -121,7 +121,7 @@ module Bizside
|
|
121
121
|
# config/itamae.yml:: 設定ファイル-2(*2)
|
122
122
|
# /etc/bizside/hanaita.yml:: 設定ファイル-3
|
123
123
|
#
|
124
|
-
# (*1)
|
124
|
+
# (*1) RAILS_ENV に該当する部分のみ 'db' エントリの下に読み込みます。
|
125
125
|
# (*2) 指定された ROLE のみ読み込みます。
|
126
126
|
class ItamaeConf < ItamaeConfSub
|
127
127
|
class OverWriteError < StandardError; end
|
data/lib/bizside/railtie.rb
CHANGED
data/lib/bizside/test_help.rb
CHANGED
data/lib/bizside/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bizside
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bizside-developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|