cartoonist 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/{application.js.erb → cartoonist.js.erb} +0 -0
- data/app/controllers/admin_controller.rb +1 -1
- data/app/controllers/cache_controller.rb +1 -1
- data/app/controllers/{application_controller.rb → cartoonist_controller.rb} +2 -1
- data/app/controllers/settings_controller.rb +1 -1
- data/app/controllers/site_controller.rb +2 -2
- data/app/controllers/static_cache_controller.rb +1 -1
- data/app/helpers/{application_helper.rb → cartoonist_helper.rb} +1 -1
- data/app/views/layouts/{application.html.erb → cartoonist.html.erb} +3 -3
- data/app/views/layouts/{application.rss.erb → cartoonist.rss.erb} +0 -0
- data/app/views/layouts/{application.xml.erb → cartoonist.xml.erb} +0 -0
- data/config/locales/en.yml +1 -1
- data/lib/cartoonist.rb +2 -2
- data/lib/cartoonist/engine.rb +2 -2
- metadata +18 -18
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class SiteController <
|
1
|
+
class SiteController < CartoonistController
|
2
2
|
def favicon
|
3
3
|
respond_to do |format|
|
4
4
|
format.html { redirect_to "/" }
|
@@ -28,7 +28,7 @@ class SiteController < ApplicationController
|
|
28
28
|
|
29
29
|
format.xml do
|
30
30
|
@entries = load_sitemap_content
|
31
|
-
render :content_type => "application/xml"
|
31
|
+
render :content_type => "application/xml", :layout => "cartoonist"
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<div class="site-wrapper">
|
32
32
|
<div class="header">
|
33
33
|
<div class="main-header">
|
34
|
-
<div class="logo"><%= t "
|
34
|
+
<div class="logo"><%= t "cartoonist.layout.logo" %></div>
|
35
35
|
<h1 class="site-name"><%= Setting[:site_name] %></h1>
|
36
36
|
<h2 class="heading"><%= Setting[:site_heading] %></h2>
|
37
37
|
<h2 class="site-updates"><%= Setting[:site_update_description] %></h2>
|
@@ -66,7 +66,7 @@
|
|
66
66
|
<% end %>
|
67
67
|
</div>
|
68
68
|
<noscript>
|
69
|
-
<%= t "
|
69
|
+
<%= t "cartoonist.layout.disqus.noscript_pre_link" %><a href="http://disqus.com/?ref_noscript"><%= t "cartoonist.layout.disqus.noscript_link" %></a><%= t "cartoonist.layout.disqus.noscript_post_link" %>
|
70
70
|
</noscript>
|
71
71
|
</div>
|
72
72
|
<% end %>
|
@@ -128,7 +128,7 @@
|
|
128
128
|
</script>
|
129
129
|
<% end %>
|
130
130
|
<% if Cartoonist::Asset.included_js? %>
|
131
|
-
<%= javascript_include_tag "
|
131
|
+
<%= javascript_include_tag "cartoonist" %>
|
132
132
|
<% end %>
|
133
133
|
</body>
|
134
134
|
</html>
|
File without changes
|
File without changes
|
data/config/locales/en.yml
CHANGED
data/lib/cartoonist.rb
CHANGED
@@ -50,12 +50,12 @@ module Cartoonist
|
|
50
50
|
|
51
51
|
class << self
|
52
52
|
# This does not include javascript files included in
|
53
|
-
#
|
53
|
+
# cartoonist.js. This is purely standalone assets.
|
54
54
|
def all
|
55
55
|
@@all
|
56
56
|
end
|
57
57
|
|
58
|
-
# Include the following js files into
|
58
|
+
# Include the following js files into cartoonist.js.
|
59
59
|
def include_js(*js_files)
|
60
60
|
@@included_js.push *js_files
|
61
61
|
@@included_js.tap &:uniq!
|
data/lib/cartoonist/engine.rb
CHANGED
@@ -226,7 +226,7 @@ module Cartoonist
|
|
226
226
|
|
227
227
|
config.before_initialize do
|
228
228
|
# Add in various configuration from plugins
|
229
|
-
Rails.application.config.assets.precompile += ["admin.css"]
|
229
|
+
Rails.application.config.assets.precompile += ["admin.css", "cartoonist.js"]
|
230
230
|
Rails.application.config.assets.precompile += Cartoonist::Asset.all
|
231
231
|
Rails.application.config.paths["db/migrate"] += Cartoonist::Migration.all
|
232
232
|
Rails.application.config.action_controller.include_all_helpers = false
|
@@ -315,7 +315,7 @@ module Cartoonist
|
|
315
315
|
|
316
316
|
Mime::Type.register "image/x-icon", :ico
|
317
317
|
Cartoonist::Admin::Tab.add :general, :url => "/admin", :order => 3
|
318
|
-
Cartoonist::Navigation::Link.add :url => (lambda { "https://twitter.com/#{Setting[:twitter_handle]}" }), :class => "follow-us", :label => "
|
318
|
+
Cartoonist::Navigation::Link.add :url => (lambda { "https://twitter.com/#{Setting[:twitter_handle]}" }), :class => "follow-us", :label => "cartoonist.layout.navigation.follow_on_twitter", :title => "cartoonist.layout.navigation.follow_on_twitter_title", :order => 2
|
319
319
|
Cartoonist::Migration.add_for self
|
320
320
|
|
321
321
|
Cartoonist::Backup.for :files do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cartoonist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: devise
|
16
|
-
requirement: &
|
16
|
+
requirement: &13208780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *13208780
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: jquery-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &13206920 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.0.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *13206920
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: railties
|
38
|
-
requirement: &
|
38
|
+
requirement: &13205660 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 3.2.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *13205660
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: redcarpet
|
49
|
-
requirement: &
|
49
|
+
requirement: &13205080 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.1.0
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *13205080
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: twitter
|
60
|
-
requirement: &
|
60
|
+
requirement: &13204340 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: 2.2.0
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *13204340
|
69
69
|
description: This provides the main functionality and plugin api for Cartoonist.
|
70
70
|
email: reasonnumber@gmail.com
|
71
71
|
executables: []
|
@@ -73,16 +73,16 @@ extensions: []
|
|
73
73
|
extra_rdoc_files: []
|
74
74
|
files:
|
75
75
|
- .gitignore
|
76
|
-
- app/assets/javascripts/
|
76
|
+
- app/assets/javascripts/cartoonist.js.erb
|
77
77
|
- app/assets/stylesheets/admin.css.scss
|
78
78
|
- app/controllers/admin_controller.rb
|
79
|
-
- app/controllers/application_controller.rb
|
80
79
|
- app/controllers/cache_controller.rb
|
80
|
+
- app/controllers/cartoonist_controller.rb
|
81
81
|
- app/controllers/settings_controller.rb
|
82
82
|
- app/controllers/site_controller.rb
|
83
83
|
- app/controllers/static_cache_controller.rb
|
84
|
-
- app/helpers/application_helper.rb
|
85
84
|
- app/helpers/cache_helper.rb
|
85
|
+
- app/helpers/cartoonist_helper.rb
|
86
86
|
- app/models/backup.rb
|
87
87
|
- app/models/database_file.rb
|
88
88
|
- app/models/markdown.rb
|
@@ -96,9 +96,9 @@ files:
|
|
96
96
|
- app/views/admin/main.html.erb
|
97
97
|
- app/views/cache/index.html.erb
|
98
98
|
- app/views/layouts/admin.html.erb
|
99
|
-
- app/views/layouts/
|
100
|
-
- app/views/layouts/
|
101
|
-
- app/views/layouts/
|
99
|
+
- app/views/layouts/cartoonist.html.erb
|
100
|
+
- app/views/layouts/cartoonist.rss.erb
|
101
|
+
- app/views/layouts/cartoonist.xml.erb
|
102
102
|
- app/views/layouts/general_admin.html.erb
|
103
103
|
- app/views/layouts/initial_setup.html.erb
|
104
104
|
- app/views/layouts/users.html.erb
|