plist.newline 3.2.1 → 3.2.3

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
- SHA1:
3
- metadata.gz: ed4d6f700b002cacfed0bbad6c2030fac4e88f38
4
- data.tar.gz: 5390812b66f121a78c3bced5d8cc8380ecdf0514
2
+ SHA256:
3
+ metadata.gz: 62e076a698b84cf8ce8d163def3a8a5f846d7418797ed3024aa76869d731c93c
4
+ data.tar.gz: 29cc832171a8aed28b874fb4bd366ad096cbf4947b109192f26f2e899fbc28d4
5
5
  SHA512:
6
- metadata.gz: 151ff81767f020c2fc5db1d13b3f7f68bfb042fa7086f0e1dd791e9f0057939c9343115610dbf7b44e20c4ff630ee8eed6db023a5fa014868bbdf8eb380a022c
7
- data.tar.gz: f398bd3464ac90be712b14514a9ad5feb28607ba9b465c051643fc07e81aa99e4a0b02412930f0859166d3cd50bf6b1f71b3be4eb7f5a9b0d7c24363f1949e67
6
+ metadata.gz: fbcfd3ca7d87a95ec2f3825478c6ebe1410ff36cd44e2e4919933d18923cad2d76e8190947e334ce5d02799b653efcf4e09de2480affdc6d1e41d931f9ee99b9
7
+ data.tar.gz: c124f7649e913b4c449b9f19c2bc87cdfbae79f4c5dd9edd31d9ff74e2d64d3ce98b16efcff431d7388803a80791d74f2c9f6e6f6aa9fbe03823e395618cc4dc
data/README.rdoc CHANGED
@@ -1,5 +1,7 @@
1
1
  = All-purpose Property List manipulation library
2
2
 
3
+ = Note: This is an updated version of the original plist gem. It supports multiline string values.
4
+
3
5
  Plist is a library to manipulate Property List files, also known as plists. It can parse plist files into native Ruby data structures as well as generating new plist files from your Ruby objects.
4
6
 
5
7
  == Info
@@ -62,7 +64,7 @@ Plist is a library to manipulate Property List files, also known as plists. It
62
64
  === Generation
63
65
 
64
66
  plist also provides the ability to generate plists from Ruby objects. The following Ruby classes are converted into native plist types:
65
- Array, Bignum, Date, DateTime, Fixnum, Float, Hash, Integer, String, Symbol, Time, true, false
67
+ Array, Date, DateTime, Float, Hash, Integer, String, Symbol, Time, true, false
66
68
 
67
69
  * +Array+ and +Hash+ are both recursive; their elements will be converted into plist nodes inside the <array> and <dict> containers (respectively).
68
70
  * +IO+ (and its descendants) and +StringIO+ objects are read from and their contents placed in a <data> element.
@@ -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, Bignum, Date, DateTime, Fixnum, Float, Hash, Integer, String, Symbol, Time, true, false
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, Bignum, Date, DateTime, Fixnum, Float, Hash, Integer, String, Symbol, Time
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, Fixnum, Bignum, Integer, Float
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 Fixnum, Bignum, Integer
160
+ when Integer
161
161
  'integer'
162
162
 
163
163
  when Float
data/lib/plist.rb CHANGED
@@ -17,5 +17,5 @@ require 'plist/generator'
17
17
  require 'plist/parser'
18
18
 
19
19
  module Plist
20
- VERSION = '3.2.1'
20
+ VERSION = '3.2.3'
21
21
  end
data/plist.gemspec ADDED
@@ -0,0 +1,20 @@
1
+ # coding: utf-8
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "plist.newline"
5
+ spec.version = '3.2.3'
6
+ spec.authors = ["bkoell"]
7
+ spec.email = ["bastian.koell@gmail.com"]
8
+ spec.summary = "plist.newline is an updated version of the plist gem that supports multiline string values"
9
+ spec.description = "plist.newline is an updated version of the plist gem that supports multiline string values"
10
+ spec.homepage = ""
11
+ spec.license = "MIT"
12
+
13
+ spec.files = `git ls-files -z`.split("\x0")
14
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
15
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
16
+ spec.require_paths = ["lib"]
17
+
18
+ spec.add_development_dependency "bundler", "~> 1.5"
19
+ spec.add_development_dependency "rake"
20
+ end
metadata CHANGED
@@ -1,52 +1,53 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plist.newline
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
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: 2017-01-30 00:00:00.000000000 Z
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
- description: plist
41
+ description: plist.newline is an updated version of the plist gem that supports multiline
42
+ string values
42
43
  email:
43
44
  - bastian.koell@gmail.com
44
45
  executables: []
45
46
  extensions: []
46
47
  extra_rdoc_files: []
47
48
  files:
48
- - .gitignore
49
- - .travis.yml
49
+ - ".gitignore"
50
+ - ".travis.yml"
50
51
  - CHANGELOG
51
52
  - LICENSE
52
53
  - README.rdoc
@@ -54,6 +55,7 @@ files:
54
55
  - lib/plist.rb
55
56
  - lib/plist/generator.rb
56
57
  - lib/plist/parser.rb
58
+ - plist.gemspec
57
59
  - test/assets/AlbumData.xml
58
60
  - test/assets/Cookies.plist
59
61
  - test/assets/commented.plist
@@ -71,26 +73,26 @@ homepage: ''
71
73
  licenses:
72
74
  - MIT
73
75
  metadata: {}
74
- post_install_message:
76
+ post_install_message:
75
77
  rdoc_options: []
76
78
  require_paths:
77
79
  - lib
78
80
  required_ruby_version: !ruby/object:Gem::Requirement
79
81
  requirements:
80
- - - '>='
82
+ - - ">="
81
83
  - !ruby/object:Gem::Version
82
84
  version: '0'
83
85
  required_rubygems_version: !ruby/object:Gem::Requirement
84
86
  requirements:
85
- - - '>='
87
+ - - ">="
86
88
  - !ruby/object:Gem::Version
87
89
  version: '0'
88
90
  requirements: []
89
- rubyforge_project:
90
- rubygems_version: 2.0.14.1
91
- signing_key:
91
+ rubygems_version: 3.4.10
92
+ signing_key:
92
93
  specification_version: 4
93
- summary: plist
94
+ summary: plist.newline is an updated version of the plist gem that supports multiline
95
+ string values
94
96
  test_files:
95
97
  - test/assets/AlbumData.xml
96
98
  - test/assets/Cookies.plist