CFPropertyList 2.3.3 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cfpropertylist/rbBinaryCFPropertyList.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fed36ec005093ba1f807a74c18663aeb8856db98
|
4
|
+
data.tar.gz: db6fd0816a55bea5e25a8c93da368a4efacfe44d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a47b50c40fa6479a49492a0a8f398b51635024901993b906a371fb581d8fcf6ab632eb79791022fb04c7807f9f72f5b0d0a37baa3cfa5b4309e6db6d9cd3bec
|
7
|
+
data.tar.gz: 722031d4937bb475092fbaca27575c2071b3fc4d22c71d42394b290810a06396d7a63a4b959b141835d0b39a66a439a59f50d2b08178bc582825485f0341b293
|
@@ -166,9 +166,9 @@ module CFPropertyList
|
|
166
166
|
when 1 # 2 byte float? must be an error
|
167
167
|
raise CFFormatError.new("got #{length+1} byte float, must be an error!")
|
168
168
|
when 2 then
|
169
|
-
buff.reverse.unpack("
|
169
|
+
buff.reverse.unpack("e")[0]
|
170
170
|
when 3 then
|
171
|
-
buff.reverse.unpack("
|
171
|
+
buff.reverse.unpack("E")[0]
|
172
172
|
else
|
173
173
|
fail "unexpected length: #{length}"
|
174
174
|
end
|
@@ -190,9 +190,9 @@ module CFPropertyList
|
|
190
190
|
when 1 then # 2 byte CFDate is an error
|
191
191
|
raise CFFormatError.new("#{length+1} byte CFDate, error")
|
192
192
|
when 2 then
|
193
|
-
buff.reverse.unpack("
|
193
|
+
buff.reverse.unpack("e")[0]
|
194
194
|
when 3 then
|
195
|
-
buff.reverse.unpack("
|
195
|
+
buff.reverse.unpack("E")[0]
|
196
196
|
end,
|
197
197
|
CFDate::TIMESTAMP_APPLE
|
198
198
|
)
|
@@ -498,7 +498,7 @@ module CFPropertyList
|
|
498
498
|
|
499
499
|
# Codes a real value to binary format
|
500
500
|
def real_to_binary(val)
|
501
|
-
Binary.type_bytes(0b0010,3) << [val].pack("
|
501
|
+
Binary.type_bytes(0b0010,3) << [val].pack("E").reverse
|
502
502
|
end
|
503
503
|
|
504
504
|
# Converts a numeric value to binary and adds it to the object table
|
@@ -545,7 +545,7 @@ module CFPropertyList
|
|
545
545
|
val = val.getutc.to_f - CFDate::DATE_DIFF_APPLE_UNIX # CFDate is a real, number of seconds since 01/01/2001 00:00:00 GMT
|
546
546
|
|
547
547
|
@object_table[@written_object_count] =
|
548
|
-
(Binary.type_bytes(0b0011, 3) << [val].pack("
|
548
|
+
(Binary.type_bytes(0b0011, 3) << [val].pack("E").reverse)
|
549
549
|
|
550
550
|
@written_object_count += 1
|
551
551
|
@written_object_count - 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: CFPropertyList
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Kruse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|