api-blueprint 0.6.0 → 0.6.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc247d9616a2e34feda3dd467150f03d384628c0
4
- data.tar.gz: 68106129bf5eccc56440c0d15ae49f40034c7b20
3
+ metadata.gz: 52984141f35a89620c22e2c8278ebb0f47d3c2a1
4
+ data.tar.gz: ed921b44c10949909206a8d245bc080692d6e4ed
5
5
  SHA512:
6
- metadata.gz: cc963e572698777cded8128676784cbd2625c6b55f34931a274f7697d93bd57bf50e4ae91590a018841560472898aaf35400a00885e1e0929bfce59a0329c3ca
7
- data.tar.gz: 05333cf34ddc87d344cfb5bd90bf8d37e94282b53a6d98114b8a67a04d99450e37dc2470a31aea443ba94b9c57e5eb2bcab17bec3d6beb2eaf6a7c75a00afe53
6
+ metadata.gz: 3ba01d0f33b7166c86eda7716c260a5ab2c52dbae5bfc44dcecb3d22d21c3d36ae085e35fd872028b0202af056bde9c6f85431a40023d0472eab099f1edceb28
7
+ data.tar.gz: 6cb3de80ee31d6f557519f3aa072c3d86b60b4be43c639baa074779447ff19362b85720c390c33dd4ceff09e7b003b7d50e9e02a763f5c4812208f552c1e2466
@@ -4,6 +4,7 @@ module ApiBlueprint
4
4
  include ActiveModel::Conversion
5
5
  include ActiveModel::Validations
6
6
  include ActiveModel::Serialization
7
+ include ActiveModel::Serializers::JSON
7
8
  extend ActiveModel::Naming
8
9
  extend ActiveModel::Callbacks
9
10
 
@@ -40,5 +41,9 @@ module ApiBlueprint
40
41
  response_status.present? && (200...299).include?(response_status)
41
42
  end
42
43
 
44
+ def as_json
45
+ super.except :response_headers, :response_status
46
+ end
47
+
43
48
  end
44
49
  end
@@ -1,3 +1,3 @@
1
1
  module ApiBlueprint
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-blueprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Timewell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-09 00:00:00.000000000 Z
11
+ date: 2018-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-types