wolf_core 0.1.86 → 0.1.87

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: 1c170f919a616c6b9c9cebf86529a032851af2ee339bec615a0f0a03bf765ca5
4
- data.tar.gz: 01b4eb3917f471ad2f4af9a2335cfdfc5e601afc3489645dcff35e0b91e539e6
3
+ metadata.gz: 282a5ac53ad861a5f322779a6545672a8bdf1ed6c63d032f924780c58a658349
4
+ data.tar.gz: 43dd218e3cd90c8c88476211505e1f065418f4cbd683e73959abeb12b33dbed2
5
5
  SHA512:
6
- metadata.gz: 01b7710e29eacde3b6e5e2c4c43c59436e0cdbc0138299c217115c0bff41adaa03c88c1f56cdfa2cd18dd75f1b9079c62037ecf69f5c6cfbe455d30b4dcd0648
7
- data.tar.gz: b8e2dc9d4281d367fde490adbb74313e7e8aeecaa3ef14f66fa4ea46ddcf297f99f811dbe47a9820fc041932478e0456c1bd5a12344e4294b9f8d1f59be1973a
6
+ metadata.gz: 7e2e8db6a191ce5ec957d0b6394a56d5aea4af3b7ce8742332fbb36e09ade33e13267bcadc30d1fdc94c5da51a132a03b1d23954230620f9015894aa171d7708
7
+ data.tar.gz: 908e89a9b18d245a828fbbafa0abc885c81ecb50cfdbc65c9f2a86a4f15db703af925c1f314d96fa64ff3f5469bbde3eefba4f1fd6262233b413c6a110e34807
@@ -15,5 +15,9 @@ module WolfCore
15
15
  def remove_blank_spaces(str)
16
16
  str&.gsub(/\s+/, '')
17
17
  end
18
+
19
+ def hash_str_to_json(hash_str)
20
+ hash_str.gsub('=>', ':').gsub('\"', '"').gsub('{', '{').gsub('}', '}').gsub(/(\w+)(?=\s*:)/) { |key| "\"#{key}\"" }
21
+ end
18
22
  end
19
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.86"
4
+ VERSION = "0.1.87"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.86
4
+ version: 0.1.87
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-05 00:00:00.000000000 Z
11
+ date: 2024-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty