plist 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +9 -0
- data/.travis.yml +16 -0
- data/{CHANGELOG → CHANGELOG.rdoc} +27 -3
- data/Gemfile +4 -0
- data/{LICENSE → LICENSE.txt} +0 -0
- data/README.rdoc +3 -0
- data/Rakefile +6 -150
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/plist.rb +3 -3
- data/lib/plist/generator.rb +5 -5
- data/lib/plist/parser.rb +30 -7
- data/lib/plist/version.rb +5 -0
- data/plist.gemspec +30 -0
- metadata +70 -36
- data/test/assets/AlbumData.xml +0 -203
- data/test/assets/Cookies.plist +0 -104
- data/test/assets/commented.plist +0 -9
- data/test/assets/example_data.bin +0 -0
- data/test/assets/example_data.jpg +0 -0
- data/test/assets/example_data.plist +0 -259
- data/test/assets/test_data_elements.plist +0 -26
- data/test/assets/test_empty_key.plist +0 -13
- data/test/test_data_elements.rb +0 -124
- data/test/test_generator.rb +0 -75
- data/test/test_generator_basic_types.rb +0 -53
- data/test/test_generator_collections.rb +0 -77
- data/test/test_parser.rb +0 -97
metadata
CHANGED
@@ -1,44 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Ben Bleything
|
8
|
-
|
9
|
-
|
7
|
+
- Ben Bleything
|
8
|
+
- Patrick May
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
|
12
|
+
date: 2017-04-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.14'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.14'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '10.5'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '10.5'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: test-unit
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '1.2'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '1.2'
|
56
|
+
description: Plist is a library to manipulate Property List files, also known as plists.
|
57
|
+
It can parse plist files into native Ruby data structures as well as generating
|
58
|
+
new plist files from your Ruby objects.
|
15
59
|
email:
|
16
60
|
executables: []
|
17
61
|
extensions: []
|
18
62
|
extra_rdoc_files: []
|
19
63
|
files:
|
20
|
-
-
|
21
|
-
-
|
64
|
+
- ".gitignore"
|
65
|
+
- ".travis.yml"
|
66
|
+
- CHANGELOG.rdoc
|
67
|
+
- Gemfile
|
68
|
+
- LICENSE.txt
|
22
69
|
- README.rdoc
|
23
70
|
- Rakefile
|
71
|
+
- bin/console
|
72
|
+
- bin/setup
|
24
73
|
- lib/plist.rb
|
25
74
|
- lib/plist/generator.rb
|
26
75
|
- lib/plist/parser.rb
|
27
|
-
-
|
28
|
-
-
|
29
|
-
|
30
|
-
|
31
|
-
-
|
32
|
-
- test/assets/example_data.plist
|
33
|
-
- test/assets/test_data_elements.plist
|
34
|
-
- test/assets/test_empty_key.plist
|
35
|
-
- test/test_data_elements.rb
|
36
|
-
- test/test_generator.rb
|
37
|
-
- test/test_generator_basic_types.rb
|
38
|
-
- test/test_generator_collections.rb
|
39
|
-
- test/test_parser.rb
|
40
|
-
homepage: http://plist.rubyforge.org
|
41
|
-
licenses: []
|
76
|
+
- lib/plist/version.rb
|
77
|
+
- plist.gemspec
|
78
|
+
homepage: https://github.com/patsplat/plist
|
79
|
+
licenses:
|
80
|
+
- MIT
|
42
81
|
metadata: {}
|
43
82
|
post_install_message:
|
44
83
|
rdoc_options: []
|
@@ -46,23 +85,18 @@ require_paths:
|
|
46
85
|
- lib
|
47
86
|
required_ruby_version: !ruby/object:Gem::Requirement
|
48
87
|
requirements:
|
49
|
-
- -
|
88
|
+
- - ">="
|
50
89
|
- !ruby/object:Gem::Version
|
51
90
|
version: '0'
|
52
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
92
|
requirements:
|
54
|
-
- -
|
93
|
+
- - ">="
|
55
94
|
- !ruby/object:Gem::Version
|
56
95
|
version: '0'
|
57
96
|
requirements: []
|
58
|
-
rubyforge_project:
|
59
|
-
rubygems_version: 2.
|
97
|
+
rubyforge_project:
|
98
|
+
rubygems_version: 2.6.11
|
60
99
|
signing_key:
|
61
100
|
specification_version: 4
|
62
|
-
summary: All-purpose Property List manipulation library
|
63
|
-
test_files:
|
64
|
-
- test/test_data_elements.rb
|
65
|
-
- test/test_generator.rb
|
66
|
-
- test/test_generator_basic_types.rb
|
67
|
-
- test/test_generator_collections.rb
|
68
|
-
- test/test_parser.rb
|
101
|
+
summary: All-purpose Property List manipulation library
|
102
|
+
test_files: []
|
data/test/assets/AlbumData.xml
DELETED
@@ -1,203 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>Application Version</key>
|
6
|
-
<string>5.0.4 (263)</string>
|
7
|
-
<key>Archive Path</key>
|
8
|
-
<string>/Users/username/Pictures/iPhoto Library</string>
|
9
|
-
<key>List of Albums</key>
|
10
|
-
<array>
|
11
|
-
<dict>
|
12
|
-
<key>AlbumId</key>
|
13
|
-
<integer>999000</integer>
|
14
|
-
<key>AlbumName</key>
|
15
|
-
<string>Library</string>
|
16
|
-
<key>KeyList</key>
|
17
|
-
<array>
|
18
|
-
<string>7</string>
|
19
|
-
</array>
|
20
|
-
<key>Master</key>
|
21
|
-
<true/>
|
22
|
-
<key>PhotoCount</key>
|
23
|
-
<integer>1</integer>
|
24
|
-
<key>PlayMusic</key>
|
25
|
-
<string>YES</string>
|
26
|
-
<key>RepeatSlideShow</key>
|
27
|
-
<string>YES</string>
|
28
|
-
<key>SecondsPerSlide</key>
|
29
|
-
<integer>3</integer>
|
30
|
-
<key>SlideShowUseTitles</key>
|
31
|
-
<false/>
|
32
|
-
<key>SongPath</key>
|
33
|
-
<string></string>
|
34
|
-
<key>TransitionDirection</key>
|
35
|
-
<integer>0</integer>
|
36
|
-
<key>TransitionName</key>
|
37
|
-
<string>Dissolve</string>
|
38
|
-
<key>TransitionSpeed</key>
|
39
|
-
<real>1</real>
|
40
|
-
</dict>
|
41
|
-
<dict>
|
42
|
-
<key>Album Type</key>
|
43
|
-
<string>Special Roll</string>
|
44
|
-
<key>AlbumId</key>
|
45
|
-
<integer>999001</integer>
|
46
|
-
<key>AlbumName</key>
|
47
|
-
<string>Last Roll</string>
|
48
|
-
<key>Filter Mode</key>
|
49
|
-
<string>All</string>
|
50
|
-
<key>Filters</key>
|
51
|
-
<array>
|
52
|
-
<dict>
|
53
|
-
<key>Count</key>
|
54
|
-
<integer>1</integer>
|
55
|
-
<key>Operation</key>
|
56
|
-
<string>In Last</string>
|
57
|
-
<key>Type</key>
|
58
|
-
<string>Roll</string>
|
59
|
-
</dict>
|
60
|
-
</array>
|
61
|
-
<key>KeyList</key>
|
62
|
-
<array>
|
63
|
-
<string>7</string>
|
64
|
-
</array>
|
65
|
-
<key>PhotoCount</key>
|
66
|
-
<integer>1</integer>
|
67
|
-
<key>PlayMusic</key>
|
68
|
-
<string>YES</string>
|
69
|
-
<key>RepeatSlideShow</key>
|
70
|
-
<string>YES</string>
|
71
|
-
<key>SecondsPerSlide</key>
|
72
|
-
<integer>3</integer>
|
73
|
-
<key>SlideShowUseTitles</key>
|
74
|
-
<false/>
|
75
|
-
<key>SongPath</key>
|
76
|
-
<string></string>
|
77
|
-
<key>TransitionDirection</key>
|
78
|
-
<integer>0</integer>
|
79
|
-
<key>TransitionName</key>
|
80
|
-
<string>Dissolve</string>
|
81
|
-
<key>TransitionSpeed</key>
|
82
|
-
<real>1</real>
|
83
|
-
</dict>
|
84
|
-
<dict>
|
85
|
-
<key>Album Type</key>
|
86
|
-
<string>Special Month</string>
|
87
|
-
<key>AlbumId</key>
|
88
|
-
<integer>999002</integer>
|
89
|
-
<key>AlbumName</key>
|
90
|
-
<string>Last 12 Months</string>
|
91
|
-
<key>Filter Mode</key>
|
92
|
-
<string>All</string>
|
93
|
-
<key>Filters</key>
|
94
|
-
<array/>
|
95
|
-
<key>KeyList</key>
|
96
|
-
<array>
|
97
|
-
<string>7</string>
|
98
|
-
</array>
|
99
|
-
<key>PhotoCount</key>
|
100
|
-
<integer>1</integer>
|
101
|
-
<key>PlayMusic</key>
|
102
|
-
<string>YES</string>
|
103
|
-
<key>RepeatSlideShow</key>
|
104
|
-
<string>YES</string>
|
105
|
-
<key>SecondsPerSlide</key>
|
106
|
-
<integer>3</integer>
|
107
|
-
<key>SlideShowUseTitles</key>
|
108
|
-
<false/>
|
109
|
-
<key>SongPath</key>
|
110
|
-
<string></string>
|
111
|
-
<key>TransitionDirection</key>
|
112
|
-
<integer>0</integer>
|
113
|
-
<key>TransitionName</key>
|
114
|
-
<string>Dissolve</string>
|
115
|
-
<key>TransitionSpeed</key>
|
116
|
-
<real>1</real>
|
117
|
-
</dict>
|
118
|
-
<dict>
|
119
|
-
<key>Album Type</key>
|
120
|
-
<string>Regular</string>
|
121
|
-
<key>AlbumId</key>
|
122
|
-
<integer>9</integer>
|
123
|
-
<key>AlbumName</key>
|
124
|
-
<string>An Album</string>
|
125
|
-
<key>KeyList</key>
|
126
|
-
<array>
|
127
|
-
<string>7</string>
|
128
|
-
</array>
|
129
|
-
<key>PhotoCount</key>
|
130
|
-
<integer>1</integer>
|
131
|
-
<key>PlayMusic</key>
|
132
|
-
<string>YES</string>
|
133
|
-
<key>RepeatSlideShow</key>
|
134
|
-
<string>YES</string>
|
135
|
-
<key>SecondsPerSlide</key>
|
136
|
-
<integer>3</integer>
|
137
|
-
<key>SlideShowUseTitles</key>
|
138
|
-
<false/>
|
139
|
-
<key>SongPath</key>
|
140
|
-
<string></string>
|
141
|
-
<key>TransitionDirection</key>
|
142
|
-
<integer>0</integer>
|
143
|
-
<key>TransitionName</key>
|
144
|
-
<string>Dissolve</string>
|
145
|
-
<key>TransitionSpeed</key>
|
146
|
-
<real>1</real>
|
147
|
-
</dict>
|
148
|
-
</array>
|
149
|
-
<key>List of Keywords</key>
|
150
|
-
<dict/>
|
151
|
-
<key>List of Rolls</key>
|
152
|
-
<array>
|
153
|
-
<dict>
|
154
|
-
<key>Album Type</key>
|
155
|
-
<string>Regular</string>
|
156
|
-
<key>AlbumId</key>
|
157
|
-
<integer>6</integer>
|
158
|
-
<key>AlbumName</key>
|
159
|
-
<string>Roll 1</string>
|
160
|
-
<key>KeyList</key>
|
161
|
-
<array>
|
162
|
-
<string>7</string>
|
163
|
-
</array>
|
164
|
-
<key>Parent</key>
|
165
|
-
<integer>999000</integer>
|
166
|
-
<key>PhotoCount</key>
|
167
|
-
<integer>1</integer>
|
168
|
-
</dict>
|
169
|
-
</array>
|
170
|
-
<key>Major Version</key>
|
171
|
-
<integer>2</integer>
|
172
|
-
<key>Master Image List</key>
|
173
|
-
<dict>
|
174
|
-
<key>7</key>
|
175
|
-
<dict>
|
176
|
-
<key>Aspect Ratio</key>
|
177
|
-
<real>1</real>
|
178
|
-
<key>Caption</key>
|
179
|
-
<string>fallow_keep.png.450x450.2005-12-04</string>
|
180
|
-
<key>Comment</key>
|
181
|
-
<string>a comment</string>
|
182
|
-
<key>DateAsTimerInterval</key>
|
183
|
-
<real>158341389</real>
|
184
|
-
<key>ImagePath</key>
|
185
|
-
<string>/Users/username/Pictures/iPhoto Library/2006/01/07/fallow_keep.png.450x450.2005-12-04.jpg</string>
|
186
|
-
<key>MediaType</key>
|
187
|
-
<string>Image</string>
|
188
|
-
<key>MetaModDateAsTimerInterval</key>
|
189
|
-
<real>158341439.728129</real>
|
190
|
-
<key>ModDateAsTimerInterval</key>
|
191
|
-
<real>158341389</real>
|
192
|
-
<key>Rating</key>
|
193
|
-
<integer>0</integer>
|
194
|
-
<key>Roll</key>
|
195
|
-
<integer>6</integer>
|
196
|
-
<key>ThumbPath</key>
|
197
|
-
<string>/Users/username/Pictures/iPhoto Library/2006/01/07/Thumbs/7.jpg</string>
|
198
|
-
</dict>
|
199
|
-
</dict>
|
200
|
-
<key>Minor Version</key>
|
201
|
-
<integer>0</integer>
|
202
|
-
</dict>
|
203
|
-
</plist>
|
data/test/assets/Cookies.plist
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<array>
|
5
|
-
<dict>
|
6
|
-
<key>Created</key>
|
7
|
-
<real>151936595.697543</real>
|
8
|
-
<key>Domain</key>
|
9
|
-
<string>.cleveland.com</string>
|
10
|
-
<key>Expires</key>
|
11
|
-
<date>2007-10-25T12:36:35Z</date>
|
12
|
-
<key>Name</key>
|
13
|
-
<string>CTC</string>
|
14
|
-
<key>Path</key>
|
15
|
-
<string>/</string>
|
16
|
-
<key>Value</key>
|
17
|
-
<string>:broadband:</string>
|
18
|
-
</dict>
|
19
|
-
<dict>
|
20
|
-
<key>Created</key>
|
21
|
-
<real>151778895.063041</real>
|
22
|
-
<key>Domain</key>
|
23
|
-
<string>.gamefaqs.com</string>
|
24
|
-
<key>Expires</key>
|
25
|
-
<date>2006-04-21T16:47:58Z</date>
|
26
|
-
<key>Name</key>
|
27
|
-
<string>ctk</string>
|
28
|
-
<key>Path</key>
|
29
|
-
<string>/</string>
|
30
|
-
<key>Value</key>
|
31
|
-
<string>NDM1YmJlYmU0NjZiOGYxZjc1NjgxODg0YmRkMA%3D%3D</string>
|
32
|
-
</dict>
|
33
|
-
<dict>
|
34
|
-
<key>Created</key>
|
35
|
-
<real>183530456</real>
|
36
|
-
<key>Domain</key>
|
37
|
-
<string>arstechnica.com</string>
|
38
|
-
<key>Expires</key>
|
39
|
-
<date>2006-10-26T13:56:36Z</date>
|
40
|
-
<key>Name</key>
|
41
|
-
<string>fontFace</string>
|
42
|
-
<key>Path</key>
|
43
|
-
<string>/</string>
|
44
|
-
<key>Value</key>
|
45
|
-
<string>1</string>
|
46
|
-
</dict>
|
47
|
-
<dict>
|
48
|
-
<key>Created</key>
|
49
|
-
<real>183004526</real>
|
50
|
-
<key>Domain</key>
|
51
|
-
<string>.sourceforge.net</string>
|
52
|
-
<key>Expires</key>
|
53
|
-
<date>2006-10-20T02:35:26Z</date>
|
54
|
-
<key>Name</key>
|
55
|
-
<string>FRQSTR</string>
|
56
|
-
<key>Path</key>
|
57
|
-
<string>/</string>
|
58
|
-
<key>Value</key>
|
59
|
-
<string>18829595x86799:1:1440x87033:1:1440x86799:1:1440x87248:1:1440|18829595|18829595|18829595|18829595</string>
|
60
|
-
</dict>
|
61
|
-
<dict>
|
62
|
-
<key>Created</key>
|
63
|
-
<real>151053128.640531</real>
|
64
|
-
<key>Domain</key>
|
65
|
-
<string>.tvguide.com</string>
|
66
|
-
<key>Expires</key>
|
67
|
-
<date>2025-10-10T07:12:17Z</date>
|
68
|
-
<key>Name</key>
|
69
|
-
<string>DMSEG</string>
|
70
|
-
<key>Path</key>
|
71
|
-
<string>/</string>
|
72
|
-
<key>Value</key>
|
73
|
-
<string>1BDF3D1CC07FC70F&D04451&434EC763&4351FD51&0&</string>
|
74
|
-
</dict>
|
75
|
-
<dict>
|
76
|
-
<key>Created</key>
|
77
|
-
<real>151304125.760261</real>
|
78
|
-
<key>Domain</key>
|
79
|
-
<string>.code.blogspot.com</string>
|
80
|
-
<key>Expires</key>
|
81
|
-
<date>2038-01-18T00:00:00Z</date>
|
82
|
-
<key>Name</key>
|
83
|
-
<string>__utma</string>
|
84
|
-
<key>Path</key>
|
85
|
-
<string>/</string>
|
86
|
-
<key>Value</key>
|
87
|
-
<string>11680422.1172819419.1129611326.1129611326.1129611326.1</string>
|
88
|
-
</dict>
|
89
|
-
<dict>
|
90
|
-
<key>Created</key>
|
91
|
-
<real>599529600</real>
|
92
|
-
<key>Domain</key>
|
93
|
-
<string>.tvguide.com</string>
|
94
|
-
<key>Expires</key>
|
95
|
-
<date>2020-01-01T00:00:00Z</date>
|
96
|
-
<key>Name</key>
|
97
|
-
<string>gfm</string>
|
98
|
-
<key>Path</key>
|
99
|
-
<string>/</string>
|
100
|
-
<key>Value</key>
|
101
|
-
<string>0</string>
|
102
|
-
</dict>
|
103
|
-
</array>
|
104
|
-
</plist>
|
data/test/assets/commented.plist
DELETED