poke-your-api 0.2.5 → 0.2.6

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: 3cd2899179586fbaacf682ae4a9cd4813d014543e3ec281ed778cff26601a43a
4
- data.tar.gz: 0450cce6ee6fafca571d0ba53973fd25416531d13d108b4ece8ff4acf40208d9
3
+ metadata.gz: 5faa734fd975687e4ceab01ce080d11a92596e416c3f6a679a77b38218cd34c0
4
+ data.tar.gz: b2ffcd2e5334dc9225df1faf80a66893f97e8cfad5218a6c4e3341a32aae1d63
5
5
  SHA512:
6
- metadata.gz: 63b160388bbc777cc5f248db29bc35bc2853302ac3b0a19a5a2b39abd5f6a0bc962ab4160787e94c848bb403fe9f3fb1e42c7537ef6dbe3f4fd853f34716cdc3
7
- data.tar.gz: 9d17a1e3c0d4c2e7c99579de8ed5e7ac969b5963eb8b1ae558027b0c0a6e5789ecc58f7d89059d9919880f427e0d87b84fe4da926942bdb5135cf702beb262b2
6
+ metadata.gz: 6b4ccd07aea0d9fa0c0b3d6f1be466a7e63b51cab05768796a654c0e138fb135b478d3a5441b4a08766abfc400674f3306cf6e50e7bf8b1c92e39c414ca003cc
7
+ data.tar.gz: 14369f4b14072e17ef14d86bf89aeb70f4d3b8498cf0dc427dd9333abc11732e07afd0ebbe4821cfa368670c091a7af1fa9a00b8bb367a99fce8bc4c401902fd
@@ -99,7 +99,7 @@ module Poke
99
99
  out = TTY::Command.new(printer: :null).run("cat #{path}").out
100
100
  out << "\n" unless out[-1] == "\n"
101
101
 
102
- command_lines = out.split(" \\\n").map(&:strip)
102
+ command_lines = out.split(/ \\\n|\n/).map(&:strip)
103
103
 
104
104
  comments = command_lines.filter { |line| line.start_with?('#') }.join(" \\\n")
105
105
  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.5'
4
+ VERSION = '0.2.6'
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.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Bator
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-24 00:00:00.000000000 Z
11
+ date: 2025-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pastel