rokko 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/bin/rokko CHANGED
@@ -12,16 +12,7 @@
12
12
 
13
13
  require 'optparse'
14
14
  require 'fileutils'
15
- begin
16
- $:.unshift(File.expand_path('../../lib', __FILE__).sub(/^#{Dir.pwd}\//, ''))
17
- require 'rokko'
18
- rescue LoadError
19
- if !defined?(Gem)
20
- require 'rubygems'
21
- retry
22
- end
23
- raise
24
- end
15
+ require 'rokko'
25
16
 
26
17
  # Write usage message to stdout and exit
27
18
  def usage(stream=$stderr, status=1)
@@ -1,5 +1,5 @@
1
1
  class Rokko::IndexLayout < Rokko::Layout
2
- self.template_path = File.dirname(__FILE__)
2
+ self.template_file = File.join(File.dirname(__FILE__), 'index_layout.mustache')
3
3
 
4
4
  def initialize(sources, readme = '', options = {})
5
5
  @sources = sources
data/lib/rokko/layout.rb CHANGED
@@ -2,7 +2,7 @@ require 'pathname'
2
2
 
3
3
  module Rokko
4
4
  class Layout < Mustache
5
- self.template_path = File.dirname(__FILE__)
5
+ self.template_file = File.join(File.dirname(__FILE__), 'layout.mustache')
6
6
 
7
7
  def initialize(doc)
8
8
  @doc = doc
data/lib/rokko/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rokko
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/rokko.rb CHANGED
@@ -118,7 +118,6 @@ module Rokko
118
118
 
119
119
  def to_html
120
120
  require 'mustache'
121
- $:.unshift(File.dirname(__FILE__))
122
121
  require 'rokko/layout'
123
122
 
124
123
  ::Rokko::Layout.new(self).render
metadata CHANGED
@@ -1,56 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rokko
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 2
9
- version: 0.1.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Vasily Polovnyov
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2012-04-20 00:00:00 +04:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-05-17 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: mustache
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
16
+ requirement: &2157000060 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
30
22
  type: :runtime
31
- version_requirements: *id001
32
- - !ruby/object:Gem::Dependency
33
- name: rdiscount
34
23
  prerelease: false
35
- requirement: &id002 !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- segments:
40
- - 0
41
- version: "0"
24
+ version_requirements: *2157000060
25
+ - !ruby/object:Gem::Dependency
26
+ name: rdiscount
27
+ requirement: &2156999640 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
42
33
  type: :runtime
43
- version_requirements: *id002
34
+ prerelease: false
35
+ version_requirements: *2156999640
44
36
  description: fat-free [rocco](http://rtomayko.github.com/rocco/)
45
- email:
37
+ email:
46
38
  - vasily@polovnyov.ru
47
- executables:
39
+ executables:
48
40
  - rokko
49
41
  extensions: []
50
-
51
42
  extra_rdoc_files: []
52
-
53
- files:
43
+ files:
54
44
  - .gitignore
55
45
  - Gemfile
56
46
  - LICENSE
@@ -69,35 +59,28 @@ files:
69
59
  - lib/rokko/task.rb
70
60
  - lib/rokko/version.rb
71
61
  - rokko.gemspec
72
- has_rdoc: true
73
62
  homepage: http://vast.github.com/rokko/
74
63
  licenses: []
75
-
76
64
  post_install_message:
77
65
  rdoc_options: []
78
-
79
- require_paths:
66
+ require_paths:
80
67
  - lib
81
- required_ruby_version: !ruby/object:Gem::Requirement
82
- requirements:
83
- - - ">="
84
- - !ruby/object:Gem::Version
85
- segments:
86
- - 0
87
- version: "0"
88
- required_rubygems_version: !ruby/object:Gem::Requirement
89
- requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- segments:
93
- - 0
94
- version: "0"
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
95
80
  requirements: []
96
-
97
81
  rubyforge_project: rokko
98
- rubygems_version: 1.3.6
82
+ rubygems_version: 1.8.15
99
83
  signing_key:
100
84
  specification_version: 3
101
85
  summary: Else one ruby port of [Docco](http://jashkenas.github.com/docco/)
102
86
  test_files: []
103
-