ssc.bot 0.1.0
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 +7 -0
- data/CHANGELOG.md +40 -0
- data/Gemfile +25 -0
- data/LICENSE.txt +165 -0
- data/README.md +115 -0
- data/Rakefile +52 -0
- data/lib/ssc.bot.rb +44 -0
- data/lib/ssc.bot/chat_log.rb +283 -0
- data/lib/ssc.bot/chat_log/message.rb +86 -0
- data/lib/ssc.bot/chat_log/message_parsable.rb +62 -0
- data/lib/ssc.bot/chat_log/message_parser.rb +562 -0
- data/lib/ssc.bot/chat_log/messages.rb +193 -0
- data/lib/ssc.bot/chat_log_file.rb +52 -0
- data/lib/ssc.bot/error.rb +61 -0
- data/lib/ssc.bot/ssc_file.rb +132 -0
- data/lib/ssc.bot/user/jrobot_message_sender.rb +194 -0
- data/lib/ssc.bot/user/message_sender.rb +378 -0
- data/lib/ssc.bot/util.rb +90 -0
- data/lib/ssc.bot/version.rb +26 -0
- data/ssc.bot.gemspec +68 -0
- data/test/test_helper.rb +28 -0
- metadata +179 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
|
5
|
+
#--
|
6
|
+
# This file is part of SSC.Bot.
|
7
|
+
# Copyright (c) 2020 Jonathan Bradley Whited (@esotericpig)
|
8
|
+
#
|
9
|
+
# SSC.Bot is free software: you can redistribute it and/or modify
|
10
|
+
# it under the terms of the GNU Lesser General Public License as published by
|
11
|
+
# the Free Software Foundation, either version 3 of the License, or
|
12
|
+
# (at your option) any later version.
|
13
|
+
#
|
14
|
+
# SSC.Bot is distributed in the hope that it will be useful,
|
15
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
+
# GNU Lesser General Public License for more details.
|
18
|
+
#
|
19
|
+
# You should have received a copy of the GNU Lesser General Public License
|
20
|
+
# along with SSC.Bot. If not, see <https://www.gnu.org/licenses/>.
|
21
|
+
#++
|
22
|
+
|
23
|
+
|
24
|
+
module SSCBot
|
25
|
+
VERSION = '0.1.0'
|
26
|
+
end
|
data/ssc.bot.gemspec
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#--
|
5
|
+
# This file is part of SSC.Bot.
|
6
|
+
# Copyright (c) 2020 Jonathan Bradley Whited (@esotericpig)
|
7
|
+
#
|
8
|
+
# SSC.Bot is free software: you can redistribute it and/or modify
|
9
|
+
# it under the terms of the GNU Lesser General Public License as published by
|
10
|
+
# the Free Software Foundation, either version 3 of the License, or
|
11
|
+
# (at your option) any later version.
|
12
|
+
#
|
13
|
+
# SSC.Bot is distributed in the hope that it will be useful,
|
14
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16
|
+
# GNU Lesser General Public License for more details.
|
17
|
+
#
|
18
|
+
# You should have received a copy of the GNU Lesser General Public License
|
19
|
+
# along with SSC.Bot. If not, see <https://www.gnu.org/licenses/>.
|
20
|
+
#++
|
21
|
+
|
22
|
+
|
23
|
+
lib = File.expand_path(File.join('..','lib'),__FILE__)
|
24
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
25
|
+
|
26
|
+
require 'ssc.bot/version'
|
27
|
+
|
28
|
+
|
29
|
+
Gem::Specification.new() do |spec|
|
30
|
+
spec.name = 'ssc.bot'
|
31
|
+
spec.version = SSCBot::VERSION
|
32
|
+
spec.authors = ['Jonathan Bradley Whited (@esotericpig)']
|
33
|
+
spec.email = ['bradley@esotericpig.com']
|
34
|
+
spec.licenses = ['LGPL-3.0-or-later']
|
35
|
+
spec.homepage = 'https://github.com/esotericpig/ssc.bot'
|
36
|
+
spec.summary = 'Simple Subspace Continuum Bot library.'
|
37
|
+
spec.description = spec.summary
|
38
|
+
|
39
|
+
spec.metadata = {
|
40
|
+
'bug_tracker_uri' => 'https://github.com/esotericpig/ssc.bot/issues',
|
41
|
+
'changelog_uri' => 'https://github.com/esotericpig/ssc.bot/blob/master/CHANGELOG.md',
|
42
|
+
'homepage_uri' => 'https://github.com/esotericpig/ssc.bot',
|
43
|
+
'source_code_uri' => 'https://github.com/esotericpig/ssc.bot',
|
44
|
+
}
|
45
|
+
|
46
|
+
spec.require_paths = ['lib']
|
47
|
+
spec.bindir = 'bin'
|
48
|
+
|
49
|
+
spec.files = [
|
50
|
+
Dir.glob(File.join("{#{spec.require_paths.join(',')}}",'**','*.{erb,rb}')),
|
51
|
+
Dir.glob(File.join(spec.bindir,'*')),
|
52
|
+
Dir.glob(File.join('{test,yard}','**','*.{erb,rb}')),
|
53
|
+
%W( Gemfile #{spec.name}.gemspec Rakefile ),
|
54
|
+
%w( CHANGELOG.md LICENSE.txt README.md ),
|
55
|
+
].flatten()
|
56
|
+
|
57
|
+
spec.required_ruby_version = '>= 2.5'
|
58
|
+
|
59
|
+
spec.add_runtime_dependency 'attr_bool','~> 0.1' # attr_accessor?/reader?
|
60
|
+
|
61
|
+
spec.add_development_dependency 'bundler' ,'~> 2.1'
|
62
|
+
spec.add_development_dependency 'minitest' ,'~> 5.14'
|
63
|
+
spec.add_development_dependency 'rake' ,'~> 13.0'
|
64
|
+
spec.add_development_dependency 'rdoc' ,'~> 6.2' # YARDoc RDoc (*.rb)
|
65
|
+
spec.add_development_dependency 'redcarpet' ,'~> 3.5' # YARDoc Markdown (*.md)
|
66
|
+
spec.add_development_dependency 'yard' ,'~> 0.9' # Documentation
|
67
|
+
spec.add_development_dependency 'yard_ghurt','~> 1.2' # YARDoc GitHub Rake tasks
|
68
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
|
5
|
+
#--
|
6
|
+
# This file is part of SSC.Bot.
|
7
|
+
# Copyright (c) 2020 Jonathan Bradley Whited (@esotericpig)
|
8
|
+
#
|
9
|
+
# SSC.Bot is free software: you can redistribute it and/or modify
|
10
|
+
# it under the terms of the GNU Lesser General Public License as published by
|
11
|
+
# the Free Software Foundation, either version 3 of the License, or
|
12
|
+
# (at your option) any later version.
|
13
|
+
#
|
14
|
+
# SSC.Bot is distributed in the hope that it will be useful,
|
15
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
+
# GNU Lesser General Public License for more details.
|
18
|
+
#
|
19
|
+
# You should have received a copy of the GNU Lesser General Public License
|
20
|
+
# along with SSC.Bot. If not, see <https://www.gnu.org/licenses/>.
|
21
|
+
#++
|
22
|
+
|
23
|
+
|
24
|
+
require 'minitest/autorun'
|
25
|
+
|
26
|
+
|
27
|
+
class TestHelper < Minitest::Test
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,179 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ssc.bot
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jonathan Bradley Whited (@esotericpig)
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-08-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: attr_bool
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.1'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.14'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.14'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '13.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '13.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rdoc
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '6.2'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '6.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: redcarpet
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.5'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.5'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: yard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.9'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.9'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: yard_ghurt
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.2'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.2'
|
125
|
+
description: Simple Subspace Continuum Bot library.
|
126
|
+
email:
|
127
|
+
- bradley@esotericpig.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- CHANGELOG.md
|
133
|
+
- Gemfile
|
134
|
+
- LICENSE.txt
|
135
|
+
- README.md
|
136
|
+
- Rakefile
|
137
|
+
- lib/ssc.bot.rb
|
138
|
+
- lib/ssc.bot/chat_log.rb
|
139
|
+
- lib/ssc.bot/chat_log/message.rb
|
140
|
+
- lib/ssc.bot/chat_log/message_parsable.rb
|
141
|
+
- lib/ssc.bot/chat_log/message_parser.rb
|
142
|
+
- lib/ssc.bot/chat_log/messages.rb
|
143
|
+
- lib/ssc.bot/chat_log_file.rb
|
144
|
+
- lib/ssc.bot/error.rb
|
145
|
+
- lib/ssc.bot/ssc_file.rb
|
146
|
+
- lib/ssc.bot/user/jrobot_message_sender.rb
|
147
|
+
- lib/ssc.bot/user/message_sender.rb
|
148
|
+
- lib/ssc.bot/util.rb
|
149
|
+
- lib/ssc.bot/version.rb
|
150
|
+
- ssc.bot.gemspec
|
151
|
+
- test/test_helper.rb
|
152
|
+
homepage: https://github.com/esotericpig/ssc.bot
|
153
|
+
licenses:
|
154
|
+
- LGPL-3.0-or-later
|
155
|
+
metadata:
|
156
|
+
bug_tracker_uri: https://github.com/esotericpig/ssc.bot/issues
|
157
|
+
changelog_uri: https://github.com/esotericpig/ssc.bot/blob/master/CHANGELOG.md
|
158
|
+
homepage_uri: https://github.com/esotericpig/ssc.bot
|
159
|
+
source_code_uri: https://github.com/esotericpig/ssc.bot
|
160
|
+
post_install_message:
|
161
|
+
rdoc_options: []
|
162
|
+
require_paths:
|
163
|
+
- lib
|
164
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '2.5'
|
169
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
requirements: []
|
175
|
+
rubygems_version: 3.1.2
|
176
|
+
signing_key:
|
177
|
+
specification_version: 4
|
178
|
+
summary: Simple Subspace Continuum Bot library.
|
179
|
+
test_files: []
|