gist_generator 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/Gemfile +4 -0
- data/Gemfile.lock +58 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/gist_generator.gemspec +38 -0
- data/lib/gist_generator.rb +30 -0
- data/lib/gist_generator/file.rb +51 -0
- data/lib/gist_generator/gist.rb +43 -0
- data/lib/gist_generator/serializers/base.rb +27 -0
- data/lib/gist_generator/serializers/json.rb +24 -0
- data/lib/gist_generator/serializers/pretty.rb +47 -0
- data/lib/gist_generator/version.rb +3 -0
- metadata +150 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9d3e96fa853bc90250fefed6701af0770286d40eeadaf5e07a6312809b5c3cda
|
4
|
+
data.tar.gz: c23243d350442bdeb80939f2bd10423bf222cf6ec416574e966f983200c152fa
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e0ae3b63a69c7913b07d3eeef618ea238d2a57b4ae64905de011aa30d68c8560e756048397d89728d4314943a8accb2a67811e5d75361228a49aee310ada3531
|
7
|
+
data.tar.gz: 897b20e0d6d5e9e7443970cb477e2d598ec0284e0f8b009b4e3bb20c0959f83eb6f029da07caa7bdf2729ec0e88a89b46a256c9513a8b0ef76a448b1be03d5fe
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
gist_generator (0.1.0)
|
5
|
+
faraday (~> 1.0)
|
6
|
+
octokit (~> 4.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
addressable (2.7.0)
|
12
|
+
public_suffix (>= 2.0.2, < 5.0)
|
13
|
+
crack (0.4.3)
|
14
|
+
safe_yaml (~> 1.0.0)
|
15
|
+
diff-lcs (1.4.4)
|
16
|
+
faraday (1.0.1)
|
17
|
+
multipart-post (>= 1.2, < 3)
|
18
|
+
hashdiff (1.0.1)
|
19
|
+
multipart-post (2.1.1)
|
20
|
+
octokit (4.18.0)
|
21
|
+
faraday (>= 0.9)
|
22
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
23
|
+
public_suffix (4.0.5)
|
24
|
+
rake (10.5.0)
|
25
|
+
rspec (3.9.0)
|
26
|
+
rspec-core (~> 3.9.0)
|
27
|
+
rspec-expectations (~> 3.9.0)
|
28
|
+
rspec-mocks (~> 3.9.0)
|
29
|
+
rspec-core (3.9.2)
|
30
|
+
rspec-support (~> 3.9.3)
|
31
|
+
rspec-expectations (3.9.2)
|
32
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
+
rspec-support (~> 3.9.0)
|
34
|
+
rspec-mocks (3.9.1)
|
35
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
36
|
+
rspec-support (~> 3.9.0)
|
37
|
+
rspec-support (3.9.3)
|
38
|
+
safe_yaml (1.0.5)
|
39
|
+
sawyer (0.8.2)
|
40
|
+
addressable (>= 2.3.5)
|
41
|
+
faraday (> 0.8, < 2.0)
|
42
|
+
webmock (3.8.3)
|
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
|
+
bundler (~> 2.0)
|
52
|
+
gist_generator!
|
53
|
+
rake (~> 10.0)
|
54
|
+
rspec (~> 3.0)
|
55
|
+
webmock (~> 3.7)
|
56
|
+
|
57
|
+
BUNDLED WITH
|
58
|
+
2.0.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Santiago Perez Perret
|
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,39 @@
|
|
1
|
+
# GistGenerator
|
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/gist_generator`. 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 'gist_generator'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install gist_generator
|
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/[USERNAME]/gist_generator.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "gist_generator"
|
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
@@ -0,0 +1,38 @@
|
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "gist_generator/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "gist_generator"
|
7
|
+
spec.version = GistGenerator::VERSION
|
8
|
+
spec.authors = ["Santiago Perez Perret"]
|
9
|
+
spec.email = ["perezperret@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = %q{Create gists by specifying commits, files and line numbers.}
|
12
|
+
spec.description = %q{Create gists by specifying commits, files and line numbers.}
|
13
|
+
spec.homepage = "https://github.com/perezperret/gist_generator"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
17
|
+
|
18
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
+
spec.metadata["source_code_uri"] = "https://github.com/perezperret/gist_generator"
|
20
|
+
spec.metadata["changelog_uri"] = "https://github.com/perezperret/gist_generator"
|
21
|
+
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
25
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
end
|
27
|
+
spec.bindir = "exe"
|
28
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
+
spec.require_paths = ["lib"]
|
30
|
+
|
31
|
+
spec.add_dependency "octokit", "~> 4.0"
|
32
|
+
spec.add_dependency "faraday", "~> 1.0"
|
33
|
+
|
34
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
35
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
36
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
37
|
+
spec.add_development_dependency "webmock", "~> 3.7"
|
38
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require "gist_generator/version"
|
2
|
+
require "gist_generator/gist"
|
3
|
+
|
4
|
+
require "gist_generator/serializers/json"
|
5
|
+
require "gist_generator/serializers/pretty"
|
6
|
+
|
7
|
+
module GistGenerator
|
8
|
+
class Error < StandardError; end
|
9
|
+
|
10
|
+
class Generator
|
11
|
+
def self.call(*args)
|
12
|
+
new(*args).call
|
13
|
+
end
|
14
|
+
|
15
|
+
def initialize(config)
|
16
|
+
@repo_path = config.fetch(:repo_path)
|
17
|
+
@gists_params = config.fetch(:gists)
|
18
|
+
end
|
19
|
+
|
20
|
+
def call
|
21
|
+
gists_params.map do |params|
|
22
|
+
Gist.new(params.merge(repo_path: repo_path))
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
attr_reader :gists_params, :repo_path
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'octokit'
|
3
|
+
|
4
|
+
module GistGenerator
|
5
|
+
class File
|
6
|
+
def initialize(repo_path, file_path, options)
|
7
|
+
@repo_path = repo_path
|
8
|
+
@file_path = file_path
|
9
|
+
@options = options
|
10
|
+
end
|
11
|
+
|
12
|
+
def lines
|
13
|
+
@lines ||= Faraday.get(content.download_url).body.lines
|
14
|
+
end
|
15
|
+
|
16
|
+
def number_of_lines
|
17
|
+
lines.length
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
attr_reader :file_path, :repo_path, :options
|
23
|
+
|
24
|
+
def content
|
25
|
+
client.contents repo_path, path: file_path, query: { ref: ref }
|
26
|
+
end
|
27
|
+
|
28
|
+
def ref
|
29
|
+
commit ? commit.sha : 'master'
|
30
|
+
end
|
31
|
+
|
32
|
+
def commit
|
33
|
+
@commit ||=
|
34
|
+
if commit_message_regex
|
35
|
+
commits.find { |c| c.commit.message.match? commit_message_regex }
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def commit_message_regex
|
40
|
+
options[:commit_message_regex]
|
41
|
+
end
|
42
|
+
|
43
|
+
def commits
|
44
|
+
@commits ||= client.commits(repo_path)
|
45
|
+
end
|
46
|
+
|
47
|
+
def client
|
48
|
+
@client ||= Octokit::Client.new
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'gist_generator/file'
|
2
|
+
|
3
|
+
module GistGenerator
|
4
|
+
class Gist
|
5
|
+
def initialize(params)
|
6
|
+
@params = params
|
7
|
+
end
|
8
|
+
|
9
|
+
def lines
|
10
|
+
return file.lines unless line_numbers
|
11
|
+
|
12
|
+
line_numbers.map { |line| file.lines[line - 1] }
|
13
|
+
end
|
14
|
+
|
15
|
+
def line_numbers
|
16
|
+
@line_numbers ||= parsed_line_numbers || all_line_numbers
|
17
|
+
end
|
18
|
+
|
19
|
+
def numbered_lines
|
20
|
+
@numbered_lines ||= line_numbers.zip(lines).to_h
|
21
|
+
end
|
22
|
+
|
23
|
+
def file_number_of_lines
|
24
|
+
file.number_of_lines
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
attr_reader :params
|
30
|
+
|
31
|
+
def file
|
32
|
+
@file ||= File.new(params[:repo_path], params[:file_path], params)
|
33
|
+
end
|
34
|
+
|
35
|
+
def parsed_line_numbers
|
36
|
+
params[:line_numbers]&.map { |n| Array(n) }&.flatten
|
37
|
+
end
|
38
|
+
|
39
|
+
def all_line_numbers
|
40
|
+
Array(1..file.number_of_lines)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module GistGenerator
|
2
|
+
module Serializers
|
3
|
+
class Base
|
4
|
+
def self.call(*args)
|
5
|
+
new(*args).call
|
6
|
+
end
|
7
|
+
|
8
|
+
def initialize(gists)
|
9
|
+
@gists = gists
|
10
|
+
end
|
11
|
+
|
12
|
+
def call
|
13
|
+
gists.map do |gist|
|
14
|
+
{
|
15
|
+
'lines' => gist.lines,
|
16
|
+
'numbered_lines' => gist.numbered_lines,
|
17
|
+
'line_numbers' => gist.line_numbers
|
18
|
+
}
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
attr_reader :gists
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'json'
|
2
|
+
require 'gist_generator/serializers/base'
|
3
|
+
|
4
|
+
module GistGenerator
|
5
|
+
module Serializers
|
6
|
+
class JSON < Base
|
7
|
+
def self.call(*args)
|
8
|
+
new(*args).call
|
9
|
+
end
|
10
|
+
|
11
|
+
def initialize(gists)
|
12
|
+
@gists = gists
|
13
|
+
end
|
14
|
+
|
15
|
+
def call
|
16
|
+
{ 'gists' => super.to_json }
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
attr_reader :gists
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'gist_generator/serializers/base'
|
2
|
+
|
3
|
+
module GistGenerator
|
4
|
+
module Serializers
|
5
|
+
class Pretty
|
6
|
+
def self.call(*args)
|
7
|
+
new(*args).call
|
8
|
+
end
|
9
|
+
|
10
|
+
def initialize(gists, options = {})
|
11
|
+
@gists = gists
|
12
|
+
@options = options
|
13
|
+
end
|
14
|
+
|
15
|
+
def call
|
16
|
+
gists.map { |gist| pretty_print gist }
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
attr_reader :gists, :options
|
22
|
+
|
23
|
+
def pretty_print(gist)
|
24
|
+
result = []
|
25
|
+
|
26
|
+
result << line_separator if gist.line_numbers.first != 1
|
27
|
+
|
28
|
+
gist.line_numbers.each.with_index do |line_number, i|
|
29
|
+
result << gist.numbered_lines[line_number]
|
30
|
+
result << line_separator if needs_separator?(line_number, i, gist)
|
31
|
+
end
|
32
|
+
|
33
|
+
result << line_separator if gist.line_numbers.last != gist.file_number_of_lines
|
34
|
+
|
35
|
+
result
|
36
|
+
end
|
37
|
+
|
38
|
+
def line_separator
|
39
|
+
options.fetch(:line_separator, "# ...\n\n")
|
40
|
+
end
|
41
|
+
|
42
|
+
def needs_separator?(line_number, index, gist)
|
43
|
+
line_number < (gist.line_numbers[index + 1] || gist.line_numbers.last) - 1
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
metadata
ADDED
@@ -0,0 +1,150 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gist_generator
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Santiago Perez Perret
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-08-14 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: '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: faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webmock
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.7'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.7'
|
97
|
+
description: Create gists by specifying commits, files and line numbers.
|
98
|
+
email:
|
99
|
+
- perezperret@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".travis.yml"
|
107
|
+
- Gemfile
|
108
|
+
- Gemfile.lock
|
109
|
+
- LICENSE.txt
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
112
|
+
- bin/console
|
113
|
+
- bin/setup
|
114
|
+
- gist_generator.gemspec
|
115
|
+
- lib/gist_generator.rb
|
116
|
+
- lib/gist_generator/file.rb
|
117
|
+
- lib/gist_generator/gist.rb
|
118
|
+
- lib/gist_generator/serializers/base.rb
|
119
|
+
- lib/gist_generator/serializers/json.rb
|
120
|
+
- lib/gist_generator/serializers/pretty.rb
|
121
|
+
- lib/gist_generator/version.rb
|
122
|
+
homepage: https://github.com/perezperret/gist_generator
|
123
|
+
licenses:
|
124
|
+
- MIT
|
125
|
+
metadata:
|
126
|
+
allowed_push_host: https://rubygems.org
|
127
|
+
homepage_uri: https://github.com/perezperret/gist_generator
|
128
|
+
source_code_uri: https://github.com/perezperret/gist_generator
|
129
|
+
changelog_uri: https://github.com/perezperret/gist_generator
|
130
|
+
post_install_message:
|
131
|
+
rdoc_options: []
|
132
|
+
require_paths:
|
133
|
+
- lib
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
requirements: []
|
145
|
+
rubyforge_project:
|
146
|
+
rubygems_version: 2.7.6.2
|
147
|
+
signing_key:
|
148
|
+
specification_version: 4
|
149
|
+
summary: Create gists by specifying commits, files and line numbers.
|
150
|
+
test_files: []
|