retjilp 0.5 → 0.6
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/{README.markdown → README.md} +10 -4
- data/lib/retjilp/twitter.rb +2 -2
- data/retjilp.gemspec +4 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45b6c030156c91aa09da004bb1d2d65bc93b3af2
|
4
|
+
data.tar.gz: fd9468f7bfb4b95f96c9faa89afde28e6297fbaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 130667ec76d856dbd56b15889ad3328b26c5377699c0f62eab471977231e9d560b3f1aeeb6174ec9204b5381ac2c8a2557a40a46cd1183826588c38bf40414bc
|
7
|
+
data.tar.gz: d8ccfc8702a0d383be7dde4a5dbc53019d9b2af947b2b2edc4cc863e8ef58f8d13d6ffff8088c86b3d0ccfb1704ef20df9b8dd40199e12e2eeeea89436e18278
|
@@ -1,17 +1,23 @@
|
|
1
|
-
Retjilp: Native Auto-retweet bot
|
2
|
-
|
3
|
-
|
1
|
+
# [Retjilp: Native Auto-retweet bot](https://el-tramo.be/retjilp)
|
2
|
+
|
3
|
+
## About
|
4
4
|
|
5
5
|
Retjilp logs into your account, scans all the tweets from your following
|
6
6
|
list or another defined list for a set of matching words, and retweets
|
7
7
|
the ones that match (using the native retweet API).
|
8
8
|
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
9
12
|
To install the script, run
|
10
13
|
|
11
14
|
gem install retjilp
|
12
15
|
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
|
13
19
|
To use this script, you will need to have registered an application with
|
14
|
-
<
|
20
|
+
<https://dev.twitter.com/apps> to get a consumer key and secret, and fill these
|
15
21
|
values in a file `config` in the `.retjilp` dir in your homedir (i.e.
|
16
22
|
`~/retjilp`). The `config` file should have the following content:
|
17
23
|
|
data/lib/retjilp/twitter.rb
CHANGED
@@ -2,7 +2,7 @@ require 'retjilp/log'
|
|
2
2
|
|
3
3
|
module Retjilp
|
4
4
|
class Twitter
|
5
|
-
TWITTER_URI = "
|
5
|
+
TWITTER_URI = "https://api.twitter.com"
|
6
6
|
API_VERSION = "1.1"
|
7
7
|
ACCESS_TOKEN_FILENAME = File.join(File.expand_path("~/.retjilp"), "access_token")
|
8
8
|
|
@@ -58,7 +58,7 @@ module Retjilp
|
|
58
58
|
raise "Invalid PIN verification!"
|
59
59
|
end
|
60
60
|
@user_info = verify_token(@access_token) or raise "Access token not authorized!"
|
61
|
-
cached_access_token = @access_token
|
61
|
+
self.cached_access_token = @access_token
|
62
62
|
end
|
63
63
|
Retjilp::log.info("Logged in as #{@user_info["screen_name"]}")
|
64
64
|
end
|
data/retjilp.gemspec
CHANGED
@@ -5,18 +5,18 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.summary = 'Automatically retweet tweets'
|
6
6
|
s.description = 'Retjilp logs into your account, scans all the tweets from your following list or another defined list for a set of matching words, and retweets the ones that match (using the native retweet API).'
|
7
7
|
s.requirements = ['']
|
8
|
-
s.version = '0.
|
8
|
+
s.version = '0.6'
|
9
9
|
s.author = 'Remko Tronçon'
|
10
10
|
s.email = 'remko@el-tramo.be'
|
11
|
-
s.homepage = '
|
11
|
+
s.homepage = 'https://el-tramo.be/retjilp'
|
12
12
|
s.platform = Gem::Platform::RUBY
|
13
13
|
s.required_ruby_version = '>=1.8'
|
14
14
|
s.files = Dir['{bin,lib,doc}/**/*'] + Dir['[A-Z]*'] + ['retjilp.gemspec']
|
15
15
|
s.executables = 'retjilp'
|
16
16
|
s.require_paths = ['lib']
|
17
17
|
s.has_rdoc = true
|
18
|
-
s.rdoc_options = ['--main', 'README.
|
19
|
-
s.extra_rdoc_files = ['README.
|
18
|
+
s.rdoc_options = ['--main', 'README.md', '--no-private', '--protected']
|
19
|
+
s.extra_rdoc_files = ['README.md', 'COPYING']
|
20
20
|
|
21
21
|
s.license = 'BSD'
|
22
22
|
s.test_files = Dir.glob("test/**/*.rb")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: retjilp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Remko Tronçon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth
|
@@ -88,7 +88,7 @@ executables:
|
|
88
88
|
- retjilp
|
89
89
|
extensions: []
|
90
90
|
extra_rdoc_files:
|
91
|
-
- README.
|
91
|
+
- README.md
|
92
92
|
- COPYING
|
93
93
|
files:
|
94
94
|
- bin/retjilp
|
@@ -101,17 +101,17 @@ files:
|
|
101
101
|
- Gemfile
|
102
102
|
- Gemfile.lock
|
103
103
|
- Rakefile
|
104
|
-
- README.
|
104
|
+
- README.md
|
105
105
|
- retjilp.gemspec
|
106
106
|
- test/spec/retweeter_spec.rb
|
107
|
-
homepage:
|
107
|
+
homepage: https://el-tramo.be/retjilp
|
108
108
|
licenses:
|
109
109
|
- BSD
|
110
110
|
metadata: {}
|
111
111
|
post_install_message:
|
112
112
|
rdoc_options:
|
113
113
|
- --main
|
114
|
-
- README.
|
114
|
+
- README.md
|
115
115
|
- --no-private
|
116
116
|
- --protected
|
117
117
|
require_paths:
|