telepost 0.2.3 → 0.3.0

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: d140a8396ca9adb74e6345515b07b87e4316a39b99c7853bd8735e6c41afd210
4
- data.tar.gz: 1116815ec161e35ef2a6682d6443e76aebc22b60f33a5e9ec7903413eebfd7fa
3
+ metadata.gz: 7b59c23801fdb053c13e6d11b1f6907c94506c8a5645fd1b2c831bbf225e1a48
4
+ data.tar.gz: 89551089d80554c71b35eb5800036fe22f82ac4c464e9372343475ecd2d57e93
5
5
  SHA512:
6
- metadata.gz: 4e55c93d51183f60ce464502adf3d6d0ea7378d04ed100d7ea73018c4603f16cd9ebec29408bb1ca651aa970d2a558507a4221571a72ab457f6c135301278833
7
- data.tar.gz: 78f2bd2d641d5e6bf9148968e3e009df4add74105881a1f1d01debf0304a3f62da91e1d0fa8542aa0027559a60c94a99f88dfe7059f31f8834510d81112fdcc6
6
+ metadata.gz: f988bad8491d6d40b32d84925c5ff228d21d08493f81581aa8058c9c4dbe75d36fce9b429add3eeb65b324e55381c26fba6927e81d41a3a2f60a2cdb61862a7e
7
+ data.tar.gz: 1e8715194941f919fdde6ff85934e916013aef8ad468e272fda41fad02eb1e665813df833e1ee8515c094faaa57d831136f06160af2017bd8097b2a67d1cfe57
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.5.1
3
+ - 2.6.0
4
4
  branches:
5
5
  only:
6
6
  - master
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2018 Yegor Bugayenko
3
+ # Copyright (c) 2018-2019 Yegor Bugayenko
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the 'Software'), to deal
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  source 'https://rubygems.org'
24
- ruby '2.6.0'
24
+ ruby '~>2.3'
25
25
  gemspec
data/README.md CHANGED
@@ -62,7 +62,7 @@ If it's clean and you don't see any error messages, submit your pull request.
62
62
 
63
63
  (The MIT License)
64
64
 
65
- Copyright (c) 2018 Yegor Bugayenko
65
+ Copyright (c) 2018-2019 Yegor Bugayenko
66
66
 
67
67
  Permission is hereby granted, free of charge, to any person obtaining a copy
68
68
  of this software and associated documentation files (the 'Software'), to deal
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright (c) 2018 Yegor Bugayenko
3
+ # Copyright (c) 2018-2019 Yegor Bugayenko
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the 'Software'), to deal
@@ -2,7 +2,7 @@
2
2
 
3
3
  # (The MIT License)
4
4
  #
5
- # Copyright (c) 2018 Yegor Bugayenko
5
+ # Copyright (c) 2018-2019 Yegor Bugayenko
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the 'Software'), to deal
@@ -37,7 +37,7 @@ require 'telebot'
37
37
  # {README}[https://github.com/yegor256/telepost/blob/master/README.md] file.
38
38
  #
39
39
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
40
- # Copyright:: Copyright (c) 2018 Yegor Bugayenko
40
+ # Copyright:: Copyright (c) 2018-2019 Yegor Bugayenko
41
41
  # License:: MIT
42
42
  class Telepost
43
43
  # Fake one
@@ -63,6 +63,9 @@ class Telepost
63
63
  # When can't post a message
64
64
  class CantPost < StandardError; end
65
65
 
66
+ # To make it possible to get the client.
67
+ attr_reader :client
68
+
66
69
  # Makes a new object. To obtain a token you should talk
67
70
  # to the @BotFather in Telegram.
68
71
  def initialize(token, chats: [])
@@ -2,7 +2,7 @@
2
2
 
3
3
  # (The MIT License)
4
4
  #
5
- # Copyright (c) 2018 Yegor Bugayenko
5
+ # Copyright (c) 2018-2019 Yegor Bugayenko
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the 'Software'), to deal
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.rubygems_version = '2.5.1'
32
32
  s.required_ruby_version = '>=2.5'
33
33
  s.name = 'telepost'
34
- s.version = '0.2.3'
34
+ s.version = '0.3.0'
35
35
  s.license = 'MIT'
36
36
  s.summary = 'Simple Telegram posting Ruby gem'
37
37
  s.description = 'Simple Telegram posting Ruby gem'
@@ -2,7 +2,7 @@
2
2
 
3
3
  # (The MIT License)
4
4
  #
5
- # Copyright (c) 2018 Yegor Bugayenko
5
+ # Copyright (c) 2018-2019 Yegor Bugayenko
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the 'Software'), to deal
@@ -27,7 +27,7 @@ require_relative '../lib/telepost'
27
27
 
28
28
  # Telepost test.
29
29
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
- # Copyright:: Copyright (c) 2018 Yegor Bugayenko
30
+ # Copyright:: Copyright (c) 2018-2019 Yegor Bugayenko
31
31
  # License:: MIT
32
32
  class TelepostTest < Minitest::Test
33
33
  def test_fake_posting
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telepost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-07 00:00:00.000000000 Z
11
+ date: 2019-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: telebot