earch 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/.gitignore +11 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Dockerfile +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +111 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docker-compose.yml +5 -0
- data/earch.gemspec +31 -0
- data/exe/earch +24 -0
- data/lib/earch.rb +72 -0
- data/lib/earch/rule.rb +98 -0
- data/lib/earch/version.rb +3 -0
- metadata +159 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d70708dd47c7958b3d2e0e556c3493137b2fa643
|
4
|
+
data.tar.gz: a9c8939b7c8e91b2932a7c453919ef45c7cb5688
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: abce2783f3230e9f4b7c2820800490098df9e0cd7225a8a331a2903e5f747082dc34863a6d6206ae4cd66e887ab6514c95d1bfc0f4fe8fda53ac1f524b3246d2
|
7
|
+
data.tar.gz: a55bad6542e710a01dc34f8baa759f863a85c74881166896f4cff46da2bdcb3f9150375e6efcfbfdef94db9a1b63005c20a5f9eb92030284053ec7c7cb5e3c0b
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at flum.1025@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Dockerfile
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 flum1025
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
# Earch
|
2
|
+
|
3
|
+
This application monitors the Twitter timeline and notifies Slack according to the conditions.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
$ gem install earch
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
You must be prepared the configuration file first(The details will be described later). Save configuration file and run the following command.
|
12
|
+
|
13
|
+
$ earch -s setting.yml
|
14
|
+
|
15
|
+
## Configuration File
|
16
|
+
|
17
|
+
Configuration file is `YAML` format file. YAML key and their allowable values are described below.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```yaml
|
22
|
+
twitter:
|
23
|
+
stream_options:
|
24
|
+
replies: all
|
25
|
+
screen_name: flum_ #require
|
26
|
+
api_key:
|
27
|
+
consumer_key: #require
|
28
|
+
consumer_secret: #require
|
29
|
+
access_token: #require
|
30
|
+
access_token_secret: #require
|
31
|
+
slack:
|
32
|
+
api_key:
|
33
|
+
token: #require
|
34
|
+
websocket_ping: 5
|
35
|
+
user_icon: ':earch:'
|
36
|
+
notify_channel: '#earch' #require
|
37
|
+
icon: ':flum_:'
|
38
|
+
rules: #require
|
39
|
+
- text: !ruby/regexp /test.*/
|
40
|
+
screen_name: twitterdev
|
41
|
+
- hashtag:
|
42
|
+
- test
|
43
|
+
- events
|
44
|
+
favorite_count: 50
|
45
|
+
- lang: ja
|
46
|
+
retweet: false
|
47
|
+
quote: false
|
48
|
+
reply: true
|
49
|
+
```
|
50
|
+
|
51
|
+
### twitter
|
52
|
+
|
53
|
+
This key is for `Twitter` configuration.
|
54
|
+
|
55
|
+
Argument|Required|Description
|
56
|
+
---|---|---
|
57
|
+
stream_options|Optional|Refer to [Streaming API request parameters](https://dev.twitter.com/streaming/overview/request-parameters)
|
58
|
+
api_key|Required|Get from [Twitter Application Management](https://apps.twitter.com/)
|
59
|
+
|
60
|
+
### slack
|
61
|
+
|
62
|
+
This key is for `Slack` configuration.
|
63
|
+
|
64
|
+
Argument|Required|Description
|
65
|
+
---|---|---
|
66
|
+
api_key|Required|Get from [Bots](https://your-team.slack.com/apps/manage/custom-integrations)
|
67
|
+
user_icon|Optional|Set the [Slack emoji](https://flum1025.slack.com/customize/emoji)
|
68
|
+
notify_channel|Required|Specify the notification channel
|
69
|
+
icon|Optional|Set your Twitter account icon
|
70
|
+
|
71
|
+
### rules
|
72
|
+
|
73
|
+
The value corresponding to a key is need to `Array`. You can use multiple rules and conditions.
|
74
|
+
|
75
|
+
Argument|DataType|Example|Comments
|
76
|
+
---|---|---|---
|
77
|
+
text|String|`text: tweet text`
|
78
|
+
||Regexp|`text: !ruby/regexp /^\d+$/`
|
79
|
+
user_id|String|`user_id: "12345"`|Not a number
|
80
|
+
user_name|String|`user_name: twitter name`
|
81
|
+
||Regexp|`user_name: !ruby/regexp /^[A-Z]+$/`
|
82
|
+
screen_name|String|`screen_name: screen name`
|
83
|
+
||Regexp|`screen_name: !ruby/regexp /^@test[0-9]+/`
|
84
|
+
favorite_count|Integer|`favorite_count: 50`|Get over 50 the number of favorites
|
85
|
+
||Range|`favorite_count: !ruby/range 10..20`|The number of favorites is 10 to 20
|
86
|
+
retweet_count|Integer|`retweet_count: 50`
|
87
|
+
||Range|`retweet_count: !ruby/range 10..20`
|
88
|
+
lang|String|`lang: ja`
|
89
|
+
||Regexp|`lang: !ruby/regexp /(ja\|en)/`
|
90
|
+
user_lang|String|`user_lang: ja`
|
91
|
+
||Regexp|`user_lang: !ruby/regexp /(ja\|en)/`
|
92
|
+
source|Array\<String>|`source: [TweetDeck, Twitter for WEB]`
|
93
|
+
hashtag|Array\<String>|`source: [test, memo]`|
|
94
|
+
mention|Array\<String>|`source: [twitter, twitterdev]`|String for screen_name
|
95
|
+
||Array\<Integer>|`source: [123, 456]`|Integer for id
|
96
|
+
reply|Boolean|`reply: false`
|
97
|
+
quote|Boolean|`quote: false`
|
98
|
+
retweet|Boolean|`retweet: false`
|
99
|
+
|
100
|
+
|
101
|
+
## Contributing
|
102
|
+
|
103
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/earch. 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.
|
104
|
+
|
105
|
+
## License
|
106
|
+
|
107
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
108
|
+
|
109
|
+
## Code of Conduct
|
110
|
+
|
111
|
+
Everyone interacting in the Earch project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/earch/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "earch"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/docker-compose.yml
ADDED
data/earch.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "earch/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "earch"
|
8
|
+
spec.version = Earch::VERSION
|
9
|
+
spec.authors = ["flum1025"]
|
10
|
+
spec.email = ["flum.1025@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Twitter timeline notify}
|
13
|
+
spec.description = %q{This application monitors the Twitter timeline and notifies Slack according to the conditions.}
|
14
|
+
spec.homepage = "https://github.com/flum1025/earch"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "pry"
|
27
|
+
spec.add_dependency 'twitter'
|
28
|
+
spec.add_dependency 'twitter-stream-patch'
|
29
|
+
spec.add_dependency 'hashie'
|
30
|
+
spec.add_dependency 'slack-ruby-client'
|
31
|
+
end
|
data/exe/earch
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
if $0 == __FILE__
|
2
|
+
$:.unshift File.expand_path('../../lib', __FILE__)
|
3
|
+
end
|
4
|
+
|
5
|
+
require 'optparse'
|
6
|
+
require 'earch'
|
7
|
+
|
8
|
+
Parameter = Hash.new
|
9
|
+
|
10
|
+
def optparse
|
11
|
+
opt = OptionParser.new
|
12
|
+
opt.program_name = "Earch"
|
13
|
+
opt.version = Earch::VERSION
|
14
|
+
opt.on('-d VALUES', '--debug VALUES', 'debug'){|v|Parameter[:debug] = v}
|
15
|
+
opt.on('-s VALUES', '--setting VALUES', 'setting file'){|v|Parameter[:file] = v}
|
16
|
+
opt.parse!(ARGV)
|
17
|
+
rescue OptionParser::InvalidOption, OptionParser::MissingArgument => e
|
18
|
+
STDERR.puts e.message
|
19
|
+
exit false
|
20
|
+
end
|
21
|
+
|
22
|
+
optparse
|
23
|
+
earch = Earch.new(Parameter[:file])
|
24
|
+
Parameter[:debug] ? earch.debug(File.read(Parameter[:debug])) : earch.start
|
data/lib/earch.rb
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
require "earch/version"
|
2
|
+
require "earch/rule"
|
3
|
+
require "twitter"
|
4
|
+
require "twitter-stream-patch"
|
5
|
+
require "hashie"
|
6
|
+
require "slack-ruby-client"
|
7
|
+
require "optparse"
|
8
|
+
|
9
|
+
class Earch
|
10
|
+
def initialize(file)
|
11
|
+
@setting = Hashie::Mash.load(file)
|
12
|
+
@rules = Rules.new(@setting.rules)
|
13
|
+
@stream_client = Twitter::Streaming::Client.new @setting.twitter.api_key
|
14
|
+
@slack_client = Slack::Web::Client.new(@setting.slack.api_key)
|
15
|
+
end
|
16
|
+
|
17
|
+
def start
|
18
|
+
@stream_client.user(@setting.twitter.stream_options) do |object|
|
19
|
+
case object
|
20
|
+
when Twitter::Tweet
|
21
|
+
execute(object)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
rescue SignalException, Interrupt
|
25
|
+
rescue Twitter::Error::ServerError, EOFError, Errno::EPIPE
|
26
|
+
sleep 1
|
27
|
+
retry
|
28
|
+
end
|
29
|
+
|
30
|
+
def debug(json)
|
31
|
+
Slack::Web::Client.class_eval do
|
32
|
+
define_method :chat_postMessage{|*args|p args}
|
33
|
+
end
|
34
|
+
execute(Twitter::Tweet.new(JSON.parse(json, {:symbolize_names => true})))
|
35
|
+
end
|
36
|
+
|
37
|
+
private
|
38
|
+
def execute(object)
|
39
|
+
if @rules.match?(object)
|
40
|
+
notify(object)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def notify(object)
|
45
|
+
@slack_client.chat_postMessage(
|
46
|
+
icon_emoji: @setting.slack.user_icon,
|
47
|
+
username: 'Earch',
|
48
|
+
channel: @setting.slack.notify_channel,
|
49
|
+
attachments: notify_content(object)
|
50
|
+
)
|
51
|
+
end
|
52
|
+
|
53
|
+
def notify_content(object)
|
54
|
+
[
|
55
|
+
{
|
56
|
+
"fallback": "#{object.text} by @#{object.user.screen_name}",
|
57
|
+
"color": "#4169e1",
|
58
|
+
"author_name": "#{object.user.name}(@#{object.user.screen_name})",
|
59
|
+
"author_link": object.user.url,
|
60
|
+
"author_icon": object.user.profile_image_url_https,
|
61
|
+
"text": object.text,
|
62
|
+
"fields": [
|
63
|
+
{
|
64
|
+
"value": "<#{object.url}|Tweet>",
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"footer": "#{@setting.slack.icon} #{@setting.twitter.screen_name}",
|
68
|
+
"ts": object.created_at.to_f
|
69
|
+
}
|
70
|
+
]
|
71
|
+
end
|
72
|
+
end
|
data/lib/earch/rule.rb
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
class Rules
|
2
|
+
class Rule
|
3
|
+
def initialize(rule)
|
4
|
+
@rule = rule
|
5
|
+
end
|
6
|
+
|
7
|
+
def match?(object)
|
8
|
+
@rule.map{|k,v|send(k, v, object)}.all?
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
def text(rule, object)
|
13
|
+
compare(rule, object.text)
|
14
|
+
end
|
15
|
+
|
16
|
+
def user_id(rule, object)
|
17
|
+
compare(rule, object.user.id_str)
|
18
|
+
end
|
19
|
+
|
20
|
+
def user_name(rule, object)
|
21
|
+
compare(rule, object.user)
|
22
|
+
end
|
23
|
+
|
24
|
+
def screen_name(rule, object)
|
25
|
+
compare(rule, object.screen_name)
|
26
|
+
end
|
27
|
+
|
28
|
+
def favorite_count(rule, object)
|
29
|
+
compare(rule, object.favorite_count)
|
30
|
+
end
|
31
|
+
|
32
|
+
def retweet_count(rule, object)
|
33
|
+
compare(rule, object.retweet_count)
|
34
|
+
end
|
35
|
+
|
36
|
+
def lang(rule, object)
|
37
|
+
compare(rule, object.lang)
|
38
|
+
end
|
39
|
+
|
40
|
+
def user_lang(rule, object)
|
41
|
+
compare(rule, object.user.lang)
|
42
|
+
end
|
43
|
+
|
44
|
+
def source(rule, object)
|
45
|
+
compare(rule, object.source.gsub(/<(.+)\">/,"").gsub(/<\/a>/,""))
|
46
|
+
end
|
47
|
+
|
48
|
+
def reply(rule, object)
|
49
|
+
compare(rule, object.reply?)
|
50
|
+
end
|
51
|
+
|
52
|
+
def hashtag(rule, object)
|
53
|
+
compare(rule, object.hashtags.map{|h|h.text})
|
54
|
+
end
|
55
|
+
|
56
|
+
def mention(rule, object)
|
57
|
+
if !rule.nil? && !rule.empty?
|
58
|
+
key = rule.first.is_a?(Integer) ? :id : :screen_name
|
59
|
+
compare(rule, object.user_mentions.map{|h|h.send(key)})
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
def quote(rule, object)
|
64
|
+
compare(rule, object.quote?)
|
65
|
+
end
|
66
|
+
|
67
|
+
def retweet(rule, object)
|
68
|
+
compare(rule, object.retweet?)
|
69
|
+
end
|
70
|
+
|
71
|
+
def compare(rule, target)
|
72
|
+
case rule
|
73
|
+
when Regexp
|
74
|
+
rule =~ target
|
75
|
+
when Integer
|
76
|
+
rule <= target
|
77
|
+
when Range
|
78
|
+
rule.include?(target)
|
79
|
+
when Array
|
80
|
+
if target.is_a?(Array)
|
81
|
+
!(rule & target).empty?
|
82
|
+
else
|
83
|
+
rule.include?(target)
|
84
|
+
end
|
85
|
+
else
|
86
|
+
rule == target
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
def initialize(rules)
|
92
|
+
@rules = rules.map{|rule|Rule.new(rule)}
|
93
|
+
end
|
94
|
+
|
95
|
+
def match?(object)
|
96
|
+
@rules.find{|rule|rule.match?(object)}
|
97
|
+
end
|
98
|
+
end
|
metadata
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: earch
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- flum1025
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-08-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
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: twitter
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
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: twitter-stream-patch
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
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: hashie
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
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: slack-ruby-client
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: This application monitors the Twitter timeline and notifies Slack according
|
112
|
+
to the conditions.
|
113
|
+
email:
|
114
|
+
- flum.1025@gmail.com
|
115
|
+
executables:
|
116
|
+
- earch
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
120
|
+
- ".gitignore"
|
121
|
+
- CODE_OF_CONDUCT.md
|
122
|
+
- Dockerfile
|
123
|
+
- Gemfile
|
124
|
+
- LICENSE.txt
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- bin/console
|
128
|
+
- bin/setup
|
129
|
+
- docker-compose.yml
|
130
|
+
- earch.gemspec
|
131
|
+
- exe/earch
|
132
|
+
- lib/earch.rb
|
133
|
+
- lib/earch/rule.rb
|
134
|
+
- lib/earch/version.rb
|
135
|
+
homepage: https://github.com/flum1025/earch
|
136
|
+
licenses:
|
137
|
+
- MIT
|
138
|
+
metadata: {}
|
139
|
+
post_install_message:
|
140
|
+
rdoc_options: []
|
141
|
+
require_paths:
|
142
|
+
- lib
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
requirements: []
|
154
|
+
rubyforge_project:
|
155
|
+
rubygems_version: 2.6.8
|
156
|
+
signing_key:
|
157
|
+
specification_version: 4
|
158
|
+
summary: Twitter timeline notify
|
159
|
+
test_files: []
|