plist.newline 3.2.2 → 3.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.rdoc +1 -1
- data/lib/plist/generator.rb +4 -4
- data/lib/plist.rb +1 -1
- data/plist.gemspec +1 -1
- metadata +14 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 62e076a698b84cf8ce8d163def3a8a5f846d7418797ed3024aa76869d731c93c
|
4
|
+
data.tar.gz: 29cc832171a8aed28b874fb4bd366ad096cbf4947b109192f26f2e899fbc28d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbcfd3ca7d87a95ec2f3825478c6ebe1410ff36cd44e2e4919933d18923cad2d76e8190947e334ce5d02799b653efcf4e09de2480affdc6d1e41d931f9ee99b9
|
7
|
+
data.tar.gz: c124f7649e913b4c449b9f19c2bc87cdfbae79f4c5dd9edd31d9ff74e2d64d3ce98b16efcff431d7388803a80791d74f2c9f6e6f6aa9fbe03823e395618cc4dc
|
data/README.rdoc
CHANGED
@@ -64,7 +64,7 @@ Plist is a library to manipulate Property List files, also known as plists. It
|
|
64
64
|
=== Generation
|
65
65
|
|
66
66
|
plist also provides the ability to generate plists from Ruby objects. The following Ruby classes are converted into native plist types:
|
67
|
-
Array,
|
67
|
+
Array, Date, DateTime, Float, Hash, Integer, String, Symbol, Time, true, false
|
68
68
|
|
69
69
|
* +Array+ and +Hash+ are both recursive; their elements will be converted into plist nodes inside the <array> and <dict> containers (respectively).
|
70
70
|
* +IO+ (and its descendants) and +StringIO+ objects are read from and their contents placed in a <data> element.
|
data/lib/plist/generator.rb
CHANGED
@@ -16,7 +16,7 @@ module Plist ; end
|
|
16
16
|
# * This requires that you mixin the <tt>Plist::Emit</tt> module, which is already done for +Array+ and +Hash+.
|
17
17
|
#
|
18
18
|
# The following Ruby classes are converted into native plist types:
|
19
|
-
# Array,
|
19
|
+
# Array, Date, DateTime, Float, Hash, Integer, String, Symbol, Time, true, false
|
20
20
|
# * +Array+ and +Hash+ are both recursive; their elements will be converted into plist nodes inside the <array> and <dict> containers (respectively).
|
21
21
|
# * +IO+ (and its descendants) and +StringIO+ objects are read from and their contents placed in a <data> element.
|
22
22
|
# * User classes may implement +to_plist_node+ to dictate how they should be serialized; otherwise the object will be passed to <tt>Marshal.dump</tt> and the result placed in a <data> element.
|
@@ -34,7 +34,7 @@ module Plist::Emit
|
|
34
34
|
end
|
35
35
|
|
36
36
|
# The following Ruby classes are converted into native plist types:
|
37
|
-
# Array,
|
37
|
+
# Array, Date, DateTime, Float, Hash, Integer, String, Symbol, Time
|
38
38
|
#
|
39
39
|
# Write us (via RubyForge) if you think another class can be coerced safely into one of the expected plist classes.
|
40
40
|
#
|
@@ -94,7 +94,7 @@ module Plist::Emit
|
|
94
94
|
output << tag('date', element.utc.strftime('%Y-%m-%dT%H:%M:%SZ'))
|
95
95
|
when Date # also catches DateTime
|
96
96
|
output << tag('date', element.strftime('%Y-%m-%dT%H:%M:%SZ'))
|
97
|
-
when String, Symbol,
|
97
|
+
when String, Symbol, Integer, Float
|
98
98
|
output << tag(element_type(element), CGI::escapeHTML(element.to_s))
|
99
99
|
when IO, StringIO
|
100
100
|
element.rewind
|
@@ -157,7 +157,7 @@ module Plist::Emit
|
|
157
157
|
when String, Symbol
|
158
158
|
'string'
|
159
159
|
|
160
|
-
when
|
160
|
+
when Integer
|
161
161
|
'integer'
|
162
162
|
|
163
163
|
when Float
|
data/lib/plist.rb
CHANGED
data/plist.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "plist.newline"
|
5
|
-
spec.version = '3.2.
|
5
|
+
spec.version = '3.2.3'
|
6
6
|
spec.authors = ["bkoell"]
|
7
7
|
spec.email = ["bastian.koell@gmail.com"]
|
8
8
|
spec.summary = "plist.newline is an updated version of the plist gem that supports multiline string values"
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plist.newline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bkoell
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.5'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: plist.newline is an updated version of the plist gem that supports multiline
|
@@ -46,8 +46,8 @@ executables: []
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
-
- .gitignore
|
50
|
-
- .travis.yml
|
49
|
+
- ".gitignore"
|
50
|
+
- ".travis.yml"
|
51
51
|
- CHANGELOG
|
52
52
|
- LICENSE
|
53
53
|
- README.rdoc
|
@@ -73,24 +73,23 @@ homepage: ''
|
|
73
73
|
licenses:
|
74
74
|
- MIT
|
75
75
|
metadata: {}
|
76
|
-
post_install_message:
|
76
|
+
post_install_message:
|
77
77
|
rdoc_options: []
|
78
78
|
require_paths:
|
79
79
|
- lib
|
80
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
|
92
|
-
|
93
|
-
signing_key:
|
91
|
+
rubygems_version: 3.4.10
|
92
|
+
signing_key:
|
94
93
|
specification_version: 4
|
95
94
|
summary: plist.newline is an updated version of the plist gem that supports multiline
|
96
95
|
string values
|