noclist 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 +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +62 -0
- data/LICENSE.txt +21 -0
- data/README.md +28 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/noclist +2 -0
- data/homework.md +77 -0
- data/lib/noclist/badsec.rb +62 -0
- data/lib/noclist/cli.rb +8 -0
- data/lib/noclist/version.rb +3 -0
- data/lib/noclist.rb +2 -0
- data/noclist.gemspec +47 -0
- metadata +179 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: d3019687793e737569a76be4f7fa4473db1199d0
|
|
4
|
+
data.tar.gz: 399e5a84038e2b8f66d0c79ebaf20e6ded9b6f6c
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 29d7d87f0ec0508bcd3ba1f4f8a57286f1d5a2969f4ac858762f0e7c02f4adedab421e7ec974877de802d49aeef688488c70038eee795d37356784de7df50783
|
|
7
|
+
data.tar.gz: 31b97ddd7458e1a66c0228b7ce4fcc303adc6d36937abb6299a0b0a087378adaed00921b3932671077906315e0f34785a4e91526260a44a3037c471b364350eb
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
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 TODO: Write your email address. 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,62 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
noclist (0.1.1)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
activesupport (5.2.3)
|
|
10
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
11
|
+
i18n (>= 0.7, < 2)
|
|
12
|
+
minitest (~> 5.1)
|
|
13
|
+
tzinfo (~> 1.1)
|
|
14
|
+
artii (2.1.2)
|
|
15
|
+
byebug (11.0.1)
|
|
16
|
+
concurrent-ruby (1.1.5)
|
|
17
|
+
diff-lcs (1.3)
|
|
18
|
+
httparty (0.16.4)
|
|
19
|
+
mime-types (~> 3.0)
|
|
20
|
+
multi_xml (>= 0.5.2)
|
|
21
|
+
i18n (1.6.0)
|
|
22
|
+
concurrent-ruby (~> 1.0)
|
|
23
|
+
mime-types (3.2.2)
|
|
24
|
+
mime-types-data (~> 3.2015)
|
|
25
|
+
mime-types-data (3.2018.0812)
|
|
26
|
+
minitest (5.11.3)
|
|
27
|
+
multi_xml (0.6.0)
|
|
28
|
+
rake (10.5.0)
|
|
29
|
+
rspec (3.8.0)
|
|
30
|
+
rspec-core (~> 3.8.0)
|
|
31
|
+
rspec-expectations (~> 3.8.0)
|
|
32
|
+
rspec-mocks (~> 3.8.0)
|
|
33
|
+
rspec-core (3.8.0)
|
|
34
|
+
rspec-support (~> 3.8.0)
|
|
35
|
+
rspec-expectations (3.8.2)
|
|
36
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
37
|
+
rspec-support (~> 3.8.0)
|
|
38
|
+
rspec-mocks (3.8.0)
|
|
39
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
40
|
+
rspec-support (~> 3.8.0)
|
|
41
|
+
rspec-support (3.8.0)
|
|
42
|
+
thor (0.20.0)
|
|
43
|
+
thread_safe (0.3.6)
|
|
44
|
+
tzinfo (1.2.5)
|
|
45
|
+
thread_safe (~> 0.1)
|
|
46
|
+
|
|
47
|
+
PLATFORMS
|
|
48
|
+
ruby
|
|
49
|
+
|
|
50
|
+
DEPENDENCIES
|
|
51
|
+
activesupport
|
|
52
|
+
artii
|
|
53
|
+
bundler (~> 1.17)
|
|
54
|
+
byebug
|
|
55
|
+
httparty
|
|
56
|
+
noclist!
|
|
57
|
+
rake (~> 10.0)
|
|
58
|
+
rspec (~> 3.0)
|
|
59
|
+
thor (= 0.20.0)
|
|
60
|
+
|
|
61
|
+
BUNDLED WITH
|
|
62
|
+
1.17.1
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 TODO: Write your name
|
|
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,28 @@
|
|
|
1
|
+
# Noclist 🌌
|
|
2
|
+
|
|
3
|
+
Put your Ruby code in the file `lib/noclist`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Assuming your machine is set up for the Ruby ecosystem:
|
|
8
|
+
|
|
9
|
+
$ gem install noclist
|
|
10
|
+
$ bin/setup
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
- To run the test-suite, run `rspec spec`
|
|
15
|
+
|
|
16
|
+
## Development
|
|
17
|
+
|
|
18
|
+
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.
|
|
19
|
+
|
|
20
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
|
21
|
+
|
|
22
|
+
## License
|
|
23
|
+
|
|
24
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
25
|
+
|
|
26
|
+
## Code of Conduct
|
|
27
|
+
|
|
28
|
+
Everyone interacting in the Noclist project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [Contributor Covenant](http://contributor-covenant.org). 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.
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "noclist"
|
|
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/noclist
ADDED
data/homework.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
Retrieve the NOC List
|
|
2
|
+
The Bureau of Adversarial Dossiers and Securely Encrypted Code (BADSEC) has asked you to retrieve a list of VIP users.
|
|
3
|
+
|
|
4
|
+
Fortunately, BADSEC provides an API to the agency you've been working with. Unfortunately, it's not the best API in the world.
|
|
5
|
+
|
|
6
|
+
Your job is to write a program that securely and politely asks the BADSEC server for this list of users and prints it to stdout in JSON format.
|
|
7
|
+
|
|
8
|
+
As the server that your application will be hitting is not well written, you should seek to minimize the amount of communication it does. Furthermore, you should write a client that is resilient to errors in the server.
|
|
9
|
+
|
|
10
|
+
We will want to build and run your code from source, so please include the complete instructions for doing so in a COMMENTS file.
|
|
11
|
+
|
|
12
|
+
Output Format
|
|
13
|
+
Your application should output a JSON-formatted list of user ids to stdout:
|
|
14
|
+
|
|
15
|
+
["9757263792576857988", "7789651288773276582", "16283886502782682407", "...etc"]
|
|
16
|
+
Your application should exit with a status code of zero on success, and nonzero on failure.
|
|
17
|
+
|
|
18
|
+
Log as much as you want to stderr, but make sure that stdout includes only the JSON output of your program if there is any; otherwise the results won't parse properly.
|
|
19
|
+
|
|
20
|
+
Running the Server
|
|
21
|
+
Ensure that you have docker installed on your system.
|
|
22
|
+
|
|
23
|
+
The BADSEC server will run on port 8888. You can start it with:
|
|
24
|
+
|
|
25
|
+
$ docker run --rm -p 8888:8888 adhocteam/noclist
|
|
26
|
+
|
|
27
|
+
You should see Listening on http://0.0.0.0:8888.
|
|
28
|
+
|
|
29
|
+
If you have any trouble getting the server running, or any other questions about this homework, use the chat button in the lower right to contact us.
|
|
30
|
+
|
|
31
|
+
Handling Errors
|
|
32
|
+
You may treat a dropped connection or any response code other than 200 as a failure.
|
|
33
|
+
|
|
34
|
+
Keep in mind that both the /auth and /users endpoints may fail.
|
|
35
|
+
|
|
36
|
+
If a call to an endpoint fails, you should retry up to 2 times. If the call fails 3 times in a row, your application should exit with a non-zero status code to indicate failure.
|
|
37
|
+
|
|
38
|
+
Avoid off by one errors! The correct sequence is: try -> fail -> retry -> fail -> retry -> exit if fail
|
|
39
|
+
|
|
40
|
+
The server you have been given is just a demonstration server; it should not throw any errors.
|
|
41
|
+
|
|
42
|
+
The production server your code will run against after you submit it will return non-200 responses and randomly drop connections; your code should be able to handle those errors.
|
|
43
|
+
|
|
44
|
+
Server API
|
|
45
|
+
Authentication
|
|
46
|
+
The BADSEC server requires you to authenticate yourself by signing all requests with a provided auth token.
|
|
47
|
+
|
|
48
|
+
To get the token, the first thing your application should do is call /auth. This endpoint will return a token you can use to generate the checksum for the subsequent user list call.
|
|
49
|
+
|
|
50
|
+
If you have any questions about authenticating, use the chat button in the lower right to contact us.
|
|
51
|
+
|
|
52
|
+
Checksum
|
|
53
|
+
To request the user list, you will need to provide a checksum in the X-Request-Checksum header. To calculate this checksum, you should compute:
|
|
54
|
+
|
|
55
|
+
sha256(<auth_token> + <request path>)
|
|
56
|
+
For example, if you had auth token 12345 and were requesting /users, the checksum would be:
|
|
57
|
+
|
|
58
|
+
sha256("12345/users") = c20acb14a3d3339b9e92daebb173e41379f9f2fad4aa6a6326a696bd90c67419
|
|
59
|
+
and you would include that value as the X-Request-Checksum header in your request.
|
|
60
|
+
|
|
61
|
+
The Endpoints
|
|
62
|
+
GET /auth
|
|
63
|
+
Before making further calls to the server, you must first call /auth to get an authentication token. The token will be valid until the server stops or issues another token.
|
|
64
|
+
|
|
65
|
+
The server will return the authentication token in the Badsec-Authentication-Token HTTP header.
|
|
66
|
+
|
|
67
|
+
Calling /auth will invalidate all previous auth tokens you have acquired, so make sure you use the most recent one.
|
|
68
|
+
|
|
69
|
+
Note that, for unclear reasons, this API call returns a large amount of useless data in the response body. You should ignore this useless data; you only need the data in the header.
|
|
70
|
+
|
|
71
|
+
GET /users
|
|
72
|
+
This endpoint will return a list of 64-bit newline-separated user IDs like this one:
|
|
73
|
+
|
|
74
|
+
9757263792576857988
|
|
75
|
+
7789651288773276582
|
|
76
|
+
1628388650278268240
|
|
77
|
+
Make sure you send the X-Request-Checksum header to the /users endpoint.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
require "active_support/all"
|
|
2
|
+
require "byebug"
|
|
3
|
+
require "HTTParty"
|
|
4
|
+
require 'digest'
|
|
5
|
+
|
|
6
|
+
module Badsec
|
|
7
|
+
class User
|
|
8
|
+
def self.get_auth_token
|
|
9
|
+
begin
|
|
10
|
+
retries ||= 0
|
|
11
|
+
|
|
12
|
+
response = HTTParty.get('http://0.0.0.0:8888/auth')
|
|
13
|
+
|
|
14
|
+
if response.code != 200
|
|
15
|
+
STDERR.puts "Response: #{response.code}, #{response.message}"
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
auth_token = response.headers["badsec-authentication-token"]
|
|
19
|
+
rescue => e
|
|
20
|
+
STDERR.puts "Exception: #{e.message}"
|
|
21
|
+
|
|
22
|
+
if (retries += 1) < 2
|
|
23
|
+
puts "Retrying..."
|
|
24
|
+
retry
|
|
25
|
+
else
|
|
26
|
+
STDERR.puts "Exiting with status code: 1"
|
|
27
|
+
exit
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.calc_checksum(auth_token)
|
|
33
|
+
checksum = Digest::SHA256.hexdigest "#{auth_token}/users"
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def self.get_users(checksum)
|
|
37
|
+
begin
|
|
38
|
+
retries ||= 0
|
|
39
|
+
|
|
40
|
+
users_response = HTTParty.get('http://0.0.0.0:8888/users',
|
|
41
|
+
:headers => { 'X-Request-Checksum' => "#{checksum.upcase}" })
|
|
42
|
+
|
|
43
|
+
if users_response.code != 200
|
|
44
|
+
STDERR.puts "Response: #{users_response.code}, #{users_response.message}"
|
|
45
|
+
else
|
|
46
|
+
print JSON.parse(users_response.body.split.to_json)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
users_response
|
|
50
|
+
rescue => e
|
|
51
|
+
STDERR.puts "Exception: #{e.message}"
|
|
52
|
+
if (retries += 1) < 2
|
|
53
|
+
puts "Retrying..."
|
|
54
|
+
retry
|
|
55
|
+
else
|
|
56
|
+
STDERR.puts "Exiting with status code: 1"
|
|
57
|
+
exit
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
data/lib/noclist/cli.rb
ADDED
data/lib/noclist.rb
ADDED
data/noclist.gemspec
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require "noclist/version"
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "noclist"
|
|
8
|
+
spec.version = Noclist::VERSION
|
|
9
|
+
spec.authors = ["Marceline the Vampire Queen"]
|
|
10
|
+
spec.email = ["example@example.com"]
|
|
11
|
+
|
|
12
|
+
spec.summary = %q{Securely asks the BADSEC server for a list of users}
|
|
13
|
+
spec.description = %q{Securely asks the BADSEC server for a list of users}
|
|
14
|
+
spec.homepage = "https://adventuretime.fandom.com/wiki/Marceline"
|
|
15
|
+
spec.license = "MIT"
|
|
16
|
+
|
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
|
19
|
+
if spec.respond_to?(:metadata)
|
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
21
|
+
|
|
22
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
23
|
+
spec.metadata["source_code_uri"] = "https://adventuretime.fandom.com/wiki/Marceline"
|
|
24
|
+
spec.metadata["changelog_uri"] = "https://adventuretime.fandom.com/wiki/Marceline"
|
|
25
|
+
else
|
|
26
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
|
27
|
+
"public gem pushes."
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Specify which files should be added to the gem when it is released.
|
|
31
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
32
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
33
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
34
|
+
end
|
|
35
|
+
spec.bindir = "exe"
|
|
36
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
37
|
+
spec.require_paths = ["lib"]
|
|
38
|
+
|
|
39
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
|
40
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
41
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
|
42
|
+
spec.add_development_dependency "activesupport"
|
|
43
|
+
spec.add_development_dependency "byebug"
|
|
44
|
+
spec.add_development_dependency "artii"
|
|
45
|
+
spec.add_development_dependency "thor", "0.20.0"
|
|
46
|
+
spec.add_development_dependency "httparty"
|
|
47
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: noclist
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Marceline the Vampire Queen
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2019-04-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.17'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.17'
|
|
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: rspec
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '3.0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '3.0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: activesupport
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :development
|
|
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: byebug
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - ">="
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '0'
|
|
76
|
+
type: :development
|
|
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: artii
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :development
|
|
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: thor
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - '='
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: 0.20.0
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - '='
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: 0.20.0
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: httparty
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :development
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - ">="
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '0'
|
|
125
|
+
description: Securely asks the BADSEC server for a list of users
|
|
126
|
+
email:
|
|
127
|
+
- example@example.com
|
|
128
|
+
executables:
|
|
129
|
+
- noclist
|
|
130
|
+
extensions: []
|
|
131
|
+
extra_rdoc_files: []
|
|
132
|
+
files:
|
|
133
|
+
- ".gitignore"
|
|
134
|
+
- ".rspec"
|
|
135
|
+
- ".travis.yml"
|
|
136
|
+
- CODE_OF_CONDUCT.md
|
|
137
|
+
- Gemfile
|
|
138
|
+
- Gemfile.lock
|
|
139
|
+
- LICENSE.txt
|
|
140
|
+
- README.md
|
|
141
|
+
- Rakefile
|
|
142
|
+
- bin/console
|
|
143
|
+
- bin/setup
|
|
144
|
+
- exe/noclist
|
|
145
|
+
- homework.md
|
|
146
|
+
- lib/noclist.rb
|
|
147
|
+
- lib/noclist/badsec.rb
|
|
148
|
+
- lib/noclist/cli.rb
|
|
149
|
+
- lib/noclist/version.rb
|
|
150
|
+
- noclist.gemspec
|
|
151
|
+
homepage: https://adventuretime.fandom.com/wiki/Marceline
|
|
152
|
+
licenses:
|
|
153
|
+
- MIT
|
|
154
|
+
metadata:
|
|
155
|
+
allowed_push_host: https://rubygems.org
|
|
156
|
+
homepage_uri: https://adventuretime.fandom.com/wiki/Marceline
|
|
157
|
+
source_code_uri: https://adventuretime.fandom.com/wiki/Marceline
|
|
158
|
+
changelog_uri: https://adventuretime.fandom.com/wiki/Marceline
|
|
159
|
+
post_install_message:
|
|
160
|
+
rdoc_options: []
|
|
161
|
+
require_paths:
|
|
162
|
+
- lib
|
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
|
+
requirements:
|
|
165
|
+
- - ">="
|
|
166
|
+
- !ruby/object:Gem::Version
|
|
167
|
+
version: '0'
|
|
168
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
|
+
requirements:
|
|
170
|
+
- - ">="
|
|
171
|
+
- !ruby/object:Gem::Version
|
|
172
|
+
version: '0'
|
|
173
|
+
requirements: []
|
|
174
|
+
rubyforge_project:
|
|
175
|
+
rubygems_version: 2.6.14
|
|
176
|
+
signing_key:
|
|
177
|
+
specification_version: 4
|
|
178
|
+
summary: Securely asks the BADSEC server for a list of users
|
|
179
|
+
test_files: []
|