rtbot 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rtbot.rb +2 -2
- data/rtbot.gemspec +61 -0
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/rtbot.rb
CHANGED
@@ -5,8 +5,8 @@ class RTBot
|
|
5
5
|
|
6
6
|
def initialize(yaml_file_path)
|
7
7
|
@config = YAML.load(File.read(yaml_file_path))
|
8
|
-
@config['last_id_path'] = "
|
9
|
-
@config['log_path'] = "
|
8
|
+
@config['last_id_path'] = File.dirname(yaml_file_path) + "/" + File.basename(yaml_file_path, File.extname(yaml_file_path)) + ".last_id" unless @config['last_id_path']
|
9
|
+
@config['log_path'] = File.dirname(yaml_file_path) + "/" + File.basename(yaml_file_path, File.extname(yaml_file_path)) + ".log" unless @config['log_path']
|
10
10
|
|
11
11
|
if File.exists?(@config['last_id_path'])
|
12
12
|
@last_read_id = File.new(@config['last_id_path'], 'r').gets
|
data/rtbot.gemspec
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{rtbot}
|
8
|
+
s.version = "0.1.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["John Daniels"]
|
12
|
+
s.date = %q{2010-07-26}
|
13
|
+
s.default_executable = %q{rtbot}
|
14
|
+
s.description = %q{Provides an rtbot script which you can configure to make a very simply Twitter retweeting bot.}
|
15
|
+
s.email = %q{john@semantici.st}
|
16
|
+
s.executables = ["rtbot"]
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE",
|
19
|
+
"README.rdoc"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
".gitignore",
|
24
|
+
"LICENSE",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"bin/rtbot",
|
29
|
+
"config.yml.example",
|
30
|
+
"lib/rtbot.rb",
|
31
|
+
"rtbot.gemspec",
|
32
|
+
"test/helper.rb",
|
33
|
+
"test/test_rtbot.rb"
|
34
|
+
]
|
35
|
+
s.homepage = %q{http://github.com/johnd/rtbot}
|
36
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
s.rubygems_version = %q{1.3.6}
|
39
|
+
s.summary = %q{A simple Twitter RTing bot.}
|
40
|
+
s.test_files = [
|
41
|
+
"test/helper.rb",
|
42
|
+
"test/test_rtbot.rb"
|
43
|
+
]
|
44
|
+
|
45
|
+
if s.respond_to? :specification_version then
|
46
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
47
|
+
s.specification_version = 3
|
48
|
+
|
49
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
50
|
+
s.add_runtime_dependency(%q<twitter>, [">= 0"])
|
51
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 2"])
|
52
|
+
else
|
53
|
+
s.add_dependency(%q<twitter>, [">= 0"])
|
54
|
+
s.add_dependency(%q<activesupport>, [">= 2"])
|
55
|
+
end
|
56
|
+
else
|
57
|
+
s.add_dependency(%q<twitter>, [">= 0"])
|
58
|
+
s.add_dependency(%q<activesupport>, [">= 2"])
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- John Daniels
|
@@ -60,6 +60,7 @@ files:
|
|
60
60
|
- bin/rtbot
|
61
61
|
- config.yml.example
|
62
62
|
- lib/rtbot.rb
|
63
|
+
- rtbot.gemspec
|
63
64
|
- test/helper.rb
|
64
65
|
- test/test_rtbot.rb
|
65
66
|
has_rdoc: true
|