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 +4 -4
- data/.travis.yml +1 -1
- data/Gemfile +2 -2
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/lib/telepost.rb +5 -2
- data/telepost.gemspec +2 -2
- data/test/test_telepost.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b59c23801fdb053c13e6d11b1f6907c94506c8a5645fd1b2c831bbf225e1a48
|
4
|
+
data.tar.gz: 89551089d80554c71b35eb5800036fe22f82ac4c464e9372343475ecd2d57e93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f988bad8491d6d40b32d84925c5ff228d21d08493f81581aa8058c9c4dbe75d36fce9b429add3eeb65b324e55381c26fba6927e81d41a3a2f60a2cdb61862a7e
|
7
|
+
data.tar.gz: 1e8715194941f919fdde6ff85934e916013aef8ad468e272fda41fad02eb1e665813df833e1ee8515c094faaa57d831136f06160af2017bd8097b2a67d1cfe57
|
data/.travis.yml
CHANGED
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.
|
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
|
data/lib/telepost.rb
CHANGED
@@ -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: [])
|
data/telepost.gemspec
CHANGED
@@ -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.
|
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'
|
data/test/test_telepost.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2019-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: telebot
|