daddy 0.6.3 → 0.6.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 +5 -5
- data/lib/daddy/coverage/rcov_formatter.rb +18 -0
- data/lib/daddy/test_help.rb +2 -1
- data/lib/daddy/version.rb +3 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 162f62619d5e4c859dfeba7017de9701d22f8120f2ce0f5caffcea2505c455a4
|
4
|
+
data.tar.gz: 1f5139d284657fe8accfad6fc19c6439d16f00518fda658d3c653e6158aa98ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbf3ca323fc5ba2218c59a79df8e964ee3a3c582234b32464eaee6d2904527c059ac0816f88188b1ff3750f986f18b930ba22d11d15ef70c001c55c21bd30a4f
|
7
|
+
data.tar.gz: 973d8a437a0e29b0559ae7bebeff2f17a6e0d633241c6447230e5be3a813f5a2aee1c6ff3975f680019cd7be2c2d96a30d46bd5deb515a9a1a5a756a167b2da9
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'simplecov-rcov'
|
2
|
+
|
3
|
+
module Daddy
|
4
|
+
module Coverage
|
5
|
+
class RcovFormatter < SimpleCov::Formatter::RcovFormatter
|
6
|
+
|
7
|
+
private
|
8
|
+
|
9
|
+
def write_file(template, output_filename, binding)
|
10
|
+
rcov_result = template.result( binding ).force_encoding('UTF-8')
|
11
|
+
|
12
|
+
File.open( output_filename, "w" ) do |file_result|
|
13
|
+
file_result.write rcov_result
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/daddy/test_help.rb
CHANGED
@@ -6,11 +6,12 @@ if ENV['COVERAGE']
|
|
6
6
|
end
|
7
7
|
begin
|
8
8
|
require 'simplecov-rcov'
|
9
|
+
require 'daddy/coverage/rcov_formatter'
|
9
10
|
rescue LoadError => e
|
10
11
|
raise 'simplecov-rcov not found.'
|
11
12
|
end
|
12
13
|
|
13
|
-
SimpleCov.formatter =
|
14
|
+
SimpleCov.formatter = Daddy::Coverage::RcovFormatter
|
14
15
|
SimpleCov.start do
|
15
16
|
add_filter '/features/'
|
16
17
|
add_filter '/test/'
|
data/lib/daddy/version.rb
CHANGED
@@ -2,7 +2,7 @@ module Daddy
|
|
2
2
|
VERSION = [
|
3
3
|
VERSION_MAJOR = '0',
|
4
4
|
VERSION_MINOR = '6',
|
5
|
-
VERSION_REVISION = '
|
5
|
+
VERSION_REVISION = '4'
|
6
6
|
].join('.')
|
7
7
|
|
8
8
|
BAZEL_VERSION = [
|
@@ -30,8 +30,8 @@ module Daddy
|
|
30
30
|
|
31
31
|
PASSENGER_VERSION = [
|
32
32
|
PASSENGER_VERSION_MAJOR = '5',
|
33
|
-
PASSENGER_VERSION_MINOR = '
|
34
|
-
PASSENGER_VERSION_REVISION = '
|
33
|
+
PASSENGER_VERSION_MINOR = '2',
|
34
|
+
PASSENGER_VERSION_REVISION = '0'
|
35
35
|
].join('.')
|
36
36
|
|
37
37
|
PYTHON_VERSION = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -356,6 +356,7 @@ files:
|
|
356
356
|
- lib/capistrano/tasks/clear_cache.rake
|
357
357
|
- lib/capistrano/tasks/update_linked_files.rake
|
358
358
|
- lib/daddy.rb
|
359
|
+
- lib/daddy/coverage/rcov_formatter.rb
|
359
360
|
- lib/daddy/cucumber.rb
|
360
361
|
- lib/daddy/cucumber/helpers.rb
|
361
362
|
- lib/daddy/cucumber/helpers/assert.rb
|
@@ -478,7 +479,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
478
479
|
version: '0'
|
479
480
|
requirements: []
|
480
481
|
rubyforge_project:
|
481
|
-
rubygems_version: 2.6
|
482
|
+
rubygems_version: 2.7.6
|
482
483
|
signing_key:
|
483
484
|
specification_version: 4
|
484
485
|
summary: My rails dad
|