irwi 0.1.7 → 0.1.9
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.
- data/VERSION +1 -1
- data/irwi.gemspec +2 -2
- data/lib/irwi.rb +2 -0
- data/lib/irwi/comparators/base.rb +3 -0
- data/lib/irwi/comparators/diff_lcs.rb +2 -0
- data/lib/irwi/config.rb +6 -0
- data/lib/irwi/helpers/wiki_pages_helper.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.9
|
data/irwi.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{irwi}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alexey Noskov"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-24}
|
13
13
|
s.description = %q{Irwi is Ruby on Rails plugin which adds wiki functionality to your application. }
|
14
14
|
s.email = %q{alexey.noskov@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/irwi.rb
CHANGED
data/lib/irwi/config.rb
CHANGED
@@ -11,16 +11,22 @@ class Irwi::Config
|
|
11
11
|
|
12
12
|
# Object using to format content
|
13
13
|
attr_accessor_with_default :formatter do
|
14
|
+
require 'irwi/formatters/red_cloth'
|
15
|
+
|
14
16
|
Irwi::Formatters::RedCloth.new
|
15
17
|
end
|
16
18
|
|
17
19
|
# Object using to compare pages
|
18
20
|
attr_accessor_with_default :comparator do
|
21
|
+
require 'irwi/comparators/diff_lcs'
|
22
|
+
|
19
23
|
Irwi::Comparators::DiffLcs.new
|
20
24
|
end
|
21
25
|
|
22
26
|
# Object using to paginate collections
|
23
27
|
attr_accessor_with_default :paginator do
|
28
|
+
require 'irwi/paginators/none'
|
29
|
+
|
24
30
|
Irwi::Paginators::None.new
|
25
31
|
end
|
26
32
|
|
@@ -30,7 +30,7 @@ module Irwi::Helpers::WikiPagesHelper
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def wiki_content( text )
|
33
|
-
sanitize(
|
33
|
+
sanitize( auto_link( Irwi.config.formatter.format( wiki_linkify( text ) ) ) )
|
34
34
|
end
|
35
35
|
|
36
36
|
def wiki_diff( old_text, new_text )
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irwi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Noskov
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-24 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|