enginex 0.6.3 → 0.7.0

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.
@@ -2,4 +2,7 @@
2
2
  # -*- mode: ruby -*-
3
3
 
4
4
  require 'enginex'
5
+
6
+ ARGV << "--help" if ARGV.empty?
7
+
5
8
  Enginex.start
@@ -7,7 +7,7 @@ require "rails/generators"
7
7
  require "rails/generators/rails/app/app_generator"
8
8
 
9
9
  class Enginex < Thor::Group
10
- VERSION = "0.6.3".freeze
10
+ VERSION = "0.7.0".freeze
11
11
 
12
12
  include Thor::Actions
13
13
  check_unknown_options!
@@ -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
@@ -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("rake gem")
46
- assert_file "pkg/demo_engine-0.0.1.gem"
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: 1
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 6
9
- - 3
10
- version: 0.6.3
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-07-26 00:00:00 +02:00
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