Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

engine_cart:prepare is idempotent when stanza is current #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

engine_cart:prepare is idempotent when stanza is current #82

wants to merge 1 commit into from

Conversation

dazza-codes
Copy link

@dazza-codes dazza-codes commented May 20, 2017

$ bundle exec rake -T
rake build                                    # Build engine_cart-1.1.0.gem into the pkg directory
rake clean                                    # Remove any temporary products
rake clobber                                  # Remove any generated files
rake engine_cart:clean                        # Clean out the test rails app
rake engine_cart:console[rails_console_args]  # Start the internal test application using `rails console`
rake engine_cart:generate[fingerprint]        # Create the test rails app

## this PR add the "force" option
rake engine_cart:prepare[force]               # Prepare a gem for using engine_cart

rake engine_cart:regenerate                   # Regenerate the test rails app
rake engine_cart:server[rails_server_args]    # Start the internal test application using `rails server`
rake install                                  # Build and install engine_cart-1.1.0.gem into system gems
rake install:local                            # Build and install engine_cart-1.1.0.gem into system gems without network access
rake release[remote]                          # Create tag v1.1.0 and build and push engine_cart-1.1.0.gem to Rubygems
rake spec                                     # Run RSpec code examples

$ bundle exec rake engine_cart:prepare
      create  spec/test_app_templates
      create  spec/test_app_templates/lib/generators
      create  spec/test_app_templates/lib/generators/test_app_generator.rb
      append  .gitignore
      append  Gemfile
$ bundle exec rake engine_cart:prepare  # no-op, stanza is current
$ bundle exec rake engine_cart:prepare  # no-op, stanza is current

# force it to prepare again
$ bundle exec rake engine_cart:prepare[true]
       exist  spec/test_app_templates
       exist  spec/test_app_templates/lib/generators
   identical  spec/test_app_templates/lib/generators/test_app_generator.rb
      append  .gitignore
      append  Gemfile

@dazza-codes
Copy link
Author

Really weird travis build failure and can't restart the build:

NameError: uninitialized constant EngineCart::Configuration::ERB

Works for me:

/users/dlweber/.rbenv/versions/2.4.1/bin/ruby -I/users/dlweber/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rspec-core-3.6.0/lib:/users/dlweber/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rspec-support-3.6.0/lib /users/dlweber/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
..../users/dlweber/.rbenv/versions/2.4.1/lib/ruby/2.4.0/fileutils.rb:120: warning: conflicting chdir during another chdir block
../users/dlweber/.rbenv/versions/2.4.1/lib/ruby/2.4.0/fileutils.rb:120: warning: conflicting chdir during another chdir block
/users/dlweber/.rbenv/versions/2.4.1/lib/ruby/2.4.0/fileutils.rb:120: warning: conflicting chdir during another chdir block
...

Finished in 57.8 seconds (files took 0.19575 seconds to load)
9 examples, 0 failures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant