enginex 0.6.3 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/enginex +3 -0
- data/lib/enginex.rb +1 -1
- data/lib/templates/root/%underscored%.gemspec.tt +9 -0
- data/lib/templates/root/Rakefile.tt +7 -17
- data/test/enginex_test.rb +2 -2
- metadata +6 -5
data/bin/enginex
CHANGED
data/lib/enginex.rb
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Provide a simple gemspec so you can easily use your enginex
|
2
|
+
# project in your rails apps through git.
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = "<%= underscored %>"
|
5
|
+
s.summary = "Insert <%= camelized %> summary."
|
6
|
+
s.description = "Insert <%= camelized %> description."
|
7
|
+
s.files = Dir["lib/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
|
8
|
+
s.version = "0.0.1"
|
9
|
+
end
|
@@ -1,7 +1,13 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
+
require 'rubygems'
|
3
|
+
begin
|
4
|
+
require 'bundler/setup'
|
5
|
+
rescue LoadError
|
6
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
7
|
+
end
|
8
|
+
|
2
9
|
require 'rake'
|
3
10
|
require 'rake/rdoctask'
|
4
|
-
require 'rake/gempackagetask'
|
5
11
|
|
6
12
|
<% if rspec? -%>
|
7
13
|
require 'rspec/core'
|
@@ -27,20 +33,4 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
27
33
|
rdoc.options << '--line-numbers' << '--inline-source'
|
28
34
|
rdoc.rdoc_files.include('README.rdoc')
|
29
35
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
30
|
-
end
|
31
|
-
|
32
|
-
spec = Gem::Specification.new do |s|
|
33
|
-
s.name = "<%= underscored %>"
|
34
|
-
s.summary = "Insert <%= camelized %> summary."
|
35
|
-
s.description = "Insert <%= camelized %> description."
|
36
|
-
s.files = FileList["[A-Z]*", "lib/**/*"]
|
37
|
-
s.version = "0.0.1"
|
38
|
-
end
|
39
|
-
|
40
|
-
Rake::GemPackageTask.new(spec) do |pkg|
|
41
|
-
end
|
42
|
-
|
43
|
-
desc "Install the gem #{spec.name}-#{spec.version}.gem"
|
44
|
-
task :install do
|
45
|
-
system("gem install pkg/#{spec.name}-#{spec.version}.gem --no-ri --no-rdoc")
|
46
36
|
end
|
data/test/enginex_test.rb
CHANGED
@@ -42,8 +42,8 @@ class EnginexTest < ActiveSupport::TestCase
|
|
42
42
|
|
43
43
|
test "enginex rakefile can create a gem" do
|
44
44
|
run_enginex do
|
45
|
-
execute("
|
46
|
-
assert_file "
|
45
|
+
execute("gem build demo_engine.gemspec")
|
46
|
+
assert_file "demo_engine-0.0.1.gem"
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enginex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 7
|
9
|
+
- 0
|
10
|
+
version: 0.7.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Jos\xC3\xA9 Valim"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-10-12 00:00:00 +02:00
|
19
19
|
default_executable: enginex
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- lib/templates/gitignore
|
82
82
|
- lib/templates/rails/application.rb
|
83
83
|
- lib/templates/rails/boot.rb
|
84
|
+
- lib/templates/root/%underscored%.gemspec.tt
|
84
85
|
- lib/templates/root/Gemfile.tt
|
85
86
|
- lib/templates/root/MIT-LICENSE.tt
|
86
87
|
- lib/templates/root/README.rdoc.tt
|