cartoonist-announcements 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,4 @@
1
- class Admin::AnnouncementsController < CartoonistController
2
- before_filter :ensure_ssl!
3
- before_filter :check_admin!
4
-
1
+ class Admin::AnnouncementsController < AdminCartoonistController
5
2
  def index
6
3
  @unposted = Announcement.future.all
7
4
  @active = Announcement.active.all
@@ -1,3 +1,4 @@
1
1
  module CartoonistAnnouncements
2
2
  require "cartoonist-announcements/engine"
3
+ require "cartoonist-announcements/version"
3
4
  end
@@ -7,10 +7,10 @@ module CartoonistAnnouncements
7
7
  Announcement.order(:id)
8
8
  end
9
9
  Cartoonist::Routes.add do
10
- resources :announcements
10
+ resources :announcements, :only => []
11
11
 
12
12
  namespace :admin do
13
- resources :announcements
13
+ resources :announcements, :only => [:index]
14
14
  end
15
15
  end
16
16
  end
@@ -0,0 +1,9 @@
1
+ module CartoonistAnnouncements
2
+ class Version
3
+ class << self
4
+ def to_s
5
+ "0.0.13"
6
+ end
7
+ end
8
+ end
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartoonist-announcements
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,19 +9,19 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-05 00:00:00.000000000 Z
12
+ date: 2012-11-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cartoonist
16
- requirement: &19231080 !ruby/object:Gem::Requirement
16
+ requirement: &15752440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.12
21
+ version: 0.0.13
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19231080
24
+ version_requirements: *15752440
25
25
  description: This plugin for Cartoonist adds announcements for things like announcing
26
26
  a new website.
27
27
  email: reasonnumber@gmail.com
@@ -40,6 +40,7 @@ files:
40
40
  - db/migrate/20120412035009_create_announcements.rb
41
41
  - lib/cartoonist-announcements.rb
42
42
  - lib/cartoonist-announcements/engine.rb
43
+ - lib/cartoonist-announcements/version.rb
43
44
  homepage: http://reasonnumber.com/cartoonist
44
45
  licenses: []
45
46
  post_install_message: