docrb-html 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 200b61391aab2d93241b13ee9f089477bad237db0c55b14a3aa75c25fe6039dc
4
- data.tar.gz: aaf92fbb661440906dc79bb162120742aa011b3b8146cee054804ce9b8de9b4e
3
+ metadata.gz: 417c97961cb771b13c6fd2ba73c50071b0c8f9d7b8c8347720d7a6122507b939
4
+ data.tar.gz: c8cffc343a5f6c1252504bcf040ed1c1037bbf4c61ad93e2d642d434bc219d2c
5
5
  SHA512:
6
- metadata.gz: 1fa73fa5f492a15fe21bfcb3c3594a850ea04fb61e056196d2f07c78dd0fd90226508a0f09c80e65b2b870e96ee6d80cea5e1304a2ea3c2dea77c20b7877b718
7
- data.tar.gz: 48b3d0bde1125d8de36ab89cc1ad7b5030fde1f9b6bef9ff76bce01ef2c3853b91bc8765a4d9d7266846515e1aadae92e63f3fbb3e6a3a620a3b89a6ffe0ab93
6
+ metadata.gz: 2c6d0faef4f2bedb06dd746dd7b611185cc33d8d33664e4f6c666613748a892dd691be08eaa24520b6f4c396bc341e09e3da246fd374b64c919ec97de0971625
7
+ data.tar.gz: 69d245a02ef403e4c9be4eabe0120876570208ffc354e8c5529ff0057337e3bc1817271b0d4e1aa6ef570e2ca74af0951bafbc40a22c865ba36d6266188d6e00
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docrb-html (0.2.0)
4
+ docrb-html (0.2.1)
5
5
  nokogiri (~> 1.14)
6
6
  sassc (~> 2.4)
7
7
 
@@ -10,10 +10,6 @@ GEM
10
10
  specs:
11
11
  byebug (11.1.3)
12
12
  ffi (1.15.5)
13
- mini_portile2 (2.8.1)
14
- nokogiri (1.14.2)
15
- mini_portile2 (~> 2.8.0)
16
- racc (~> 1.4)
17
13
  nokogiri (1.14.2-arm64-darwin)
18
14
  racc (~> 1.4)
19
15
  nokogiri (1.14.2-x86_64-darwin)
data/exe/docrb-html CHANGED
@@ -9,4 +9,4 @@ if ARGV.length != 2
9
9
  exit 1
10
10
  end
11
11
 
12
- Renderer.new.render
12
+ Renderer.new(ARGV.shift, ARGV.shift).render
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Renderer
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
data/lib/renderer.rb CHANGED
@@ -23,14 +23,14 @@ class Renderer
23
23
 
24
24
  def now = Time.now.strftime("%A, %-d %b %Y %H:%M:%S %Z")
25
25
 
26
- def initialize
27
- @base = Pathname.new(ARGV.shift)
28
- @output = Pathname.new(ARGV.shift)
26
+ def initialize(base, output)
27
+ @base = Pathname.new(base)
28
+ @output = Pathname.new(output)
29
29
  end
30
30
 
31
31
  def metadata = @metadata ||= Metadata.new(@base)
32
32
  def defs = @defs ||= Defs.new(@base, metadata)
33
- def footer = @footer ||= Component::Footer.new(version: "0.2.0", updated_at: now)
33
+ def footer = @footer ||= Component::Footer.new(version: VERSION, updated_at: now)
34
34
 
35
35
  def render
36
36
  project_header = Component::ProjectHeader.new(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docrb-html
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Gama