irwi 0.2.4 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/README.rdoc +9 -9
- data/app/views/base_wiki_pages/_wiki_page_info.html.erb +1 -1
- data/app/views/base_wiki_pages/compare.html.erb +1 -1
- data/app/views/base_wiki_pages/history.html.erb +1 -1
- data/app/views/base_wiki_pages/no.html.erb +1 -1
- data/lib/generators/irwi_wiki/irwi_wiki_generator.rb +29 -0
- data/{generators → lib/generators}/irwi_wiki/templates/controllers/wiki_pages_controller.rb +3 -3
- data/{generators → lib/generators}/irwi_wiki/templates/helpers/wiki_pages_helper.rb +1 -1
- data/{generators → lib/generators}/irwi_wiki/templates/migrate/create_wiki_pages.rb +15 -15
- data/{generators → lib/generators}/irwi_wiki/templates/models/wiki_page.rb +3 -3
- data/{generators → lib/generators}/irwi_wiki/templates/models/wiki_page_version.rb +3 -3
- data/lib/generators/irwi_wiki_attachments/irwi_wiki_attachments_generator.rb +22 -0
- data/{generators → lib/generators}/irwi_wiki_attachments/templates/migrate/create_wiki_page_attachments.rb +6 -6
- data/{generators → lib/generators}/irwi_wiki_attachments/templates/models/wiki_page_attachment.rb +1 -1
- data/lib/generators/irwi_wiki_views/irwi_wiki_views_generator.rb +13 -0
- data/lib/irwi.rb +34 -7
- data/lib/irwi/comparators/base.rb +6 -6
- data/lib/irwi/comparators/diff_lcs.rb +12 -12
- data/lib/irwi/comparators/spans/changed_span.rb +6 -6
- data/lib/irwi/comparators/spans/not_changed_span.rb +7 -7
- data/lib/irwi/config.rb +16 -14
- data/lib/irwi/extensions/controllers.rb +18 -0
- data/lib/irwi/extensions/controllers/wiki_page_attachments.rb +1 -1
- data/lib/irwi/extensions/controllers/wiki_pages.rb +47 -47
- data/lib/irwi/extensions/models.rb +24 -0
- data/lib/irwi/extensions/models/wiki_page.rb +16 -16
- data/lib/irwi/extensions/models/wiki_page_attachment.rb +4 -4
- data/lib/irwi/extensions/models/wiki_page_version.rb +17 -17
- data/lib/irwi/formatters/blue_cloth.rb +4 -4
- data/lib/irwi/formatters/red_cloth.rb +4 -4
- data/lib/irwi/helpers.rb +13 -0
- data/lib/irwi/helpers/wiki_page_attachments_helper.rb +4 -2
- data/lib/irwi/helpers/wiki_pages_helper.rb +36 -36
- data/lib/irwi/paginators/none.rb +6 -4
- data/lib/irwi/paginators/will_paginate.rb +4 -4
- data/lib/irwi/support/route_mapper.rb +22 -18
- data/lib/irwi/support/template_finder.rb +4 -4
- data/lib/irwi/version.rb +9 -0
- metadata +110 -81
- data/.document +0 -4
- data/.gitignore +0 -24
- data/Rakefile +0 -53
- data/VERSION +0 -1
- data/generators/irwi_wiki/irwi_wiki_generator.rb +0 -22
- data/generators/irwi_wiki_attachments/irwi_wiki_attachments_generator.rb +0 -18
- data/generators/irwi_wiki_views/irwi_wiki_views_generator.rb +0 -19
- data/irwi.gemspec +0 -120
- data/rails/init.rb +0 -44
- data/spec/comparators/diff_lcs_spec.rb +0 -45
- data/spec/config_spec.rb +0 -68
- data/spec/extensions/controllers/wiki_pages_spec.rb +0 -69
- data/spec/extensions/models/wiki_page_spec.rb +0 -79
- data/spec/formatters/red_cloth_spec.rb +0 -17
- data/spec/helpers/wiki_page_attachments_helper_spec.rb +0 -45
- data/spec/helpers/wiki_pages_helper_spec.rb +0 -158
- data/spec/paginators/none_spec.rb +0 -24
- data/spec/paginators/will_paginate_spec.rb +0 -28
- data/spec/rcov.opts +0 -2
- data/spec/spec.opts +0 -4
- data/spec/spec_helper.rb +0 -15
- data/spec/support/route_mapper_spec.rb +0 -66
- data/spec/support/template_finder_spec.rb +0 -33
- data/tasks/riwiki_tasks.rake +0 -4
@@ -1,42 +1,42 @@
|
|
1
1
|
module Irwi::Extensions::Models::WikiPageVersion
|
2
|
-
|
2
|
+
|
3
3
|
module ClassMethods
|
4
|
-
|
4
|
+
|
5
5
|
end
|
6
|
-
|
7
|
-
module InstanceMethods
|
8
|
-
|
6
|
+
|
7
|
+
module InstanceMethods
|
8
|
+
|
9
9
|
def next
|
10
10
|
self.class.first :conditions => ["id > ? AND page_id = ?", id, page_id], :order => 'id ASC'
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
def previous
|
14
14
|
self.class.first :conditions => ["id < ? AND page_id = ?", id, page_id], :order => 'id DESC'
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
protected
|
18
|
-
|
18
|
+
|
19
19
|
def raise_on_update
|
20
20
|
raise ActiveRecordError.new "Cann't modify existent version"
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
def self.included( base )
|
26
26
|
base.send :extend, Irwi::Extensions::Models::WikiPageVersion::ClassMethods
|
27
27
|
base.send :include, Irwi::Extensions::Models::WikiPageVersion::InstanceMethods
|
28
|
-
|
28
|
+
|
29
29
|
base.belongs_to :page, :class_name => Irwi.config.page_class_name
|
30
30
|
base.belongs_to :updator, :class_name => Irwi.config.user_class_name
|
31
|
-
|
31
|
+
|
32
32
|
base.before_update :raise_on_update
|
33
|
-
|
34
|
-
base.named_scope :between, lambda { | first, last |
|
35
|
-
first = first.to_i
|
33
|
+
|
34
|
+
base.named_scope :between, lambda { | first, last |
|
35
|
+
first = first.to_i
|
36
36
|
last = last.to_i
|
37
37
|
first, last = last, first if last < first # Reordering if neeeded
|
38
38
|
{ :conditions => [ 'number >= ? AND number <= ?', first, last ] }
|
39
39
|
}
|
40
40
|
end
|
41
|
-
|
42
|
-
end
|
41
|
+
|
42
|
+
end
|
data/lib/irwi/helpers.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
module Irwi::Helpers
|
2
|
+
autoload :WikiPagesHelper, 'irwi/helpers/wiki_pages_helper'
|
3
|
+
autoload :WikiPageAttachmentsHelper, 'irwi/helpers/wiki_page_attachments_helper'
|
4
|
+
end
|
5
|
+
|
6
|
+
Module.class_eval do
|
7
|
+
|
8
|
+
def acts_as_wiki_pages_helper( config = {} )
|
9
|
+
include Irwi::Helpers::WikiPagesHelper
|
10
|
+
include Irwi::Helpers::WikiPageAttachmentsHelper if Irwi::config.page_attachment_class_name
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
@@ -1,53 +1,53 @@
|
|
1
1
|
module Irwi::Helpers::WikiPagesHelper
|
2
|
-
|
2
|
+
|
3
3
|
include Irwi::Support::TemplateFinder
|
4
4
|
include Irwi::Helpers::WikiPageAttachmentsHelper
|
5
|
-
|
5
|
+
|
6
6
|
# Edit form for wiki page model
|
7
7
|
def wiki_page_form( config = {}, &block )
|
8
8
|
form_for( :page, @page, { :url => url_for( :action => :update ), :html=> { :class => 'wiki_form' } }.merge!( config ), &block )
|
9
9
|
end
|
10
|
-
|
10
|
+
|
11
11
|
def wiki_page_new_path( page = nil )
|
12
12
|
wiki_page_path( page, :new )
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
def wiki_page_edit_path( page = nil )
|
16
16
|
wiki_page_path( page, :edit )
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
def wiki_page_history_path( page = nil )
|
20
20
|
wiki_page_path( page, :history )
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
def wiki_page_compare_path( page = nil )
|
24
24
|
wiki_page_path( page, :compare )
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
def wiki_page_path( page = nil, action = :show )
|
28
28
|
if page
|
29
29
|
page = page.path if page.respond_to? :path
|
30
|
-
|
30
|
+
|
31
31
|
url_for( :action => action, :path => page )
|
32
32
|
else
|
33
33
|
url_for( :action => action )
|
34
34
|
end
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
def wiki_content( text )
|
38
38
|
sanitize( auto_link( Irwi.config.formatter.format( wiki_linkify( wiki_show_attachments(text) ) ) ) )
|
39
39
|
end
|
40
|
-
|
40
|
+
|
41
41
|
def wiki_diff( old_text, new_text )
|
42
|
-
Irwi.config.comparator.render_changes(h(old_text), h(new_text))
|
42
|
+
Irwi.config.comparator.render_changes(h(old_text), h(new_text)).html_safe
|
43
43
|
end
|
44
|
-
|
44
|
+
|
45
45
|
def wiki_user( user )
|
46
|
-
return '<Unknown>' unless user
|
47
|
-
|
46
|
+
return '<Unknown>'.html_safe unless user
|
47
|
+
|
48
48
|
"User##{user.id}"
|
49
49
|
end
|
50
|
-
|
50
|
+
|
51
51
|
def wiki_linkify( str )
|
52
52
|
str.gsub /\[\[
|
53
53
|
(?:([^\[\]\|]+)\|)?
|
@@ -57,13 +57,13 @@ module Irwi::Helpers::WikiPagesHelper
|
|
57
57
|
text = "#$2#$3"
|
58
58
|
link, anchor = if $1 then $1.split('#', 2) else $2 end
|
59
59
|
"<a href=\"#{wiki_link link}#{ '#' + anchor if anchor}\">#{text}</a>"
|
60
|
-
end
|
60
|
+
end.html_safe
|
61
61
|
end
|
62
|
-
|
62
|
+
|
63
63
|
def wiki_paginate( collection, &block )
|
64
64
|
Irwi.config.paginator.paginated_section( self, collection, &block )
|
65
65
|
end
|
66
|
-
|
66
|
+
|
67
67
|
def wiki_link( title )
|
68
68
|
if page = Irwi.config.page_class.find_by_title( title )
|
69
69
|
url_for( :controller => Irwi.config.controller_name, :action => :show, :path => page.path )
|
@@ -71,7 +71,7 @@ module Irwi::Helpers::WikiPagesHelper
|
|
71
71
|
url_for( :controller => Irwi.config.controller_name, :action => :show, :path => title )
|
72
72
|
end
|
73
73
|
end
|
74
|
-
|
74
|
+
|
75
75
|
##
|
76
76
|
# Instead of having to translate strings and defining a default value:
|
77
77
|
#
|
@@ -91,47 +91,47 @@ module Irwi::Helpers::WikiPagesHelper
|
|
91
91
|
config[:scope] = 'wiki'
|
92
92
|
I18n.t(msg, config)
|
93
93
|
end
|
94
|
-
|
95
|
-
def wiki_page_style
|
94
|
+
|
95
|
+
def wiki_page_style
|
96
96
|
render :partial => "#{template_dir '_wiki_page_style'}/wiki_page_style"
|
97
97
|
end
|
98
|
-
|
98
|
+
|
99
99
|
def wiki_page_info(page = nil)
|
100
100
|
page ||= @page # By default take page from instance variable
|
101
|
-
|
101
|
+
|
102
102
|
render :partial => "#{template_dir '_wiki_page_info'}/wiki_page_info", :locals => { :page => page }
|
103
103
|
end
|
104
|
-
|
104
|
+
|
105
105
|
def wiki_page_actions(page = nil)
|
106
106
|
page ||= @page # By default take page from instance variable
|
107
|
-
|
107
|
+
|
108
108
|
render :partial => "#{template_dir '_wiki_page_actions'}/wiki_page_actions", :locals => { :page => page }
|
109
109
|
end
|
110
|
-
|
110
|
+
|
111
111
|
def wiki_page_history(page = nil,versions = nil)
|
112
112
|
page ||= @page # By default take page from instance variable
|
113
113
|
versions ||= @versions || page.versions
|
114
|
-
|
114
|
+
|
115
115
|
render :partial => "#{template_dir '_wiki_page_history'}/wiki_page_history", :locals => { :page => page, :versions => versions, :with_form => (versions.size > 1) }
|
116
116
|
end
|
117
117
|
|
118
118
|
def wiki_page_attachments(page)
|
119
119
|
return unless Irwi::config.page_attachment_class_name
|
120
120
|
|
121
|
-
page.attachments.each do |attachment|
|
121
|
+
page.attachments.each do |attachment|
|
122
122
|
concat image_tag(attachment.wiki_page_attachment.url(:thumb))
|
123
|
-
concat "Attachment_#{attachment.id}"
|
123
|
+
concat "Attachment_#{attachment.id}"
|
124
124
|
concat link_to(wt('Remove'), wiki_remove_page_attachment_path(attachment.id), :method => :delete)
|
125
|
-
end
|
125
|
+
end
|
126
126
|
|
127
|
-
form_for(:wiki_page_attachment,
|
128
|
-
Irwi.config.page_attachment_class.new,
|
129
|
-
:url => wiki_add_page_attachment_path(@page),
|
127
|
+
form_for(:wiki_page_attachment,
|
128
|
+
Irwi.config.page_attachment_class.new,
|
129
|
+
:url => wiki_add_page_attachment_path(@page),
|
130
130
|
:html => { :multipart => true }) do |form|
|
131
|
-
concat form.file_field :wiki_page_attachment
|
132
|
-
concat form.hidden_field :page_id, :value => @page.id
|
131
|
+
concat form.file_field :wiki_page_attachment
|
132
|
+
concat form.hidden_field :page_id, :value => @page.id
|
133
133
|
concat form.submit 'Add Attachment'
|
134
134
|
end
|
135
135
|
end
|
136
|
-
|
136
|
+
|
137
137
|
end
|
data/lib/irwi/paginators/none.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
+
require 'active_support/core_ext/hash'
|
2
|
+
|
1
3
|
class Irwi::Paginators::None
|
2
|
-
|
4
|
+
|
3
5
|
def paginate( collection, options = {} )
|
4
6
|
find_options = options.except :page, :per_page, :total_entries, :finder
|
5
7
|
|
6
8
|
collection.find( :all, find_options )
|
7
9
|
end
|
8
|
-
|
10
|
+
|
9
11
|
def paginated_section( view, collection, &block )
|
10
12
|
yield
|
11
13
|
end
|
12
|
-
|
13
|
-
end
|
14
|
+
|
15
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
class Irwi::Paginators::WillPaginate
|
2
|
-
|
2
|
+
|
3
3
|
def paginate( collection, options = {} )
|
4
4
|
collection.paginate( options )
|
5
5
|
end
|
6
|
-
|
6
|
+
|
7
7
|
def paginated_section( view, collection, &block )
|
8
8
|
view.paginated_section( collection, &block )
|
9
9
|
end
|
10
|
-
|
11
|
-
end
|
10
|
+
|
11
|
+
end
|
@@ -1,30 +1,34 @@
|
|
1
|
+
require 'action_dispatch'
|
2
|
+
|
1
3
|
module Irwi::Support::RouteMapper
|
2
|
-
|
4
|
+
|
3
5
|
# Defining wiki root mount point
|
4
6
|
def wiki_root( root, config = {} )
|
5
7
|
opts = {
|
6
8
|
:controller => 'wiki_pages',
|
7
9
|
:root => root
|
8
10
|
}.merge(config)
|
9
|
-
|
11
|
+
|
10
12
|
Irwi.config.system_pages.each do |page_action, page_path| # Adding routes for system pages
|
11
|
-
|
13
|
+
get( "#{root}/#{page_path}", opts.merge({ :action => page_action }) )
|
12
14
|
end
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
|
16
|
+
get( "#{root}/compare/(*path)", opts.merge({ :action => 'compare', :as => 'compare_wiki_page' }) ) # Comparing two versions of page
|
17
|
+
get( "#{root}/new/(*path)", opts.merge({ :action => 'new', :as => 'new_wiki_page' }) ) # Wiki new route
|
18
|
+
get( "#{root}/edit/(*path)", opts.merge({ :action => 'edit', :as => 'edit_wiki_page' }) ) # Wiki edit route
|
19
|
+
get( "#{root}/history/(*path)", opts.merge({ :action => 'history', :as => 'history_wiki_page' }) ) # Wiki history route
|
20
|
+
|
19
21
|
# Attachments
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
connect( "#{root}/*path", opts.merge({ :action => 'show', :conditions => { :method => :get } }) ) # Wiki pages route
|
27
|
-
#connect( "#{root}/*path", opts.merge({ :action => 'show', :conditions => { :method => :get } }) ) # Wiki pages route
|
22
|
+
post("#{root}/attach/(*path)", opts.merge({:action => 'add_attachment' }))
|
23
|
+
delete("#{root}/attach/:attachment_id", opts.merge({:action => 'remove_attachment' }))
|
24
|
+
|
25
|
+
delete( "#{root}/(*path)", opts.merge({ :action => 'destroy', :as => 'destroy_wiki_page' }) ) # Wiki destroy route
|
26
|
+
post( "#{root}/(*path)", opts.merge({ :action => 'update', :as => 'update_wiki_page' }) ) # Save wiki pages route
|
27
|
+
get( "#{root}/(*path)", opts.merge({ :action => 'show', :as => 'wiki_page' }) ) # Wiki pages route
|
28
28
|
end
|
29
|
-
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
ActionDispatch::Routing::Mapper.instance_eval do
|
33
|
+
include Irwi::Support::RouteMapper
|
30
34
|
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module Irwi::Support::TemplateFinder
|
2
|
-
|
2
|
+
|
3
3
|
protected
|
4
|
-
|
4
|
+
|
5
5
|
def template_dir(template)
|
6
6
|
dir = respond_to?( :controller_path ) ? controller_path : controller.controller_path
|
7
7
|
dir = 'base_wiki_pages' if Dir.glob( "app/views/#{dir}/#{template}.html.*" ).empty? # Select default if there are no template in resource directory
|
8
8
|
dir
|
9
9
|
end
|
10
|
-
|
11
|
-
end
|
10
|
+
|
11
|
+
end
|
data/lib/irwi/version.rb
ADDED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irwi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
- 2
|
9
8
|
- 4
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alexey Noskov
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2011-01-29 00:00:00 +03:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -36,101 +36,139 @@ dependencies:
|
|
36
36
|
type: :runtime
|
37
37
|
version_requirements: *id001
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
|
-
name:
|
39
|
+
name: activerecord
|
40
40
|
prerelease: false
|
41
41
|
requirement: &id002 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
hash:
|
46
|
+
hash: 7
|
47
|
+
segments:
|
48
|
+
- 3
|
49
|
+
- 0
|
50
|
+
- 0
|
51
|
+
version: 3.0.0
|
52
|
+
type: :runtime
|
53
|
+
version_requirements: *id002
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: activesupport
|
56
|
+
prerelease: false
|
57
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 7
|
63
|
+
segments:
|
64
|
+
- 3
|
65
|
+
- 0
|
66
|
+
- 0
|
67
|
+
version: 3.0.0
|
68
|
+
type: :runtime
|
69
|
+
version_requirements: *id003
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: actionpack
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
hash: 7
|
79
|
+
segments:
|
80
|
+
- 3
|
81
|
+
- 0
|
82
|
+
- 0
|
83
|
+
version: 3.0.0
|
84
|
+
type: :runtime
|
85
|
+
version_requirements: *id004
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
name: rspec
|
88
|
+
prerelease: false
|
89
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
hash: 3
|
47
95
|
segments:
|
48
|
-
- 1
|
49
96
|
- 2
|
50
|
-
-
|
51
|
-
version:
|
97
|
+
- 0
|
98
|
+
version: "2.0"
|
52
99
|
type: :development
|
53
|
-
version_requirements: *
|
54
|
-
description:
|
55
|
-
email:
|
100
|
+
version_requirements: *id005
|
101
|
+
description: Irwi is Ruby on Rails plugin which adds wiki functionality to your application.
|
102
|
+
email:
|
103
|
+
- alexey.noskov@gmail.com
|
104
|
+
- ravi.bhim@yahoo.com
|
56
105
|
executables: []
|
57
106
|
|
58
107
|
extensions: []
|
59
108
|
|
60
109
|
extra_rdoc_files:
|
61
110
|
- README.rdoc
|
62
|
-
files:
|
63
|
-
- .document
|
64
|
-
- .gitignore
|
65
111
|
- MIT-LICENSE
|
66
|
-
|
67
|
-
-
|
68
|
-
- VERSION
|
69
|
-
- app/views/base_wiki_pages/_wiki_page_actions.html.erb
|
70
|
-
- app/views/base_wiki_pages/_wiki_page_history.html.erb
|
112
|
+
files:
|
113
|
+
- app/views/base_wiki_pages/no.html.erb
|
71
114
|
- app/views/base_wiki_pages/_wiki_page_info.html.erb
|
72
|
-
- app/views/base_wiki_pages/_wiki_page_style.html.erb
|
73
115
|
- app/views/base_wiki_pages/all.html.erb
|
74
|
-
- app/views/base_wiki_pages/
|
75
|
-
- app/views/base_wiki_pages/
|
116
|
+
- app/views/base_wiki_pages/show.html.erb
|
117
|
+
- app/views/base_wiki_pages/not_allowed.html.erb
|
76
118
|
- app/views/base_wiki_pages/history.html.erb
|
119
|
+
- app/views/base_wiki_pages/_wiki_page_actions.html.erb
|
120
|
+
- app/views/base_wiki_pages/_wiki_page_history.html.erb
|
77
121
|
- app/views/base_wiki_pages/new.html.erb
|
78
|
-
- app/views/base_wiki_pages/
|
79
|
-
- app/views/base_wiki_pages/
|
80
|
-
- app/views/base_wiki_pages/
|
81
|
-
- generators/irwi_wiki/irwi_wiki_generator.rb
|
82
|
-
- generators/irwi_wiki/templates/controllers/wiki_pages_controller.rb
|
83
|
-
- generators/irwi_wiki/templates/helpers/wiki_pages_helper.rb
|
84
|
-
- generators/irwi_wiki/templates/migrate/create_wiki_pages.rb
|
85
|
-
- generators/irwi_wiki/templates/models/wiki_page.rb
|
86
|
-
- generators/irwi_wiki/templates/models/wiki_page_version.rb
|
87
|
-
- generators/irwi_wiki_attachments/irwi_wiki_attachments_generator.rb
|
88
|
-
- generators/irwi_wiki_attachments/templates/migrate/create_wiki_page_attachments.rb
|
89
|
-
- generators/irwi_wiki_attachments/templates/models/wiki_page_attachment.rb
|
90
|
-
- generators/irwi_wiki_views/irwi_wiki_views_generator.rb
|
91
|
-
- irwi.gemspec
|
122
|
+
- app/views/base_wiki_pages/edit.html.erb
|
123
|
+
- app/views/base_wiki_pages/_wiki_page_style.html.erb
|
124
|
+
- app/views/base_wiki_pages/compare.html.erb
|
92
125
|
- lib/irwi.rb
|
126
|
+
- lib/irwi/support/template_finder.rb
|
127
|
+
- lib/irwi/support/route_mapper.rb
|
93
128
|
- lib/irwi/comparators/base.rb
|
94
|
-
- lib/irwi/comparators/diff_lcs.rb
|
95
|
-
- lib/irwi/comparators/spans/changed_span.rb
|
96
129
|
- lib/irwi/comparators/spans/not_changed_span.rb
|
97
|
-
- lib/irwi/
|
98
|
-
- lib/irwi/
|
130
|
+
- lib/irwi/comparators/spans/changed_span.rb
|
131
|
+
- lib/irwi/comparators/diff_lcs.rb
|
132
|
+
- lib/irwi/extensions/models.rb
|
99
133
|
- lib/irwi/extensions/controllers/wiki_pages.rb
|
134
|
+
- lib/irwi/extensions/controllers/wiki_page_attachments.rb
|
135
|
+
- lib/irwi/extensions/controllers.rb
|
100
136
|
- lib/irwi/extensions/models/wiki_page.rb
|
101
|
-
- lib/irwi/extensions/models/wiki_page_attachment.rb
|
102
137
|
- lib/irwi/extensions/models/wiki_page_version.rb
|
103
|
-
- lib/irwi/
|
104
|
-
- lib/irwi/
|
138
|
+
- lib/irwi/extensions/models/wiki_page_attachment.rb
|
139
|
+
- lib/irwi/helpers.rb
|
140
|
+
- lib/irwi/paginators/will_paginate.rb
|
141
|
+
- lib/irwi/paginators/none.rb
|
105
142
|
- lib/irwi/helpers/wiki_page_attachments_helper.rb
|
106
143
|
- lib/irwi/helpers/wiki_pages_helper.rb
|
107
|
-
- lib/irwi/
|
108
|
-
- lib/irwi/
|
109
|
-
- lib/irwi/
|
110
|
-
- lib/irwi/
|
111
|
-
-
|
112
|
-
-
|
113
|
-
-
|
114
|
-
-
|
115
|
-
-
|
116
|
-
-
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
-
|
123
|
-
- spec/spec_helper.rb
|
124
|
-
- spec/support/route_mapper_spec.rb
|
125
|
-
- spec/support/template_finder_spec.rb
|
126
|
-
- tasks/riwiki_tasks.rake
|
144
|
+
- lib/irwi/formatters/red_cloth.rb
|
145
|
+
- lib/irwi/formatters/blue_cloth.rb
|
146
|
+
- lib/irwi/version.rb
|
147
|
+
- lib/irwi/config.rb
|
148
|
+
- lib/generators/irwi_wiki/templates/controllers/wiki_pages_controller.rb
|
149
|
+
- lib/generators/irwi_wiki/templates/migrate/create_wiki_pages.rb
|
150
|
+
- lib/generators/irwi_wiki/templates/helpers/wiki_pages_helper.rb
|
151
|
+
- lib/generators/irwi_wiki/templates/models/wiki_page.rb
|
152
|
+
- lib/generators/irwi_wiki/templates/models/wiki_page_version.rb
|
153
|
+
- lib/generators/irwi_wiki/irwi_wiki_generator.rb
|
154
|
+
- lib/generators/irwi_wiki_views/irwi_wiki_views_generator.rb
|
155
|
+
- lib/generators/irwi_wiki_attachments/templates/migrate/create_wiki_page_attachments.rb
|
156
|
+
- lib/generators/irwi_wiki_attachments/templates/models/wiki_page_attachment.rb
|
157
|
+
- lib/generators/irwi_wiki_attachments/irwi_wiki_attachments_generator.rb
|
158
|
+
- MIT-LICENSE
|
159
|
+
- README.rdoc
|
127
160
|
has_rdoc: true
|
128
161
|
homepage: http://github.com/alno/irwi
|
129
162
|
licenses: []
|
130
163
|
|
131
164
|
post_install_message:
|
132
165
|
rdoc_options:
|
133
|
-
- --
|
166
|
+
- --line-numbers
|
167
|
+
- --inline-source
|
168
|
+
- --title
|
169
|
+
- Rayo CMS
|
170
|
+
- --main
|
171
|
+
- README.rdoc
|
134
172
|
require_paths:
|
135
173
|
- lib
|
136
174
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -147,10 +185,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
185
|
requirements:
|
148
186
|
- - ">="
|
149
187
|
- !ruby/object:Gem::Version
|
150
|
-
hash:
|
188
|
+
hash: 23
|
151
189
|
segments:
|
152
|
-
-
|
153
|
-
|
190
|
+
- 1
|
191
|
+
- 3
|
192
|
+
- 6
|
193
|
+
version: 1.3.6
|
154
194
|
requirements: []
|
155
195
|
|
156
196
|
rubyforge_project:
|
@@ -158,16 +198,5 @@ rubygems_version: 1.3.7
|
|
158
198
|
signing_key:
|
159
199
|
specification_version: 3
|
160
200
|
summary: Irwi is Ruby on Rails plugin which adds wiki functionality to your application.
|
161
|
-
test_files:
|
162
|
-
|
163
|
-
- spec/support/template_finder_spec.rb
|
164
|
-
- spec/spec_helper.rb
|
165
|
-
- spec/comparators/diff_lcs_spec.rb
|
166
|
-
- spec/extensions/controllers/wiki_pages_spec.rb
|
167
|
-
- spec/extensions/models/wiki_page_spec.rb
|
168
|
-
- spec/config_spec.rb
|
169
|
-
- spec/paginators/will_paginate_spec.rb
|
170
|
-
- spec/paginators/none_spec.rb
|
171
|
-
- spec/helpers/wiki_pages_helper_spec.rb
|
172
|
-
- spec/helpers/wiki_page_attachments_helper_spec.rb
|
173
|
-
- spec/formatters/red_cloth_spec.rb
|
201
|
+
test_files: []
|
202
|
+
|