fast_track 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ class FastTrack
2
+ class TrackNotFound < Exception
3
+ def initialize(track_name)
4
+ super("Could not find track #{track_name}! Please double-check the provided params.")
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module FastTrack
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/fast_track.rb CHANGED
@@ -8,6 +8,7 @@ require 'pry'
8
8
  require 'rails/generators'
9
9
  require 'rails/generators/rails/app/app_generator'
10
10
 
11
+ require 'fast_track/exceptions'
11
12
  require 'fast_track/config'
12
13
 
13
14
  require 'fast_track/track_methods'
@@ -15,20 +16,24 @@ require 'fast_track/track'
15
16
 
16
17
  require 'fast_track/generator'
17
18
 
18
- require 'fast_track/cancan'
19
- require 'fast_track/rolify'
20
- require 'fast_track/devise'
19
+ # require 'fast_track/cancan'
20
+ # require 'fast_track/rolify'
21
+ # require 'fast_track/devise'
21
22
 
22
- require 'fast_track/awesome_defaults'
23
- require 'fast_track/twitter_bootstrap'
23
+ # require 'fast_track/awesome_defaults'
24
+ # require 'fast_track/twitter_bootstrap'
24
25
 
25
- class FastTrack
26
- class TrackNotFound < Exception
27
- def initialize(track_name)
28
- super("Could not find track #{track_name}! Please double-check the provided params.")
29
- end
30
- end
26
+ # Load FastTrack tracks
27
+ Dir[File.join(File.dirname(__FILE__), 'lib', 'tracks')].each do |file|
28
+ load file
29
+ end
31
30
 
31
+ # Load local tracks
32
+ Dir[File.join(File.expand_path("~/"), ".fast_track", "*.rb")].each do |file|
33
+ load file
34
+ end
35
+
36
+ class FastTrack
32
37
  def initialize
33
38
  FastTrack.validate_options!
34
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_track
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -94,23 +94,12 @@ files:
94
94
  - fast_track.gemspec
95
95
  - lib/fast_track.rb
96
96
  - lib/fast_track/app.rb
97
- - lib/fast_track/awesome_defaults.rb
98
- - lib/fast_track/backbone.rb
99
- - lib/fast_track/better_exceptions.rb
100
- - lib/fast_track/cancan.rb
101
97
  - lib/fast_track/config.rb
102
- - lib/fast_track/devise.rb
103
- - lib/fast_track/errbit_heroku.rb
98
+ - lib/fast_track/exceptions.rb
104
99
  - lib/fast_track/generator.rb
105
- - lib/fast_track/guard.rb
106
- - lib/fast_track/jquery.rb
107
- - lib/fast_track/mysql.rb
108
- - lib/fast_track/omniauth.rb
109
- - lib/fast_track/rolify.rb
110
100
  - lib/fast_track/thin.rb
111
101
  - lib/fast_track/track.rb
112
102
  - lib/fast_track/track_methods.rb
113
- - lib/fast_track/twitter_bootstrap.rb
114
103
  - lib/fast_track/version.rb
115
104
  - lib/templates/guard_awesome_defaults/Guardfile
116
105
  - lib/templates/twitter_bootstrap/application.css
@@ -119,6 +108,18 @@ files:
119
108
  - lib/templates/twitter_bootstrap_nav_bar/_navigation.html.erb
120
109
  - lib/templates/twitter_bootstrap_nav_bar/application.html.erb
121
110
  - lib/templates/twitter_bootstrap_nav_bar/application_helper.rb
111
+ - lib/tracks/awesome_defaults.rb
112
+ - lib/tracks/backbone.rb
113
+ - lib/tracks/better_exceptions.rb
114
+ - lib/tracks/cancan.rb
115
+ - lib/tracks/devise.rb
116
+ - lib/tracks/errbit_heroku.rb
117
+ - lib/tracks/guard.rb
118
+ - lib/tracks/jquery.rb
119
+ - lib/tracks/mysql.rb
120
+ - lib/tracks/omniauth.rb
121
+ - lib/tracks/rolify.rb
122
+ - lib/tracks/twitter_bootstrap.rb
122
123
  homepage: ''
123
124
  licenses:
124
125
  - MIT
@@ -134,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
135
  version: '0'
135
136
  segments:
136
137
  - 0
137
- hash: -2716300588193835807
138
+ hash: 4523048594153792430
138
139
  required_rubygems_version: !ruby/object:Gem::Requirement
139
140
  none: false
140
141
  requirements:
@@ -143,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
144
  version: '0'
144
145
  segments:
145
146
  - 0
146
- hash: -2716300588193835807
147
+ hash: 4523048594153792430
147
148
  requirements: []
148
149
  rubyforge_project:
149
150
  rubygems_version: 1.8.25
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes