Skip to content

Commit

Permalink
Allow Plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
greeneca committed Jan 10, 2018
1 parent 2be486d commit 458f0e2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
@@ -1,3 +1,7 @@
= 4.4.0 =

- Allow External Plugins

= 4.3.1 =

- Update Dependencies
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
roku_builder (4.3.1)
roku_builder (4.4.0)
faraday (~> 0.13)
faraday-digestauth (~> 0.2)
git (~> 1.3)
Expand Down
10 changes: 10 additions & 0 deletions lib/roku_builder.rb
Expand Up @@ -88,6 +88,16 @@ def self.load_plugins
file = "roku_builder/plugins/"+File.basename(path, ".rb")
require file
end
gem_versions = Gem::Specification.sort_by {|g| [g.name.downcase, g.version]}.group_by {|g| g.name}
gems = []
gem_versions.each {|v| gems.push(v.last.last)}
gems.each do |gem|
unless gem.name == "roku_builder"
Dir.glob(File.join(gem.full_gem_path, "lib", "roku_builder", "plugins", "*")).each do |path|
require path
end
end
end
end

def self.process_plugins
Expand Down
2 changes: 1 addition & 1 deletion lib/roku_builder/version.rb
Expand Up @@ -2,5 +2,5 @@

module RokuBuilder
# Version of the RokuBuilder Gem
VERSION = "4.3.1"
VERSION = "4.4.0"
end

0 comments on commit 458f0e2

Please sign in to comment.