w-stdlib 0.0.3 → 0.0.4

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: d0f859dd54488407e0b2cb1b5fc29a68c5d2197d15e0b4db2707ee1c1858bf22
4
- data.tar.gz: 02a022da5d1024e3d0454217037c3cedd4b8fe4dacd9c487cc5f5f6a9ccf841c
3
+ metadata.gz: 28500d59522b12dd5198f4ecd55ee5654d5948f90153ed03f343173f87841217
4
+ data.tar.gz: 9e6c62b9006a8a9fc58867eabbd9ca83009627652e03621cbf84f1a4e8b186bc
5
5
  SHA512:
6
- metadata.gz: bee610e0990bb050660a743fcc8769fedf49f06a594813f285eea16045046b0f13cc63270651c7b5b2e9e0981639d939ab2db6b10fdfb884ed34f88dc40b5a0b
7
- data.tar.gz: 9a269475662f0fa4ec3422e26db600ea88d7ddcc6b4eb7f78d0add65934c73d150057d53aead0813d481be4298e66b7d6e8e35b6a3607d5849d6104f62b8d7de
6
+ metadata.gz: 69b005c0a9a697a8f63aa09e7584e5417c64185a1b129028ed558b971d3c32cc45675082e1cd06fb04df4f3a16476876b11d20a585866606f7253a8779309fa2
7
+ data.tar.gz: 0c7b14ba520328544960cea79efe5c16f161c120b6d61e867948ccff49ee5a35e0d134fa4e221464d861a1d30097f437c2766104388a3e7dff04fd183d6ab898
data/lib/w-stdlib/aws.rb CHANGED
@@ -1,7 +1,7 @@
1
- require_relative 'glob'
2
- require_relative 'core_ext/string'
3
- require_relative 'core_ext/object'
4
- require_relative 'core_ext/hash'
1
+ require_relative '../lib/glob'
2
+ require_relative '../lib/core_ext/string'
3
+ require_relative '../lib/core_ext/object'
4
+ require_relative '../lib/core_ext/hash'
5
5
 
6
6
  using StringExt
7
7
  using ObjectExt
@@ -1,6 +1,6 @@
1
1
  require 'parallel'
2
2
  require 'etc'
3
- require_relative 'string'
3
+ require_relative '../../lib/core_ext/string'
4
4
 
5
5
  using StringExt
6
6
 
@@ -1,4 +1,4 @@
1
- require_relative 'string'
1
+ require_relative '../../lib/core_ext/string'
2
2
 
3
3
  using StringExt
4
4
 
@@ -1,9 +1,14 @@
1
1
  require 'base64'
2
2
  require 'json'
3
3
  require 'cgi'
4
+ require 'yaml'
4
5
 
5
6
  module StringExt
6
7
  refine String do
8
+ def from_yaml(string)
9
+ YAML.safe_load(string)
10
+ end
11
+
7
12
  def from_json
8
13
  JSON.parse self
9
14
  end
@@ -1,9 +1,9 @@
1
1
  require 'http'
2
2
  require 'json'
3
3
  require 'uri'
4
- require_relative 'core_ext/uri'
5
- require_relative 'uri'
6
- require_relative 'core_ext/string'
4
+ require_relative '../lib/core_ext/uri'
5
+ require_relative '../lib/uri'
6
+ require_relative '../lib/core_ext/string'
7
7
 
8
8
  using StringExt
9
9
 
@@ -1,7 +1,6 @@
1
1
  require 'sys/proctable'
2
- require_relative 'file'
3
- require_relative 'string'
4
-
2
+ require_relative '../lib/core_ext/file'
3
+ require_relative '../lib/core_ext/string'
5
4
  using FileExt
6
5
  using StringExt
7
6
 
data/lib/w-stdlib.rb CHANGED
@@ -1 +1 @@
1
- require 'w-stdlib/prelude'
1
+ require_relative './prelude.rb'
data/w-stdlib.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |g|
2
2
  g.name = 'w-stdlib'
3
- g.version = '0.0.3'
3
+ g.version = '0.0.4'
4
4
  g.summary = 'Pre-alpha package that contains abstractions that I find useful when scripting. Not suitable for production use. Breaking changes highly likely even with minor version bumps. Use at your own risk'
5
5
  g.description = g.summary
6
6
  g.authors = ['will@btlr.dev']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: w-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - will@btlr.dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Pre-alpha package that contains abstractions that I find useful when
14
14
  scripting. Not suitable for production use. Breaking changes highly likely even
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  requirements: []
59
- rubygems_version: 3.0.3
59
+ rubygems_version: 3.1.6
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: Pre-alpha package that contains abstractions that I find useful when scripting.