artifact 0.2.7 → 0.2.8
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.
- checksums.yaml +4 -4
- data/lib/artifact/middleman.rb +4 -4
- data/lib/artifact/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 841d6c35a516f3b8891a8b524f3654f1c011c5b9
|
|
4
|
+
data.tar.gz: b9898d58d2c3cfad240b141683e62dbf2cb9ccd1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e568de025c94d8d434bac8f107578586cf9f84fc268c58fcc1ae73ff8b2b96dfedbf001f42d5b0b491a2de197b3fd36519cdde7134513cc5c925bfd515f01a0
|
|
7
|
+
data.tar.gz: 2b5d5a239d845510eef2273948adf1cc7ec182952f3e10adebd4fb8ed3534a1212972ee008cfe93c2e233d21df8f65705240d603abd25edb49a9140fe855c7e7
|
data/lib/artifact/middleman.rb
CHANGED
|
@@ -183,12 +183,12 @@ module Artifact
|
|
|
183
183
|
def check_post_meta!(action)
|
|
184
184
|
meta = (params[:meta] || {}).symbolize_keys.merge(:last_updated_by => current_user[:email])
|
|
185
185
|
|
|
186
|
-
if meta[:date] or action.to_s.downcase.to_sym
|
|
186
|
+
if !meta[:date] or action.to_s.downcase.to_sym == :publish
|
|
187
|
+
meta[:date] = Time.now.utc.strftime("%Y-%m-%d %H:%M %Z")
|
|
188
|
+
else
|
|
187
189
|
# puts "Meta date is #{meta[:date]}"
|
|
188
190
|
return false unless valid_date?(meta[:date])
|
|
189
|
-
|
|
190
|
-
meta[:date] = Time.now.utc.strftime("%Y-%m-%d %H:%M %Z")
|
|
191
|
-
end
|
|
191
|
+
end
|
|
192
192
|
|
|
193
193
|
meta[:author] = current_user[:name] unless meta[:author]
|
|
194
194
|
meta
|
data/lib/artifact/version.rb
CHANGED