operto 0.4.0 → 0.4.2

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: 560a7613ec23670aa8c3e8f14eae1047aa3aa56b11e918b436aea5a0650fea19
4
- data.tar.gz: ade003d02974835e84663c7d9bdb745bb420d6d076daed0452cab20f8a55f35d
3
+ metadata.gz: 20ef2492fcbf7d5ddb9d5db1687cf2e72f4040f5f7c19edf2f37867fb1e2a133
4
+ data.tar.gz: 60233c43ef47983998b9d21f497e6125d5785854ee08ded4500ec351afa9aae3
5
5
  SHA512:
6
- metadata.gz: 898ef137d8c04c1aa72ee37783c1b731cd4789bbe297355c5605fad46551f1bdd9f5af45140778e3c02d561801590e23263d7ad90f6ae2769c18b8039059d06d
7
- data.tar.gz: 98691df6518db77646c2e26d9310746bf0c71c686714b615cc6d224f780ba8fa50ea61491d97daae8dbe463d6e4f6744110cc3e81046e43abb4681baa82c8a94
6
+ metadata.gz: e18466d232753eded5b693f4e6a9b702b0d310a30996a449759bb76c5ebbbb9e7c3fce574d48f6781eb98174af0dfb81cb8570956160197817d604f49d696634
7
+ data.tar.gz: 64761ffc3b404961f9851017e1e712431419dd290953055222e4d96213958605c08c3c7802a036267bea9e886004d45cc39f3168d435759aaacb05ac91bfd4b3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.2 - 2026-10-20
4
+
5
+ - The default `base_url` is now `https://apiv1.teams.operto.com/`, the new Operto Teams Partner API host. Paths there have no `/api/v1` prefix, so a host that sets its own `base_url` must drop it too.
6
+
7
+ ## 0.4.1 - 2026-10-14
8
+
9
+ - `Tasks::Index`, `Tasks::Show`, `Tasks::Create` and `Tasks::Update` read an out-of-range start or due time (such as `100:100`) as the date with no time instead of failing with `ArgumentError`.
10
+
3
11
  ## 0.4.0 - 2026-10-12
4
12
 
5
13
  - When Operto rejects the access token (a `401` or an `auth_token_expired` response), the client clears the token store, renews the token and replays the request once.
data/lib/operto/config.rb CHANGED
@@ -6,7 +6,7 @@ module Operto
6
6
  attr_accessor :client_id, :secret, :token_store, :base_url
7
7
 
8
8
  def initialize
9
- @base_url = 'https://teams-api.operto.com/api/v1/'.freeze
9
+ @base_url = 'https://apiv1.teams.operto.com/'.freeze
10
10
  @token_store = MemoryTokenStore.new
11
11
  end
12
12
  end
@@ -73,8 +73,11 @@ module Operto
73
73
  def task_time(date, time)
74
74
  return if date.blank?
75
75
 
76
+ day = Time.zone.parse(date.to_s)
76
77
  hour, minute = time.to_s.split(':')
77
- Time.zone.parse(date.to_s).change(hour: hour.to_i, min: minute.to_i)
78
+ day.change(hour: hour.to_i, min: minute.to_i)
79
+ rescue ::ArgumentError
80
+ day
78
81
  end
79
82
 
80
83
  def extract_staff(staff)
@@ -1,3 +1,3 @@
1
1
  module Operto
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: operto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guestit