incognia_api 0.5.4 → 0.5.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: af8fb7e359ca87d916e8f74cde5f55ee52de4aaa4c71a94ec5e820855928f96b
4
- data.tar.gz: 8dadbdb4f14cab40b10288e935742c165917c754fb0e43a57808a260fe0be16c
3
+ metadata.gz: 1c201a61c3bfa9be562b9cd6dcabac5024dc00ce1ea19a2ef2225461a8105609
4
+ data.tar.gz: fea3457b4ccbd0409178e97a2b07272e22dbb57ac448fa681d6c3bea59242e1e
5
5
  SHA512:
6
- metadata.gz: af029dd1770b82fa7bde6de307612fa1fc22eb6ca48154e866af2d91771929fe10d5c65e9e9f1d4cf859750c64e0ecddd312c76ce3616939db82e8a5e8fbac21
7
- data.tar.gz: f87e6c0a7a48655a58126d12f7be63deccfe996a80a47252e109f4e8b0626d5919f66ae4bb49e19b5155723dcf15bdb599b0f5acfcc724a549a84b6ca266bab5
6
+ metadata.gz: 956994d8de303073ac0ae555a5c335dadf38095632d63e2fbeae972bdd4f0b16488295d641028bfb1ab627e39955252d2b949da5bd8735f3a76d328ec1547a8d
7
+ data.tar.gz: 953be4e56175a2292ff63fea122dc668b5ad5efd62d958df5d08b2b262b33ca23fa7bcfc2c28db4eb3aaeeca174b22830b812eb4581617ea38649347603a2de8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.5.5] - 2024-04-01
4
+
5
+ - Fix datetime parcer to RFC3339 format
6
+
3
7
  ## [0.5.4] - 2024-03-19
4
8
 
5
9
  - Allow registering feedback with expires_at parameter
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incognia_api (0.5.4)
4
+ incognia_api (0.5.5)
5
5
  faraday (~> 1.10)
6
6
  faraday_middleware (~> 1.2)
7
7
 
data/README.md CHANGED
@@ -255,8 +255,11 @@ If you have found a bug or if you have a feature request, please report them at
255
255
  ### Development
256
256
 
257
257
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
258
+ To install this gem onto your local machine, run `bundle exec rake install`.
258
259
 
259
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
260
+ To release a new version, update the version number in `version.rb`, run `bundle` to update the `gemfile.lock`, add one description on `CHANGELOG.md` if necessary, and then after merging on master, run `bundle exec rake release`.
261
+
262
+ The `rake release` task will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
260
263
 
261
264
  ## License
262
265
 
@@ -57,7 +57,7 @@ module Incognia
57
57
 
58
58
  def register_feedback(event:, timestamp: nil, expires_at: nil, **ids)
59
59
  timestamp = timestamp.strftime('%s%L') if timestamp.respond_to? :strftime
60
- expires_at = expires_at.strftime('%FT%TZ') if expires_at.respond_to? :strftime
60
+ expires_at = expires_at.to_datetime.rfc3339 if expires_at.respond_to? :to_datetime
61
61
 
62
62
  params = { event: event, timestamp: timestamp&.to_i, expires_at: expires_at }.compact
63
63
  params.merge!(ids)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Incognia
4
- VERSION = "0.5.4"
4
+ VERSION = "0.5.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incognia_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Cavalcanti
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-19 00:00:00.000000000 Z
11
+ date: 2024-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday