fnando-kitabu 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -56,4 +56,12 @@
56
56
 
57
57
  == 0.1.0
58
58
  * 1 bug fix
59
- * RedCloth 3.04 now is bundled with bookmaker until version 4 is supported
59
+ * RedCloth 3.04 now is bundled with bookmaker until version 4 is supported
60
+
61
+ == 0.2.0
62
+ * 1 major change
63
+ * Gem refactored (dropped newgem structure)
64
+
65
+ == 0.2.1
66
+ * 1 minor change
67
+ * Fixed syntax block name regular expression
data/README.markdown CHANGED
@@ -160,6 +160,10 @@ you can get the code between `get_all_h2_tags` using
160
160
  INSTALL:
161
161
  --------
162
162
 
163
+ sudo gem install fnando-kitabu --source http://gems.github.com
164
+
165
+ or, if you have problem
166
+
163
167
  git clone git://github.com/fnando/kitabu.git
164
168
  cd kitabu
165
169
  gem build kitabu.gemspec
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ PKG_FILES = %w( Rakefile kitabu.gemspec History.txt License.txt README.markdown
4
4
 
5
5
  spec = Gem::Specification.new do |s|
6
6
  s.name = "kitabu"
7
- s.version = "0.2.0"
7
+ s.version = "0.2.1"
8
8
  s.summary = "A framework for creating e-books from Markdown/Textile text markup using Ruby."
9
9
  s.authors = ["Nando Vieira"]
10
10
  s.email = ["fnando.vieira@gmail.com"]
data/kitabu.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # RUN : 'rake gem:update_gemspec'
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.date = "Fri Aug 01 05:56:29 -0300 2008"
5
+ s.date = "Sun Aug 24 17:34:59 -0300 2008"
6
6
  s.executables = ["kitabu"]
7
7
  s.authors = ["Nando Vieira"]
8
8
  s.required_rubygems_version = ">= 0"
9
- s.version = "0.2.0"
9
+ s.version = "0.2.1"
10
10
  s.files = ["Rakefile",
11
11
  "kitabu.gemspec",
12
12
  "History.txt",
data/lib/kitabu/base.rb CHANGED
@@ -13,7 +13,7 @@ module Kitabu
13
13
  offset = to_line - from_line
14
14
  code = file.readlines.slice(from_line, offset).join
15
15
  elsif block_name = options[:block_name]
16
- re = %r(# ?begin: ?#{block_name} ?(?:[^\r\n]+)?\r?\n(.*?)\r?\n([^\r\n]+)?# ?end: #{block_name})sim
16
+ re = %r(# ?begin: ?\b#{block_name}\b ?(?:[^\r\n]+)?\r?\n(.*?)\r?\n([^\r\n]+)?# ?end: \b#{block_name}\b)sim
17
17
  file.read.gsub(re) { |block| code = $1 }
18
18
  else
19
19
  code = file.read
data/lib/kitabu/tasks.rb CHANGED
@@ -82,7 +82,7 @@ namespace :kitabu do
82
82
  end
83
83
  end
84
84
 
85
- desc "Watch changes and automatically generate html"
85
+ desc "Watch changes and automatically generate html & pdf"
86
86
  task :watch do
87
87
  thread = Thread.new do
88
88
  latest_mtime = 0
@@ -103,11 +103,13 @@ namespace :kitabu do
103
103
  end.max
104
104
 
105
105
  if latest_mtime < mtime
106
- puts "generating html - #{Time.now.strftime('%Y-%m-%d %H:%M:%S')}"
106
+ puts "creating html & pdf - #{Time.now.strftime('%Y-%m-%d %H:%M:%S')}"
107
107
  changes.each {|file| puts " - #{file}" } unless latest_mtime == 0
108
108
  latest_mtime = mtime
109
109
  Kitabu::Base.generate_html
110
110
  Kitabu::Base.generate_pdf
111
+ puts "done!"
112
+ puts
111
113
  end
112
114
 
113
115
  sleep 5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fnando-kitabu
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
  - Nando Vieira
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-01 01:56:29 -07:00
12
+ date: 2008-08-24 13:34:59 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency