artifact 0.2.4 → 0.2.5
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 +3 -1
- 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: 57a73759ba269d88aebc5168b29937b46d64a914
|
4
|
+
data.tar.gz: 1b5d2db30d994a5993e72c2c0f2b0c757a663e5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32eb6801185f993154108e3c29ef3d26f97aaf10644e5a122e08026f94d2e6240dced072b06c28bb2644f6d695bd309f7ad9b1f6ad2d737d938b47e00ac76a58
|
7
|
+
data.tar.gz: 77c5a49ee35c8c32545437b3316954837a01f9da87b53483590158a1e8b014c619cd16540a84c2b75c9ad67772e5aee1cf53227982bba60c366f0adbd34e22e8
|
data/lib/artifact/middleman.rb
CHANGED
@@ -128,6 +128,8 @@ module Artifact
|
|
128
128
|
publish_post!(@post)
|
129
129
|
elsif params[:save] == 'Unpublish'
|
130
130
|
unpublish_post!(@post)
|
131
|
+
else
|
132
|
+
@just_saved = true
|
131
133
|
end
|
132
134
|
end
|
133
135
|
|
@@ -136,7 +138,7 @@ module Artifact
|
|
136
138
|
if request.xhr?
|
137
139
|
"OK"
|
138
140
|
else
|
139
|
-
redirect back
|
141
|
+
redirect @just_saved ? back : to('/posts')
|
140
142
|
end
|
141
143
|
end
|
142
144
|
|
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.2.
|
4
|
+
version: 0.2.5
|
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: 2015-08-
|
11
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|