twitty 0.1.4 → 0.1.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/twitty/constants.rb +6 -0
- data/lib/twitty/payload.rb +1 -1
- data/lib/twitty/version.rb +1 -1
- data/twitty.gemspec +2 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7e3648f1cf9d65fc53f1fc3d847564581b14828bcec85d3edb2528ff4010548
|
4
|
+
data.tar.gz: 501005f9d3e79415ccd84ee1d6ea3ea5a2296c2a692f5d3f948f0e5698b8e8c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3726cf4357c8001d01267868d8a87c09b9249eca5006826e5b954bce48dbe92527bf2a3334315ac4a847e6445618835bd37ca2d815af54af9814f4b1aed6430
|
7
|
+
data.tar.gz: ec609deb4cbfa77ec97875f856f37565949ecd23d25725ffeefcee0ce030b4d168d42795ea58460592eed6b792ee583eab1f82c3401fe548a1cff93434a2a676
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -40,7 +40,7 @@ Use twitty to register your webhook on twitter as below
|
|
40
40
|
$twitter.fetch_webhooks
|
41
41
|
|
42
42
|
#register a new webhook
|
43
|
-
$twitter.
|
43
|
+
$twitter.register_webhook(url: "https://xyc.com/webhooks/twitter")
|
44
44
|
```
|
45
45
|
|
46
46
|
You should handle the crc checks from twitter by processing the get requests to your webhooks url with a controller method similar to
|
data/lib/twitty/constants.rb
CHANGED
@@ -90,6 +90,12 @@ module Twitty::Constants
|
|
90
90
|
method: :post,
|
91
91
|
endpoint: '/1.1/favorites/destroy.json',
|
92
92
|
required_params: [:tweet_id]
|
93
|
+
},
|
94
|
+
|
95
|
+
user_show: {
|
96
|
+
method: :get,
|
97
|
+
endpoint: '/1.1/users/show.json?screen_name=%<screen_name>s',
|
98
|
+
required_params: [:screen_name]
|
93
99
|
}
|
94
100
|
}.freeze
|
95
101
|
end
|
data/lib/twitty/payload.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Twitty::Payload
|
4
4
|
EMPTY_PAYLOAD_ACTIONS = %w[fetch_webhooks register_webhook unregister_webhook fetch_subscriptions
|
5
|
-
create_subscription remove_subscription destroy_tweet retweet unretweet].freeze
|
5
|
+
create_subscription remove_subscription destroy_tweet retweet unretweet user_show ].freeze
|
6
6
|
|
7
7
|
EMPTY_PAYLOAD_ACTIONS.each do |action|
|
8
8
|
define_method "#{action}_payload" do
|
data/lib/twitty/version.rb
CHANGED
data/twitty.gemspec
CHANGED
@@ -16,7 +16,8 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.metadata = {
|
17
17
|
'bug_tracker_uri' => 'https://github.com/chatwoot/twitty/issues',
|
18
18
|
'homepage_uri' => 'https://github.com/chatwoot/twitty',
|
19
|
-
'source_code_uri' => 'https://github.com/chatwoot/twitty'
|
19
|
+
'source_code_uri' => 'https://github.com/chatwoot/twitty',
|
20
|
+
'rubygems_mfa_required' => 'false'
|
20
21
|
}
|
21
22
|
|
22
23
|
# Specify which files should be added to the gem when it is released.
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Subin T P
|
8
8
|
- Pranav Raj S
|
9
9
|
- Sojan Jose
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -112,7 +112,8 @@ metadata:
|
|
112
112
|
bug_tracker_uri: https://github.com/chatwoot/twitty/issues
|
113
113
|
homepage_uri: https://github.com/chatwoot/twitty
|
114
114
|
source_code_uri: https://github.com/chatwoot/twitty
|
115
|
-
|
115
|
+
rubygems_mfa_required: 'false'
|
116
|
+
post_install_message:
|
116
117
|
rdoc_options: []
|
117
118
|
require_paths:
|
118
119
|
- lib
|
@@ -127,8 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
128
|
- !ruby/object:Gem::Version
|
128
129
|
version: '0'
|
129
130
|
requirements: []
|
130
|
-
rubygems_version: 3.2
|
131
|
-
signing_key:
|
131
|
+
rubygems_version: 3.1.2
|
132
|
+
signing_key:
|
132
133
|
specification_version: 4
|
133
134
|
summary: Twitter API wrapper
|
134
135
|
test_files: []
|