jrf 0.1.16 → 0.1.17

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: 6322c9bdff22bdad86d88d1bb0fc0aa2709b5906370b8e0fbe3181c28c06d1ef
4
- data.tar.gz: 42858589e03a0bbba83aa19f6443d0a55355853e1b307a693709a0b8d4c64cfd
3
+ metadata.gz: 2468eef61c2691e368b10cd5077ba3559430766d3a6001dea88da10793800ff6
4
+ data.tar.gz: ccce0fb9a0ff3c6e77b669d6908a42147431a0ade44c8365765ad84ca91a111b
5
5
  SHA512:
6
- metadata.gz: 7d2376e4bb3c6e365c6d01e8ef0dd8a5f96c401534faf2f754b0e68171fdd823b415cf3b400c3ff19957a5e25138af28b3bba7ca0300f2796d67dd5f4116365d
7
- data.tar.gz: bbad8cce872f696f09ed8a2674cc5f8c9979ea38fdbe88bf50f6fdfff541d555dea28052b334e5e1fbb3a9d37037a853a491e86d3971a02ea07631dbe35618a3
6
+ metadata.gz: 8e11dd7b55c48f80164a3f8c7a1ca5fef51204b098382802144bd757da150b39c2f69d0b69f718ba70da08f0bd88cc19b2c86488040e2062b566bb093f3bca88
7
+ data.tar.gz: f43bdabcfa9728e5fbc7c4a4a8be1044fe4175a7650a9aee01b14d91e1fdee1ea3c58297c2bf6602e8bf32d16432cf34daf6eb8e9d9863d4e2882e2d662d0c3c
@@ -101,7 +101,7 @@ module Jrf
101
101
  return true if j < 0
102
102
 
103
103
  prev = source[j]
104
- !(/[[:alnum:]_\]\)]/.match?(prev))
104
+ !(/[[:alnum:]_\]\)\}]/.match?(prev))
105
105
  end
106
106
  end
107
107
  end
data/lib/jrf/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jrf
4
- VERSION = "0.1.16"
4
+ VERSION = "0.1.17"
5
5
  end
@@ -255,6 +255,10 @@ class CliRunnerTest < JrfTestCase
255
255
  stdout, stderr, status = run_jrf('(-> { 1 >> 2 }).call >> _ + 1', input_split)
256
256
  assert_success(status, stderr, "no split inside block")
257
257
  assert_equal(%w[1], lines(stdout), "no split inside block output")
258
+
259
+ stdout, stderr, status = run_jrf('(-> { 6 }).call / 3', input_split)
260
+ assert_success(status, stderr, "division after block")
261
+ assert_equal(%w[2], lines(stdout), "division after block output")
258
262
  end
259
263
 
260
264
  def test_flat
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jrf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - kazuho