slack_status_tracker 0.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +99 -0
- data/Rakefile +6 -0
- data/Vagrantfile +13 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bootstrap.sh +31 -0
- data/exe/slack_status_tracker +5 -0
- data/install-ruby.sh +13 -0
- data/install-rvm.sh +3 -0
- data/lib/slack_status_tracker/report_manager.rb +113 -0
- data/lib/slack_status_tracker/scrapper.rb +53 -0
- data/lib/slack_status_tracker/version.rb +3 -0
- data/lib/slack_status_tracker.rb +15 -0
- data/slack_status_tracker.gemspec +36 -0
- metadata +166 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6be6ef55f798ad9138a45627c33de4b7495e4c51
|
4
|
+
data.tar.gz: 9e12274c476c0552188bd6bb1e22470da58631c2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 789c8d5582d4c5f64bf42b35e3a6f2ca0ba7360e5be852c4e7d7629202f6f5f590dc48a1ebf062bdd159b54c217ec3e41da19491b686b1c17506a2d4ba9bc5fe
|
7
|
+
data.tar.gz: 2ffad31ddd23ab6ed7a0a7f7e991c3573ee152b1f506d26ded4e20eacd454edb1c79a0607561ec1108597a2e3eed84a9946acb998978957ea38e3927788d20d5
|
data/.gitignore
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/Gemfile.lock
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
10
|
+
# JetBrains
|
11
|
+
.idea
|
12
|
+
# Vagrant
|
13
|
+
.vagrant
|
14
|
+
# Cloud 9
|
15
|
+
.c9
|
16
|
+
# Environment Configuration
|
17
|
+
.env
|
18
|
+
# Test output
|
19
|
+
slack_online_users.txt
|
data/.rspec
ADDED
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
slack_status_tracker
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.3.1
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at kopz9999@gmail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Kyoto Kopz
|
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,99 @@
|
|
1
|
+
# SlackStatusTracker
|
2
|
+
|
3
|
+
Command line tool to get the number of online users in Slack at a given time.
|
4
|
+
This tool is a scrapper based on [Watir](https://github.com/watir/watir).
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'slack_status_tracker'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install slack_status_tracker
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
To ensure the command line tool is installed, run the following command:
|
25
|
+
|
26
|
+
$ slack_status_tracker -h
|
27
|
+
|
28
|
+
You should get the available options:
|
29
|
+
|
30
|
+
```bash
|
31
|
+
Usage: slack_status_tracker [options]
|
32
|
+
-s, --start Start to track
|
33
|
+
-o, --output [FILE_PATH] Output file (default slack_online_users.txt)
|
34
|
+
--channels c1,c2,c3 Slack channels
|
35
|
+
--driver [BROWSER_DRIVER] Browser Driver (default chrome)
|
36
|
+
-f, --frequency [MINUTES] Time minutes frequency (default 30)
|
37
|
+
-u, --username USERNAME Slack Username
|
38
|
+
-p, --password PASSWORD Slack Password
|
39
|
+
|
40
|
+
Common options:
|
41
|
+
-h, --help Show this message
|
42
|
+
--version Show version
|
43
|
+
```
|
44
|
+
|
45
|
+
### One time output
|
46
|
+
|
47
|
+
The expected results are going to be printed in the command line and saved to
|
48
|
+
a file named slack_online_users.txt, which should be located in the same path
|
49
|
+
you ran the command:
|
50
|
+
```bash
|
51
|
+
slack_status_tracker -u slack_username -p slack_password --channels channel_1
|
52
|
+
```
|
53
|
+
Output:
|
54
|
+
```bash
|
55
|
+
Time Online Users
|
56
|
+
2016-08-01 09:00:55 +0000 11
|
57
|
+
```
|
58
|
+
|
59
|
+
### Daemon
|
60
|
+
|
61
|
+
Just append the -s option to keep it running every n minutes you want
|
62
|
+
(by default 30):
|
63
|
+
|
64
|
+
```bash
|
65
|
+
slack_status_tracker -s -u slack_username -p slack_password --channels channel_1
|
66
|
+
```
|
67
|
+
Output:
|
68
|
+
```bash
|
69
|
+
Time Online Users
|
70
|
+
2016-08-01 09:00:55 +0000 11
|
71
|
+
```
|
72
|
+
|
73
|
+
For every 10 min
|
74
|
+
|
75
|
+
```bash
|
76
|
+
slack_status_tracker -s -u slack_username -p slack_password --channels channel_1
|
77
|
+
-f 10
|
78
|
+
```
|
79
|
+
Output:
|
80
|
+
```bash
|
81
|
+
Time Online Users
|
82
|
+
2016-08-01 09:00:55 +0000 11
|
83
|
+
```
|
84
|
+
|
85
|
+
## Development
|
86
|
+
|
87
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
88
|
+
|
89
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
90
|
+
|
91
|
+
## Contributing
|
92
|
+
|
93
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/slack_status_tracker. 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.
|
94
|
+
|
95
|
+
|
96
|
+
## License
|
97
|
+
|
98
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
99
|
+
|
data/Rakefile
ADDED
data/Vagrantfile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
5
|
+
# configures the configuration version (we support older styles for
|
6
|
+
# backwards compatibility). Please don't change it unless you know what
|
7
|
+
# you're doing.
|
8
|
+
Vagrant.configure(2) do |config|
|
9
|
+
config.vm.box = "ubuntu/trusty64"
|
10
|
+
config.vm.provision :shell, path: "bootstrap.sh"
|
11
|
+
config.vm.provision :shell, path: "install-rvm.sh", args: "stable", privileged: false
|
12
|
+
config.vm.provision :shell, path: "install-ruby.sh", args: "2.3.1", privileged: false
|
13
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "slack_status_tracker"
|
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
|
data/bin/setup
ADDED
data/bootstrap.sh
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
sudo locale-gen en_US.UTF-8
|
2
|
+
sudo update-locale LANG=en_US.UTF-8
|
3
|
+
sudo update-locale LC_ALL=en_US.UTF-8
|
4
|
+
|
5
|
+
sudo apt-get update
|
6
|
+
sudo apt-get install -y build-essential git curl libxslt1-dev libxml2-dev libssl-dev
|
7
|
+
|
8
|
+
# postgres
|
9
|
+
echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main " | sudo tee -a /etc/apt/sources.list.d/pgdg.list
|
10
|
+
sudo wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
11
|
+
sudo apt-get update
|
12
|
+
sudo apt-get install -y postgresql-9.3 libpq-dev
|
13
|
+
echo '# "local" is for Unix domain socket connections only
|
14
|
+
local all all trust
|
15
|
+
# IPv4 local connections:
|
16
|
+
host all all 0.0.0.0/0 trust
|
17
|
+
# IPv6 local connections:
|
18
|
+
host all all ::/0 trust' | sudo tee /etc/postgresql/9.3/main/pg_hba.conf
|
19
|
+
sudo sed -i "s/#listen_addresses = 'localhost'/listen_addresses = '*'/g" /etc/postgresql/9.3/main/postgresql.conf
|
20
|
+
sudo /etc/init.d/postgresql restart
|
21
|
+
sudo su - postgres -c 'createuser -s vagrant'
|
22
|
+
|
23
|
+
# redis
|
24
|
+
sudo apt-get install -y python-software-properties
|
25
|
+
sudo add-apt-repository -y ppa:rwky/redis
|
26
|
+
sudo apt-get update
|
27
|
+
sudo apt-get install -y redis-server
|
28
|
+
|
29
|
+
echo "All done installing!
|
30
|
+
|
31
|
+
Next steps: type 'vagrant ssh' to log into the machine."
|
data/install-ruby.sh
ADDED
data/install-rvm.sh
ADDED
@@ -0,0 +1,113 @@
|
|
1
|
+
module SlackStatusTracker
|
2
|
+
class ReportManager
|
3
|
+
include Singleton
|
4
|
+
|
5
|
+
attr_accessor :output_path
|
6
|
+
|
7
|
+
def cmd
|
8
|
+
options = parse_options ARGV
|
9
|
+
set_output options
|
10
|
+
frequency = options.fetch :frequency
|
11
|
+
append_to_output "Time\t\t\t\tOnline Users"
|
12
|
+
if options[:start]
|
13
|
+
while true
|
14
|
+
process_channels options
|
15
|
+
sleep frequency*60
|
16
|
+
end
|
17
|
+
else
|
18
|
+
process_channels options
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def process_channels(options = {})
|
23
|
+
channels = options.fetch :channels
|
24
|
+
username = options.fetch :username
|
25
|
+
password = options.fetch :password
|
26
|
+
driver = options.fetch :driver
|
27
|
+
total = 0
|
28
|
+
time = Time.now
|
29
|
+
|
30
|
+
channels.each do |c|
|
31
|
+
scrapper = SlackStatusTracker::Scrapper.new(username, password,
|
32
|
+
driver, c)
|
33
|
+
begin
|
34
|
+
scrapper.retrieve_users
|
35
|
+
total += scrapper.current_online_users
|
36
|
+
rescue => e
|
37
|
+
puts e.backtrace
|
38
|
+
end
|
39
|
+
end
|
40
|
+
append_to_output "#{time}\t#{total}"
|
41
|
+
end
|
42
|
+
|
43
|
+
def parse_options(args)
|
44
|
+
options = { frequency: 30, driver: :chrome }
|
45
|
+
opt_parser = OptionParser.new do |opts|
|
46
|
+
opts.banner = "Usage: slack_status_tracker [options]"
|
47
|
+
|
48
|
+
opts.on("-s", "--start", "Start to track") do |s|
|
49
|
+
options[:start] = true
|
50
|
+
end
|
51
|
+
|
52
|
+
opts.on("-o", "--output [FILE_PATH]",
|
53
|
+
"Output file (default slack_online_users.txt)") do |o|
|
54
|
+
options[:output] = o
|
55
|
+
end
|
56
|
+
|
57
|
+
opts.on("--channels c1,c2,c3", Array,
|
58
|
+
"Slack channels") do |channels|
|
59
|
+
options[:channels] = channels
|
60
|
+
end
|
61
|
+
|
62
|
+
opts.on("--driver [BROWSER_DRIVER]", String,
|
63
|
+
"Browser Driver (default chrome)") do |d|
|
64
|
+
options[:driver] = d.to_sym
|
65
|
+
end
|
66
|
+
|
67
|
+
opts.on("-f", "--frequency [MINUTES]", Integer,
|
68
|
+
"Time minutes frequency (default 30)") do |f|
|
69
|
+
options[:frequency] = f || FREQUENCY
|
70
|
+
end
|
71
|
+
|
72
|
+
opts.on("-u", "--username USERNAME", "Slack Username") do |u|
|
73
|
+
options[:username] = u
|
74
|
+
end
|
75
|
+
|
76
|
+
opts.on("-p", "--password PASSWORD", "Slack Password") do |p|
|
77
|
+
options[:password] = p
|
78
|
+
end
|
79
|
+
|
80
|
+
opts.separator ""
|
81
|
+
opts.separator "Common options:"
|
82
|
+
|
83
|
+
# No argument, shows at tail. This will print an options summary.
|
84
|
+
# Try it and see!
|
85
|
+
opts.on_tail("-h", "--help", "Show this message") do
|
86
|
+
puts opts
|
87
|
+
exit
|
88
|
+
end
|
89
|
+
|
90
|
+
opts.on_tail("--version", "Show version") do
|
91
|
+
puts SlackStatusTracker::VERSION
|
92
|
+
exit
|
93
|
+
end
|
94
|
+
end
|
95
|
+
opt_parser.parse!(args)
|
96
|
+
options
|
97
|
+
end
|
98
|
+
|
99
|
+
protected
|
100
|
+
|
101
|
+
def append_to_output(content)
|
102
|
+
puts content
|
103
|
+
open(self.output_path, 'a') { |f| f.puts content }
|
104
|
+
end
|
105
|
+
|
106
|
+
def set_output(options)
|
107
|
+
self.output_path = options[:output]
|
108
|
+
if self.output_path.nil?
|
109
|
+
self.output_path = File.join(Dir.pwd, 'slack_online_users.txt')
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module SlackStatusTracker
|
2
|
+
class Scrapper
|
3
|
+
attr_accessor :browser
|
4
|
+
attr_accessor :username
|
5
|
+
attr_accessor :password
|
6
|
+
attr_accessor :channel
|
7
|
+
attr_accessor :current_online_users
|
8
|
+
|
9
|
+
def initialize(username, password, driver, channel)
|
10
|
+
self.username = username
|
11
|
+
self.password = password
|
12
|
+
self.channel = channel
|
13
|
+
headless = Headless.new
|
14
|
+
headless.start
|
15
|
+
self.browser = Watir::Browser.new driver
|
16
|
+
self.current_online_users = 0
|
17
|
+
end
|
18
|
+
|
19
|
+
def retrieve_users
|
20
|
+
init_slack
|
21
|
+
login
|
22
|
+
init_team
|
23
|
+
read_list
|
24
|
+
browser.close
|
25
|
+
end
|
26
|
+
|
27
|
+
protected
|
28
|
+
|
29
|
+
def read_list
|
30
|
+
browser.element(css: '#active_members_list').wait_until_present
|
31
|
+
browser.elements(css: '#active_members_list .team_list_item').each do |el|
|
32
|
+
presence_bubble = el.element(css: 'span.presence')
|
33
|
+
if presence_bubble.attribute_value("class").split(' ').include? 'active'
|
34
|
+
self.current_online_users+=1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def init_slack
|
40
|
+
self.browser.goto "https://#{self.channel}.slack.com/"
|
41
|
+
end
|
42
|
+
|
43
|
+
def login
|
44
|
+
self.browser.text_field(:css => '#email').value = self.username
|
45
|
+
self.browser.text_field(:css => '#password').set self.password
|
46
|
+
self.browser.button(:css => '#signin_btn').click
|
47
|
+
end
|
48
|
+
|
49
|
+
def init_team
|
50
|
+
self.browser.goto "https://#{self.channel}.slack.com/team"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Singleton
|
2
|
+
require "singleton"
|
3
|
+
require "watir"
|
4
|
+
require 'headless'
|
5
|
+
require 'optparse'
|
6
|
+
# App
|
7
|
+
require "slack_status_tracker/version"
|
8
|
+
require "slack_status_tracker/report_manager"
|
9
|
+
require "slack_status_tracker/scrapper"
|
10
|
+
|
11
|
+
module SlackStatusTracker
|
12
|
+
def self.root
|
13
|
+
File.expand_path '../..', __FILE__
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'slack_status_tracker/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "slack_status_tracker"
|
8
|
+
spec.version = SlackStatusTracker::VERSION
|
9
|
+
spec.authors = ["Kyoto Kopz"]
|
10
|
+
spec.email = ["kopz9999@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = 'Command line tool to get the status of current users'
|
13
|
+
spec.homepage = 'https://github.com/kopz9999/slack_status_tracker'
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
20
|
+
else
|
21
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
22
|
+
end
|
23
|
+
|
24
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
spec.bindir = "exe"
|
26
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
+
spec.require_paths = ["lib"]
|
28
|
+
|
29
|
+
spec.add_dependency 'watir', '~> 4.0'
|
30
|
+
spec.add_dependency 'headless', '2.2.3'
|
31
|
+
spec.add_development_dependency "pry", ">= 0.10.3"
|
32
|
+
spec.add_development_dependency "dotenv", ">= 2.1.1"
|
33
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
34
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
35
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,166 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: slack_status_tracker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0.pre
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kyoto Kopz
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: watir
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: headless
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.2.3
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.2.3
|
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.10.3
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.10.3
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dotenv
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.1.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.1.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.12'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.12'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.0'
|
111
|
+
description:
|
112
|
+
email:
|
113
|
+
- kopz9999@gmail.com
|
114
|
+
executables:
|
115
|
+
- slack_status_tracker
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rspec"
|
121
|
+
- ".ruby-gemset"
|
122
|
+
- ".ruby-version"
|
123
|
+
- ".travis.yml"
|
124
|
+
- CODE_OF_CONDUCT.md
|
125
|
+
- Gemfile
|
126
|
+
- LICENSE.txt
|
127
|
+
- README.md
|
128
|
+
- Rakefile
|
129
|
+
- Vagrantfile
|
130
|
+
- bin/console
|
131
|
+
- bin/setup
|
132
|
+
- bootstrap.sh
|
133
|
+
- exe/slack_status_tracker
|
134
|
+
- install-ruby.sh
|
135
|
+
- install-rvm.sh
|
136
|
+
- lib/slack_status_tracker.rb
|
137
|
+
- lib/slack_status_tracker/report_manager.rb
|
138
|
+
- lib/slack_status_tracker/scrapper.rb
|
139
|
+
- lib/slack_status_tracker/version.rb
|
140
|
+
- slack_status_tracker.gemspec
|
141
|
+
homepage: https://github.com/kopz9999/slack_status_tracker
|
142
|
+
licenses:
|
143
|
+
- MIT
|
144
|
+
metadata:
|
145
|
+
allowed_push_host: https://rubygems.org
|
146
|
+
post_install_message:
|
147
|
+
rdoc_options: []
|
148
|
+
require_paths:
|
149
|
+
- lib
|
150
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 1.3.1
|
160
|
+
requirements: []
|
161
|
+
rubyforge_project:
|
162
|
+
rubygems_version: 2.4.8
|
163
|
+
signing_key:
|
164
|
+
specification_version: 4
|
165
|
+
summary: Command line tool to get the status of current users
|
166
|
+
test_files: []
|