inline_forms 1.6.28 → 1.6.29

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8745f24aaf567a5fc05d3b6cdb5b4463af31ac5f
4
- data.tar.gz: 5984950419d884fbbb34b7e350a6247b58ae182f
3
+ metadata.gz: 5197f4347565becf3a903bbd92f0dd1a6511e368
4
+ data.tar.gz: 70f81f8187e1ce03cd7061168eb718d08ce4030c
5
5
  SHA512:
6
- metadata.gz: 801490ea849eb28760b3a511f5089c9cd0568bf042e30c6020f941e7d65b8b543e3c07fac8110d0bc12fa4e8dc57df2d38dffcf173e2fe2ce43755781a771080
7
- data.tar.gz: 3e92bcd56ac1b27d6dab5a5437d896a4a94902eaa94942317d2d9c02724d2206ae430e9da5653b95bf679e19fab3d7b1051719fe98ee1052abf681cfdba2f850
6
+ metadata.gz: 7cc03959fa51136a84f16681a21724227f17cbe8c174daa18bb90473225d9a2b332b2f19875f47cf4aa435a0efbe992bef0e23aefa9d8b9d742709d5a4d5b218
7
+ data.tar.gz: 864693e58482f9b6ec8712f37de09fd280ff2e67d5e8fba173a8f24a7f67073ae44ee666418d9d730962e7d054d7a5f33833114ab3621e9e3501fd2f04a51680
data/bin/inline_forms CHANGED
@@ -90,7 +90,7 @@ module InlineForms
90
90
  if dry_run?
91
91
  empty_directory(app_name)
92
92
  else
93
- if ! run("rails new #{app_name} --skip-bundle --skip-gemfile")
93
+ if ! run("rails _3.2.12_ new #{app_name} --skip-bundle --skip-gemfile")
94
94
  say "Rails could not create the app '#{app_name}', maybe because it is a reserved word...", :red
95
95
  exit 1
96
96
  end
@@ -157,7 +157,7 @@ module InlineForms
157
157
  system "bundle install" unless dry_run?
158
158
 
159
159
  say "- Database setup: creating config/database.yml with development database #{database}"
160
- remove_file "#{app_name}/config/database.yml" # the one that 'rails new' created
160
+ remove_file "#{app_name}/config/database.yml" # the one that 'rails _3.2.12_ new' created
161
161
  if using_sqlite?
162
162
  create_file "#{app_name}/config/database.yml", <<-END_DATABASEYML.strip_heredoc_with_indent
163
163
  development:
@@ -285,9 +285,9 @@ module InlineForms
285
285
  run "bundle exec rails g paper_trail:install" unless dry_run?
286
286
 
287
287
  say "- Generate models and tables and views for translations..."
288
- run 'rails g inline_forms InlineFormsLocale name:string inline_forms_translations:belongs_to _enabled:yes _presentation:\'#{name}\''
289
- run 'rails g inline_forms InlineFormsKey name:string inline_forms_translations:has_many inline_forms_translations:associated _enabled:yes _presentation:\'#{name}\''
290
- run 'rails g inline_forms InlineFormsTranslation inline_forms_key:belongs_to inline_forms_locale:dropdown value:text interpolations:text is_proc:boolean _presentation:\'#{value}\''
288
+ run 'bundle exec rails g inline_forms InlineFormsLocale name:string inline_forms_translations:belongs_to _enabled:yes _presentation:\'#{name}\''
289
+ run 'bundle exec rails g inline_forms InlineFormsKey name:string inline_forms_translations:has_many inline_forms_translations:associated _enabled:yes _presentation:\'#{name}\''
290
+ run 'bundle exec rails g inline_forms InlineFormsTranslation inline_forms_key:belongs_to inline_forms_locale:dropdown value:text interpolations:text is_proc:boolean _presentation:\'#{value}\''
291
291
 
292
292
  sleep 1 # to get unique migration number
293
293
  create_file "#{app_name}/db/migrate/" +
@@ -461,15 +461,15 @@ module InlineForms
461
461
 
462
462
  if install_example?
463
463
  say "\nInstalling example application..."
464
- run 'rails g inline_forms Picture name:string caption:string image:image_field description:text apartment:belongs_to _presentation:\'#{name}\''
465
- run 'rails generate uploader Image'
466
- run 'rails g inline_forms Apartment name:string title:string description:text pictures:has_many pictures:associated _enabled:yes _presentation:\'#{name}\''
464
+ run 'bundle exec rails g inline_forms Picture name:string caption:string image:image_field description:text apartment:belongs_to _presentation:\'#{name}\''
465
+ run 'bundle exec rails generate uploader Image'
466
+ run 'bundle exec rails g inline_forms Apartment name:string title:string description:text pictures:has_many pictures:associated _enabled:yes _presentation:\'#{name}\''
467
467
  run 'bundle exec rake db:migrate'
468
468
  say "\nDone! Now point your browser to http://localhost:3000/apartments !", :yellow
469
469
  say "\nPress ctlr-C to quit...", :yellow
470
- run 'rails s'
470
+ run 'bundle exec rails s'
471
471
  else
472
- say "\nDone! Now make your tables with 'rails g inline_forms ...", :yellow
472
+ say "\nDone! Now make your tables with 'bundle exec rails g inline_forms ...", :yellow
473
473
  #say "- Don't forget: edit .rvmrc, config/{routes.rb, deploy.rb}, .git/config, delete public/index.html\n"
474
474
  end
475
475
 
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.6.28"
3
+ VERSION = "1.6.29"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.28
4
+ version: 1.6.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2013-07-08 00:00:00 Z
12
+ date: 2013-07-09 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rvm