vigetlabs-provisional 2.1.4 → 2.1.5

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.
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
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 1
4
- :patch: 4
4
+ :patch: 5
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
@@ -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
@@ -8,11 +8,6 @@ module Provisional
8
8
  @options = options
9
9
  end
10
10
 
11
- def gitignore
12
- # FIXME: implement it
13
- raise NotImplementedError
14
- end
15
-
16
11
  def init
17
12
  raise NotImplementedError, "The SVN scm cannot currently be used directly"
18
13
  end
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
@@ -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')
@@ -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
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
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Cornick