artifact 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d9a22097a5e96b8a7532307cd4a96ac39c5e8d8
4
- data.tar.gz: 1294c41c82ffb31a3565ce6c3f8b65879e9300a5
3
+ metadata.gz: bb0052b2b174a43ea767316955787150c36da6b8
4
+ data.tar.gz: 186fac9eb7e7342d2b5135a0aeae4c3dcb65f989
5
5
  SHA512:
6
- metadata.gz: f1434a6fadc81e53a4bb2b56984d8d13c47283706c6b298e6d4359f5c57552f778781a0278ed67c6fded7c78bdaf348fe9463c824a94e92a73d5bdd9eccf0e5a
7
- data.tar.gz: 8d89f6662399ce94422df176e46d8ec6f8af2c68001fbed0a3ad49b69e3dd01052e23e7065fa1226658ff2a0c1c720100a0236f3ed488fd04b25165a363e5474
6
+ metadata.gz: 7e086586d42ff8080d11641f96cf1239a0467af5742de62b7337967fe8d717c22047b2fe6bb00e4d6399e69bd24b430de375ed98843007325ae00595eedad0cc
7
+ data.tar.gz: 95bbc0c6e904191000ded69546f110a15873796d45ca558858c83bbb7968aa00c12d7793112d1e8e09de10b39d8c9dcd2160c6b79ea899c8d4bacbcacead7162
@@ -132,7 +132,12 @@ module Artifact
132
132
  end
133
133
 
134
134
  updated! # force middleman to rebuild resource list
135
- redirect to('/posts') unless request.xhr?
135
+
136
+ if request.xhr?
137
+ "OK"
138
+ else
139
+ redirect back
140
+ end
136
141
  end
137
142
 
138
143
  delete '/posts/*' do
@@ -1,3 +1,3 @@
1
1
  module Artifact
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
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.3
4
+ version: 0.2.4
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-21 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler