kanrisuru 0.19.0 → 0.19.1

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: 80ead7b757f8228b63f2908df9163f726e99ec27dcd2b88f7a5ff197e98f8008
4
- data.tar.gz: 8393af4b3e03f583981b06eaa384b47527882870289df125d4887f98abb293b2
3
+ metadata.gz: a2f4308d14c64ac5f78a9f459623671d0d91901b679570ab72466c5176c22035
4
+ data.tar.gz: 734a54c6d1d147bf4e2ae67be7b3569331849cf9cb2df458d15dbe3effcc9292
5
5
  SHA512:
6
- metadata.gz: 2268c08d84aa9cf09232900c7d2ccd489cb9de12aa77c3fdc9666eb8859d41b072a932d0afb0d6ed2818978e641dee1569ddeda30f417466f7bd1a8150206cb9
7
- data.tar.gz: e4ef880302b200deafb4c69e703cfb79fc4162d20d6b6269a635e0277f790c4c872299513cab53edeb395f20e15660fda09ba7d0c135b8ebf97d67b7464e1859
6
+ metadata.gz: bb982b8fa4cb1c313ec4111770498ee9ff2bd75676bc2a5c57da71b3ef5f3dc01a9c016848939ef92bb0b84ed990f64684d7825bc93febd4a7d5e8def44ec5a8
7
+ data.tar.gz: b97a3b67ef2b3be719d967adf2e3bf54ac583da368d96a95ea18d415961f46a5368768f022f160a4de3f7de6f9d2787f5c68b66e547e2c4c7ee1b931b2f3d9ec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## Kanrisuru 0.19.1 (February 02, 2022) ##
2
+ * Fix `load_env` command with parsing output, use `to_a` for cleaner newline parsing.
3
+
1
4
  ## Kanrisuru 0.19.0 (January 25, 2022) ##
2
5
  * Add readonly version of `sysctl` command with test cases.
3
6
 
@@ -6,12 +6,11 @@ module Kanrisuru
6
6
  module Parser
7
7
  class LoadEnv
8
8
  def self.parse(command)
9
- string = command.to_s
9
+ rows = command.to_a
10
10
  hash = {}
11
11
 
12
- rows = string.split("\n")
13
12
  rows.each do |row|
14
- key, value = row.split('=', 2)
13
+ key, value = row.split('=')
15
14
  hash[key] = value
16
15
  end
17
16
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanrisuru
4
- VERSION = '0.19.0'
4
+ VERSION = '0.19.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kanrisuru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mammina
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-25 00:00:00.000000000 Z
11
+ date: 2022-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel_tests