qqq 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/.rspec +3 -0
- data/.ruby-version +1 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.org +39 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +83 -0
- data/README.md +39 -0
- data/Rakefile +12 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/qqq +5 -0
- data/lib/app.rb +55 -0
- data/lib/qqq.rb +56 -0
- data/lib/qqq/api.rb +11 -0
- data/lib/qqq/cli.rb +47 -0
- data/lib/qqq/event.rb +10 -0
- data/lib/qqq/keys.rb +6 -0
- data/lib/qqq/version.rb +3 -0
- data/qqq.gemspec +51 -0
- metadata +232 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 221dbef300b4bf5d3f57a4be9fc0ef9584358981e914c17857d110ec42e20a09
|
|
4
|
+
data.tar.gz: bac7bd7c093ce99079eb74d3ad71cf598e8a3d80c37cff9bf089f5ac7e0398f4
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d57613b3bec97a6e8871006fa16874cf59ed71baac77c79eb0d57e201cb16f0ee724c1950d4208175b696d2a3e8901f36f342257b2d24e1da73816574a7a37e6
|
|
7
|
+
data.tar.gz: e43afd5dfe602d67b16e76e8d2925717c73611877aed0e336a16befe966d3c5b6a91f704ee7b48ea3e20a6f663df4d412d6b8762198d973cd1b622dc52575c6c
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.6.0
|
data/.travis.yml
ADDED
data/CHANGELOG.org
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
* Milestone I
|
|
2
|
+
|
|
3
|
+
"Better than puts"
|
|
4
|
+
|
|
5
|
+
features
|
|
6
|
+
- [ ] object inspection
|
|
7
|
+
- [ ] metaprogramming / reflection
|
|
8
|
+
|
|
9
|
+
- [ ] rich data
|
|
10
|
+
- [ ] recorded timestamp and uuid recorded in db
|
|
11
|
+
- [X] record in a database
|
|
12
|
+
- [X] send to an api
|
|
13
|
+
- [X] timestamps
|
|
14
|
+
- [X] send message from command line
|
|
15
|
+
- [X] tail and mark from command line
|
|
16
|
+
- [ ] did not run (no wondering if line didn't run)... possible?
|
|
17
|
+
- [ ] increments if run multiple times..
|
|
18
|
+
- [ ] start / stop 'marks'
|
|
19
|
+
|
|
20
|
+
dev
|
|
21
|
+
- [X] create rudimentary uh... dashboard/orchestration
|
|
22
|
+
- [X] Tighten e2e.sh test.
|
|
23
|
+
- [ ] local gem dev - de-req rake install loop
|
|
24
|
+
- [ ] some sort of handshake system for handling processes
|
|
25
|
+
|
|
26
|
+
* Milestone II
|
|
27
|
+
|
|
28
|
+
features
|
|
29
|
+
- [ ] some recent history (last 100?) when I start tailing
|
|
30
|
+
- [ ] q, qq, qqq levels
|
|
31
|
+
- [ ] file worker (append to /tmp/qqq)
|
|
32
|
+
- [ ] plugin arch for worker
|
|
33
|
+
- [ ] updated development documentation
|
|
34
|
+
- [ ] api key to follow me around (~/.qqq.conf or whatever)
|
|
35
|
+
|
|
36
|
+
dev
|
|
37
|
+
- [ ] split out configuration (yaml?) for 'service' interaction
|
|
38
|
+
- [ ] split the development panel / user panel
|
|
39
|
+
- [ ] config panel to turn on/off 'q steams'
|
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 jskulski@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/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
qqq (0.1.0)
|
|
5
|
+
activerecord
|
|
6
|
+
faraday
|
|
7
|
+
json
|
|
8
|
+
mysql2
|
|
9
|
+
redis
|
|
10
|
+
sinatra
|
|
11
|
+
thor
|
|
12
|
+
uuidtools
|
|
13
|
+
|
|
14
|
+
GEM
|
|
15
|
+
remote: https://rubygems.org/
|
|
16
|
+
specs:
|
|
17
|
+
activemodel (5.2.2)
|
|
18
|
+
activesupport (= 5.2.2)
|
|
19
|
+
activerecord (5.2.2)
|
|
20
|
+
activemodel (= 5.2.2)
|
|
21
|
+
activesupport (= 5.2.2)
|
|
22
|
+
arel (>= 9.0)
|
|
23
|
+
activesupport (5.2.2)
|
|
24
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
25
|
+
i18n (>= 0.7, < 2)
|
|
26
|
+
minitest (~> 5.1)
|
|
27
|
+
tzinfo (~> 1.1)
|
|
28
|
+
arel (9.0.0)
|
|
29
|
+
concurrent-ruby (1.1.4)
|
|
30
|
+
diff-lcs (1.3)
|
|
31
|
+
fakeredis (0.7.0)
|
|
32
|
+
redis (>= 3.2, < 5.0)
|
|
33
|
+
faraday (0.9.2)
|
|
34
|
+
multipart-post (>= 1.2, < 3)
|
|
35
|
+
i18n (1.5.2)
|
|
36
|
+
concurrent-ruby (~> 1.0)
|
|
37
|
+
json (2.1.0)
|
|
38
|
+
minitest (5.11.3)
|
|
39
|
+
multipart-post (2.0.0)
|
|
40
|
+
mustermann (1.0.3)
|
|
41
|
+
mysql2 (0.5.0)
|
|
42
|
+
rack (2.0.6)
|
|
43
|
+
rack-protection (2.0.5)
|
|
44
|
+
rack
|
|
45
|
+
rake (10.5.0)
|
|
46
|
+
redis (4.1.1)
|
|
47
|
+
rspec (3.8.0)
|
|
48
|
+
rspec-core (~> 3.8.0)
|
|
49
|
+
rspec-expectations (~> 3.8.0)
|
|
50
|
+
rspec-mocks (~> 3.8.0)
|
|
51
|
+
rspec-core (3.8.0)
|
|
52
|
+
rspec-support (~> 3.8.0)
|
|
53
|
+
rspec-expectations (3.8.3)
|
|
54
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
55
|
+
rspec-support (~> 3.8.0)
|
|
56
|
+
rspec-mocks (3.8.0)
|
|
57
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
58
|
+
rspec-support (~> 3.8.0)
|
|
59
|
+
rspec-support (3.8.0)
|
|
60
|
+
sinatra (2.0.5)
|
|
61
|
+
mustermann (~> 1.0)
|
|
62
|
+
rack (~> 2.0)
|
|
63
|
+
rack-protection (= 2.0.5)
|
|
64
|
+
tilt (~> 2.0)
|
|
65
|
+
thor (0.20.3)
|
|
66
|
+
thread_safe (0.3.6)
|
|
67
|
+
tilt (2.0.9)
|
|
68
|
+
tzinfo (1.2.5)
|
|
69
|
+
thread_safe (~> 0.1)
|
|
70
|
+
uuidtools (2.1.5)
|
|
71
|
+
|
|
72
|
+
PLATFORMS
|
|
73
|
+
ruby
|
|
74
|
+
|
|
75
|
+
DEPENDENCIES
|
|
76
|
+
bundler (~> 2.0)
|
|
77
|
+
fakeredis
|
|
78
|
+
qqq!
|
|
79
|
+
rake (~> 10.0)
|
|
80
|
+
rspec (~> 3.0)
|
|
81
|
+
|
|
82
|
+
BUNDLED WITH
|
|
83
|
+
2.0.1
|
data/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# QQQ
|
|
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/qqq`. 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
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'qqq'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
$ bundle
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
|
|
21
|
+
$ gem install qqq
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
TODO: Write usage instructions here
|
|
26
|
+
|
|
27
|
+
## Development
|
|
28
|
+
|
|
29
|
+
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.
|
|
30
|
+
|
|
31
|
+
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).
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jskulski/qqq. 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
|
+
|
|
37
|
+
## Code of Conduct
|
|
38
|
+
|
|
39
|
+
Everyone interacting in the QQQ project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jskulski/qqq/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 "qqq"
|
|
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/exe/qqq
ADDED
data/lib/app.rb
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
require 'rubygems'
|
|
2
|
+
require 'sinatra'
|
|
3
|
+
require 'active_record'
|
|
4
|
+
|
|
5
|
+
def init_db
|
|
6
|
+
puts 'init_db'
|
|
7
|
+
ActiveRecord::Base.establish_connection(
|
|
8
|
+
:adapter => "mysql2",
|
|
9
|
+
:host => "localhost",
|
|
10
|
+
:username => "root",
|
|
11
|
+
:password => "",
|
|
12
|
+
:database => "qqq"
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def create_db
|
|
17
|
+
ActiveRecord::Migration.create_table :messages do |t|
|
|
18
|
+
t.string :uuid
|
|
19
|
+
t.string :message
|
|
20
|
+
t.datetime :recorded_at
|
|
21
|
+
t.datetime :created_at
|
|
22
|
+
|
|
23
|
+
t.index :uuid
|
|
24
|
+
t.index :message
|
|
25
|
+
t.index :recorded_at
|
|
26
|
+
t.index :created_at
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def destroy_db
|
|
31
|
+
ActiveRecord::Migration.drop_table :messages
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
init_db
|
|
35
|
+
destroy_db
|
|
36
|
+
create_db
|
|
37
|
+
|
|
38
|
+
class Message < ActiveRecord::Base
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
class App < Sinatra::Application
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
get '/' do
|
|
45
|
+
messages = Message.all.order(id: :desc)
|
|
46
|
+
return messages.map { |m| "#{m.message}<hr>"}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
post'/message' do
|
|
50
|
+
puts "Server received message"
|
|
51
|
+
Message.create(message: params['message'])
|
|
52
|
+
puts Message.count
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
|
data/lib/qqq.rb
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
require 'redis'
|
|
2
|
+
require 'json'
|
|
3
|
+
|
|
4
|
+
# Lib
|
|
5
|
+
require 'qqq/api'
|
|
6
|
+
require 'qqq/cli'
|
|
7
|
+
require 'qqq/keys'
|
|
8
|
+
require 'qqq/version'
|
|
9
|
+
|
|
10
|
+
require 'uuidtools'
|
|
11
|
+
|
|
12
|
+
module QQQ
|
|
13
|
+
class Error < StandardError; end
|
|
14
|
+
|
|
15
|
+
# message = 'hi'
|
|
16
|
+
def self.qqq(message)
|
|
17
|
+
publish(message)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.publish(message)
|
|
21
|
+
@redis = Redis.new
|
|
22
|
+
|
|
23
|
+
uuid = UUIDTools::UUID.random_create()
|
|
24
|
+
timestamp = Time.now
|
|
25
|
+
|
|
26
|
+
message_for_humans = "[#{uuid}] [#{timestamp}] #{message}"
|
|
27
|
+
@redis.publish(Keys::MESSAGES_CHANNEL_KEY, message_for_humans.to_json)
|
|
28
|
+
|
|
29
|
+
payload = {message: message, uuid: uuid, recorded_at: timestamp}
|
|
30
|
+
@redis.publish(Keys::PAYLOAD_CHANNEL_KEY, payload.to_json)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def self.subscribe &block
|
|
34
|
+
@redis = Redis.new
|
|
35
|
+
@redis.subscribe Keys::MESSAGES_CHANNEL_KEY do |on|
|
|
36
|
+
puts "Connected..."
|
|
37
|
+
|
|
38
|
+
on.message do |channel, msg|
|
|
39
|
+
block.call(msg)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def self.subscribe_payload &block
|
|
45
|
+
@redis = Redis.new
|
|
46
|
+
@redis.subscribe Keys::PAYLOAD_CHANNEL_KEY do |on|
|
|
47
|
+
puts "Connected..."
|
|
48
|
+
|
|
49
|
+
on.message do |channel, payload_json_string|
|
|
50
|
+
payload = JSON.parse payload_json_string
|
|
51
|
+
block.call(payload)
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
data/lib/qqq/api.rb
ADDED
data/lib/qqq/cli.rb
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
require 'thor'
|
|
2
|
+
require 'json'
|
|
3
|
+
|
|
4
|
+
module QQQ
|
|
5
|
+
class CLI < Thor
|
|
6
|
+
default_task :tail
|
|
7
|
+
|
|
8
|
+
desc :tail, "Tails the qqq log"
|
|
9
|
+
def tail
|
|
10
|
+
puts "hi"
|
|
11
|
+
QQQ.subscribe do |msg|
|
|
12
|
+
puts msg
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
desc :payload, "For now- separate tail"
|
|
17
|
+
def payload
|
|
18
|
+
QQQ.subscribe_payload do |payload|
|
|
19
|
+
puts payload.to_s
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
desc :mark, "Marks the log"
|
|
24
|
+
def mark
|
|
25
|
+
QQQ.publish("MARK: --MARK--")
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
desc "echo [messages]", "Simple echo"
|
|
29
|
+
def echo(*messages)
|
|
30
|
+
QQQ.publish("ECHO: #{messages.join(" ")}")
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
desc :send, "Sends message to a remote server"
|
|
34
|
+
def send
|
|
35
|
+
QQQ.subscribe do |msg|
|
|
36
|
+
puts "Remotely publishing: #{msg}"
|
|
37
|
+
API.publish(msg)
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# desc :server, "Starts server to receive message"
|
|
42
|
+
# def server
|
|
43
|
+
# Sinatra....how?
|
|
44
|
+
# end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
data/lib/qqq/event.rb
ADDED
data/lib/qqq/keys.rb
ADDED
data/lib/qqq/version.rb
ADDED
data/qqq.gemspec
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'qqq/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = 'qqq'
|
|
8
|
+
spec.version = QQQ::VERSION
|
|
9
|
+
spec.authors = ['Jon Skulski']
|
|
10
|
+
spec.email = ['jskulski@gmail.com']
|
|
11
|
+
|
|
12
|
+
spec.summary = %q{Print debugging for professionals}
|
|
13
|
+
spec.description = %q{Print debugging for professionals}
|
|
14
|
+
spec.homepage = 'https://www.github.com/jskulski/qqq'
|
|
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'] = "TODO: Set to 'http://mygemserver.com'"
|
|
20
|
+
# spec.metadata['homepage_uri'] = spec.homepage
|
|
21
|
+
# spec.metadata['source_code_uri'] = 'https://www.github.com/jskulski/qqq'
|
|
22
|
+
# spec.metadata['changelog_uri'] = 'https://www.github.com/jskulski/qqq/CHANGELOG.md'
|
|
23
|
+
# else
|
|
24
|
+
# raise 'RubyGems 2.0 or newer is required to protect against ' \
|
|
25
|
+
# 'public gem pushes.'
|
|
26
|
+
# end
|
|
27
|
+
|
|
28
|
+
# Specify which files should be added to the gem when it is released.
|
|
29
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
30
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
31
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
32
|
+
end
|
|
33
|
+
spec.bindir = 'exe'
|
|
34
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
35
|
+
spec.require_paths = ['lib']
|
|
36
|
+
|
|
37
|
+
spec.add_dependency 'redis'
|
|
38
|
+
spec.add_dependency 'json'
|
|
39
|
+
|
|
40
|
+
spec.add_dependency 'thor'
|
|
41
|
+
spec.add_dependency 'faraday'
|
|
42
|
+
spec.add_dependency 'sinatra'
|
|
43
|
+
spec.add_dependency 'activerecord'
|
|
44
|
+
spec.add_dependency 'mysql2'
|
|
45
|
+
spec.add_dependency 'uuidtools'
|
|
46
|
+
|
|
47
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
|
48
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
|
49
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
50
|
+
spec.add_development_dependency 'fakeredis'
|
|
51
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: qqq
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Jon Skulski
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2019-05-24 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: redis
|
|
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: json
|
|
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: thor
|
|
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: faraday
|
|
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: sinatra
|
|
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: activerecord
|
|
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: mysql2
|
|
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
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: uuidtools
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :runtime
|
|
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: bundler
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - "~>"
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '2.0'
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - "~>"
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '2.0'
|
|
139
|
+
- !ruby/object:Gem::Dependency
|
|
140
|
+
name: rake
|
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
|
142
|
+
requirements:
|
|
143
|
+
- - "~>"
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: '10.0'
|
|
146
|
+
type: :development
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - "~>"
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: '10.0'
|
|
153
|
+
- !ruby/object:Gem::Dependency
|
|
154
|
+
name: rspec
|
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
|
156
|
+
requirements:
|
|
157
|
+
- - "~>"
|
|
158
|
+
- !ruby/object:Gem::Version
|
|
159
|
+
version: '3.0'
|
|
160
|
+
type: :development
|
|
161
|
+
prerelease: false
|
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
+
requirements:
|
|
164
|
+
- - "~>"
|
|
165
|
+
- !ruby/object:Gem::Version
|
|
166
|
+
version: '3.0'
|
|
167
|
+
- !ruby/object:Gem::Dependency
|
|
168
|
+
name: fakeredis
|
|
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
|
+
description: Print debugging for professionals
|
|
182
|
+
email:
|
|
183
|
+
- jskulski@gmail.com
|
|
184
|
+
executables:
|
|
185
|
+
- qqq
|
|
186
|
+
extensions: []
|
|
187
|
+
extra_rdoc_files: []
|
|
188
|
+
files:
|
|
189
|
+
- ".gitignore"
|
|
190
|
+
- ".rspec"
|
|
191
|
+
- ".ruby-version"
|
|
192
|
+
- ".travis.yml"
|
|
193
|
+
- CHANGELOG.org
|
|
194
|
+
- CODE_OF_CONDUCT.md
|
|
195
|
+
- Gemfile
|
|
196
|
+
- Gemfile.lock
|
|
197
|
+
- README.md
|
|
198
|
+
- Rakefile
|
|
199
|
+
- bin/console
|
|
200
|
+
- bin/setup
|
|
201
|
+
- exe/qqq
|
|
202
|
+
- lib/app.rb
|
|
203
|
+
- lib/qqq.rb
|
|
204
|
+
- lib/qqq/api.rb
|
|
205
|
+
- lib/qqq/cli.rb
|
|
206
|
+
- lib/qqq/event.rb
|
|
207
|
+
- lib/qqq/keys.rb
|
|
208
|
+
- lib/qqq/version.rb
|
|
209
|
+
- qqq.gemspec
|
|
210
|
+
homepage: https://www.github.com/jskulski/qqq
|
|
211
|
+
licenses: []
|
|
212
|
+
metadata: {}
|
|
213
|
+
post_install_message:
|
|
214
|
+
rdoc_options: []
|
|
215
|
+
require_paths:
|
|
216
|
+
- lib
|
|
217
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
218
|
+
requirements:
|
|
219
|
+
- - ">="
|
|
220
|
+
- !ruby/object:Gem::Version
|
|
221
|
+
version: '0'
|
|
222
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
|
+
requirements:
|
|
224
|
+
- - ">="
|
|
225
|
+
- !ruby/object:Gem::Version
|
|
226
|
+
version: '0'
|
|
227
|
+
requirements: []
|
|
228
|
+
rubygems_version: 3.0.1
|
|
229
|
+
signing_key:
|
|
230
|
+
specification_version: 4
|
|
231
|
+
summary: Print debugging for professionals
|
|
232
|
+
test_files: []
|