CFPropertyList 2.3.4 → 2.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cfpropertylist/rbCFPropertyList.rb +1 -1
- data/lib/cfpropertylist/rbCFTypes.rb +3 -3
- 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: 74e0407ecce8171dfa845b93f5f55e1cd7d386a3
|
4
|
+
data.tar.gz: d3d8e956ad24476ee83293c9f4d25fa23b7f2947
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96bc102584b4a4745bcfaa403667644fff60e8be9b2ad9224c454f6b977b236f16156863cc48d20b8aa4cffc0f9f0e4bbea5c05fc7f06450afb49cb37f4aaede
|
7
|
+
data.tar.gz: 9f36e44475f5b7a48d957e54b35ed99a821c3df6ead60598c4fd8a7637bbbb1b9bfa8d5a7a438456ae814696ed52a438dbf94151cf2b29974995716c78a7189a
|
@@ -130,7 +130,7 @@ module CFPropertyList
|
|
130
130
|
# cftypes = CFPropertyList.guess(x,:convert_unknown_to_string => true,:converter_method => :to_hash, :converter_with_opts => true)
|
131
131
|
def guess(object, options = {})
|
132
132
|
case object
|
133
|
-
when
|
133
|
+
when Integer then CFInteger.new(object)
|
134
134
|
when UidFixnum then CFUid.new(object)
|
135
135
|
when Float then CFReal.new(object)
|
136
136
|
when TrueClass, FalseClass then CFBoolean.new(object)
|
@@ -18,10 +18,10 @@ module CFPropertyList
|
|
18
18
|
end
|
19
19
|
|
20
20
|
##
|
21
|
-
# UidFixnum is intended to distinguish between a Ruby
|
21
|
+
# UidFixnum is intended to distinguish between a Ruby Integer
|
22
22
|
# instance that should be converted to a CFInteger/CFReal type and a
|
23
|
-
# Ruby
|
24
|
-
class UidFixnum <
|
23
|
+
# Ruby Integer instance that should be converted to a CFUid type.
|
24
|
+
class UidFixnum < Integer
|
25
25
|
end
|
26
26
|
|
27
27
|
# This class defines the base class for all CFType classes
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Kruse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|