-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support to change the top level directory for plugins
* Fixes #13 - use different plugin path * previously by default, pluginator would only look in the directory named plugins. While this is a great notion, many existing plugin systems do not follow this path. This attempts to allow the user to change the default plugins directory to something different. Example: lib/plugins/my_group/plugin_name.rb can now be lib/alt_plugins/my_group/plugin_name.rb.
- Loading branch information
1 parent
e205d0e
commit cd8cd13
Showing
12 changed files
with
193 additions
and
14 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/*.gem | ||
.bundle | ||
/Gemfile.lock | ||
/coverage | ||
/doc | ||
|
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
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
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
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
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
1 change: 1 addition & 0 deletions
1
test/gems/gems/fake-alt-gem-name-a-1.0.0/lib/fake-gem-name-a.rb
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 @@ | ||
|
27 changes: 27 additions & 0 deletions
27
test/gems/gems/fake-alt-gem-name-a-1.0.0/lib/kitchen/something/math/decrease.rb
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,27 @@ | ||
=begin | ||
Copyright 2013 Michal Papis <[email protected]> | ||
This file is part of pluginator. | ||
pluginator is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published | ||
by the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
pluginator is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with pluginator. If not, see <http://www.gnu.org/licenses/>. | ||
=end | ||
|
||
class Something::Math::Decrease | ||
def self.type | ||
"decrease" | ||
end | ||
def self.action(number) | ||
number - 1 | ||
end | ||
end |
27 changes: 27 additions & 0 deletions
27
test/gems/gems/fake-alt-gem-name-a-1.0.0/lib/kitchen/something/math/increase.rb
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,27 @@ | ||
=begin | ||
Copyright 2013 Michal Papis <[email protected]> | ||
This file is part of pluginator. | ||
pluginator is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published | ||
by the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
pluginator is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with pluginator. If not, see <http://www.gnu.org/licenses/>. | ||
=end | ||
|
||
class Something::Math::Increase | ||
def self.type | ||
"increase" | ||
end | ||
def self.action(number) | ||
number + 1 | ||
end | ||
end |
25 changes: 25 additions & 0 deletions
25
test/gems/gems/fake-alt-gem-name-a-1.0.0/lib/kitchen/something/nested/structure/test.rb
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,25 @@ | ||
=begin | ||
Copyright 2013 Michal Papis <[email protected]> | ||
This file is part of pluginator. | ||
pluginator is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published | ||
by the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
pluginator is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with pluginator. If not, see <http://www.gnu.org/licenses/>. | ||
=end | ||
|
||
class Something::Nested::Structure::Test | ||
|
||
def self.action | ||
42 | ||
end | ||
end |
29 changes: 29 additions & 0 deletions
29
test/gems/gems/fake-alt-gem-name-a-1.0.0/lib/kitchen/something/stats/max.rb
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,29 @@ | ||
=begin | ||
Copyright 2013 Michal Papis <[email protected]> | ||
This file is part of pluginator. | ||
pluginator is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published | ||
by the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
pluginator is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with pluginator. If not, see <http://www.gnu.org/licenses/>. | ||
=end | ||
|
||
class Something::Stats::Max | ||
|
||
def self.handles?(what) | ||
%w{ max maximum }.include?(what) | ||
end | ||
|
||
def self.action | ||
42 | ||
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