combustion 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -1,3 +1,6 @@
1
+ 0.3.0 - September 2nd 2011
2
+ * Simple generator to create a pretty minimal internal Rails app.
3
+
1
4
  0.2.0 - August 30th 2011
2
5
  * Documentation.
3
6
  * Allow developers to choose which Rails modules they wish to be loaded.
@@ -119,7 +119,6 @@ Contributions are very much welcome - but keep in mind the following:
119
119
 
120
120
  * Keep patches in a separate branch
121
121
  * Don't mess with the version or history file. I'll take care of that when the patch is merged in.
122
- * Write tests - look at the existing tests (particularly in @spec/acceptance@)
123
122
 
124
123
  There are no tests - partly because Combustion was extracted out from the tests of HyperTiny's Dobro, and partly because there's not much code. Still, if you can find a clean way of testing this, that'd be fantastic.
125
124
 
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- mode: ruby -*-
3
+
4
+ require 'combustion'
5
+ require 'combustion/generator'
6
+
7
+ Combustion::Generator.start
@@ -19,4 +19,5 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ['lib']
20
20
 
21
21
  s.add_runtime_dependency 'rails', '>= 3.1.0.rc5'
22
+ s.add_runtime_dependency 'thor', '>= 0.14.6'
22
23
  end
@@ -0,0 +1,28 @@
1
+ require 'thor/group'
2
+
3
+ class Combustion::Generator < Thor::Group
4
+ include Thor::Actions
5
+
6
+ def self.source_root
7
+ File.expand_path File.join(File.dirname(__FILE__), '..', '..')
8
+ end
9
+
10
+ def create_directories
11
+ empty_directory 'spec/internal'
12
+ empty_directory 'spec/internal/config'
13
+ empty_directory 'spec/internal/db'
14
+ empty_directory 'spec/internal/log'
15
+ empty_directory 'spec/internal/public'
16
+ end
17
+
18
+ def create_files
19
+ template 'templates/routes.rb', 'spec/internal/config/routes.rb'
20
+ template 'templates/database.yml', 'spec/internal/config/database.yml'
21
+ template 'templates/schema.rb', 'spec/internal/db/schema.rb'
22
+ template 'templates/config.ru', 'config.ru'
23
+ create_file 'spec/internal/public/favicon.ico'
24
+ create_file 'spec/internal/log/.gitignore' do
25
+ '*.log'
26
+ end
27
+ end
28
+ end
@@ -1,3 +1,3 @@
1
1
  module Combustion
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+
4
+ Bundler.require :default, :development
5
+
6
+ Combustion.initialize!
7
+ run Combustion::Application
@@ -0,0 +1,3 @@
1
+ test:
2
+ adapter: sqlite3
3
+ database: db/combustion_test.sqlite
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ #
3
+ end
@@ -0,0 +1,3 @@
1
+ ActiveRecord::Schema.define do
2
+ #
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: combustion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
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: 2011-08-30 00:00:00.000000000 Z
12
+ date: 2011-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &2152591540 !ruby/object:Gem::Requirement
16
+ requirement: &2156512840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,11 +21,23 @@ dependencies:
21
21
  version: 3.1.0.rc5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152591540
24
+ version_requirements: *2156512840
25
+ - !ruby/object:Gem::Dependency
26
+ name: thor
27
+ requirement: &2156511640 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 0.14.6
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *2156511640
25
36
  description: Test your Rails Engines without needing a full Rails app
26
37
  email:
27
38
  - pat@freelancing-gods.com
28
- executables: []
39
+ executables:
40
+ - combust
29
41
  extensions: []
30
42
  extra_rdoc_files: []
31
43
  files:
@@ -35,10 +47,16 @@ files:
35
47
  - LICENCE
36
48
  - README.textile
37
49
  - Rakefile
50
+ - bin/combust
38
51
  - combustion.gemspec
39
52
  - lib/combustion.rb
40
53
  - lib/combustion/application.rb
54
+ - lib/combustion/generator.rb
41
55
  - lib/combustion/version.rb
56
+ - templates/config.ru
57
+ - templates/database.yml
58
+ - templates/routes.rb
59
+ - templates/schema.rb
42
60
  homepage: ''
43
61
  licenses: []
44
62
  post_install_message: