blakey 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/.rspec +1 -0
- data/.travis.yml +8 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +58 -0
- data/README.md +86 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/blakey.gemspec +30 -0
- data/doc/repositories/Ruby.md +38 -0
- data/doc/sources/GitHub.md +40 -0
- data/lib/blakey.rb +12 -0
- data/lib/blakey/repository/base.rb +24 -0
- data/lib/blakey/repository/ruby.rb +35 -0
- data/lib/blakey/repository/ruby/gemfile_lock_parser.rb +36 -0
- data/lib/blakey/repository/ruby/ruby_version_fetcher.rb +25 -0
- data/lib/blakey/source/base.rb +15 -0
- data/lib/blakey/source/errors.rb +8 -0
- data/lib/blakey/source/github.rb +46 -0
- data/lib/blakey/version.rb +3 -0
- data/license.txt +21 -0
- metadata +96 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e30381a630c4a9e625898e713cd0c04ba77640b59483947b3e7ec1608037d8a4
|
4
|
+
data.tar.gz: 480f0c13b26028d55cc6fb255f560d7e3707e6b24055be8fb1575d1dd0a0d579
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 39d5b9afa0630e4a659936edba8e4b8d2bbb644566cfc5b11062975fc65000b257e00f9c07994d424c24cdbc96a5f23842953674465d19e6f60217d944ffa950
|
7
|
+
data.tar.gz: f539abc194d85b1402de7dac82f7b5a73935cd1ca769b63c8f10390a43a3088c22f5dd7caf954261495ae179954b66de47a1e3347a8f0ab7fd8e9ead78a2745e
|
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--require spec_helper
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
blakey (0.1.0)
|
5
|
+
octokit
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
addressable (2.7.0)
|
11
|
+
public_suffix (>= 2.0.2, < 5.0)
|
12
|
+
crack (0.4.4)
|
13
|
+
diff-lcs (1.4.4)
|
14
|
+
faraday (1.1.0)
|
15
|
+
multipart-post (>= 1.2, < 3)
|
16
|
+
ruby2_keywords
|
17
|
+
hashdiff (1.0.1)
|
18
|
+
multipart-post (2.1.1)
|
19
|
+
octokit (4.19.0)
|
20
|
+
faraday (>= 0.9)
|
21
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
22
|
+
public_suffix (4.0.6)
|
23
|
+
rake (12.3.3)
|
24
|
+
rspec (3.10.0)
|
25
|
+
rspec-core (~> 3.10.0)
|
26
|
+
rspec-expectations (~> 3.10.0)
|
27
|
+
rspec-mocks (~> 3.10.0)
|
28
|
+
rspec-core (3.10.0)
|
29
|
+
rspec-support (~> 3.10.0)
|
30
|
+
rspec-expectations (3.10.0)
|
31
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
32
|
+
rspec-support (~> 3.10.0)
|
33
|
+
rspec-mocks (3.10.0)
|
34
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
+
rspec-support (~> 3.10.0)
|
36
|
+
rspec-support (3.10.0)
|
37
|
+
ruby2_keywords (0.0.2)
|
38
|
+
sawyer (0.8.2)
|
39
|
+
addressable (>= 2.3.5)
|
40
|
+
faraday (> 0.8, < 2.0)
|
41
|
+
vcr (6.0.0)
|
42
|
+
webmock (3.10.0)
|
43
|
+
addressable (>= 2.3.6)
|
44
|
+
crack (>= 0.3.2)
|
45
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
46
|
+
|
47
|
+
PLATFORMS
|
48
|
+
ruby
|
49
|
+
|
50
|
+
DEPENDENCIES
|
51
|
+
blakey!
|
52
|
+
rake (~> 12.0)
|
53
|
+
rspec
|
54
|
+
vcr
|
55
|
+
webmock
|
56
|
+
|
57
|
+
BUNDLED WITH
|
58
|
+
2.1.4
|
data/README.md
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
# Blakey
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/calvinhughes/blakey.svg?branch=main)](https://travis-ci.org/calvinhughes/blakey)
|
4
|
+
|
5
|
+
Blakey is a Ruby gem built to take the hassle out of extracting useful information from your projects. It allows you to easily plug in sources of information about your project, which can then be used as a common data-source for reporting purposes.
|
6
|
+
|
7
|
+
Easily find out information like..
|
8
|
+
|
9
|
+
- What language versions are used?
|
10
|
+
- Which dependencies do I have and what are their versions?
|
11
|
+
- What is the state of the remote repository? How many issues are open?
|
12
|
+
- Are GitHub vulnerability alerts enabled for the project's GitHub repository?
|
13
|
+
|
14
|
+
Blakey is built to be extendable out of the box, meaning you can easily add your own custom sources and repository types if they are not supported already.
|
15
|
+
|
16
|
+
## Understanding Blakey
|
17
|
+
Blakey consists of two main parts:
|
18
|
+
|
19
|
+
#### Source
|
20
|
+
Where the base data and any files used for inspecting are retrieved from. For example: GitHub, GitLab, manual git repository or local file systems.
|
21
|
+
|
22
|
+
Supported sources:
|
23
|
+
|
24
|
+
- [GitHub](/doc/sources/GitHub.md)
|
25
|
+
|
26
|
+
#### Repository
|
27
|
+
The repository/project that is being inspected. Repositories must be of a particular language type (for example: Ruby, JavaScript), and must take a source. This repository then has the specific information related to the repository type itself, such as the specific language versions in use or dependencies that are loaded.
|
28
|
+
|
29
|
+
Supported repository types:
|
30
|
+
|
31
|
+
- [Ruby](/doc/repositories/Ruby.md)
|
32
|
+
|
33
|
+
|
34
|
+
## Installation
|
35
|
+
|
36
|
+
Add this line to your application's Gemfile:
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
gem 'blakey'
|
40
|
+
```
|
41
|
+
|
42
|
+
And then execute:
|
43
|
+
|
44
|
+
$ bundle install
|
45
|
+
|
46
|
+
Or install it yourself as:
|
47
|
+
|
48
|
+
$ gem install blakey
|
49
|
+
|
50
|
+
## Usage
|
51
|
+
To get started, build a source object:
|
52
|
+
```ruby
|
53
|
+
# Add a GitHub personal access token for the access_token value
|
54
|
+
# This can also be set via BLAKEY_SOURCE_GITHUB_ACCESS_TOKEN environment variable
|
55
|
+
|
56
|
+
github_source = Blakey::Source::Github.new(access_token: 'token', repo_path: 'calvinhughes/blakey')
|
57
|
+
```
|
58
|
+
|
59
|
+
Then build a repository object (for example Ruby):
|
60
|
+
```ruby
|
61
|
+
repository = Blakey::Repository::Ruby.new(source)
|
62
|
+
```
|
63
|
+
|
64
|
+
You can then run any of the supported methods on the repository or the source. See the following docs for what repositories and sources are supported and their examples:
|
65
|
+
|
66
|
+
- [Sources](/doc/sources)
|
67
|
+
- [Repositories](/doc/repositories)
|
68
|
+
|
69
|
+
|
70
|
+
## Development
|
71
|
+
|
72
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
73
|
+
|
74
|
+
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).
|
75
|
+
|
76
|
+
Some sources using remote APIs in the development environment may require authentication. You can specify credentials for these using the following environment variables:
|
77
|
+
|
78
|
+
| Source | Environment variable | Description |
|
79
|
+
|--------|------------------------------------------|-------------|
|
80
|
+
| GitHub | `BLAKEY_TEST_SOURCE_GITHUB_ACCESS_TOKEN` | The test personal access token from GitHub used for requests in the test environment. Default value: `fake_github_access_token` |
|
81
|
+
|
82
|
+
|
83
|
+
## Contributing
|
84
|
+
|
85
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/calvinhughes/blakey.
|
86
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "blakey"
|
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/blakey.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require_relative 'lib/blakey/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "blakey"
|
5
|
+
spec.version = Blakey::VERSION
|
6
|
+
spec.authors = ["Calvin Hughes"]
|
7
|
+
spec.email = ["calvin@veeqo.com"]
|
8
|
+
|
9
|
+
spec.summary = "Blakey makes extracting basic statistics from your projects much easier"
|
10
|
+
spec.description = "Blakey is a Ruby gem built to make extract basic statistics and information from your repositories/projects much easier"
|
11
|
+
spec.homepage = "https://github.com/calvinhughes/blakey"
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
13
|
+
|
14
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
15
|
+
spec.metadata["source_code_uri"] = "https://github.com/calvinhughes/blakey"
|
16
|
+
spec.metadata["changelog_uri"] = "https://github.com/calvinhughes/blakey/CHANGELOG.md"
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.bindir = "exe"
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ["lib"]
|
26
|
+
|
27
|
+
spec.add_dependency 'octokit'
|
28
|
+
|
29
|
+
spec.add_development_dependency 'rspec'
|
30
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Ruby
|
2
|
+
A repository type that is used for Ruby programs and applications. This repository allows you to fetch information such as the Ruby version, the gems in use along with their versions.
|
3
|
+
|
4
|
+
## Configuration options
|
5
|
+
|
6
|
+
|Configuration option|Description |
|
7
|
+
|----------------------|-------------|
|
8
|
+
|source|The source for the data. See [Sources](/doc/sources) for more information|
|
9
|
+
|gemfile_lock_path|Custom path to the Gemfile.lock in the source. Default: `Gemfile.lock`|
|
10
|
+
|
11
|
+
## Example usage
|
12
|
+
|
13
|
+
#### Build repository object
|
14
|
+
```ruby
|
15
|
+
example_source = Blakey::Source::GitHub.new(access_token: 'personal_access_token', repo_path: 'calvinhughes/blakey')
|
16
|
+
|
17
|
+
repository = Blakey::Repository::Ruby.new(source, gemfile_lock_path: 'custom_gemfile_lock_path.lock')
|
18
|
+
```
|
19
|
+
|
20
|
+
#### Retrieve Ruby version
|
21
|
+
Uses `Gemfile.lock` as the source of the Ruby version, falling back to `.ruby-version`
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
repository.ruby_version
|
25
|
+
# => "2.7.1"
|
26
|
+
```
|
27
|
+
|
28
|
+
#### Retrieve list of gem dependencies and their version
|
29
|
+
```ruby
|
30
|
+
repository.gem_dependencies
|
31
|
+
# => {"rails" => "6.0.1", "blakey" => "0.1.0"}
|
32
|
+
```
|
33
|
+
|
34
|
+
#### Retrieve version for a specific gem dependency
|
35
|
+
```ruby
|
36
|
+
repository.gem_dependency_version('rails')
|
37
|
+
# => "6.0.1"
|
38
|
+
```
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# GitHub
|
2
|
+
Fetches files and repository statistics via the GitHub API using the [`octokit.rb`](https://github.com/octokit/octokit.rb) library.
|
3
|
+
|
4
|
+
## Configuration options
|
5
|
+
|
6
|
+
|Configuration option|Description|
|
7
|
+
|----------------------|-------------|
|
8
|
+
|access_token|Personal access token from your GitHub account that can be generated [here](https://github.com/settings/tokens). Can also be specified by setting the `BLAKEY_SOURCE_GITHUB_ACCESS_TOKEN` environment variable|
|
9
|
+
|repo_path|The full path to the repository on GitHub that you want to query. Example: `calvinhughes/blakey`|
|
10
|
+
|
11
|
+
## Example usage
|
12
|
+
|
13
|
+
#### Build source object
|
14
|
+
```ruby
|
15
|
+
github_source = Blakey::Source::GitHub.new(access_token: 'personal_access_token', repo_path: 'calvinhughes/blakey')
|
16
|
+
```
|
17
|
+
|
18
|
+
#### Read a file from the repository
|
19
|
+
This fetches a file via the GitHub API and returns the contents. In the case of a non-existant file, `Blakey::Source::FileNotFound` will be raised.
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
github_source.read_file('doc/some_doc.md')
|
23
|
+
# => "a file!"
|
24
|
+
```
|
25
|
+
|
26
|
+
#### Fetch repository overview
|
27
|
+
Returns a hash with useful repository data from the GitHub API.
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
github_source.repository_overview
|
31
|
+
# => {
|
32
|
+
# :open_issues_count=>143, # count of open issues
|
33
|
+
# :language=>"Ruby", # configured language of the repo
|
34
|
+
# :visibility=>"private", # visibility of the repo
|
35
|
+
# :url=>"https://github.com/calvinhughes/blakey", # url of the repo
|
36
|
+
# :updated_at=>2020-11-20 13:43:54 UTC, # when it was last updated
|
37
|
+
# :created_at=>2012-03-16 09:14:34 UTC, # when it was created
|
38
|
+
# :last_pushed_at=>2020-11-20 14:01:40 UTC, # when it was last pushed to
|
39
|
+
# }
|
40
|
+
```
|
data/lib/blakey.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'blakey/repository/base'
|
2
|
+
require 'blakey/repository/ruby'
|
3
|
+
require 'blakey/repository/ruby/gemfile_lock_parser'
|
4
|
+
require 'blakey/repository/ruby/ruby_version_fetcher'
|
5
|
+
|
6
|
+
require 'blakey/source/errors'
|
7
|
+
|
8
|
+
require 'blakey/source/base'
|
9
|
+
require 'blakey/source/github'
|
10
|
+
|
11
|
+
module Blakey
|
12
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Blakey
|
2
|
+
module Repository
|
3
|
+
class Base
|
4
|
+
class SourceRequired < StandardError; end
|
5
|
+
|
6
|
+
def initialize(source = nil, options = {})
|
7
|
+
@source = source
|
8
|
+
@options = options
|
9
|
+
|
10
|
+
raise SourceRequired, "Please pass a valid source" unless source
|
11
|
+
end
|
12
|
+
|
13
|
+
attr_reader :options
|
14
|
+
|
15
|
+
def source_overview
|
16
|
+
source.repository_overview
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
attr_reader :source
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Blakey
|
2
|
+
module Repository
|
3
|
+
class Ruby < Base
|
4
|
+
def gem_dependency_version(gem_name)
|
5
|
+
gem_dependencies.fetch(gem_name, nil)
|
6
|
+
end
|
7
|
+
|
8
|
+
def gem_dependencies
|
9
|
+
gemfile_lock_parser.dependencies
|
10
|
+
end
|
11
|
+
|
12
|
+
def ruby_version
|
13
|
+
ruby_version_fetcher.version
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
attr_reader :source
|
19
|
+
|
20
|
+
def ruby_version_fetcher
|
21
|
+
@ruby_version_fetcher ||= RubyVersionFetcher.new(
|
22
|
+
gemfile_lock_parser: gemfile_lock_parser,
|
23
|
+
source: source
|
24
|
+
)
|
25
|
+
end
|
26
|
+
|
27
|
+
def gemfile_lock_parser
|
28
|
+
@gemfile_lock_parser ||= GemfileLockParser.new(
|
29
|
+
gemfile_lock_path: options[:gemfile_lock_path],
|
30
|
+
source: source
|
31
|
+
)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
|
3
|
+
module Blakey
|
4
|
+
module Repository
|
5
|
+
class Ruby::GemfileLockParser
|
6
|
+
DEFAULT_GEMFILE_LOCK_PATH = 'Gemfile.lock'
|
7
|
+
|
8
|
+
def initialize(gemfile_lock_path: nil, source:)
|
9
|
+
@gemfile_lock_path = (gemfile_lock_path || DEFAULT_GEMFILE_LOCK_PATH)
|
10
|
+
@source = source
|
11
|
+
end
|
12
|
+
|
13
|
+
attr_reader :gemfile_lock_path
|
14
|
+
|
15
|
+
def dependencies
|
16
|
+
parsed_gemfile_lock.specs.map { |spec| [spec.name, spec.version.to_s] }.to_h
|
17
|
+
end
|
18
|
+
|
19
|
+
def ruby_version
|
20
|
+
parsed_gemfile_lock.ruby_version
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
attr_reader :source
|
26
|
+
|
27
|
+
def parsed_gemfile_lock
|
28
|
+
@parsed_gemfile_lock ||= Bundler::LockfileParser.new(gemfile_lock_contents)
|
29
|
+
end
|
30
|
+
|
31
|
+
def gemfile_lock_contents
|
32
|
+
source.read_file(gemfile_lock_path)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
|
3
|
+
module Blakey
|
4
|
+
module Repository
|
5
|
+
class Ruby::RubyVersionFetcher
|
6
|
+
|
7
|
+
def initialize(gemfile_lock_parser:, source:)
|
8
|
+
@gemfile_lock_parser = gemfile_lock_parser
|
9
|
+
@source = source
|
10
|
+
end
|
11
|
+
|
12
|
+
def version
|
13
|
+
gemfile_lock_parser.ruby_version || fetch_version_from_ruby_version_file
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
attr_reader :gemfile_lock_parser, :source
|
19
|
+
|
20
|
+
def fetch_version_from_ruby_version_file
|
21
|
+
source.read_file('.ruby-version')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'base64'
|
2
|
+
require 'octokit'
|
3
|
+
|
4
|
+
module Blakey
|
5
|
+
module Source
|
6
|
+
class Github < Base
|
7
|
+
def initialize(access_token: nil, repo_path: nil)
|
8
|
+
@access_token = (access_token || ENV['BLAKEY_SOURCE_GITHUB_ACCESS_TOKEN'])
|
9
|
+
@octokit_client ||= ::Octokit::Client.new(access_token: @access_token)
|
10
|
+
@repo_path = repo_path
|
11
|
+
end
|
12
|
+
|
13
|
+
attr_reader :repo_path
|
14
|
+
|
15
|
+
def read_file(file_path)
|
16
|
+
begin
|
17
|
+
encoded_file_content = octokit_client.contents(repo_path, path: file_path).content
|
18
|
+
rescue Octokit::NotFound => e
|
19
|
+
raise FileNotFound.new(e)
|
20
|
+
end
|
21
|
+
|
22
|
+
Base64.decode64(encoded_file_content).chomp
|
23
|
+
end
|
24
|
+
|
25
|
+
def repository_overview
|
26
|
+
{
|
27
|
+
open_issues_count: repository.open_issues_count,
|
28
|
+
language: repository.language,
|
29
|
+
visibility: repository.private? ? 'private' : 'public',
|
30
|
+
url: repository.html_url,
|
31
|
+
updated_at: repository.updated_at,
|
32
|
+
created_at: repository.created_at,
|
33
|
+
last_pushed_at: repository.pushed_at
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
private
|
38
|
+
|
39
|
+
def repository
|
40
|
+
@repository ||= octokit_client.repo(repo_path)
|
41
|
+
end
|
42
|
+
|
43
|
+
attr_reader :octokit_client
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/license.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Calvin Hughes
|
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.
|
metadata
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: blakey
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Calvin Hughes
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-11-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: octokit
|
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: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Blakey is a Ruby gem built to make extract basic statistics and information
|
42
|
+
from your repositories/projects much easier
|
43
|
+
email:
|
44
|
+
- calvin@veeqo.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- ".gitignore"
|
50
|
+
- ".rspec"
|
51
|
+
- ".travis.yml"
|
52
|
+
- Gemfile
|
53
|
+
- Gemfile.lock
|
54
|
+
- README.md
|
55
|
+
- Rakefile
|
56
|
+
- bin/console
|
57
|
+
- bin/setup
|
58
|
+
- blakey.gemspec
|
59
|
+
- doc/repositories/Ruby.md
|
60
|
+
- doc/sources/GitHub.md
|
61
|
+
- lib/blakey.rb
|
62
|
+
- lib/blakey/repository/base.rb
|
63
|
+
- lib/blakey/repository/ruby.rb
|
64
|
+
- lib/blakey/repository/ruby/gemfile_lock_parser.rb
|
65
|
+
- lib/blakey/repository/ruby/ruby_version_fetcher.rb
|
66
|
+
- lib/blakey/source/base.rb
|
67
|
+
- lib/blakey/source/errors.rb
|
68
|
+
- lib/blakey/source/github.rb
|
69
|
+
- lib/blakey/version.rb
|
70
|
+
- license.txt
|
71
|
+
homepage: https://github.com/calvinhughes/blakey
|
72
|
+
licenses: []
|
73
|
+
metadata:
|
74
|
+
homepage_uri: https://github.com/calvinhughes/blakey
|
75
|
+
source_code_uri: https://github.com/calvinhughes/blakey
|
76
|
+
changelog_uri: https://github.com/calvinhughes/blakey/CHANGELOG.md
|
77
|
+
post_install_message:
|
78
|
+
rdoc_options: []
|
79
|
+
require_paths:
|
80
|
+
- lib
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 2.3.0
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
requirements: []
|
92
|
+
rubygems_version: 3.0.3
|
93
|
+
signing_key:
|
94
|
+
specification_version: 4
|
95
|
+
summary: Blakey makes extracting basic statistics from your projects much easier
|
96
|
+
test_files: []
|