botfarmd 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 064dad64fbff85fa56bfbc1dd11b28d5fa15aed5
4
+ data.tar.gz: 33108fb6ba4a5880a38da0ab388f62618f1c04bf
5
+ SHA512:
6
+ metadata.gz: 6e71dfa244a542114757258621519f2ef8135ff676263a807ec06e7af69aeec75c1ae00eb84bcf97ffc803c49ff98a877e5d10464cfeea1a007e86667e28a507
7
+ data.tar.gz: 08d8c25f1f52dbdc511ed9cf828d4f1c2ff96e7f97e8aa57c2756790acad77c685e545f3499cd7ec0b5d1ee7b880aff879d0e55809234d16322ee31ca6e31d42
@@ -0,0 +1,19 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ InstalledFiles
7
+ _yardoc
8
+ coverage
9
+ doc/
10
+ lib/bundler/man
11
+ pkg
12
+ rdoc
13
+ spec/reports
14
+ test/tmp
15
+ test/version_tmp
16
+ tmp
17
+ *.swp
18
+ gems.tags
19
+ tags
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
@@ -0,0 +1,2 @@
1
+ RegexpLiteral:
2
+ MaxSlashes: 0
@@ -0,0 +1 @@
1
+ 2.1.0
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.0
@@ -0,0 +1,14 @@
1
+ ## Contributing Guidelines
2
+
3
+ ### Code
4
+
5
+ 1. Fork it ( http://github.com/<my-github-username>/botfarmd/fork )
6
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
7
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
8
+ 4. Push to the branch (`git push origin my-new-feature`)
9
+ 5. Create new Pull Request
10
+
11
+ ### Ideas
12
+
13
+ * Open an Issue
14
+ * Contact me via IRC: Irkka@IRCNet, or e-mail...
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in botfarmd.gemspec
4
+ gemspec
@@ -0,0 +1,119 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ botfarmd (0.0.1)
5
+ cinch
6
+ daemons
7
+ slop
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ ast (2.0.0)
13
+ celluloid (0.15.2)
14
+ timers (~> 1.1.0)
15
+ celluloid-io (0.15.0)
16
+ celluloid (>= 0.15.0)
17
+ nio4r (>= 0.5.0)
18
+ cinch (2.1.0)
19
+ coderay (1.1.0)
20
+ coveralls (0.7.0)
21
+ multi_json (~> 1.3)
22
+ rest-client
23
+ simplecov (>= 0.7)
24
+ term-ansicolor
25
+ thor
26
+ daemons (1.1.9)
27
+ diff-lcs (1.2.5)
28
+ docile (1.1.3)
29
+ dotenv (0.7.0)
30
+ ffi (1.9.3)
31
+ foreman (0.66.0)
32
+ dotenv (~> 0.7.0)
33
+ thor (~> 0.19.1)
34
+ formatador (0.2.4)
35
+ guard (2.6.0)
36
+ formatador (>= 0.2.4)
37
+ listen (~> 2.7)
38
+ lumberjack (~> 1.0)
39
+ pry (>= 0.9.12)
40
+ thor (>= 0.18.1)
41
+ guard-bundler (2.0.0)
42
+ bundler (~> 1.0)
43
+ guard (~> 2.2)
44
+ guard-ctags-bundler (1.0.2)
45
+ guard (~> 2.0)
46
+ guard-rspec (4.2.8)
47
+ guard (~> 2.1)
48
+ rspec (>= 2.14, < 4.0)
49
+ guard-rubocop (1.1.0)
50
+ guard (~> 2.0)
51
+ rubocop (~> 0.20)
52
+ json (1.8.1)
53
+ listen (2.7.4)
54
+ celluloid (>= 0.15.2)
55
+ celluloid-io (>= 0.15.0)
56
+ rb-fsevent (>= 0.9.3)
57
+ rb-inotify (>= 0.9)
58
+ lumberjack (1.0.5)
59
+ method_source (0.8.2)
60
+ mime-types (2.2)
61
+ multi_json (1.10.0)
62
+ nio4r (1.0.0)
63
+ parser (2.1.9)
64
+ ast (>= 1.1, < 3.0)
65
+ slop (~> 3.4, >= 3.4.5)
66
+ powerpack (0.0.9)
67
+ pry (0.9.12.6)
68
+ coderay (~> 1.0)
69
+ method_source (~> 0.8)
70
+ slop (~> 3.4)
71
+ rainbow (2.0.0)
72
+ rake (10.3.1)
73
+ rb-fsevent (0.9.4)
74
+ rb-inotify (0.9.4)
75
+ ffi (>= 0.5.0)
76
+ rest-client (1.6.7)
77
+ mime-types (>= 1.16)
78
+ rspec (2.14.1)
79
+ rspec-core (~> 2.14.0)
80
+ rspec-expectations (~> 2.14.0)
81
+ rspec-mocks (~> 2.14.0)
82
+ rspec-core (2.14.8)
83
+ rspec-expectations (2.14.5)
84
+ diff-lcs (>= 1.1.3, < 2.0)
85
+ rspec-mocks (2.14.6)
86
+ rubocop (0.21.0)
87
+ json (>= 1.7.7, < 2)
88
+ parser (~> 2.1.9)
89
+ powerpack (~> 0.0.6)
90
+ rainbow (>= 1.99.1, < 3.0)
91
+ ruby-progressbar (~> 1.4)
92
+ ruby-progressbar (1.4.2)
93
+ simplecov (0.8.2)
94
+ docile (~> 1.1.0)
95
+ multi_json
96
+ simplecov-html (~> 0.8.0)
97
+ simplecov-html (0.8.0)
98
+ slop (3.5.0)
99
+ term-ansicolor (1.3.0)
100
+ tins (~> 1.0)
101
+ thor (0.19.1)
102
+ timers (1.1.0)
103
+ tins (1.1.0)
104
+
105
+ PLATFORMS
106
+ ruby
107
+
108
+ DEPENDENCIES
109
+ botfarmd!
110
+ bundler
111
+ coveralls
112
+ foreman
113
+ guard-bundler
114
+ guard-ctags-bundler
115
+ guard-rspec
116
+ guard-rubocop
117
+ pry
118
+ rake
119
+ rspec
@@ -0,0 +1,26 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard :rspec do
5
+ watch(%r{^spec/.+_spec\.rb$})
6
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7
+ watch('spec/spec_helper.rb') { "spec" }
8
+ end
9
+
10
+ guard :rubocop do
11
+ watch(%r{.+\.rb$})
12
+ watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
13
+ watch(/^.+\.gemspec/)
14
+ watch(/^Rakefile$/)
15
+ end
16
+
17
+ guard 'ctags-bundler', :src_path => ["lib", "spec"] do
18
+ watch(/^(lib|spec)\/.*\.rb$/)
19
+ watch('Gemfile.lock')
20
+ end
21
+
22
+ guard :bundler do
23
+ watch('Gemfile')
24
+ # Uncomment next line if your Gemfile contains the `gemspec' command.
25
+ watch(/^.+\.gemspec/)
26
+ end
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Ilkka Hakkarainen
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1 @@
1
+ guard: guard --no-interactions
@@ -0,0 +1,31 @@
1
+ ### master
2
+ [![Build Status](https://travis-ci.org/Irkka/botfarmd.svg?branch=master)](https://travis-ci.org/Irkka/botfarmd)
3
+
4
+ ### development
5
+ [![Build Status](https://travis-ci.org/Irkka/botfarmd.svg?branch=development)](https://travis-ci.org/Irkka/botfarmd) [![Dependency Status](https://gemnasium.com/Irkka/botfarmd.svg)](https://gemnasium.com/Irkka/botfarmd) [![Code Climate](https://codeclimate.com/github/Irkka/botfarmd.png)](https://codeclimate.com/github/Irkka/botfarmd) [![Coverage Status](https://coveralls.io/repos/Irkka/botfarmd/badge.png)](https://coveralls.io/r/Irkka/botfarmd)
6
+
7
+ # Botfarmd
8
+
9
+ Botfarm is an IRC Bot Control Daemon that should make it simple to manage an arbitrary number of parallel IRC bots with instance specific plugin/option setup. It will support Cinch bots natively, but what the hey, if someone decides to enable running any arbitrary bot/script via botfarmd and sends a pull-request, I will not complain.
10
+
11
+ ## Installation
12
+
13
+ At the moment the gem isn't hosted anywhere, so you have to build and install it yourself.
14
+
15
+ ```
16
+ rake install
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ At the moment there are no 'binaries' provided, but predictability is a great design factor with this project. If you're used to 'git' and its 'git \<sub-command\> \<switches\>' paradigm, you should feel at home with botfarmd control commands.
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it ( http://github.com/<my-github-username>/botfarmd/fork )
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
30
+
31
+ **I shall create a CONTRIBUTING.md in the future for more in-depth Contributing guidelines. Cheerio!**
@@ -0,0 +1,5 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
@@ -0,0 +1,44 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'botfarmd/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.required_ruby_version = '2.1.0'
8
+ spec.name = 'botfarmd'
9
+ spec.version = Botfarmd::VERSION
10
+ spec.authors = ['Ilkka Hakkarainen']
11
+ spec.email = ['ilkka.hakkarainen@cs.helsinki.fi']
12
+ spec.summary = %q(IRC Bot control daemon)
13
+ spec.description = %q(Botfarmd reads a configuration file that specifies Cinch bots with specific plugin suites. It then runs an arbitrary number of these bots in parallel as separate threads, so that users may have tailor-made settings on each separate channel they wish to run their Cinch bots on.)
14
+ spec.homepage = ''
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0")
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(spec)/})
20
+ spec.require_paths = ['lib']
21
+
22
+ dependencies = %w(cinch daemons slop)
23
+
24
+ dependencies.each do |d|
25
+ spec.add_dependency d
26
+ end
27
+
28
+ development_dependencies = %w(
29
+ bundler
30
+ rake
31
+ rspec
32
+ pry
33
+ guard-rubocop
34
+ guard-rspec
35
+ guard-ctags-bundler
36
+ guard-bundler
37
+ foreman
38
+ coveralls
39
+ )
40
+
41
+ development_dependencies.each do |d|
42
+ spec.add_development_dependency d
43
+ end
44
+ end
@@ -0,0 +1,5 @@
1
+ require 'botfarmd/version'
2
+
3
+ module Botfarmd
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,3 @@
1
+ module Botfarmd
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,20 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
4
+ # This file was generated by the `rspec --init` command. Conventionally, all
5
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
6
+ # Require this file using `require "spec_helper"` to ensure that it is only
7
+ # loaded once.
8
+ #
9
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
10
+ RSpec.configure do |config|
11
+ config.treat_symbols_as_metadata_keys_with_true_values = true
12
+ config.run_all_when_everything_filtered = true
13
+ config.filter_run :focus
14
+
15
+ # Run specs in random order to surface order dependencies. If you find an
16
+ # order dependency and want to debug it, you can fix the order by providing
17
+ # the seed, which is printed after each run.
18
+ # --seed 1234
19
+ config.order = 'random'
20
+ end
metadata ADDED
@@ -0,0 +1,247 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: botfarmd
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ilkka Hakkarainen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: cinch
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: daemons
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: slop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: guard-rubocop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: guard-rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: guard-ctags-bundler
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: guard-bundler
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: foreman
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: coveralls
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ description: Botfarmd reads a configuration file that specifies Cinch bots with specific
196
+ plugin suites. It then runs an arbitrary number of these bots in parallel as separate
197
+ threads, so that users may have tailor-made settings on each separate channel they
198
+ wish to run their Cinch bots on.
199
+ email:
200
+ - ilkka.hakkarainen@cs.helsinki.fi
201
+ executables: []
202
+ extensions: []
203
+ extra_rdoc_files: []
204
+ files:
205
+ - ".gitignore"
206
+ - ".rspec"
207
+ - ".rubocop.yml"
208
+ - ".ruby-version"
209
+ - ".travis.yml"
210
+ - CONTRIBUTING.md
211
+ - Gemfile
212
+ - Gemfile.lock
213
+ - Guardfile
214
+ - LICENSE.txt
215
+ - Procfile
216
+ - README.md
217
+ - Rakefile
218
+ - botfarmd.gemspec
219
+ - lib/botfarmd.rb
220
+ - lib/botfarmd/version.rb
221
+ - spec/spec_helper.rb
222
+ homepage: ''
223
+ licenses:
224
+ - MIT
225
+ metadata: {}
226
+ post_install_message:
227
+ rdoc_options: []
228
+ require_paths:
229
+ - lib
230
+ required_ruby_version: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - '='
233
+ - !ruby/object:Gem::Version
234
+ version: 2.1.0
235
+ required_rubygems_version: !ruby/object:Gem::Requirement
236
+ requirements:
237
+ - - ">="
238
+ - !ruby/object:Gem::Version
239
+ version: '0'
240
+ requirements: []
241
+ rubyforge_project:
242
+ rubygems_version: 2.2.0
243
+ signing_key:
244
+ specification_version: 4
245
+ summary: IRC Bot control daemon
246
+ test_files:
247
+ - spec/spec_helper.rb