archivable 1.1.0 → 1.2.0

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: 1ec9af586505369d7a76af5346a905a1d2aefbe8
4
- data.tar.gz: 09ff01b04e3bdcf165329b48f63ede75d60be75f
3
+ metadata.gz: f51d192891c093ea405c31b4b3e4256f644400ca
4
+ data.tar.gz: 98de047351c4b19dacf615c2d9658cad023b8b04
5
5
  SHA512:
6
- metadata.gz: 8df916527d0fd026b93b088bb323a57a18a2b9575c16f7159c9ed0799b4f734f9f7ab71d460fb054399bd4660088ab6154e21deda2fb1e91fb0949c18605e615
7
- data.tar.gz: 599517b1dfd93606f94dd4261cda96f424def10b548578dceb09d114118d15ce02eebb42d541ba915e4de245d47e24a1d2f2999fc2e5b29822010356f08b46a8
6
+ metadata.gz: e942a202168bb847d6da589a16505f10c6e97790a2eef84ed116b0790ebcd5f1b71c6e682ba2f946f43c043a64d7e9c7ef37c8d555e398687893dc88498661ba
7
+ data.tar.gz: aa6a451e0e982c8898d4b8bffc8f66fbec3089efdee681074f632459d20e373654ead3fa8828f2cfed5ef18ca63c260fd25253f3ecc5c32380e8ecc233e2d676
@@ -27,5 +27,9 @@ module Archivable
27
27
  self.archived = false
28
28
  save
29
29
  end
30
+
31
+ def is_archivable?
32
+ respond_to?(:archived)
33
+ end
30
34
  end
31
35
  end
@@ -1,3 +1,3 @@
1
1
  module Archivable
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
@@ -18,6 +18,9 @@ class Fake
18
18
  end
19
19
  end
20
20
 
21
+ class UnarchivableFake
22
+ end
23
+
21
24
  class FakesController < ActionController::Base
22
25
  include Archivable::Controller
23
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archivable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Otander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2015-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.4.5
139
+ rubygems_version: 2.4.5.1
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Archive your Rails models rather than delete them.