mafia 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mafia.rb +0 -8
- data/lib/mafia/templates/bin.tt +0 -1
- data/lib/mafia/templates/gemspec.tt +1 -1
- data/lib/version.rb +1 -1
- metadata +4 -4
data/lib/mafia.rb
CHANGED
|
@@ -68,14 +68,6 @@ module Mafia
|
|
|
68
68
|
empty_directory("#{name}/lib/#{name}/lib")
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
def include_helpers
|
|
72
|
-
if yes? "\n\nInstall georgedrummond_sinatra_helpers gem into app?", :green
|
|
73
|
-
insert_into_file "#{name}/#{name}.gemspec", " s.add_dependency \"georgedrummond_sinatra_helpers\"\n", :after => "s.add_dependency \"sass\"\n"
|
|
74
|
-
insert_into_file "#{name}/lib/#{name}/app.rb", " include GeorgeDrummond::Sinatra::Helpers\n", :after => "class Application < Sinatra::Base\n"
|
|
75
|
-
insert_into_file "#{name}/lib/#{name}/app.rb", "require \"georgedrummond_sinatra_helpers\"\n", :after => "require \"sass\"\n"
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
|
|
79
71
|
def create_license
|
|
80
72
|
if yes? "\n\nUse MIT License?", :green
|
|
81
73
|
|
data/lib/mafia/templates/bin.tt
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
|
11
11
|
s.summary = %q{TODO: Write a gem summary}
|
|
12
12
|
s.description = %q{TODO: Write a gem description}
|
|
13
13
|
|
|
14
|
-
s.files =
|
|
14
|
+
s.files = Dir[File.join(File.dirname(__FILE__), '**', '**')].find_all {|f| File.file?(f) }
|
|
15
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
17
17
|
s.require_paths = ["lib"]
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mafia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2012-03-22 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: thor
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70095716153660 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ! '>='
|
|
@@ -21,7 +21,7 @@ dependencies:
|
|
|
21
21
|
version: '0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70095716153660
|
|
25
25
|
description: Generator to create sinatra apps that are also gems
|
|
26
26
|
email:
|
|
27
27
|
- george@accountsapp.com
|