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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4d9638ea5e5dfa6d31d064b2a6e1adb93902ea1
4
- data.tar.gz: 0cdf60091515977a9ed19a87826f54ca01726031
3
+ metadata.gz: fed36ec005093ba1f807a74c18663aeb8856db98
4
+ data.tar.gz: db6fd0816a55bea5e25a8c93da368a4efacfe44d
5
5
  SHA512:
6
- metadata.gz: 283b0cdbd098f52e0cbf591fd1c01a5f6e46038e1eba6579d78a4f2bb5f14c5c41fe1a8262720821cb1ebf4e601fb8dcd1ef730df23bdbd9ddd87112511f046a
7
- data.tar.gz: ef954fbf1f7f591795587d2ee7199c9c27fcf4e99f6769e787c1ca8d6fd6b31b6bcc94ab2f468e6c92fa56bf30d18dd7a2e7184d91cb7fb1ad6cd3ce46e77792
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("f")[0]
169
+ buff.reverse.unpack("e")[0]
170
170
  when 3 then
171
- buff.reverse.unpack("d")[0]
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("f")[0]
193
+ buff.reverse.unpack("e")[0]
194
194
  when 3 then
195
- buff.reverse.unpack("d")[0]
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("d").reverse
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("d").reverse)
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.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-09-08 00:00:00.000000000 Z
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake