cartoonist 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- class AdminController < ApplicationController
1
+ class AdminController < CartoonistController
2
2
  before_filter :ensure_ssl!, :except => [:cache_cron, :tweet_cron]
3
3
  before_filter :check_admin!, :except => [:cache_cron, :tweet_cron]
4
4
 
@@ -1,4 +1,4 @@
1
- class CacheController < ApplicationController
1
+ class CacheController < CartoonistController
2
2
  before_filter :ensure_ssl!
3
3
  before_filter :check_admin!
4
4
  layout "general_admin"
@@ -1,4 +1,5 @@
1
- class ApplicationController < ActionController::Base
1
+ class CartoonistController < ActionController::Base
2
+ helper :cartoonist
2
3
  protect_from_forgery
3
4
  before_filter :check_mobile
4
5
 
@@ -1,4 +1,4 @@
1
- class SettingsController < ApplicationController
1
+ class SettingsController < CartoonistController
2
2
  before_filter :ensure_ssl!
3
3
  before_filter :check_admin!, :except => [:initial_setup, :save_initial_setup]
4
4
 
@@ -1,4 +1,4 @@
1
- class SiteController < ApplicationController
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
@@ -1,4 +1,4 @@
1
- class StaticCacheController < ApplicationController
1
+ class StaticCacheController < CartoonistController
2
2
  before_filter :ensure_ssl!
3
3
  before_filter :check_admin!
4
4
  layout "general_admin"
@@ -1,4 +1,4 @@
1
- module ApplicationHelper
1
+ module CartoonistHelper
2
2
  def selected(a, b = true)
3
3
  if a == b
4
4
  'selected="selected"'.html_safe
@@ -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 "application.layout.logo" %></div>
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 "application.layout.disqus.noscript_pre_link" %><a href="http://disqus.com/?ref_noscript"><%= t "application.layout.disqus.noscript_link" %></a><%= t "application.layout.disqus.noscript_post_link" %>
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 "application" %>
131
+ <%= javascript_include_tag "cartoonist" %>
132
132
  <% end %>
133
133
  </body>
134
134
  </html>
@@ -17,7 +17,7 @@ en:
17
17
  not_live_warning: development
18
18
  production_warning: PRODUCTION
19
19
  user_heading: "%{user}:"
20
- application:
20
+ cartoonist:
21
21
  layout:
22
22
  disqus:
23
23
  noscript_pre_link: "Please enable JavaScript to view the "
@@ -50,12 +50,12 @@ module Cartoonist
50
50
 
51
51
  class << self
52
52
  # This does not include javascript files included in
53
- # application.js. This is purely standalone assets.
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 application.js.
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!
@@ -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 => "application.layout.navigation.follow_on_twitter", :title => "application.layout.navigation.follow_on_twitter_title", :order => 2
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.6
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-18 00:00:00.000000000 Z
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: &17891860 !ruby/object:Gem::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: *17891860
24
+ version_requirements: *13208780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &17890900 !ruby/object:Gem::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: *17890900
35
+ version_requirements: *13206920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: railties
38
- requirement: &17890160 !ruby/object:Gem::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: *17890160
46
+ version_requirements: *13205660
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: redcarpet
49
- requirement: &17889400 !ruby/object:Gem::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: *17889400
57
+ version_requirements: *13205080
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: twitter
60
- requirement: &17888660 !ruby/object:Gem::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: *17888660
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/application.js.erb
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/application.html.erb
100
- - app/views/layouts/application.rss.erb
101
- - app/views/layouts/application.xml.erb
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