This repository has been archived by the owner on Jun 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 65b5dc3
Showing
15 changed files
with
167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*~ | ||
*# | ||
.rvmrc | ||
.idea/ | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
gem 'mdt-core', path: '/home/phitherek/workspace/priv/mdt-core' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
mdt-dummy (0.0.1) | ||
mdt-core (~> 0.0) | ||
|
||
PATH | ||
remote: /home/phitherek/workspace/priv/mdt-core | ||
specs: | ||
mdt-core (0.0.1) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
mdt-core! | ||
mdt-dummy! | ||
|
||
BUNDLED WITH | ||
1.16.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2018 Piotr "Phitherek_" Żurek | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require_relative 'mdt/version' | ||
require_relative 'mdt/directory_choosers' | ||
require_relative 'mdt/fetchers' | ||
require_relative 'mdt/command_modifiers' | ||
require_relative 'mdt/commands' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require_relative 'command_modifiers/dummy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require 'mdt-core' | ||
module MDT | ||
module CommandModifiers | ||
class Dummy < MDT::CommandModifiers::Base | ||
def self.key | ||
'dummy' | ||
end | ||
|
||
def self.subkeys | ||
['dummy'] | ||
end | ||
|
||
def prepend(key, cmd, options = {}) | ||
case key | ||
when 'dummy' | ||
0 | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require_relative 'commands/dummy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require 'mdt-core' | ||
module MDT | ||
module Commands | ||
class Dummy < MDT::Commands::Base | ||
def self.key | ||
'dummy' | ||
end | ||
|
||
def self.subkeys | ||
['dummy'] | ||
end | ||
|
||
def execute(key, modifiers = [], options = {}) | ||
case key | ||
when 'dummy' | ||
0 | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require_relative 'directory_choosers/dummy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
require 'mdt-core' | ||
module MDT | ||
module DirectoryChoosers | ||
class Dummy < MDT::DirectoryChoosers::Base | ||
def self.key | ||
'dummy' | ||
end | ||
|
||
def self.subkeys | ||
['dummy'] | ||
end | ||
|
||
def mkdir(key, options = {}) | ||
case key | ||
when 'dummy' | ||
0 | ||
end | ||
end | ||
|
||
def cd(key, options = {}) | ||
case key | ||
when 'dummy' | ||
0 | ||
end | ||
end | ||
|
||
def rm(key, options = {}) | ||
case key | ||
when 'dummy' | ||
0 | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require_relative 'fetchers/dummy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require 'mdt-core' | ||
module MDT | ||
module Fetchers | ||
class Dummy < MDT::Fetchers::Base | ||
def self.key | ||
'dummy' | ||
end | ||
|
||
def self.subkeys | ||
['dummy'] | ||
end | ||
|
||
def fetch(key, options = {}) | ||
case key | ||
when 'dummy' | ||
0 | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module MDT | ||
module Dummy | ||
VERSION = '0.0.1' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require_relative './lib/mdt/version' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'mdt-dummy' | ||
s.version = MDT::Dummy::VERSION | ||
s.date = '2018-02-28' | ||
s.summary = 'MDT Dummy module' | ||
s.description = 'Dummy module for MDT' | ||
s.authors = ['Phitherek_'] | ||
s.email = ['phitherek@gmail.com'] | ||
s.files = Dir['lib/**/*.rb'] + Dir['bin/*'] | ||
s.homepage = 'https://rubygems.org/gems/mdt-dummy' | ||
s.license = 'MIT' | ||
s.add_runtime_dependency 'mdt-core', '~> 0.0' | ||
end |