tdlib-ruby 3.0.0 → 3.0.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
  SHA256:
3
- metadata.gz: 06b622d125c84301dcd3113ab5e028fb076922307dea8362688dff32941355fd
4
- data.tar.gz: 828a68e3d8322d8cd642e4b978069d07caa5fc82658f08752ee906468a508292
3
+ metadata.gz: 851d0531bf3de68a43c0f72acf22aa549142fd1b866f915df4af2bf919408211
4
+ data.tar.gz: '0320249654babf8f873936c5e74e09a03b24d1689a6019f9d7edccfc72c5d96c'
5
5
  SHA512:
6
- metadata.gz: 67cbfcacfe6e972565006967a0ed354d93107ceaf0d521c4e08f919beedd7bfc797a862da9ce01d62d76302693f7220952474e99dc2edb7c5ed14e2b729c8575
7
- data.tar.gz: 97afca505d4d80f87a43412570f3e982c65826db05d4ec0850d4a6d9300ffcf305e79468cf655082c1afadfa6c6d3f864b49c56cabc6d559b8f18d09598b38be
6
+ metadata.gz: 3a8ba653e0261bde8fd13e237846f052520d7d9cca6fd808cbbf31937a706978b7b04273931192b5494e6e004c1f06c823ed65615f3a52d5cbbd8da7c5c5bbe2
7
+ data.tar.gz: 93c09fc96b0881d372b46f4f2970b803f99f2bc569657946a431687b46ae6d8b0f47aa6e7437c580ede440248b3cc3802986dc9676084439616348107a57cdcc
data/ChangeLog.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 3.0.1 / 2020-06-29
2
+
3
+ * Fix client dispose
4
+
5
+ ### 3.0.0 / 2020-06-28
6
+
7
+ * Extract schema to separate gem
8
+
1
9
  ### 2.1.0 / 2019-10-18
2
10
 
3
11
  * Support tdlib 1.5
data/lib/tdlib/client.rb CHANGED
@@ -167,9 +167,10 @@ class TD::Client
167
167
  private
168
168
 
169
169
  def handle_update(update)
170
- return unless update.is_a?(TD::Types::AuthorizationState::Closed)
170
+ return unless update.is_a?(TD::Types::Update::AuthorizationState) && update.authorization_state.is_a?(TD::Types::AuthorizationState::Closed)
171
171
  @alive = false
172
172
  @ready = false
173
+ sleep 0.001
173
174
  TD::Api.client_destroy(@td_client)
174
175
  throw(:client_closed)
175
176
  end
data/lib/tdlib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module TD
2
2
  # tdlib-ruby version
3
- VERSION = "3.0.0"
3
+ VERSION = "3.0.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tdlib-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Southbridge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-28 00:00:00.000000000 Z
11
+ date: 2021-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable