icebreaker 0.1.9 → 0.2.0

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/.gitignore CHANGED
@@ -5,3 +5,5 @@ tmp
5
5
  .idea
6
6
  .DS_Store
7
7
  iceapp
8
+ testapp
9
+
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm 1.9.2@iceapp --create
1
+ rvm 1.9.3@iceapp --create
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- icebreaker (0.1.2)
4
+ icebreaker (0.2.0)
5
5
  thor
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- thor (0.14.6)
10
+ thor (0.15.2)
11
11
 
12
12
  PLATFORMS
13
13
  ruby
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  IceBreaker
2
2
  ===========
3
- Generate a Rails 3.1.1 app with the Mongoid ORM (or OM) and RSpec for BDD testing.
3
+ Generate a Rails 3.2.6 app with the Mongoid ORM (or OM) and RSpec for BDD testing.
4
4
 
5
5
 
6
6
  ### What you get
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.email = ["mdillon@gmail.com"]
10
10
  s.homepage = "http://github.com/markdillon/icebreaker"
11
11
  s.summary = "icebreaker-#{s.version}"
12
- s.description = "Generate a Rails 3.1.1 app with the Mongoid ORM (or OM) and RSpec for BDD testing."
12
+ s.description = "Generate a Rails 3.2.6 app with the Mongoid ORM (or OM) and RSpec for BDD testing."
13
13
 
14
14
  s.rubyforge_project = "icebreaker"
15
15
 
@@ -6,18 +6,19 @@ module IceBreaker
6
6
  class CLI < Thor
7
7
  include Thor::Actions
8
8
 
9
- desc "new [app]", "Create a new Rails 3.1.1 application"
9
+ desc "new [app]", "Create a new Rails 3.2.6 application"
10
10
  long_desc <<-D
11
11
  IceBreaker will ask you a few questions to determine what features you
12
- would like to generate. Based on your answers it will setup a new Rails 3.1.1 application.
12
+ would like to generate. Based on your answers it will setup a new Rails 3.2.6 application.
13
13
  D
14
14
 
15
15
  def new(project)
16
16
 
17
17
  # Ensure proper version of Rails is installed
18
- unless `gem which rails`.chomp =~ /3.1.1/
19
- puts "IceBreaker requires rails 3.1.1 or greater. Please install with the following command and then re-run the ice command:"
20
- puts "$ gem install rails -v 3.1.1 --no-ri --no-rdoc"
18
+ unless `rails -v`.chomp =~ /3.2.6/
19
+ puts "IceBreaker requires rails 3.2.6 or greater. Please install with the following command and then re-run the ice command:"
20
+ puts "$ gem install rails -v 3.2.6 --no-ri --no-rdoc"
21
+ puts "Currently getting #{`rails -v`}"
21
22
  exit 0
22
23
  end
23
24
 
@@ -33,7 +34,7 @@ module IceBreaker
33
34
  end
34
35
 
35
36
  command = "rails new #{project} --skip-active-record --skip-test-unit --template=#{template} "
36
- puts "Creating new Rails 3.1.1 project with: #{command}"
37
+ puts "Creating new Rails 3.2.6 project with: #{command}"
37
38
  exec(command)
38
39
  end
39
40
 
@@ -1,3 +1,3 @@
1
1
  module IceBreaker
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -12,7 +12,7 @@ gem "kaminari"
12
12
  gem "gravatar_image_tag", "1.0.0.pre2"
13
13
 
14
14
  # Object Mapper
15
- gem "mongoid"
15
+ gem "mongoid", "~> 3.0.0.rc"
16
16
  gem "bson_ext"
17
17
 
18
18
  # Date/Time Parsing
@@ -20,6 +20,5 @@ if ENV['MONGOHQ_URL']
20
20
  ENV['MONGOID_DATABASE'] = mongo_uri.path.gsub('/', '')
21
21
  end
22
22
 
23
- require 'mongoid/railtie'
24
23
  RUBY
25
24
  end
@@ -3,7 +3,7 @@ create_file '.rvmrc' do
3
3
  <<-RUBY
4
4
  #!/usr/bin/env bash
5
5
 
6
- rvm --create 1.9.2@#{app_name}
6
+ rvm --create 1.9.3@#{app_name}
7
7
 
8
8
  if [[ -s #{app_name}.gems ]] ; then
9
9
  rvm gemset import #{app_name}.gems
@@ -0,0 +1,14 @@
1
+ # Create unicorn configuration file
2
+ create_file 'config/unicorn.rb' do
3
+ <<-RUBY
4
+ worker_processes 4 # amount of unicorn workers to spin up
5
+ timeout 30 # restarts workers that hang for 30 seconds
6
+ RUBY
7
+ end
8
+
9
+ # Create a foreman procfile
10
+ create_file 'Procfile' do
11
+ <<-RUBY
12
+ web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
13
+ RUBY
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icebreaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.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-10-25 00:00:00.000000000Z
12
+ date: 2012-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70257248129780 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70257248129780
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: bundler
27
- requirement: &70257248129280 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,8 +37,13 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70257248129280
36
- description: Generate a Rails 3.1.1 app with the Mongoid ORM (or OM) and RSpec for
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: Generate a Rails 3.2.6 app with the Mongoid ORM (or OM) and RSpec for
37
47
  BDD testing.
38
48
  email:
39
49
  - mdillon@gmail.com
@@ -65,6 +75,7 @@ files:
65
75
  - templates/rspec_clean.rb
66
76
  - templates/rvm.rb
67
77
  - templates/test_suite.rb
78
+ - templates/unicorn.rb
68
79
  homepage: http://github.com/markdillon/icebreaker
69
80
  licenses: []
70
81
  post_install_message:
@@ -85,8 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
96
  version: '0'
86
97
  requirements: []
87
98
  rubyforge_project: icebreaker
88
- rubygems_version: 1.8.10
99
+ rubygems_version: 1.8.24
89
100
  signing_key:
90
101
  specification_version: 3
91
- summary: icebreaker-0.1.9
102
+ summary: icebreaker-0.2.0
92
103
  test_files: []