vigetlabs-provisional 2.1.4 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/VERSION.yml +1 -1
- data/lib/provisional.rb +0 -14
- data/lib/provisional/scm/git.rb +0 -7
- data/lib/provisional/scm/svn.rb +0 -5
- data/test/test_helper.rb +0 -3
- data/test/unit/git_test.rb +0 -4
- data/test/unit/svn_test.rb +0 -7
- metadata +1 -1
data/README.md
CHANGED
@@ -41,8 +41,8 @@ The domain, username, password, and id options are used by certain SCMs to provi
|
|
41
41
|
The template option can be either a literal path to a template file, a URL for a template on a remote server, or the name of one of the templates found in lib/provisional/templates (without the .rb suffix.) The default viget template does the following:
|
42
42
|
|
43
43
|
* freezes rails from currently installed gems
|
44
|
-
* installs gems: `mocha`, `factory_girl`, `shoulda`
|
45
|
-
* installs plugins: `hoptoad_notifier`, `jrails`, `model_generator_with_factories`, `viget_deployment`, `vl_cruise_control`
|
44
|
+
* installs gems: `mocha`, `factory_girl`, `shoulda`, `webrat`
|
45
|
+
* installs plugins: `hoptoad_notifier`, `jrails`, `model_generator_with_factories`, `viget_deployment`, `vl_cruise_control`, `asset_packager`
|
46
46
|
* installs a .gitignore file to ignore logs, temp files, sqlite3 databases, rcov reports, and `database.yml`
|
47
47
|
* generates Capistrano configuration with viget_deployment
|
48
48
|
* copies `database.yml` to `database.yml-sample`
|
data/VERSION.yml
CHANGED
data/lib/provisional.rb
CHANGED
@@ -9,17 +9,3 @@ def rescuing_exceptions(&block)
|
|
9
9
|
raise RuntimeError, "Repository not created due to exception: #{$!}"
|
10
10
|
end
|
11
11
|
end
|
12
|
-
|
13
|
-
module Provisional
|
14
|
-
IGNORE_FILES = [
|
15
|
-
['coverage'],
|
16
|
-
['config/database.yml'],
|
17
|
-
['db/*.sqlite3'],
|
18
|
-
['log/*.log'],
|
19
|
-
['tmp/restart.txt'],
|
20
|
-
['tmp/cache/*'],
|
21
|
-
['tmp/pids/*'],
|
22
|
-
['tmp/sessions/*'],
|
23
|
-
['tmp/sockets/*']
|
24
|
-
]
|
25
|
-
end
|
data/lib/provisional/scm/git.rb
CHANGED
@@ -9,10 +9,6 @@ module Provisional
|
|
9
9
|
@options = options
|
10
10
|
end
|
11
11
|
|
12
|
-
def gitignore
|
13
|
-
Provisional::IGNORE_FILES.join("\n")
|
14
|
-
end
|
15
|
-
|
16
12
|
def init
|
17
13
|
rescuing_exceptions do
|
18
14
|
FileUtils.mkdir_p @options['name']
|
@@ -32,9 +28,6 @@ module Provisional
|
|
32
28
|
rescuing_exceptions do
|
33
29
|
repo = ::Git.open @options['path']
|
34
30
|
Dir.chdir @options['path']
|
35
|
-
File.open('.gitignore', 'w') do |f|
|
36
|
-
f.puts gitignore
|
37
|
-
end
|
38
31
|
repo.add '.'
|
39
32
|
repo.commit 'Initial commit by Provisional'
|
40
33
|
repo
|
data/lib/provisional/scm/svn.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -21,8 +21,5 @@ class Test::Unit::TestCase
|
|
21
21
|
end
|
22
22
|
Git.expects(:open).returns(repo_stub)
|
23
23
|
Dir.expects(:chdir)
|
24
|
-
gitignore_file = stub()
|
25
|
-
gitignore_file.expects(:puts).with(@scm.gitignore)
|
26
|
-
File.expects(:open).with('.gitignore', 'w').yields(gitignore_file)
|
27
24
|
end
|
28
25
|
end
|
data/test/unit/git_test.rb
CHANGED
@@ -7,10 +7,6 @@ class GitTest < Test::Unit::TestCase
|
|
7
7
|
@scm = new_scm(Provisional::SCM::Git)
|
8
8
|
end
|
9
9
|
|
10
|
-
def test_gitignore
|
11
|
-
assert_equal Provisional::IGNORE_FILES.join("\n"), @scm.gitignore
|
12
|
-
end
|
13
|
-
|
14
10
|
def test_init
|
15
11
|
FileUtils.expects(:mkdir_p).with('name')
|
16
12
|
Dir.expects(:chdir).with('name')
|
data/test/unit/svn_test.rb
CHANGED
@@ -7,13 +7,6 @@ class SvnTest < Test::Unit::TestCase
|
|
7
7
|
@scm = new_scm(Provisional::SCM::Svn, { 'url' => 'url' })
|
8
8
|
end
|
9
9
|
|
10
|
-
# FIXME: implement this
|
11
|
-
def test_gitignore
|
12
|
-
assert_raise NotImplementedError do
|
13
|
-
@scm.gitignore
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
10
|
def test_init
|
18
11
|
assert_raise NotImplementedError do
|
19
12
|
@scm.init
|