Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize the plugin; Add git log functionality #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ source "https://rubygems.org"

# Specify your gem's dependencies in kite-git.gemspec
gemspec

gem 'kite', path: '../kite2'
43 changes: 43 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
PATH
remote: ../kite2
specs:
kite (0.0.1)
gli (~> 2.18)

PATH
remote: .
specs:
kite-git (0.1.0)

GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.3)
gli (2.18.0)
rake (10.5.0)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.1)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.2)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 2.0)
kite!
kite-git!
rake (~> 10.0)
rspec (~> 3.0)

BUNDLED WITH
2.0.1
2 changes: 1 addition & 1 deletion kite-git.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/rubykube/kite-git"
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
else
raise "RubyGems 2.0 or newer is required to protect against " \
"public gem pushes."
Expand Down
8 changes: 0 additions & 8 deletions lib/kite/git.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/kite/git/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Kite
module Git
VERSION = "0.1.0"
VERSION = "0.1.1"
end
end
16 changes: 16 additions & 0 deletions lib/kite/plugin/git.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module Kite
module Command
class Root
desc 'Handle Git-related operations'
arg_name 'Git arguments here'
command :git do |c|
c.command :log do |log|
log.desc 'Show commit logs'
log.action do |global_options,options,args|
system('git log')
end
end
end
end
end
end