is_publishable 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/is_publishable/version.rb +1 -1
- data/lib/is_publishable.rb +2 -2
- metadata +2 -2
data/lib/is_publishable.rb
CHANGED
@@ -18,8 +18,8 @@ module IsPublishable
|
|
18
18
|
# create before_save hook
|
19
19
|
before_save do
|
20
20
|
if published and published_at.nil?
|
21
|
-
# when not set, set time to now
|
22
|
-
self.published_at = Time.zone.now
|
21
|
+
# when not set, set time to now
|
22
|
+
self.published_at = Time.zone.now
|
23
23
|
elsif published.nil?
|
24
24
|
self.published = false
|
25
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: is_publishable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|