blocky 0.0.10 → 0.0.11

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: a702c136a614562b9e75b9ec75870001f677bc5c
4
- data.tar.gz: 41b3b26878ee3e5b7291bb33065d48598028d614
3
+ metadata.gz: 418331b90f4e8620c0578dff9e84b903535b8b3e
4
+ data.tar.gz: 055cc625632c94cdb677fee4de8743f62d2bb0f3
5
5
  SHA512:
6
- metadata.gz: b1f6f3ded50db48e9bdc25ba2fb1ba8447cc4597ba06130af4cd25c1dda1d3077e5fd575c288cb9a86701af47e680c6f79bbf66ca1f5b33cb7f42c1d6599b1de
7
- data.tar.gz: 82757225763c2fd56442cef7d6588c17d8403e4a69b15288a4259ee51e8f548cce77bde007af160ee86abc2d3885ac4dadf1d81e50e9d1264b997d6f1e1f97b1
6
+ metadata.gz: e4618675dd5a587209faeb487691fa7c537bd92112a13d4c9e9e1bb8e701d1c53e1760abfb9024579e2a7abfe3052bfaefd97529e1d729776279c623c00b474d
7
+ data.tar.gz: f8ea91e40da05f9c06e0be1e160890b1850bce2aa1aea5a44cffda27fd4e3bea95483293e1367036d8c8db7740e9638932f0b22fbbbdb1d84b087914d7e98ddc
@@ -28,14 +28,18 @@ module Blocky
28
28
  format.html {
29
29
  redirect_to(content_blocks_url, notice: "Content block :#{@content_block.name} was updated successfully.")
30
30
  }
31
- format.json
31
+ format.json {
32
+ render action: :show
33
+ }
32
34
  end
33
35
  else
34
36
  respond_to do |format|
35
37
  format.html {
36
38
  render action: :edit
37
39
  }
38
- format.json
40
+ format.json {
41
+ render json: @content_block.errors, status: :unprocessable_entity
42
+ }
39
43
  end
40
44
  end
41
45
  end
@@ -1,3 +1,3 @@
1
1
  module Blocky
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blocky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-24 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk