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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acbbfe3e1cb79eb8e4fb9e8e05fe57856208a73a
4
- data.tar.gz: 405427dca071cc839015b8e86053098f90b72270
3
+ metadata.gz: 45b6c030156c91aa09da004bb1d2d65bc93b3af2
4
+ data.tar.gz: fd9468f7bfb4b95f96c9faa89afde28e6297fbaa
5
5
  SHA512:
6
- metadata.gz: 152f7c576b82f2626e62d0faceb7d0355dec33a5f1d851554573568fa2d0250d9570a7ab43c3ef3c65db893b86705a0ad366f9261d3060ed84577f55beb92ec4
7
- data.tar.gz: ef51b50a20452fa7dcf61f56d8ad79cb32fc86b306f9f5f31cd5dec795a89568b04c5ed1a7d2af33a50a83544daddc8d9820ddd522dbbe6e434bcbce1eef3346
6
+ metadata.gz: 130667ec76d856dbd56b15889ad3328b26c5377699c0f62eab471977231e9d560b3f1aeeb6174ec9204b5381ac2c8a2557a40a46cd1183826588c38bf40414bc
7
+ data.tar.gz: d8ccfc8702a0d383be7dde4a5dbc53019d9b2af947b2b2edc4cc863e8ef58f8d13d6ffff8088c86b3d0ccfb1704ef20df9b8dd40199e12e2eeeea89436e18278
@@ -1,17 +1,23 @@
1
- Retjilp: Native Auto-retweet bot
2
- --------------------------------
3
- <http://el-tramo.be/blog/retjilp>
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
- <http://twitter.com/apps> to get a consumer key and secret, and fill these
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
 
@@ -2,7 +2,7 @@ require 'retjilp/log'
2
2
 
3
3
  module Retjilp
4
4
  class Twitter
5
- TWITTER_URI = "http://api.twitter.com"
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
@@ -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.5'
8
+ s.version = '0.6'
9
9
  s.author = 'Remko Tronçon'
10
10
  s.email = 'remko@el-tramo.be'
11
- s.homepage = 'http://el-tramo.be/blog/retjilp'
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.markdown', '--no-private', '--protected']
19
- s.extra_rdoc_files = ['README.markdown', 'COPYING']
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.5'
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: 2013-03-04 00:00:00.000000000 Z
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.markdown
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.markdown
104
+ - README.md
105
105
  - retjilp.gemspec
106
106
  - test/spec/retweeter_spec.rb
107
- homepage: http://el-tramo.be/blog/retjilp
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.markdown
114
+ - README.md
115
115
  - --no-private
116
116
  - --protected
117
117
  require_paths: