guider 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -25,7 +25,7 @@ task :bump do
25
25
 
26
26
  # Replace it in bin/guider
27
27
  contents = IO.read("bin/guider")
28
- contents.sub!(/VERSION = '#{old_version}'/, "VERSION = '#{new_version}'")
28
+ contents.sub!(/GUIDER_VERSION = '#{old_version}'/, "GUIDER_VERSION = '#{new_version}'")
29
29
  File.open("bin/guider", "w") {|f| f.write(contents) }
30
30
 
31
31
  # Create a commit
data/bin/guider CHANGED
@@ -7,12 +7,12 @@ require "rubygems"
7
7
  require "optparse"
8
8
  require "guider/app"
9
9
 
10
- VERSION = '0.0.6'
10
+ GUIDER_VERSION = '0.0.7'
11
11
 
12
12
  def format_footer(text)
13
13
  guider = "<a href='https://github.com/nene/guider'>Guider</a>"
14
14
  date = Time.new.strftime('%a %d %b %Y %H:%M:%S')
15
- text.gsub(/\{VERSION\}/, VERSION).gsub(/\{GUIDER\}/, guider).gsub(/\{DATE\}/, date)
15
+ text.gsub(/\{VERSION\}/, GUIDER_VERSION).gsub(/\{GUIDER\}/, guider).gsub(/\{DATE\}/, date)
16
16
  end
17
17
 
18
18
  options = {
@@ -30,7 +30,7 @@ input_files = OptionParser.new do |opts|
30
30
 
31
31
  opts.on("-o", "--output=DIR", "Where to output the guides.",
32
32
  "Defaults to ./out") do |dir|
33
- options[:output] = File.absolute_path(dir)
33
+ options[:output] = File.expand_path(dir)
34
34
  end
35
35
 
36
36
  opts.on("--title=TEXT", "The title for the whole set of guides.",
@@ -62,13 +62,13 @@ input_files = OptionParser.new do |opts|
62
62
  end
63
63
 
64
64
  opts.on("--version", "Prints guider version number.") do
65
- puts "Guider #{VERSION}"
65
+ puts "Guider #{GUIDER_VERSION}"
66
66
  exit
67
67
  end
68
68
  end.parse!
69
69
 
70
70
  if input_files.length == 1
71
- options[:input] = File.absolute_path(input_files[0])
71
+ options[:input] = File.expand_path(input_files[0])
72
72
  else
73
73
  $stderr.puts "ERROR: Exactly one input directory must be specified."
74
74
  exit(1)
data/guider.gemspec CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
2
2
  s.required_rubygems_version = ">= 1.3.5"
3
3
 
4
4
  s.name = 'guider'
5
- s.version = '0.0.6'
5
+ s.version = '0.0.7'
6
6
  s.date = Time.new.strftime('%Y-%m-%d')
7
7
  s.summary = "Sencha guide generator"
8
8
  s.description = "JSDuck-compatible guides generator"
@@ -22,7 +22,7 @@ module Guider
22
22
  private
23
23
 
24
24
  def replace_link!(html)
25
- replace!(html, /\{@link\s+([^\s\}]*)(?:\s+([^\}]*))?}/) do |ref, alt|
25
+ replace!(html, /\{@link\s+([^\s\}]*)(?:\s+([^\}]*))?\}/) do |ref, alt|
26
26
  cls, mref = ref.split(/#/)
27
27
  if mref
28
28
  parts = mref.split(/-/)
@@ -46,7 +46,7 @@ module Guider
46
46
  end
47
47
 
48
48
  def replace_img!(html)
49
- replace!(html, /\{@img\s+([^\s\}]*)(?:\s+([^\}]*))?}/) do |ref, alt|
49
+ replace!(html, /\{@img\s+([^\s\}]*)(?:\s+([^\}]*))?\}/) do |ref, alt|
50
50
  "<img src='#{ref}' alt='#{alt}'>"
51
51
  end
52
52
  end
metadata CHANGED
@@ -1,55 +1,63 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: guider
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.6
3
+ version: !ruby/object:Gem::Version
4
+ hash: 17
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 7
10
+ version: 0.0.7
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Rene Saarsoo
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2013-03-26 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-04-03 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: kramdown
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 0.14.2
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 35
29
+ segments:
30
+ - 0
31
+ - 14
32
+ - 2
29
33
  version: 0.14.2
30
- - !ruby/object:Gem::Dependency
31
- name: json
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: 1.7.5
38
34
  type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: json
39
38
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 1
45
+ segments:
46
+ - 1
47
+ - 7
48
+ - 5
45
49
  version: 1.7.5
50
+ type: :runtime
51
+ version_requirements: *id002
46
52
  description: JSDuck-compatible guides generator
47
53
  email: rene.saarsoo@sencha.com
48
- executables:
54
+ executables:
49
55
  - guider
50
56
  extensions: []
57
+
51
58
  extra_rdoc_files: []
52
- files:
59
+
60
+ files:
53
61
  - .gitignore
54
62
  - COPYING
55
63
  - README.md
@@ -73,26 +81,38 @@ files:
73
81
  - template/styles.css
74
82
  homepage: https://github.com/nene/guider
75
83
  licenses: []
84
+
76
85
  post_install_message:
77
86
  rdoc_options: []
78
- require_paths:
87
+
88
+ require_paths:
79
89
  - lib
80
- required_ruby_version: !ruby/object:Gem::Requirement
90
+ required_ruby_version: !ruby/object:Gem::Requirement
81
91
  none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ hash: 3
96
+ segments:
97
+ - 0
98
+ version: "0"
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
100
  none: false
88
- requirements:
89
- - - ! '>='
90
- - !ruby/object:Gem::Version
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ hash: 17
105
+ segments:
106
+ - 1
107
+ - 3
108
+ - 5
91
109
  version: 1.3.5
92
110
  requirements: []
111
+
93
112
  rubyforge_project: guider
94
113
  rubygems_version: 1.8.24
95
114
  signing_key:
96
115
  specification_version: 3
97
116
  summary: Sencha guide generator
98
117
  test_files: []
118
+