poke-your-api 0.2.6 → 0.2.7

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: 5faa734fd975687e4ceab01ce080d11a92596e416c3f6a679a77b38218cd34c0
4
- data.tar.gz: b2ffcd2e5334dc9225df1faf80a66893f97e8cfad5218a6c4e3341a32aae1d63
3
+ metadata.gz: 3c406973279d9a2c5d5045a0897a2f9fa944d6954cb036586189dfcd85d13ac8
4
+ data.tar.gz: 278140c048ff323f8bbab40d20a04a0fafc68a31b3441187158a733ec6b62f20
5
5
  SHA512:
6
- metadata.gz: 6b4ccd07aea0d9fa0c0b3d6f1be466a7e63b51cab05768796a654c0e138fb135b478d3a5441b4a08766abfc400674f3306cf6e50e7bf8b1c92e39c414ca003cc
7
- data.tar.gz: 14369f4b14072e17ef14d86bf89aeb70f4d3b8498cf0dc427dd9333abc11732e07afd0ebbe4821cfa368670c091a7af1fa9a00b8bb367a99fce8bc4c401902fd
6
+ metadata.gz: f7e9e8c28fcf44d52bac31d27f3a9d243771d221bb801790b5323417856059af953e1039bc90fa73d651f295a47e1ca852069683cbd34ece5fa3e1137ea7cd1c
7
+ data.tar.gz: 6ea22db23dc5754718b53dc01c45f77800f1da7615e591ed6f0d92dbe76d8feb814c5106acb803e695d83627832681c7444b74081a52c2d0380eb539c93cea62
@@ -81,7 +81,7 @@ module Poke
81
81
  out = TTY::Command.new(printer: :null).run("cat #{path}").out
82
82
  out << "\n" unless out[-1] == "\n"
83
83
 
84
- command_lines = out.split(" \\\n").map(&:strip)
84
+ command_lines = out.split(/ \\\n|\n/).map(&:strip)
85
85
 
86
86
  comments = command_lines.filter { |line| line.start_with?('#') }.join(" \\\n")
87
87
  command_lines = command_lines.reject { |line| line.start_with?('#') }
data/lib/poke/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Poke
4
- VERSION = '0.2.6'
4
+ VERSION = '0.2.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poke-your-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Bator
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-04 00:00:00.000000000 Z
11
+ date: 2025-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pastel