packable 1.3.15 → 1.3.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/packable/extensions/array.rb +2 -1
- data/lib/packable/extensions/io.rb +6 -3
- data/lib/packable/extensions/string.rb +2 -1
- data/lib/packable/version.rb +1 -1
- data/lib/packable.rb +0 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3f98eb2bc673649ad86ab12712b3073d2d9473a9897e23d4c650de1cf3ceac8
|
4
|
+
data.tar.gz: c52ee1140a18111b53bac46fa5fda2bffbb37229a8a840036ebd9f415d37bc2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b57986bc7021eee9b963145225bb362914dada29606456792a3a11078dae5db3d5290d49a4787ef2946bea08207960f7cec6f760c42be41aaac3252e4e6ceb71
|
7
|
+
data.tar.gz: cd440ddb087de38b6834faa4db017b1c9bf7935ec515a55f364daa26a392843d8d2fab4d0947accf1ae40887eacaae584ced4a7b2c7ace1c5793bde0fd8f1552
|
@@ -5,7 +5,8 @@ module Packable
|
|
5
5
|
module Array #:nodoc:
|
6
6
|
def self.included(base)
|
7
7
|
base.class_eval do
|
8
|
-
|
8
|
+
alias_method :pack_without_long_form, :pack
|
9
|
+
alias_method :pack, :pack_with_long_form
|
9
10
|
include Packable
|
10
11
|
extend ClassMethods
|
11
12
|
end
|
@@ -5,9 +5,12 @@ module Packable
|
|
5
5
|
module Extensions #:nodoc:
|
6
6
|
module IO
|
7
7
|
def self.included(base) #:nodoc:
|
8
|
-
base.
|
9
|
-
base.
|
10
|
-
base.
|
8
|
+
base.__send__(:alias_method, :read_without_packing, :read)
|
9
|
+
base.__send__(:alias_method, :read, :read_with_packing)
|
10
|
+
base.__send__(:alias_method, :write_without_packing, :write)
|
11
|
+
base.__send__(:alias_method, :write, :write_with_packing)
|
12
|
+
base.__send__(:alias_method, :each_without_packing, :each)
|
13
|
+
base.__send__(:alias_method, :each, :each_with_packing)
|
11
14
|
end
|
12
15
|
|
13
16
|
# Methods supported by seekable streams.
|
@@ -8,7 +8,8 @@ module Packable
|
|
8
8
|
base.class_eval do
|
9
9
|
include Packable
|
10
10
|
extend ClassMethods
|
11
|
-
|
11
|
+
alias_method :unpack_without_long_form, :unpack
|
12
|
+
alias_method :unpack, :unpack_with_long_form
|
12
13
|
packers.set :merge_all, :fill => " "
|
13
14
|
end
|
14
15
|
end
|
data/lib/packable/version.rb
CHANGED
data/lib/packable.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc-André Lafortune
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backports
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
rubygems_version: 3.
|
117
|
+
rubygems_version: 3.4.1
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: Extensive packing and unpacking capabilities
|