drnic-codex 1.0.1 → 1.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/History.txt +5 -1
- data/codex.gemspec +1 -1
- data/config/hoe.rb +2 -1
- data/lib/codex/pressie.rb +4 -3
- data/lib/codex/version.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
data/codex.gemspec
CHANGED
data/config/hoe.rb
CHANGED
|
@@ -9,7 +9,8 @@ HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
|
|
9
9
|
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
|
10
10
|
EXTRA_DEPENDENCIES = [
|
|
11
11
|
['rake', '>= 0.8.1'],
|
|
12
|
-
['RedCloth', '>= 3.0.4']
|
|
12
|
+
['RedCloth', '>= 3.0.4'],
|
|
13
|
+
['rubigen', '>=1.3.2']
|
|
13
14
|
] # An array of rubygem dependencies [name, version]
|
|
14
15
|
|
|
15
16
|
@config_file = "~/.rubyforge/user-config.yml"
|
data/lib/codex/pressie.rb
CHANGED
|
@@ -10,8 +10,9 @@ S5_HEAD = %{<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
|
10
10
|
<!-- metadata -->
|
|
11
11
|
<meta name="generator" content="S5" />
|
|
12
12
|
<meta name="version" content="S5 1.1" />
|
|
13
|
-
<meta name="presdate" content="
|
|
13
|
+
<meta name="presdate" content="&date" />
|
|
14
14
|
<meta name="author" content="&author;" />
|
|
15
|
+
<meta name="organization" content="&organization;" />
|
|
15
16
|
<meta name="company" content="&company;" />
|
|
16
17
|
<!-- configuration parameters -->
|
|
17
18
|
<meta name="defaultView" content="slideshow" />
|
|
@@ -97,11 +98,11 @@ module Codex
|
|
|
97
98
|
|
|
98
99
|
def substitute_metadata_into(text)
|
|
99
100
|
text = text.dup
|
|
100
|
-
%w{author company copyright title}.each do |key|
|
|
101
|
+
%w{author company organization date copyright title}.each do |key|
|
|
101
102
|
text.gsub!(/&#{key};/, @metadata[key]) if @metadata.has_key?(key)
|
|
102
103
|
end
|
|
103
104
|
text
|
|
104
105
|
end
|
|
105
106
|
|
|
106
107
|
end
|
|
107
|
-
end
|
|
108
|
+
end
|
data/lib/codex/version.rb
CHANGED