akainaa 0.1.6 → 0.1.7

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
  SHA256:
3
- metadata.gz: 423527610c1fbb25d01ddfb555e6ea40f8a943001b04dc399682937353529a23
4
- data.tar.gz: 70aab5713abf80fc2dd41783fb56b6e223d2d2549438640ca4916bf2f413cba6
3
+ metadata.gz: 5c243fb0962753dd244afa73ff9f26176ee9dc642c5c5cf850fc16c113091875
4
+ data.tar.gz: e4129d45be238490a2cb9d0b6762049a159fbc199b2a4e1c4e36b898942b68ab
5
5
  SHA512:
6
- metadata.gz: 35978a5f110960e9c5f37e5d025efb6c40307fae6e4979a4e01f368802e230d8d3ae338f4dd1ef0370a8d69d66bbddd96d5860c65e559e49e0f56b52696cf14b
7
- data.tar.gz: 92c0ac588743097d660462ee452438cbd3c98ae0933525689e4024b592c815dfc36e7696dffb4d3f33e44505d6d1ea291f7307b103013e29c6d70e066b9262b4
6
+ metadata.gz: 011f7c34de5d2d107a93daac019afda4233136d250f6665117e50d926fd3bc390de80d5657a49c12832937207020793b6fc34eeb06345dc252a9e6ef88774711
7
+ data.tar.gz: 90f99fbf909d9b5ae4c1ad9c719b2d6676c0a67b7ae6c43ad6317ec6de246f2c5b798c935de7b2d782c5e5181273ac7c6cea0c3046145d5e1924a2fc393687bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.7]
4
+
5
+ - Bug fix: Require "json" on start if online_emit enabled
6
+
3
7
  ## [0.1.6] - 2024-09-11
4
8
 
5
9
  - Feature: Add `clear` flag on first emit
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Akainaa
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
data/lib/akainaa.rb CHANGED
@@ -32,6 +32,7 @@ module Akainaa
32
32
  Coverage.start(lines: true)
33
33
 
34
34
  if online_emit.is_a?(Hash)
35
+ require 'json'
35
36
  option = default_online_emit.merge(online_emit)
36
37
  FileUtils.mkdir_p(File.dirname(option[:path]))
37
38
  start_multipart_emit(option)
@@ -60,9 +61,7 @@ module Akainaa
60
61
  end
61
62
 
62
63
  private def write_result(result, path)
63
- puts "Writing coverage result to #{path}"
64
64
  unless @first_emitted
65
- puts "with clear flag"
66
65
  result['clear'] = true
67
66
  end
68
67
  File.write(path, result.to_json)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: akainaa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shia
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-11 00:00:00.000000000 Z
11
+ date: 2024-09-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Minimum rack middleware for coverage
14
14
  email:
@@ -32,7 +32,7 @@ metadata:
32
32
  homepage_uri: https://github.com/riseshia/akainaa
33
33
  source_code_uri: https://github.com/riseshia/akainaa
34
34
  changelog_uri: https://github.com/riseshia/akainaa/blob/main/CHANGELOG.md
35
- post_install_message:
35
+ post_install_message:
36
36
  rdoc_options: []
37
37
  require_paths:
38
38
  - lib
@@ -47,8 +47,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  requirements: []
50
- rubygems_version: 3.5.11
51
- signing_key:
50
+ rubygems_version: 3.5.3
51
+ signing_key:
52
52
  specification_version: 4
53
53
  summary: Minimum rack middleware for coverage
54
54
  test_files: []