Sutto-perennial 0.2.3.2 → 0.2.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/perennial.rb CHANGED
@@ -9,12 +9,12 @@ require 'perennial/exceptions'
9
9
 
10
10
  module Perennial
11
11
 
12
- VERSION = "0.2.3.2"
12
+ VERSION = "0.2.3.3"
13
13
 
14
- has_libary :dispatchable, :hookable, :loader, :logger,
15
- :loggable, :manifest, :settings, :argument_parser,
16
- :option_parser, :application, :generator, :daemon,
17
- :delegateable
14
+ has_library :dispatchable, :hookable, :loader, :logger,
15
+ :loggable, :manifest, :settings, :argument_parser,
16
+ :option_parser, :application, :generator, :daemon,
17
+ :delegateable
18
18
 
19
19
  def self.included(parent)
20
20
  parent.extend(Manifest::Mixin)
@@ -50,7 +50,7 @@ end
50
50
 
51
51
  class Module
52
52
 
53
- def has_libary(*items)
53
+ def has_library(*items)
54
54
  namespace = self.to_s.underscore
55
55
  items.each do |item|
56
56
  require File.join(namespace, item.to_s.underscore)
@@ -1,4 +1,5 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__))
1
+ lib_path = File.dirname(__FILE__)
2
+ $LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path)
2
3
  require 'perennial'
3
4
 
4
5
  module <%= @application_module %>
@@ -7,7 +8,7 @@ module <%= @application_module %>
7
8
  VERSION = "0.0.1"
8
9
 
9
10
  manifest do |m, l|
10
- Settings.root = File.dirname(__FILE__)
11
+ Settings.root = __FILE__.to_pathname.dirname.dirname
11
12
  # Initialize your controllers, e.g:
12
13
  # l.register_controller :client, <%= @application_module %>::Client
13
14
  end
@@ -26,6 +26,7 @@ task :gemspec do
26
26
  s.summary = ""
27
27
  s.files = FileList["{bin,vendor,lib,test}/**/*"].to_a
28
28
  s.platform = Gem::Platform::RUBY
29
+ s.add_dependency "Sutto-perennial", ">= <%= Perennial::VERSION %>"
29
30
  end
30
31
  File.open("<%= @application_path %>.gemspec", "w+") { |f| f.puts spec.to_ruby }
31
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Sutto-perennial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.2
4
+ version: 0.2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darcy Laycock