codemerger 0.0.8 → 0.0.9

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/Gemfile.lock ADDED
@@ -0,0 +1,19 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ codemerger (0.0.1)
5
+ maruku
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ maruku (0.6.0)
11
+ syntax (>= 1.0.0)
12
+ syntax (1.0.0)
13
+
14
+ PLATFORMS
15
+ x86-mingw32
16
+
17
+ DEPENDENCIES
18
+ codemerger!
19
+ maruku
@@ -9,7 +9,7 @@ namespace "codemerger" do
9
9
  in_lines = IO.readlines(file).to_s
10
10
  in_lines = Maruku.new(in_lines).to_html if file =~ /markdown$/
11
11
  out_fname = file[/^.*\./]
12
- out_f = File.new("output/#{out_fname}html", 'w')
12
+ out_f = File.new('output/#{out_fname}html', 'w')
13
13
  out_f << in_lines.gsub(/(\{\{[\/a-zA-Z0-9_]+(?>\.[a-zA-Z0-9]{2,}){0,3}\}\})/) do |f_name_match|
14
14
  f_name = f_name_match[2..-3]
15
15
  ext = f_name[/(\.[a-zA-Z]+)/]
@@ -24,13 +24,15 @@ namespace "codemerger" do
24
24
  when ".xsl"; "lang=\"xml\""
25
25
  when ".css"; "lang=\"css\""
26
26
  when ".js"; "lang=\"javascript\""
27
+ when ".sh"; "lang=\"bash\""
28
+ when ".bat"; "lang=\"batch\""
27
29
  when ".xhtml"; "lang=\"xml\""
28
30
  when nil; "lang=\"ruby\""
29
- else; ""
31
+ else; "lang=\"text\""
30
32
  end
31
33
 
32
34
  <<_EOF_
33
- <b>#{f_name}</b>
35
+ <b>#{f_name}</b>
34
36
  <pre line="1" #{lang_str}>
35
37
  #{IO.readlines(f_name).to_s}
36
38
  </pre>
@@ -1,3 +1,3 @@
1
- module Codemerger
2
- VERSION = "0.0.8"
3
- end
1
+ module Codemerger
2
+ VERSION = "0.0.9"
3
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codemerger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rodrigo Urubatan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-16 00:00:00 -02:00
18
+ date: 2011-01-25 00:00:00 -02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -46,6 +46,7 @@ files:
46
46
  - .codemerger.gemspec.swp
47
47
  - .gitignore
48
48
  - Gemfile
49
+ - Gemfile.lock
49
50
  - Rakefile
50
51
  - codemerger.gemspec
51
52
  - lib/codemerger.rb