cartoonist-announcements 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc36109a8eca82c0f5f92b5accc6e096a166cd65
4
- data.tar.gz: 414000a104ffe29e9f5a0caced324c33cd988a4d
3
+ metadata.gz: 3bf53450b91da042ec523dc695f6f374778eb611
4
+ data.tar.gz: feb3e0646d3a65ad49838b8f1e4fb7f75bdc7e5e
5
5
  SHA512:
6
- metadata.gz: 6d0df5426fb78bd67267d067ca00b5e7eba815974e7b22c2335604a9d3f9b9c13e199342dcdf5472eacdbe92455b7ca09ab58c5232fd6a2864102b49c1e9d5dd
7
- data.tar.gz: 76c18cfe1a6bb777bfbbf176ec5ca3b7cfe94fae56848a5e60b6223c0098189d77a070aefb71da18a272f9bfa231147ac9631c6cb1942345371596bd6212b4d8
6
+ metadata.gz: 7446a8357a54d2650c7cc1c1a351a0250c8bf86a86497cc14f4855b8c9357a6ffc6d292577d8d5a5a54539467dbad0789a0d2806624d9c41c84e9acc47181b51
7
+ data.tar.gz: 733d29d5dbdeb15ed3dce344be709cb1df53c9e6501588f463c19c2a8b95dd0e36e8b0e9faf463b4754cfe6acc505c55f7ab311b16fbe7d3987eca7ad291b961
@@ -17,9 +17,9 @@ class Admin::AnnouncementsController < AdminCartoonistController
17
17
  end
18
18
 
19
19
  def index
20
- @unposted = Announcement.future.all
21
- @active = Announcement.active.all
22
- @expired = Announcement.expired.all
20
+ @unposted = Announcement.future.to_a
21
+ @active = Announcement.active.to_a
22
+ @expired = Announcement.expired.to_a
23
23
  end
24
24
 
25
25
  def lock
@@ -3,7 +3,6 @@ class Announcement < ActiveRecord::Base
3
3
  include Postable
4
4
  include Expirable
5
5
  include Lockable
6
- attr_accessible :posted_at, :expired_at, :title, :content, :location
7
6
  validate :posted_at_must_be_before_expired_at, :posted_at_must_exist_if_expired_at_exists
8
7
 
9
8
  def posted_at_must_be_before_expired_at
@@ -2,7 +2,7 @@ module CartoonistAnnouncements
2
2
  class Version
3
3
  class << self
4
4
  def to_s
5
- "0.0.18"
5
+ "0.0.19"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartoonist-announcements
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Virata-Stone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-03 00:00:00.000000000 Z
11
+ date: 2013-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cartoonist
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.18
19
+ version: 0.0.19
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.0.18
26
+ version: 0.0.19
27
27
  description: This plugin for Cartoonist adds announcements for things like announcing
28
28
  a new website.
29
29
  email: reasonnumber@gmail.com