irwi 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.9
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{irwi}
8
- s.version = "0.1.7"
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-08}
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 = [
@@ -1,6 +1,8 @@
1
1
  module Irwi
2
2
 
3
3
  def self.config
4
+ require 'irwi/config'
5
+
4
6
  @@config ||= Irwi::Config.new
5
7
  end
6
8
 
@@ -1,3 +1,6 @@
1
+ require 'irwi/comparators/spans/changed_span'
2
+ require 'irwi/comparators/spans/not_changed_span'
3
+
1
4
  class Irwi::Comparators::Base
2
5
 
3
6
  def render_changes( old_text, new_text )
@@ -1,3 +1,5 @@
1
+ require 'irwi/comparators/base'
2
+
1
3
  class Irwi::Comparators::DiffLcs < Irwi::Comparators::Base
2
4
 
3
5
  def initialize
@@ -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( wiki_linkify( auto_link( Irwi.config.formatter.format( text ) ) ) )
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.7
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-08 00:00:00 +03:00
12
+ date: 2009-11-24 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency