cherrypie-rails-sdk 0.2.4 → 0.2.5

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: 8b4af19ba1aac0997f6eccba30cdab81a410952171eb662e7c81bf9e939a1c9d
4
- data.tar.gz: c6457da0c2fd176ab0ace0fc1a3501a735afb8a3f781069ab8d2c91c7b38752d
3
+ metadata.gz: 291c6c48336f17f755789775225981c8894bf5d5bb899ecb2d19d6c5ed60870c
4
+ data.tar.gz: b2defc7724da013353601e660ddf25c3d8b8d5de3490f980462974aace4b079b
5
5
  SHA512:
6
- metadata.gz: 925c575e14f6aa22c63c137b30b5ea30919161fede79d50617bb3bd27c59a889618f2ba2413460102b2e0d4bd630ee4d85a9ed950d658ce9487d3a2fd5d17e27
7
- data.tar.gz: 655c4fdb2d9bebe8eb04b3304d0d95c62b5993d9285f0ff5c6c9917d057d4faf01f38ed070ba8dbd10aae06a80e3377460cfd35366f7089f57631ad25882d345
6
+ metadata.gz: 3ef8d8434dd87c38099c2a0bd10993e28a428f7620ff2d7840242e1165760c2a472f4f2b64b123becb16956d60285125032f48ee64304526facdb6843e3f7f3b
7
+ data.tar.gz: c72751c72136bde7c27a3e04fd7e7ae3836d1354b082b1b7903b89796b7d8ec4fdd85423fe98ef459c271fd669f44396b550d60e47344c05226c00c88cc16be3
data/README.md CHANGED
@@ -1,15 +1,13 @@
1
1
  # CherrypieRailsSdk
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cherrypie_rails_sdk`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Cherrypie Rails SDK.
6
4
 
7
5
  ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
10
8
 
11
9
  ```ruby
12
- gem 'cherrypie_rails_sdk'
10
+ gem 'cherrypie-rails-sdk', '~> 0.2.4'
13
11
  ```
14
12
 
15
13
  And then execute:
@@ -18,7 +16,7 @@ And then execute:
18
16
 
19
17
  Or install it yourself as:
20
18
 
21
- $ gem install cherrypie_rails_sdk
19
+ $ gem install cherrypie-rails-sdk
22
20
 
23
21
  ## Usage
24
22
 
@@ -76,8 +76,9 @@ module CherrypieRailsSdk
76
76
  }
77
77
  )
78
78
  request.body = payload
79
-
80
- response = http.request(request)
79
+ # Only log non-300 statuses.
80
+ if !(response.status >= 300 && response.status <= 399)
81
+ response = http.request(request)
81
82
 
82
83
  [@status, @headers, @response]
83
84
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CherrypieRailsSdk
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cherrypie-rails-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Macro Computer Club
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-12 00:00:00.000000000 Z
11
+ date: 2021-08-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: CherryPie Rails SDK
14
14
  email: