manifest 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.txt CHANGED
@@ -17,7 +17,7 @@ Development:
17
17
 
18
18
  == LICENSE:
19
19
 
20
- Copyright (c) 2008-2009 Manifest and others.
20
+ Copyright (c) 2008-2010 Manifest and others.
21
21
  All rights reserved. This program and the accompanying materials
22
22
  are made available under the terms of the Eclipse Public License v1.0
23
23
  which accompanies this distribution, and is available at
@@ -1,5 +1,5 @@
1
1
  ###############################################################################
2
- # Copyright (c) 2008-2009 Manifest and others.
2
+ # Copyright (c) 2008-2010 Manifest and others.
3
3
  # All rights reserved. This program and the accompanying materials
4
4
  # are made available under the terms of the Eclipse Public License v1.0
5
5
  # which accompanies this distribution, and is available at
@@ -42,12 +42,17 @@ module Manifest
42
42
  array << att1
43
43
  end
44
44
 
45
+ index = 0
45
46
  if (/.*"$/.match(att1) || /.*";/.match(att1))
46
47
  nestedList = false
47
- elsif /"/.match(att1) # if a " is in the value, it means we entered a subentry. And since it is not at the
48
- # end of the line, we can conclude we are in a nested list.
48
+ index = $~[0].size
49
+ end
50
+ if att1[index, att1.size].match(/"/)
51
+ # if a " is in the value, it means we entered a subentry. And since it is not at the
52
+ # end of the line, we can conclude we are in a nested list.
49
53
  nestedList = true
50
54
  end
55
+
51
56
  array
52
57
  }.each { |attribute|
53
58
  optionalAttributes = {}
@@ -0,0 +1,32 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with this
3
+ # work for additional information regarding copyright ownership. The ASF
4
+ # licenses this file to you under the Apache License, Version 2.0 (the
5
+ # "License"); you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
+ # License for the specific language governing permissions and limitations under
14
+ # the License.
15
+
16
+
17
+ Gem::Specification.new do |spec|
18
+ spec.name = 'manifest'
19
+ spec.version = '0.0.8'
20
+ spec.author = 'Antoine Toulme'
21
+ spec.email = "atoulme@intalio.com"
22
+ spec.homepage = "http://manifest.rubyforge.org"
23
+ spec.summary = "A MANIFEST.MF file reader"
24
+ spec.description = <<-TEXT
25
+ In the realm of the text file, few files have been as hard to read as MANIFEST.MF.
26
+ Frankly, they suck, and we'd better be off without them. That's where we come in.
27
+ TEXT
28
+ spec.files = Dir['{lib}/**/*', '*.{gemspec}'] +
29
+ ['License.txt', 'README.txt']
30
+ spec.require_paths = ['lib']
31
+ spec.has_rdoc = false
32
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manifest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Toulme
@@ -9,43 +9,33 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-16 00:00:00 +02:00
12
+ date: 2010-04-16 00:00:00 -07:00
13
13
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: hoe
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: 1.8.0
24
- version:
25
- description: The Jar Manifest files are a nightmare to parse. They have a special encoding that is neither XML, JSON, or properties. This library intends to produce a parser that will read such files.
26
- email: antoine@lunar-ocean.com
14
+ dependencies: []
15
+
16
+ description: |
17
+ In the realm of the text file, few files have been as hard to read as MANIFEST.MF.
18
+ Frankly, they suck, and we'd better be off without them. That's where we come in.
19
+
20
+ email: atoulme@intalio.com
27
21
  executables: []
28
22
 
29
23
  extensions: []
30
24
 
31
- extra_rdoc_files:
32
- - History.txt
33
- - License.txt
34
- - README.txt
25
+ extra_rdoc_files: []
26
+
35
27
  files:
36
- - History.txt
28
+ - lib/manifest.rb
29
+ - manifest.gemspec
37
30
  - License.txt
38
31
  - README.txt
39
- - lib/manifest.rb
40
- - lib/manifest/version.rb
41
32
  has_rdoc: true
42
33
  homepage: http://manifest.rubyforge.org
43
34
  licenses: []
44
35
 
45
36
  post_install_message:
46
- rdoc_options:
47
- - --main
48
- - README.txt
37
+ rdoc_options: []
38
+
49
39
  require_paths:
50
40
  - lib
51
41
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -62,10 +52,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
52
  version:
63
53
  requirements: []
64
54
 
65
- rubyforge_project: manifest
55
+ rubyforge_project:
66
56
  rubygems_version: 1.3.5
67
57
  signing_key:
68
58
  specification_version: 3
69
- summary: The Jar Manifest files are a nightmare to parse. They have a special encoding that is neither XML, JSON, or properties. This library intends to produce a parser that will read such files.
59
+ summary: A MANIFEST.MF file reader
70
60
  test_files: []
71
61
 
@@ -1,14 +0,0 @@
1
- == 0.0.3 2009-22-02
2
-
3
- * Maintenance release
4
- * Added the read method to the module functions
5
- * Changed from Apache License to Eclipse Public License
6
- * Moved to rspec
7
- * Added copyright headers.
8
- * Removed clutter
9
-
10
- == 0.0.1 2008-24-02
11
-
12
- * Initial release
13
- * Ability to parse MANIFEST.MF files
14
- * Presents parsing result as a hierarchy of hashes
@@ -1,20 +0,0 @@
1
- ###############################################################################
2
- # Copyright (c) 2008-2009 Manifest and others.
3
- # All rights reserved. This program and the accompanying materials
4
- # are made available under the terms of the Eclipse Public License v1.0
5
- # which accompanies this distribution, and is available at
6
- # http://www.eclipse.org/legal/epl-v10.html
7
- #
8
- # Contributors:
9
- # Antoine Toulme - initial API and implementation
10
- ###############################################################################
11
-
12
- module Manifest #:nodoc:
13
- module VERSION #:nodoc:
14
- MAJOR = 0
15
- MINOR = 0
16
- TINY = 7
17
-
18
- STRING = [MAJOR, MINOR, TINY].join('.')
19
- end
20
- end