vigetlabs-provisional 2.1.11 → 2.1.12
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +10 -5
- data/Rakefile +13 -41
- data/VERSION +1 -0
- data/lib/provisional/templates/braces.rb +79 -0
- data/lib/provisional/templates/rspec_and_friends.rb +22 -0
- data/lib/provisional/templates/viget.rb +5 -6
- data/provisional.gemspec +9 -5
- metadata +6 -4
- data/VERSION.yml +0 -4
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -30,6 +30,13 @@ Provisional is only tested on Mac OS X. It should also work on Linux. It is not
|
|
30
30
|
--private, -r: Private repository (for some SCMs, see documentation)
|
31
31
|
--help, -h: Show this message
|
32
32
|
|
33
|
+
All of these options can be specified either on the command line, or in a YAML file indicated by the --config option. The YAML file should be in simple key: value format:
|
34
|
+
|
35
|
+
name: awesome_project
|
36
|
+
scm: git
|
37
|
+
|
38
|
+
Options specified via the command line take precedence over options specified in a YAML file, if both are specified.
|
39
|
+
|
33
40
|
The SCM option can be one of the following ("`project_name`" refers to the value of the --name option):
|
34
41
|
|
35
42
|
* `git`: creates a Git repository in the `project_name` directory.
|
@@ -54,12 +61,10 @@ The template option can be either a literal path to a template file, a URL for a
|
|
54
61
|
* removes `public/index.html`, `test/fixtures`, prototype, and script.aculo.us
|
55
62
|
* creates an SCM repository and checks the application in
|
56
63
|
|
57
|
-
|
58
|
-
|
59
|
-
name: awesome_project
|
60
|
-
scm: git
|
64
|
+
A few other templates are provided:
|
61
65
|
|
62
|
-
|
66
|
+
* The `braces` template installs an environment similar, but not exactly identical, to Thoughtbot's [Suspenders](http://github.com/thoughtbot/suspenders) bootstrap.
|
67
|
+
* The `rspec_and_friends` template installs RSpec, Cucumber and Webrat.
|
63
68
|
|
64
69
|
## GitHub
|
65
70
|
|
data/Rakefile
CHANGED
@@ -15,18 +15,21 @@ begin
|
|
15
15
|
gem.add_dependency 'rails', '>= 2.3.0'
|
16
16
|
gem.add_dependency 'git', '>= 1.0.5'
|
17
17
|
gem.add_dependency 'builder', '>= 2.1.2'
|
18
|
-
|
19
18
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
20
19
|
end
|
20
|
+
|
21
|
+
Jeweler::RubyforgeTasks.new do |rubyforge|
|
22
|
+
rubyforge.doc_task = "yardoc"
|
23
|
+
end
|
21
24
|
rescue LoadError
|
22
|
-
puts "Jeweler not available. Install it with: sudo gem install
|
25
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
23
26
|
end
|
24
27
|
|
25
28
|
require 'rake/testtask'
|
26
29
|
Rake::TestTask.new(:test) do |test|
|
27
30
|
test.libs << 'lib' << 'test'
|
28
31
|
test.pattern = 'test/**/*_test.rb'
|
29
|
-
test.verbose =
|
32
|
+
test.verbose = true
|
30
33
|
end
|
31
34
|
|
32
35
|
begin
|
@@ -43,6 +46,7 @@ rescue LoadError
|
|
43
46
|
end
|
44
47
|
end
|
45
48
|
|
49
|
+
|
46
50
|
begin
|
47
51
|
require 'reek/rake_task'
|
48
52
|
Reek::RakeTask.new do |t|
|
@@ -67,46 +71,14 @@ rescue LoadError
|
|
67
71
|
abort "Roodi is not available. In order to run roodi, you must: sudo gem install roodi"
|
68
72
|
end
|
69
73
|
end
|
70
|
-
|
71
|
-
task :default => :test
|
72
|
-
|
73
|
-
require 'rake/rdoctask'
|
74
|
-
Rake::RDocTask.new do |rdoc|
|
75
|
-
if File.exist?('VERSION.yml')
|
76
|
-
config = YAML.load(File.read('VERSION.yml'))
|
77
|
-
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
|
78
|
-
else
|
79
|
-
version = ""
|
80
|
-
end
|
81
74
|
|
82
|
-
|
83
|
-
rdoc.title = "provisional #{version}"
|
84
|
-
rdoc.rdoc_files.include('README*')
|
85
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
86
|
-
end
|
75
|
+
task :default => :test
|
87
76
|
|
88
77
|
begin
|
89
|
-
require '
|
90
|
-
|
91
|
-
|
92
|
-
desc "Release gem and RDoc documentation to RubyForge"
|
93
|
-
task :release => ["rubyforge:release:gem"]
|
94
|
-
|
95
|
-
namespace :release do
|
96
|
-
desc "Publish RDoc to RubyForge."
|
97
|
-
task :docs => [:rdoc] do
|
98
|
-
config = YAML.load(
|
99
|
-
File.read(File.expand_path('~/.rubyforge/user-config.yml'))
|
100
|
-
)
|
101
|
-
|
102
|
-
host = "#{config['username']}@rubyforge.org"
|
103
|
-
remote_dir = "/var/www/gforge-projects/provisional/"
|
104
|
-
local_dir = 'rdoc'
|
105
|
-
|
106
|
-
Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end
|
78
|
+
require 'yard'
|
79
|
+
YARD::Rake::YardocTask.new
|
110
80
|
rescue LoadError
|
111
|
-
|
81
|
+
task :yardoc do
|
82
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
83
|
+
end
|
112
84
|
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.12
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# This template installs an environment very similar to Thoughtbot's Suspenders
|
2
|
+
# http://github.com/thoughtbot/suspenders
|
3
|
+
|
4
|
+
# TODO: this is missing some of their shoulda macros
|
5
|
+
|
6
|
+
rake 'rails:freeze:gems'
|
7
|
+
|
8
|
+
gem 'justinfrench-formtastic', :lib => 'formtastic', :source => 'http://gems.github.com', :version => '~> 0.2.1'
|
9
|
+
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com', :version => '~> 2.3.11'
|
10
|
+
gem 'rack', :version => '>= 1.0.0'
|
11
|
+
gem 'RedCloth', :lib => 'redcloth', :version => '>= 4.2.2'
|
12
|
+
gem 'thoughtbot-clearance', :lib => 'clearance', :source => 'http://gems.github.com', :version => '>= 0.7.0'
|
13
|
+
gem 'thoughtbot-paperclip', :lib => 'paperclip', :source => 'http://gems.github.com', :version => '>= 2.3.0'
|
14
|
+
|
15
|
+
gem 'jferris-mocha', :version => '0.9.5.0.1241126838', :source => 'http://gems.github.com', :lib => 'mocha', :env => 'test'
|
16
|
+
gem 'jtrupiano-timecop', :version => '0.2.1', :source => 'http://gems.github.com', :lib => 'timecop', :env => 'test'
|
17
|
+
gem 'nokogiri', :version => '1.3.2', :lib => false, :env => 'test'
|
18
|
+
gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => 'http://gems.github.com', :version => '>= 1.2.2', :env => 'test'
|
19
|
+
gem 'thoughtbot-shoulda', :lib => 'shoulda', :source => 'http://gems.github.com', :version => '>= 2.10.2', :env => 'test'
|
20
|
+
gem 'webrat', :version => '0.4.4', :env => 'test'
|
21
|
+
|
22
|
+
rake 'gems:install gems:unpack', :env => 'test'
|
23
|
+
|
24
|
+
plugin 'hoptoad_notifier', :git => 'git://github.com/thoughtbot/hoptoad_notifier.git'
|
25
|
+
plugin 'limerick_rake', :git => 'git://github.com/thoughtbot/limerick_rake.git'
|
26
|
+
plugin 'validation_reflection', :git => 'git://github.com/redinger/validation_reflection.git'
|
27
|
+
|
28
|
+
generate :cucumber
|
29
|
+
generate :clearance
|
30
|
+
generate :clearance_features
|
31
|
+
generate :clearance_views
|
32
|
+
|
33
|
+
run 'rm -rf public/index.html log/* test/fixtures'
|
34
|
+
|
35
|
+
file '.gitignore', %q[
|
36
|
+
log/*
|
37
|
+
tmp/**/*
|
38
|
+
db/schema.rb
|
39
|
+
db/*.sqlite3
|
40
|
+
public/system
|
41
|
+
*.DS_Store
|
42
|
+
coverage/*
|
43
|
+
*.swp
|
44
|
+
|
45
|
+
!.keep
|
46
|
+
]
|
47
|
+
|
48
|
+
file 'test/test_helper.rb', %q[
|
49
|
+
ENV["RAILS_ENV"] = "test"
|
50
|
+
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
51
|
+
require 'test_help'
|
52
|
+
require 'action_view/test_case'
|
53
|
+
|
54
|
+
Mocha::Configuration.warn_when(:stubbing_non_existent_method)
|
55
|
+
Mocha::Configuration.warn_when(:stubbing_non_public_method)
|
56
|
+
|
57
|
+
class ActiveSupport::TestCase
|
58
|
+
|
59
|
+
self.use_transactional_fixtures = true
|
60
|
+
self.use_instantiated_fixtures = false
|
61
|
+
|
62
|
+
end
|
63
|
+
|
64
|
+
class ActionView::TestCase
|
65
|
+
class TestController < ActionController::Base
|
66
|
+
attr_accessor :request, :response, :params
|
67
|
+
|
68
|
+
def initialize
|
69
|
+
@request = ActionController::TestRequest.new
|
70
|
+
@response = ActionController::TestResponse.new
|
71
|
+
|
72
|
+
# TestCase doesn't have context of a current url so cheat a bit
|
73
|
+
@params = {}
|
74
|
+
send(:initialize_current_url)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
]
|
79
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
rake 'rails:freeze:gems'
|
2
|
+
|
3
|
+
gem 'cucumber', :env => :test
|
4
|
+
gem 'rspec', :lib => false, :env => :test
|
5
|
+
gem 'rspec-rails', :lib => false, :env => :test
|
6
|
+
gem 'webrat', :env => :test
|
7
|
+
|
8
|
+
rake 'gems:install gems:unpack', :env => :test
|
9
|
+
|
10
|
+
generate :rspec
|
11
|
+
generate :cucumber
|
12
|
+
run 'cp config/environments/test.rb config/environments/cucumber.rb'
|
13
|
+
|
14
|
+
run 'rm -rf log/* test'
|
15
|
+
inside 'public' do
|
16
|
+
run 'rm -f index.html favicon.ico robots.txt images/rails.png'
|
17
|
+
end
|
18
|
+
|
19
|
+
file '.gitignore', 'coverage'
|
20
|
+
file 'db/.gitignore', '*.sqlite3'
|
21
|
+
file 'log/.gitignore', '*'
|
22
|
+
file 'tmp/.gitignore', '*'
|
@@ -4,11 +4,11 @@
|
|
4
4
|
rake 'rails:freeze:gems'
|
5
5
|
|
6
6
|
# install gems
|
7
|
-
gem 'mocha', :version => '>= 0.9.5'
|
8
|
-
gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => 'http://gems.github.com', :version => '>= 1.2.0'
|
9
|
-
gem 'thoughtbot-shoulda', :lib => 'shoulda', :source => 'http://gems.github.com', :version => '>= 2.10.1'
|
10
|
-
gem 'webrat'
|
11
|
-
rake 'gems:install gems:unpack'
|
7
|
+
gem 'mocha', :version => '>= 0.9.5', :env => 'test'
|
8
|
+
gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => 'http://gems.github.com', :version => '>= 1.2.0', :env => 'test'
|
9
|
+
gem 'thoughtbot-shoulda', :lib => 'shoulda', :source => 'http://gems.github.com', :version => '>= 2.10.1', :env => 'test'
|
10
|
+
gem 'webrat', :env => 'test'
|
11
|
+
rake 'gems:install gems:unpack', :env => 'test'
|
12
12
|
|
13
13
|
# install plugins
|
14
14
|
plugin 'hoptoad_notifier', :git => 'git://github.com/thoughtbot/hoptoad_notifier.git'
|
@@ -42,7 +42,6 @@ db/*.db
|
|
42
42
|
db/*.sqlite3
|
43
43
|
tmp/**/*
|
44
44
|
config/database.yml
|
45
|
-
END
|
46
45
|
]
|
47
46
|
run 'touch tmp/.gitignore log/.gitignore vendor/.gitignore'
|
48
47
|
|
data/provisional.gemspec
CHANGED
@@ -1,12 +1,15 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{provisional}
|
5
|
-
s.version = "2.1.
|
8
|
+
s.version = "2.1.12"
|
6
9
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
11
|
s.authors = ["Mark Cornick"]
|
9
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-08-06}
|
10
13
|
s.default_executable = %q{provisional}
|
11
14
|
s.description = %q{Provisional creates a new Rails project, using a standard Rails 2.3 application template, and checks it into a new SCM repository.}
|
12
15
|
s.email = %q{mark@viget.com}
|
@@ -18,7 +21,7 @@ Gem::Specification.new do |s|
|
|
18
21
|
".gitignore",
|
19
22
|
"README.md",
|
20
23
|
"Rakefile",
|
21
|
-
"VERSION
|
24
|
+
"VERSION",
|
22
25
|
"bin/provisional",
|
23
26
|
"lib/provisional.rb",
|
24
27
|
"lib/provisional/exceptions.reek",
|
@@ -34,6 +37,8 @@ Gem::Specification.new do |s|
|
|
34
37
|
"lib/provisional/scm/svn.rb",
|
35
38
|
"lib/provisional/scm/unfuddle.rb",
|
36
39
|
"lib/provisional/scm/unfuddle_svn.rb",
|
40
|
+
"lib/provisional/templates/braces.rb",
|
41
|
+
"lib/provisional/templates/rspec_and_friends.rb",
|
37
42
|
"lib/provisional/templates/viget.rb",
|
38
43
|
"lib/provisional/unfuddle_common.rb",
|
39
44
|
"provisional.gemspec",
|
@@ -51,12 +56,11 @@ Gem::Specification.new do |s|
|
|
51
56
|
"test/unit/unfuddle_svn_test.rb",
|
52
57
|
"test/unit/unfuddle_test.rb"
|
53
58
|
]
|
54
|
-
s.has_rdoc = true
|
55
59
|
s.homepage = %q{http://github.com/vigetlabs/provisional}
|
56
60
|
s.rdoc_options = ["--charset=UTF-8"]
|
57
61
|
s.require_paths = ["lib"]
|
58
62
|
s.rubyforge_project = %q{viget}
|
59
|
-
s.rubygems_version = %q{1.3.
|
63
|
+
s.rubygems_version = %q{1.3.4}
|
60
64
|
s.summary = %q{Automation for new Rails Projects}
|
61
65
|
s.test_files = [
|
62
66
|
"test/test_helper.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vigetlabs-provisional
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Cornick
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-06 00:00:00 -07:00
|
13
13
|
default_executable: provisional
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -64,7 +64,7 @@ files:
|
|
64
64
|
- .gitignore
|
65
65
|
- README.md
|
66
66
|
- Rakefile
|
67
|
-
- VERSION
|
67
|
+
- VERSION
|
68
68
|
- bin/provisional
|
69
69
|
- lib/provisional.rb
|
70
70
|
- lib/provisional/exceptions.reek
|
@@ -80,6 +80,8 @@ files:
|
|
80
80
|
- lib/provisional/scm/svn.rb
|
81
81
|
- lib/provisional/scm/unfuddle.rb
|
82
82
|
- lib/provisional/scm/unfuddle_svn.rb
|
83
|
+
- lib/provisional/templates/braces.rb
|
84
|
+
- lib/provisional/templates/rspec_and_friends.rb
|
83
85
|
- lib/provisional/templates/viget.rb
|
84
86
|
- lib/provisional/unfuddle_common.rb
|
85
87
|
- provisional.gemspec
|
@@ -96,7 +98,7 @@ files:
|
|
96
98
|
- test/unit/unfuddle_common_test.rb
|
97
99
|
- test/unit/unfuddle_svn_test.rb
|
98
100
|
- test/unit/unfuddle_test.rb
|
99
|
-
has_rdoc:
|
101
|
+
has_rdoc: false
|
100
102
|
homepage: http://github.com/vigetlabs/provisional
|
101
103
|
licenses:
|
102
104
|
post_install_message:
|
data/VERSION.yml
DELETED