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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '059244a56e51ddb0792c2c037873f656019ea069dd6c8b3617e85595b4fb6a53'
4
- data.tar.gz: ad4c47309502acb762b9cf8dfb804d3ac5040914aa8fb4d5cb141648a0ea5f64
3
+ metadata.gz: c6f7b84959dc9cbbd5c346c13c5406d3dcfb702fa4c16a32e38162c793b5e2bb
4
+ data.tar.gz: facdd3e00170a05b83f37dc9d71d2385b576a19e3af870ece6512770da4c73db
5
5
  SHA512:
6
- metadata.gz: e5f968144bbf15c9cf8d0b3d3e546e86c4e76d4c51b9327f81e690d24aa5f683a06803de8a0dbef7437c98256c4561ada0ee62db6f204f6ad29c1902c45da2c6
7
- data.tar.gz: be61df6b4acb9dbaf91a7aef59642aea213502f753e16b10a207d5a63392b03e290832175fcaa4910f42178e54ec5b0399e8def567a5a3ab17badd2bf720c3c1
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
@@ -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
@@ -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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Psf
4
4
  # Version of php-serialized-formatter library and app
5
- VERSION = '0.0.1'
5
+ VERSION = '0.0.2'
6
6
  end
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.1
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: 2025-05-04 00:00:00.000000000 Z
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.1.0
58
+ version: 3.2.0
59
59
  - - "<"
60
60
  - !ruby/object:Gem::Version
61
- version: '4.0'
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: 3.6.2
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: []