twitty 0.1.4 → 0.1.5

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: a93f92340fb4931676b89a3d20f869aae7e87f5fb2a9831d506e6c0d41c9dc18
4
- data.tar.gz: a541340dd6566a95219f8feaacccf46604e968e41042d076f2b0e8e709e4ff5f
3
+ metadata.gz: f7e3648f1cf9d65fc53f1fc3d847564581b14828bcec85d3edb2528ff4010548
4
+ data.tar.gz: 501005f9d3e79415ccd84ee1d6ea3ea5a2296c2a692f5d3f948f0e5698b8e8c5
5
5
  SHA512:
6
- metadata.gz: c10e43f42e74d4dd9bb4a0efb988ff33f14eb5a7bd9a4da2facdf2f623b9fdbbb8eb8eca466faf50f04d0ec0ff7cf6f6e547eec653d17a6d039f3916b8f61856
7
- data.tar.gz: a347f3007ff6c516706053a0a2251183e0c66e44af2e4e5b39d55d331415d43e69608604aa095342ab9403fd70da2cbcdcfe139f688f6e4cf16c20bca817466d
6
+ metadata.gz: b3726cf4357c8001d01267868d8a87c09b9249eca5006826e5b954bce48dbe92527bf2a3334315ac4a847e6445618835bd37ca2d815af54af9814f4b1aed6430
7
+ data.tar.gz: ec609deb4cbfa77ec97875f856f37565949ecd23d25725ffeefcee0ce030b4d168d42795ea58460592eed6b792ee583eab1f82c3401fe548a1cff93434a2a676
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- twitty (0.1.3)
4
+ twitty (0.1.4)
5
5
  oauth
6
6
 
7
7
  GEM
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.register_webhooks(url: "https://xyc.com/webhooks/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
@@ -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
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Twitty
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.5'
5
5
  end
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
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: 2021-05-28 00:00:00.000000000 Z
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
- post_install_message:
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.15
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: []