voloko-sdoc 0.0.2 → 0.0.4

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.
@@ -327,13 +327,13 @@ module Generators
327
327
  if @options.inline_source
328
328
  code = m.source_code
329
329
  row["sourcecode"] = code if code
330
- row["github_url"] = m.github_url
330
+ row["github_url"] = m.github_url if @options.github_url
331
331
  else
332
332
  code = m.src_url
333
333
  if code
334
334
  row["codeurl"] = code
335
335
  row["imgurl"] = m.img_url
336
- row["github_url"] = m.github_url
336
+ row["github_url"] = m.github_url if @options.github_url
337
337
  end
338
338
  end
339
339
  res << row
data/lib/sdoc/options.rb CHANGED
@@ -5,7 +5,7 @@ module SDoc
5
5
  class Options < Options
6
6
  include Singleton
7
7
 
8
- attr_accessor :github_url, :github_path
8
+ attr_accessor :github_url
9
9
 
10
10
  def parse(argv, generators)
11
11
  old_argv = ARGV.dup
@@ -15,7 +15,6 @@ module SDoc
15
15
 
16
16
  generator_set = false
17
17
  template_set = false
18
- @github_path = Dir.pwd
19
18
 
20
19
  go = GetoptLong.new(*OptionList.options)
21
20
  go.quiet = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voloko-sdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Kolesnikov