rocco 0.8 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/rocco +0 -28
  2. data/lib/rocco.rb +1 -1
  3. data/rocco.gemspec +2 -2
  4. metadata +4 -3
data/bin/rocco CHANGED
@@ -61,34 +61,6 @@ if sources.empty?
61
61
  abort_with_note "#{File.basename($0)}: no input <file>s given"
62
62
  end
63
63
 
64
- # What a fucking mess. Most of this is duplicated in rocco.rb too.
65
- libdir = File.expand_path('../../lib', __FILE__).sub(/^#{Dir.pwd}\//, '')
66
- begin
67
- require 'rdiscount'
68
- require 'rocco'
69
- rescue LoadError
70
- case $!.to_s
71
- when /rdiscount/
72
- if !defined?(Gem)
73
- warn "warn: #$!. trying again with rubygems"
74
- require 'rubygems'
75
- retry
76
- else
77
- require 'bluecloth'
78
- Markdown = BlueCloth
79
- $LOADED_FEATURES << 'rdiscount.rb'
80
- retry
81
- end
82
- when /rocco/
83
- if !$:.include?(libdir)
84
- warn "warn: #$!. trying again with #{libdir} on load path"
85
- $:.unshift(libdir)
86
- retry
87
- end
88
- end
89
- raise
90
- end
91
-
92
64
  # Run each file through Rocco and write output.
93
65
  sources.each do |filename|
94
66
  rocco = Rocco.new(filename, sources, options)
@@ -72,7 +72,7 @@ end
72
72
  # to `nil` (that is, Mustache will use `./lib/rocco/layout.mustache`)_.
73
73
  #
74
74
  class Rocco
75
- VERSION = '0.8'
75
+ VERSION = '0.8.1'
76
76
 
77
77
  def initialize(filename, sources=[], options={}, &block)
78
78
  @file = filename
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
 
10
10
  s.name = 'rocco'
11
- s.version = '0.8'
12
- s.date = '2011-06-19'
11
+ s.version = '0.8.1'
12
+ s.date = '2011-06-22'
13
13
 
14
14
  s.description = "Docco in Ruby"
15
15
  s.summary = s.description
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocco
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 61
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- version: "0.8"
9
+ - 1
10
+ version: 0.8.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Ryan Tomayko
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-06-19 00:00:00 -07:00
19
+ date: 2011-06-22 00:00:00 -07:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency