is_publishable 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module IsPublishable
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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 (minus 1 second for easy test integration)
22
- self.published_at = Time.zone.now - 1.second
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.3
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-08 00:00:00.000000000 Z
12
+ date: 2012-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec