all3dp 0.1.0 → 0.1.1

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: b200c3f9101d5bb353741077ea7dfba0ea4639fe
4
- data.tar.gz: bf21d3ea7c2a7fa6bf1fde4e1ea483ff87a36148
3
+ metadata.gz: 1e55f0922f578f56da8e10eb1ff064a19cc81a2a
4
+ data.tar.gz: cd7d85a4e838ee3e30918a1d2ec84e341c384fd1
5
5
  SHA512:
6
- metadata.gz: 34d2c3a163fbdcf99b400f41ca5da824b7c270ae80e10e1c9dab3a776bd4d4fb8d07c4565cc96222376220fb785c4b1ce9bf0f8bbc425cfced99057a7657cd05
7
- data.tar.gz: 5828a22e8d5471e80ffa81f9a336c099dd844d7c192e97831830b76cc5bde6a49f9d05d1b72b98a97dd98d635afa49e93b3c246fc09093ac3d63768e92d84205
6
+ metadata.gz: 2448fd3775351ae4fdffa67c67475275d6a7dda1d1f86ff61ec6ba90135dac4ec00f44c2cf0372b5fd739817e1f97eb8ff4e1a3d837e7df0337e6c5e2437d476
7
+ data.tar.gz: f4848113c76f9fd37195869b4b9e2682b15c2c51becf24b3ae04a115400e8d07828e7c6a36728c03c032df81919f0ddb5c613ebbafc9a13f85aa27d39edc04e7
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # 0.1.1
2
+
3
+ Patches:
4
+ - Add response code to API errors
5
+
6
+ # 0.1.0
7
+
8
+ First version!
data/lib/all3dp/api.rb CHANGED
@@ -13,7 +13,9 @@ module All3DP
13
13
  json: { items: items },
14
14
  )
15
15
 
16
- raise Error, response.body.to_s.inspect if response.code != 201
16
+ if response.code != 201
17
+ raise Error, "Error #{response.code}: #{response.body.to_s.inspect}"
18
+ end
17
19
 
18
20
  response.parse
19
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module All3DP
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: all3dp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunny Ripert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-11 00:00:00.000000000 Z
11
+ date: 2018-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -133,6 +133,7 @@ files:
133
133
  - ".rspec"
134
134
  - ".rubocop.yml"
135
135
  - ".travis.yml"
136
+ - CHANGELOG.md
136
137
  - CODE_OF_CONDUCT.md
137
138
  - Gemfile
138
139
  - LICENSE