xiki 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/xiki/notes.rb CHANGED
@@ -988,6 +988,11 @@ class Notes
988
988
  def self.do_as_quote
989
989
  # Make this add or remove quotes
990
990
  end
991
+
992
+ def self.from_markdown_format txt
993
+ txt = txt.gsub(/^#+/){"#{'>' * $&.length}"}
994
+ end
995
+
991
996
  end
992
997
 
993
998
  Notes.define_styles
data/menu/markdown.rb CHANGED
@@ -3,10 +3,6 @@ require 'redcarpet'
3
3
 
4
4
  class Markdown
5
5
 
6
- def self.to_xiki_format txt
7
- txt = txt.gsub(/^#+/){"#{'>' * $&.length}"}
8
- end
9
-
10
6
  def self.render txt
11
7
  markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :autolink=>true, :space_after_headers=>true)
12
8
  html = markdown.render txt
data/menu/readme.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  class Readme
2
2
  def self.menu *args
3
3
  txt = File.read "#{Bookmarks["$x"]}README.markdown"
4
- Markdown.to_xiki_format txt
4
+ Notes.from_markdown_format txt
5
5
  end
6
6
  end
data/xiki.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "xiki"
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Craig Muth"]
12
- s.date = "2012-08-27"
12
+ s.date = "2012-08-28"
13
13
  s.executables = ["xiki"]
14
14
  s.summary = "A shell console with GUI features."
15
15
  s.description = "Xiki does what shell consoles do, but lets you edit everything at any time. It's trivial to make your own commands and menus to access other tools."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-27 00:00:00.000000000 Z
12
+ date: 2012-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sourcify