webflow-ruby 1.2.0 → 1.2.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
  SHA256:
3
- metadata.gz: 5dc83a952ee2114334ea80a157dc735172ab6deb2ab6a56cae055285c3add9ce
4
- data.tar.gz: a8879e57eb4526330df870b12bf0c72f5260e835b942350cc8277a5d36583976
3
+ metadata.gz: 21d5899eec3b30b220cc9504ac6bfae90a5ca8513527a7549ae92e0f3506f9a8
4
+ data.tar.gz: be3d265daec2d442c26ceb5711991d665223ed919434066b13ede91f6f1ac6b9
5
5
  SHA512:
6
- metadata.gz: 2cd7ad0daf03fb0e99c5cbd874e47bfe036df62b2f53987d0c955f220064f05617ee0a4423db10ee9c70e89a0d5c05970499300230ade6cfe95fb8168fbbd77a
7
- data.tar.gz: 1a0030e92317b9253e9d1387dcf4aa1c22cb74890088dcf7af4ca7961730f9640ae8b81a38549c95398516c95a14601b891f7f0eca028615f34d14046865bcac
6
+ metadata.gz: fc7d8c4dbd5b1e2305652a6909c7eb5c5d441338f7b0778644cce633640eb159d8b5893dd4ef93242712ae57f56b775443f64ca377101202b4ac79a355e95dee
7
+ data.tar.gz: dd9a55df590331f6dedc470055eff82d50511c19ca8d8d7eb80cd79ca4d8d0b66576373eac3562a0e93e9910a3f626038623d29cfbaaf2c65d78c69de7489ea2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.2.1
2
+ * [FEATURE] Handle Problems in Validation errors https://github.com/penseo/webflow-ruby/pull/14 https://github.com/penseo/webflow-ruby/pull/16 😍 @vfonic @sega
3
+
1
4
  ## 1.2.0
2
5
  * [FEATURE] Add patch support for updating items https://github.com/penseo/webflow-ruby/issues/10 😍 @ukd1
3
6
 
data/README.md CHANGED
@@ -35,5 +35,9 @@ sites = client.sites
35
35
  ## Contributing
36
36
  Bug reports and pull requests are welcome on GitHub at https://github.com/penseo/webflow-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
37
37
 
38
+ ## Plugins
39
+ * [webflow_sync](https://github.com/vfonic/webflow_sync) - Keep Rails models in sync with WebFlow collections.
40
+
41
+
38
42
  ## License
39
43
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/lib/webflow/error.rb CHANGED
@@ -28,7 +28,16 @@ module Webflow
28
28
  def initialize(data)
29
29
  @data = data
30
30
 
31
- super(data['msg'])
31
+ message = "#{data['msg']}#{': ' + Array(problems).join(', ') if problems?}"
32
+ super(message)
33
+ end
34
+
35
+ def problems?
36
+ !!data['problems']
37
+ end
38
+
39
+ def problems
40
+ data['problems']
32
41
  end
33
42
  end
34
43
  end
@@ -1,3 +1,3 @@
1
1
  module Webflow
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webflow-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - phoet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-07 00:00:00.000000000 Z
11
+ date: 2021-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http