manifest 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/manifest/version.rb +1 -1
- data/lib/manifest.rb +5 -6
- data/website/index.html +7 -15
- data/website/index.txt +4 -12
- data/website/stylesheets/screen.css +3 -5
- data/website/template.rhtml +1 -1
- metadata +2 -2
data/lib/manifest/version.rb
CHANGED
data/lib/manifest.rb
CHANGED
@@ -10,7 +10,7 @@ module Manifest
|
|
10
10
|
def read(text)
|
11
11
|
|
12
12
|
text.split(MANIFEST_SECTION_SEP).reject { |s| s.chomp == "" }.map do |section|
|
13
|
-
section.split(MANIFEST_LINE_SEP).each { |line| line.length
|
13
|
+
section.split(MANIFEST_LINE_SEP).each { |line| line.length < 72 }.inject([]) { |merged, line|
|
14
14
|
if line[0] == 32
|
15
15
|
merged.last << line[1..-1]
|
16
16
|
else
|
@@ -21,7 +21,7 @@ module Manifest
|
|
21
21
|
valuesAsHash = {}
|
22
22
|
values.split(/,/).inject([]) { |array, att1|
|
23
23
|
|
24
|
-
if (/[\]|\[|\)|\(]"
|
24
|
+
if (/[\]|\[|\)|\(]"/.match(att1))
|
25
25
|
last = array.pop
|
26
26
|
array << "#{last},#{att1}"
|
27
27
|
else
|
@@ -33,12 +33,11 @@ module Manifest
|
|
33
33
|
value = values.shift
|
34
34
|
values.each {|attribute|
|
35
35
|
array = attribute.split(/:?=/)
|
36
|
-
|
37
|
-
optionalAttributes[array.first.chomp] = array.last.chomp
|
36
|
+
optionalAttributes.merge!(array.first.strip=>array.last.strip)
|
38
37
|
}
|
39
|
-
valuesAsHash
|
38
|
+
valuesAsHash.merge!(value=>optionalAttributes)
|
40
39
|
}
|
41
|
-
map.merge(name=>valuesAsHash)
|
40
|
+
map.merge!(name=>valuesAsHash)
|
42
41
|
}
|
43
42
|
end
|
44
43
|
end
|
data/website/index.html
CHANGED
@@ -33,12 +33,13 @@
|
|
33
33
|
<h1>manifest</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/manifest"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/manifest" class="numbers">0.0.
|
36
|
+
<a href="http://rubyforge.org/projects/manifest" class="numbers">0.0.2</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘manifest’</h1>
|
39
39
|
|
40
40
|
|
41
|
-
<h2>What
|
41
|
+
<h2>What
|
42
|
+
Manifest is a simple Manifest jar reader.</h2>
|
42
43
|
|
43
44
|
|
44
45
|
<h2>Installing</h2>
|
@@ -47,19 +48,10 @@
|
|
47
48
|
<p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">manifest</span></pre></p>
|
48
49
|
|
49
50
|
|
50
|
-
<h2>The basics</h2>
|
51
|
-
|
52
|
-
|
53
|
-
<h2>Demonstration of usage</h2>
|
54
|
-
|
55
|
-
|
56
51
|
<h2>Forum</h2>
|
57
52
|
|
58
53
|
|
59
|
-
<p><a href="http://groups.google.com/group/manifest">http://groups.google.com/group/manifest</a></p>
|
60
|
-
|
61
|
-
|
62
|
-
<p><span class="caps">TODO</span> – create Google Group – manifest</p>
|
54
|
+
<p><a href="http://groups.google.com/group/manifest-dev">http://groups.google.com/group/manifest-dev</a></p>
|
63
55
|
|
64
56
|
|
65
57
|
<h2>How to submit patches</h2>
|
@@ -74,15 +66,15 @@
|
|
74
66
|
<h2>License</h2>
|
75
67
|
|
76
68
|
|
77
|
-
<p>This code is free to use under the terms of the
|
69
|
+
<p>This code is free to use under the terms of the Apache 2 license.</p>
|
78
70
|
|
79
71
|
|
80
72
|
<h2>Contact</h2>
|
81
73
|
|
82
74
|
|
83
|
-
<p>Comments are welcome. Send an email to <a href="mailto:
|
75
|
+
<p>Comments are welcome. Send an email to <a href="mailto:antoine@lunar-ocean.com">Antoine Toulme</a> email via the <a href="http://groups.google.com/group/manifest-dev">forum</a></p>
|
84
76
|
<p class="coda">
|
85
|
-
<a href="FIXME email">
|
77
|
+
<a href="FIXME email">Antoine Toulme</a>, 25th February 2008<br>
|
86
78
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
87
79
|
</p>
|
88
80
|
</div>
|
data/website/index.txt
CHANGED
@@ -4,24 +4,16 @@ h1. → 'manifest'
|
|
4
4
|
|
5
5
|
|
6
6
|
h2. What
|
7
|
-
|
7
|
+
Manifest is a simple Manifest jar reader.
|
8
8
|
|
9
9
|
h2. Installing
|
10
10
|
|
11
11
|
<pre syntax="ruby">sudo gem install manifest</pre>
|
12
12
|
|
13
|
-
h2. The basics
|
14
|
-
|
15
|
-
|
16
|
-
h2. Demonstration of usage
|
17
|
-
|
18
|
-
|
19
|
-
|
20
13
|
h2. Forum
|
21
14
|
|
22
|
-
"http://groups.google.com/group/manifest":http://groups.google.com/group/manifest
|
15
|
+
"http://groups.google.com/group/manifest-dev":http://groups.google.com/group/manifest-dev
|
23
16
|
|
24
|
-
TODO - create Google Group - manifest
|
25
17
|
|
26
18
|
h2. How to submit patches
|
27
19
|
|
@@ -31,9 +23,9 @@ The trunk repository is <code>svn://rubyforge.org/var/svn/manifest/trunk</code>
|
|
31
23
|
|
32
24
|
h2. License
|
33
25
|
|
34
|
-
This code is free to use under the terms of the
|
26
|
+
This code is free to use under the terms of the Apache 2 license.
|
35
27
|
|
36
28
|
h2. Contact
|
37
29
|
|
38
|
-
Comments are welcome. Send an email to "
|
30
|
+
Comments are welcome. Send an email to "Antoine Toulme":mailto:antoine@lunar-ocean.com email via the "forum":http://groups.google.com/group/manifest-dev
|
39
31
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
body {
|
2
|
-
background-color: #E1D1F1
|
2
|
+
/* background-color: #E1D1F1;*/
|
3
3
|
font-family: "Georgia", sans-serif;
|
4
4
|
font-size: 16px;
|
5
5
|
line-height: 1.6em;
|
6
6
|
padding: 1.6em 0 0 0;
|
7
|
-
color: #
|
7
|
+
color: #000;
|
8
8
|
}
|
9
9
|
h1, h2, h3, h4, h5, h6 {
|
10
|
-
color: #
|
10
|
+
color: #666;
|
11
11
|
}
|
12
12
|
h1 {
|
13
13
|
font-family: sans-serif;
|
@@ -23,8 +23,6 @@ li {
|
|
23
23
|
list-style-type: square;
|
24
24
|
}
|
25
25
|
a {
|
26
|
-
color: #5E5AFF;
|
27
|
-
background-color: #DAC;
|
28
26
|
font-weight: normal;
|
29
27
|
text-decoration: underline;
|
30
28
|
}
|
data/website/template.rhtml
CHANGED
@@ -37,7 +37,7 @@
|
|
37
37
|
</div>
|
38
38
|
<%= body %>
|
39
39
|
<p class="coda">
|
40
|
-
<a href="FIXME email">
|
40
|
+
<a href="FIXME email">Antoine Toulme</a>, <%= modified.pretty %><br>
|
41
41
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
42
42
|
</p>
|
43
43
|
</div>
|
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.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ""
|
6
6
|
authors:
|
7
7
|
- Antoine Toulme
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-02-
|
12
|
+
date: 2008-02-25 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|