protonbot-memos 0.1.0 → 0.1.1
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/LICENSE.txt +1 -1
- data/README.md +4 -11
- data/lib/protonbot/memos.rb +1 -1
- data/lib/protonbot/memos/plugin.rb +1 -1
- data/protonbot-memos.gemspec +0 -2
- metadata +2 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4538cd5b5e5db19d5805c9444c26e1dde083c214
|
4
|
+
data.tar.gz: a2d7143cb21755778618c42b5564d5f0cc5b9827
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66c5c18419fbd6307581a70089dd2db2c289d8dba964beead35924190f11084b47027036c68557d97c43d0460054adbe7068b3045c90315e9b44d8883cb7f508
|
7
|
+
data.tar.gz: 6d8fda73a5babd27176045bccaebc4509be306182b4c2413f4fb86de25b062202023dea33418aa0281f39819f4a463ec80d6cda96a6c3e46c843f12e77af674b
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
# Protonbot::Memos
|
2
2
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/protonbot/memos`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
3
|
## Installation
|
8
4
|
|
9
|
-
Add this line to your
|
5
|
+
Add this line to your bot's Gemfile and plugin list:
|
10
6
|
|
11
7
|
```ruby
|
12
8
|
gem 'protonbot-memos'
|
@@ -16,13 +12,10 @@ And then execute:
|
|
16
12
|
|
17
13
|
$ bundle
|
18
14
|
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install protonbot-memos
|
22
|
-
|
23
15
|
## Usage
|
24
16
|
|
25
|
-
|
17
|
+
`memo <user> <memo>` to send memo.
|
18
|
+
`clearmemos {user}` (admin-only) to clear memos.
|
26
19
|
|
27
20
|
## Development
|
28
21
|
|
@@ -32,7 +25,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
25
|
|
33
26
|
## Contributing
|
34
27
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
28
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/handicraftsman/protonbot-memos. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
29
|
|
37
30
|
|
38
31
|
## License
|
data/lib/protonbot/memos.rb
CHANGED
@@ -46,7 +46,7 @@ ProtonBot::Plugin.new do
|
|
46
46
|
memos = dat[:db].query('memos').ensure.select('host' => dat[:host]).finish
|
47
47
|
unless memos.empty?
|
48
48
|
memos.each do |memo|
|
49
|
-
dat.reply("#{dat[:nick]}: #{memo['message']} [#{memo['by']}]")
|
49
|
+
dat.reply("%B#{dat[:nick]}%N: #{memo['message']} %B[%N%C%PURPLE#{memo['by']}%N%B]%N")
|
50
50
|
end
|
51
51
|
dat[:db].query('memos').ensure.delete('host' => dat[:host]).write.finish
|
52
52
|
end
|
data/protonbot-memos.gemspec
CHANGED
@@ -23,7 +23,5 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.13'
|
25
25
|
spec.add_development_dependency 'rake', '~> 10.0'
|
26
|
-
spec.add_runtime_dependency 'nokogiri', '~> 1.7'
|
27
|
-
spec.add_runtime_dependency 'http', '~> 2.2'
|
28
26
|
spec.add_runtime_dependency 'protonbot', '>= 0.2.2'
|
29
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protonbot-memos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nickolay Ilyushin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,34 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: nokogiri
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.7'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.7'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: http
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.2'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '2.2'
|
69
41
|
- !ruby/object:Gem::Dependency
|
70
42
|
name: protonbot
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|