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 +5 -5
- data/lib/perennial/core_ext/misc.rb +1 -1
- data/templates/application.erb +3 -2
- data/templates/rakefile.erb +1 -0
- metadata +1 -1
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.
|
12
|
+
VERSION = "0.2.3.3"
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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)
|
data/templates/application.erb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
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 =
|
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
|
data/templates/rakefile.erb
CHANGED
@@ -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
|