preseason 0.1.0 → 0.2.1

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/CONTRIBUTING.md CHANGED
@@ -4,6 +4,31 @@
4
4
  3. push to your fork
5
5
  4. submit a pull request
6
6
 
7
+ ### Developing Locally
8
+ 1. Fork the repo
9
+ 2. Clone it to your local machine
10
+ 3. `gem uninstall preseason` if you have it installed already
11
+ - you may be prompted about removing an executable called preseason. The answer is yes
12
+ 4. Crack the project open and make magic happen
13
+ 5. `gem build preseason.gemspec`
14
+ - should you receive an error message about the gem containing itself, try `rm preseason-0.0.1.gem` (or whatever version number we are on and stage that deletion
15
+ 6. `gem install preseason` in your global gemset
16
+ 7. In a separate terminal (or just outside the preseason dir), `presason <the name of your test project>`
17
+ 8. Information on tests coming soon.
18
+
19
+ ## Troubleshooting
20
+ * If you don't have QT libraries installed, you may get this error when installing Capybara
21
+ * `Command 'qmake -spec macx-g++' not available`
22
+ * Just run `brew install qt`. [Learn more](https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit)
23
+ * If you get the following error when building the gem, you need to stage the deletion of
24
+ `preseason.gem` file by `git stage -u preseason.x.x.x.gem`
25
+ ```
26
+ └[$] gem build preseason.gemspec
27
+ WARNING: See http://guides.rubygems.org/specification-reference/ for help
28
+ ERROR: While executing gem ... (Gem::InvalidSpecificationException)
29
+ from bin/rails:4:in `<main>'
30
+ ```
31
+
7
32
  ### Submitting Bug Reports
8
33
 
9
34
  If you're nice enough to submit a bug and make Preseason better, please
data/README.md CHANGED
@@ -54,6 +54,8 @@ If you need to write a template that executes ERB in the context of the running
54
54
  + sets config.autoload_paths += %W(\#{config.root}/lib)
55
55
  + sets up a template for using whenever for cronjobs (for non-Heroku apps)
56
56
  + installs rspec
57
+ * You will see a message about spring stopping. This is to allow the
58
+ `rspec:install` generator to run.
57
59
  + installs and sets up bourbon and neat
58
60
  + creates a template for your whiskey_disk deploy in config/deploy.yml (for non-Heroku apps)
59
61
  + creates Procfile for foreman
@@ -62,7 +64,7 @@ If you need to write a template that executes ERB in the context of the running
62
64
  + removes the test unit directory, the smoke test page, and the Rails logo.
63
65
  + migrates the db and recreates the test db from the DEV's schema
64
66
  + initializes a git repository, makes an "initial commit", and checks out a 'develop' branch
65
- + setup Heroku
67
+ + sets up Heroku (optionally)
66
68
 
67
69
  #### Preseason offers use of the following technologies:
68
70
 
@@ -94,36 +96,5 @@ If you need to write a template that executes ERB in the context of the running
94
96
 
95
97
  Preseason is a project by the development team at the [Centresource Interactive Agency](http://www.centresource.com) in Nashville, TN. The main push for this project is from [Cade Truitt](https://github.com/cade), [Travis Roberts](https://github.com/travisr), [Jeremy Holland](https://github.com/awebneck), [Adam Scott](https://github.com/ascot21), [Rian Rainey](https://github.com/rianrainey), and [Max Beizer](https://github.com/maxbeizer)
96
98
 
97
- ### ToDos
98
- * integration spec setup?
99
- * add active admin precompile asset list to production.rb
100
- * add logic to setup activeadmin for authlogic and allow choice between
101
- devise and authlogic rather than y/n for authlogic
102
-
103
- ### Developing Locally
104
- 1. Fork the repo
105
- 2. Clone it to your local machine
106
- 3. `gem uninstall preseason` if you have it installed already
107
- - you may be prompted about removing an executable called preseason. The answer is yes
108
- 4. Crack the project open and make magic happen
109
- 5. `gem build preseason.gemspec`
110
- - should you receive an error message about the gem containing itself, try `rm preseason-0.0.1.gem` (or whatever version number we are on and stage that deletion
111
- 6. `gem install preseason` in your global gemset
112
- 7. In a separate terminal (or just outside the preseason dir), `presason <the name of your test project>`
113
- 8. Information on tests coming soon.
114
-
115
- ## Troubleshooting
116
- * If you don't have QT libraries installed, you may get this error when installing Capybara
117
- * `Command 'qmake -spec macx-g++' not available`
118
- * Just run `brew install qt`. [Learn more](https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit)
119
- * If you get the following error when building the gem, you need to stage the deletion of
120
- `preseason.gem` file by `git stage -u preseason.x.x.x.gem`
121
- ```
122
- └[$] gem build preseason.gemspec
123
- WARNING: See http://guides.rubygems.org/specification-reference/ for help
124
- ERROR: While executing gem ... (Gem::InvalidSpecificationException)
125
- from bin/rails:4:in `<main>'
126
- ```
127
-
128
99
  ## License
129
- Preseason is Copyright © 2014 Centresource. It is free software, and may be redistributed under the terms specified in the [LICENSE](https://github.com/centresource/preseason/blob/master/LICENSE) file.
100
+ Preseason is Copyright © 2015 Centresource. It is free software, and may be redistributed under the terms specified in the [LICENSE](https://github.com/centresource/preseason/blob/master/LICENSE) file.
@@ -0,0 +1,17 @@
1
+ class Preseason
2
+ module Config
3
+ class WhiskeyDisk
4
+ include Config
5
+
6
+ attr_accessor :use
7
+
8
+ def ask_user
9
+ self.use = yes? "Would you like to include whiskey_disk? [y/n]"
10
+ end
11
+
12
+ def use?
13
+ use
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,5 +1,6 @@
1
1
  class Preseason::Recipe::Rspec < Preseason::Recipe
2
2
  def prepare
3
+ run 'spring stop' # stop spring to allow rspec install, otherwise it hangs
3
4
  generate 'rspec:install'
4
5
  end
5
6
  end
@@ -1,5 +1,5 @@
1
1
  class Preseason::Recipe::WhiskeyDisk < Preseason::Recipe
2
2
  def prepare
3
- mirror_file 'config/deploy.yml' unless config.heroku.use?
3
+ mirror_file 'config/deploy.yml' if config.whiskey_disk.use?
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  class Preseason
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/preseason.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "preseason/version"
1
+ require 'preseason/version'
2
2
  require 'ostruct'
3
3
  require_relative 'preseason/generator_context'
4
4
  require_relative 'preseason/colorize'
@@ -22,7 +22,8 @@ class Preseason
22
22
  :factory => Preseason::Config::Factory.new,
23
23
  :authentication => Preseason::Config::Authentication.new,
24
24
  :ie8 => Preseason::Config::IE8.new,
25
- :heroku => Preseason::Config::Heroku.new
25
+ :heroku => Preseason::Config::Heroku.new,
26
+ :whiskey_disk => Preseason::Config::WhiskeyDisk.new
26
27
  )
27
28
  end
28
29
 
@@ -38,6 +39,7 @@ class Preseason
38
39
  config.factory.ask_user
39
40
  config.authentication.ask_user
40
41
  config.heroku.ask_user if config.database.postgres?
42
+ config.whiskey_disk.ask_user
41
43
  config.ie8.ask_user
42
44
  end
43
45
 
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: preseason
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Centresource Interactive Agency
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-01-14 00:00:00.000000000 Z
12
+ date: 2015-03-11 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: pry
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: bundler
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: rake
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
@@ -93,6 +102,7 @@ files:
93
102
  - lib/preseason/config/factory.rb
94
103
  - lib/preseason/config/heroku.rb
95
104
  - lib/preseason/config/ie8.rb
105
+ - lib/preseason/config/whiskey_disk.rb
96
106
  - lib/preseason/generator_context.rb
97
107
  - lib/preseason/recipe.rb
98
108
  - lib/preseason/recipe/active_admin.rb
@@ -150,26 +160,27 @@ files:
150
160
  homepage: https://github.com/centresource/preseason
151
161
  licenses:
152
162
  - MIT
153
- metadata: {}
154
163
  post_install_message:
155
164
  rdoc_options: []
156
165
  require_paths:
157
166
  - lib
158
167
  required_ruby_version: !ruby/object:Gem::Requirement
168
+ none: false
159
169
  requirements:
160
- - - '>='
170
+ - - ! '>='
161
171
  - !ruby/object:Gem::Version
162
172
  version: 2.0.0
163
173
  required_rubygems_version: !ruby/object:Gem::Requirement
174
+ none: false
164
175
  requirements:
165
- - - '>='
176
+ - - ! '>='
166
177
  - !ruby/object:Gem::Version
167
178
  version: '0'
168
179
  requirements: []
169
180
  rubyforge_project:
170
- rubygems_version: 2.2.2
181
+ rubygems_version: 1.8.23
171
182
  signing_key:
172
- specification_version: 4
183
+ specification_version: 3
173
184
  summary: We start a lot of new Rails projects; this gem is intended to reduce that
174
185
  spin up time by bringing in the tools we use in one fell swoop.
175
186
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: c941f7a4dc7d812619e5d7fd7bb4de7de0501905
4
- data.tar.gz: 02d6f7db177d6efd2669b8fd81e2b5f04a4e4c3e
5
- SHA512:
6
- metadata.gz: 6e36dc96c787425da1d6b79dad713a551303c67554f556a8d3be547f4840eb4dc6b939c43a986a17195e96819e9dbcd226aa1de4987d497abbde5772833d58eb
7
- data.tar.gz: 8593dac8e609dd814e6ec3ec7b20e7730f46f17249a2e69cc67e522b44acad8aca0ee500747b495f09f2fd433ff7635061813e281721d93cd1fd0cd16465005d