rails_apps_composer 1.4.9 → 1.4.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,7 +62,7 @@ ERB
62
62
  #----------------------------------------------------------------------------
63
63
  gsub_file 'app/controllers/sessions_controller.rb', /redirect_to root_url, :notice => 'Signed in!'/ do
64
64
  <<-RUBY
65
- if !user.email
65
+ if user.email.blank?
66
66
  redirect_to edit_user_path(user), :alert => "Please enter your email address."
67
67
  else
68
68
  redirect_to root_url, :notice => 'Signed in!'
@@ -19,7 +19,8 @@ validates_format_of :name, with: /^[a-z0-9_]+$/, message: 'must be lowercase alp
19
19
  RUBY
20
20
  end
21
21
  # modify db/seeds.rb
22
- gsub_file 'db/seeds.rb', /First User/, 'myname'
22
+ gsub_file 'db/seeds.rb', /First User/, 'user1'
23
+ gsub_file 'db/seeds.rb', /Second User/, 'user2'
23
24
  # controller and views for the profile page
24
25
  create_file 'app/controllers/profiles_controller.rb' do
25
26
  <<-RUBY
@@ -62,7 +63,7 @@ RUBY
62
63
  end
63
64
  # create routes for subdomains
64
65
  gsub_file 'config/routes.rb', /root :to => "home#index"/, ''
65
- inject_into_file 'config/routes.rb', :after => 'resources :users, :only => :show' do <<-RUBY
66
+ inject_into_file 'config/routes.rb', :after => 'resources :users, :only => [:show, :index]' do <<-RUBY
66
67
 
67
68
  constraints(Subdomain) do
68
69
  match '/' => 'profiles#show'
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "1.4.9"
2
+ VERSION = "1.4.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.9
4
+ version: 1.4.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-11 00:00:00.000000000 Z
12
+ date: 2012-05-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -225,7 +225,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
225
225
  version: '0'
226
226
  segments:
227
227
  - 0
228
- hash: 3252811679047718809
228
+ hash: -3168125629194952451
229
229
  required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  none: false
231
231
  requirements:
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  version: '0'
235
235
  segments:
236
236
  - 0
237
- hash: 3252811679047718809
237
+ hash: -3168125629194952451
238
238
  requirements: []
239
239
  rubyforge_project: rails_apps_composer
240
240
  rubygems_version: 1.8.23