nautilus 0.0.5 → 0.0.7

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/bin/nautilus CHANGED
File without changes
data/lib/nautilus.rb CHANGED
@@ -1,9 +1,9 @@
1
- module Nautilus
1
+ module Nautilus
2
2
  def self.run(cmd)
3
3
  puts "Running '#{cmd}'"
4
4
  out = `#{cmd}`
5
- if $? != 0
6
- fail "Command #{cmd} failed: #$?\n#{out}"
5
+ if $? != 0
6
+ fail "Command #{cmd} failed: #$?\n#{out}"
7
7
  end
8
8
  out
9
9
  end
@@ -27,6 +27,9 @@ module Nautilus
27
27
  # Clear git history
28
28
  FileUtils.rm_rf("#{project_path}/.git")
29
29
 
30
+ # Add .rvmrc
31
+ create_rvm
32
+
30
33
  # TODO Change the secret_token.rb
31
34
  # Nautilus.search_and_replace secret_token.rb
32
35
 
@@ -49,7 +52,9 @@ module Nautilus
49
52
  end
50
53
 
51
54
  def create_rvm
55
+ puts "Creating rvm: #{project_name}"
52
56
  system("rvm gemset create #{project_name}")
57
+ puts "Creating .rvmrc"
53
58
  File.open("#{project_path}/.rvmrc", 'w') {|f| f.write("rvm gemset use #{project_name}") }
54
59
  end
55
60
 
@@ -1,3 +1,3 @@
1
1
  module Nautilus
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nautilus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2156209080 !ruby/object:Gem::Requirement
16
+ requirement: &2156163040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2156209080
24
+ version_requirements: *2156163040
25
25
  description: Get developing quickly
26
26
  email:
27
27
  - tnewton@gmail.com