artifact 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/artifact/middleman.rb +4 -2
- data/lib/artifact/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f68a0015fe6eca6069d167caefb003cff3dc1c5
|
4
|
+
data.tar.gz: dfb80980bc99fee45ed86d9b1324f720c1f12f18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d493385ab5ec711f2ca452204e951732d9eeb5ea5537b72c1c189346bb9e3a3c097ae31063b95db5116f9742aab61bea912d63d3b59c7b707cab275dc8af72f9
|
7
|
+
data.tar.gz: a196d65b4a1b88921e80e2cdeb728f9b4e1eb4640e05e35be37c70c6a6ed4f25588e2c0b6d9767635186c2615d0abbfe56e7ddec21c46a9562700a1533602ed7
|
data/lib/artifact/middleman.rb
CHANGED
@@ -94,6 +94,8 @@ module Artifact
|
|
94
94
|
|
95
95
|
@file = Artifact.drafts.new(filename, POST_EXTENSION)
|
96
96
|
@file.update(params[:content], data)
|
97
|
+
|
98
|
+
updated!
|
97
99
|
redirect to('/posts')
|
98
100
|
end
|
99
101
|
|
@@ -129,7 +131,7 @@ module Artifact
|
|
129
131
|
elsif params[:save] == 'Unpublish'
|
130
132
|
unpublish_post!(@post)
|
131
133
|
else
|
132
|
-
|
134
|
+
@just_saved = true
|
133
135
|
end
|
134
136
|
end
|
135
137
|
|
@@ -183,7 +185,7 @@ module Artifact
|
|
183
185
|
else
|
184
186
|
# puts "Meta date is #{meta[:date]}"
|
185
187
|
return false unless valid_date?(meta[:date])
|
186
|
-
end
|
188
|
+
end
|
187
189
|
|
188
190
|
meta[:author] = current_user[:name] unless meta[:author]
|
189
191
|
meta
|
data/lib/artifact/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artifact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomás Pollak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|