php-serialized-formatter 0.0.1 → 0.0.2
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 +4 -4
- data/LICENSE +1 -1
- data/lib/psf/php_serial.rb +1 -1
- data/lib/psf/string_utils.rb +1 -1
- data/lib/psf/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6f7b84959dc9cbbd5c346c13c5406d3dcfb702fa4c16a32e38162c793b5e2bb
|
|
4
|
+
data.tar.gz: facdd3e00170a05b83f37dc9d71d2385b576a19e3af870ece6512770da4c73db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4476569b804478a6fb29e57b86b23841425faec73f385e9943728d2ef187d7d7552ede12b83501b77de72fd18cf1153a472435c54bf9d03017b500db2706d2a
|
|
7
|
+
data.tar.gz: 68a2d49442b170418392a63d8e048a8cc3903aaeaf4d7979a9af5d52b46cd417c391a4754de7be457c35dff0daf193315697df4433568e05547c6d337957ae97
|
data/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025 Alexandre ZANNI (noraj)
|
|
3
|
+
Copyright (c) 2025-2026 Alexandre ZANNI (noraj)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/lib/psf/php_serial.rb
CHANGED
|
@@ -118,7 +118,7 @@ module Psf
|
|
|
118
118
|
end
|
|
119
119
|
extract_until!(data, '}')
|
|
120
120
|
# if keys are sequential numbers, return array
|
|
121
|
-
value = value.values if (Array(0..value.length - 1) == value.keys) && !value.empty?
|
|
121
|
+
value = value.values if (Array(0..(value.length - 1)) == value.keys) && !value.empty?
|
|
122
122
|
when 'O'
|
|
123
123
|
value = {}
|
|
124
124
|
length = extract_until!(data, ':').to_i
|
data/lib/psf/string_utils.rb
CHANGED
|
@@ -13,7 +13,7 @@ class String
|
|
|
13
13
|
byte_length = bytesize - byte_start_index if byte_start_index + byte_length > bytesize
|
|
14
14
|
|
|
15
15
|
out = byteslice(byte_start_index, byte_length)
|
|
16
|
-
replace(byteslice(0, byte_start_index) + byteslice(byte_start_index + byte_length..-1))
|
|
16
|
+
replace(byteslice(0, byte_start_index) + byteslice((byte_start_index + byte_length)..-1))
|
|
17
17
|
out
|
|
18
18
|
end
|
|
19
19
|
end
|
data/lib/psf/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: php-serialized-formatter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexandre ZANNI
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: docopt
|
|
@@ -55,17 +55,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
55
55
|
requirements:
|
|
56
56
|
- - ">="
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
|
-
version: 3.
|
|
58
|
+
version: 3.2.0
|
|
59
59
|
- - "<"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
61
|
+
version: '5.0'
|
|
62
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
requirements:
|
|
64
64
|
- - ">="
|
|
65
65
|
- !ruby/object:Gem::Version
|
|
66
66
|
version: '0'
|
|
67
67
|
requirements: []
|
|
68
|
-
rubygems_version:
|
|
68
|
+
rubygems_version: 4.0.3
|
|
69
69
|
specification_version: 4
|
|
70
70
|
summary: Serialize and unserialize to|from PHP session|objects.
|
|
71
71
|
test_files: []
|