Code Monkey home page Code Monkey logo

enginex's Issues

How to add cucumber?

Currently it has options for test_unit and rspec.
How can I use cucumber too for testing??

enginex doesn't like projects with hyphens in the name

I have a project in a directory fiddleback-shared. During the initial generation, lib/fiddleback_shared.rb is generated but the module is named Fiddleback-shared (instead of FiddlebackShared).

This happens in various other places, too: test/fiddleback_shared_test.rb contained class Fiddleback-sharedTest

how do I use it?

yo dawg, I herd you twited something about asking questions in the issue tracker. so here it is: wat dis project is really for?

can't activate activesupport (= 3.0.0) for [], already activated activesupport-3.0.5 for [] (Gem::LoadError)

I've just installed enginex and when I try to run it I get the following error.

/Users/tesla/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:268:in `activate': can't activate activesupport (= 3.0.0) for [], already activated activesupport-3.0.5 for [] (Gem::LoadError)
from /Users/tesla/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:50:in `block in require'
from /Users/tesla/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:48:in `each'
from /Users/tesla/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:48:in `require'
from /Users/tesla/.rvm/gems/ruby-1.9.2-p0/gems/enginex-0.8.1/lib/enginex.rb:2:in `<top (required)>'
from /Users/tesla/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/tesla/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
from /Users/tesla/.rvm/gems/ruby-1.9.2-p0/gems/enginex-0.8.1/bin/enginex:4:in `<top (required)>'
from /Users/tesla/.rvm/gems/ruby-1.9.2-p0/bin/enginex:19:in `load'
from /Users/tesla/.rvm/gems/ruby-1.9.2-p0/bin/enginex:19:in `<main>'

Any help is really appreciated. I can't wait to start following the book...

The generator does not add the respond_to :html, :xml

When I run the scaffold generator it does not add the line:

respond_to :html, :xml

At the top of the controller. The first time you access the controller it throws an error that this line is missing.

It is a great tool and I am enjoying the book.

Cheers

BSON::InvalidDocument: Cannot serialize an object of class ActiveRecord::ConnectionAdapters::SQLite

BSON::InvalidDocument: Cannot serialize an object of class ActiveRecord::ConnectionAdapters::SQLiteC│~
olumn into BSON.: INSERT INTO "users" ("age", "created_at", "name", "updated_at") VALUES (?, ?, ?, ?

In the chapter about "Storing notifications in the Database", I met a error given above.

no working of enginex under rails 3.2, so I use

  • rails plugin new SqlMetrics, all tests are passed, and
  • when executing "bundle exec rails generate scaffold User name:string age:integer" under test/dummy ,
  • creating a user object and save it ,
  • then the error is thrown.

app/helpers not included

I am using enginex with rails 3.0.8 (also tried 3.0.10, same problem). In the test\dummy\ I have a home page that calls a helper method.

This helper lies in my_gem\app\helpers

For some reason, the helper is being considered an 'undefined method'. I am trying to follow your Crafting Rails Applications procedure. What shocks me is that I do have require 'my_app' in my config\application.rb

Am I missing something?

Thanks!
Andy

comments on default usage

hey Jose,

Was looking into building some mountable engines for rails 3.1 tonight and I found this. What would you think of having the default behavior (when nothing is passed in) be to show the banner? I feel like that's more helpful than throwing an error right away. Maybe it's just me, but my default action when testing out a new command is to just run it on it's own.

Anyway, just a thought. Look forward to using this!

spelling fix

minor spelling fix for comment on line 1: in "lib/templates/spec/spec_helper.rb"

already activated: activesupport

When running:

enginex new_engine

I'm getting this:

`raise_if_conflicts': can't activate activesupport-3.0.3, already activated activesupport-3.0.9

assets RoutingErrors when running Dummy app w Rails 3.10

everything run smoothly ... just the 2 routing errors

Started GET "/" for 127.0.0.1 at 2011-09-21 12:04:15 +0200
Processing by ContactFormsController#new as HTML
Rendered contact_forms/new.html.erb within layouts/application (16.8ms)
Completed 200 OK in 62ms (Views: 61.6ms | ActiveRecord: 0.0ms)

Started GET "/javascripts/application.js" for 127.0.0.1 at 2011-09-21 12:04:16 +0200
...
ActionController::RoutingError (No route matches [GET] "/javascripts/application.js")
..
ActionController::RoutingError (No route matches [GET] "/stylesheets/application.css"

enginex doesn't work with rails 3.0.10

I use command "enginex pdf_renderer", but failed, error info as follow

/home/wuguoyao/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1603:in raise_if_conflicts': can't activate activesupport-3.0.0, already activated activesupport-3.0.10 (Gem::LoadError) from /home/wuguoyao/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:738:inactivate'
from /home/wuguoyao/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:51:in block in require' from /home/wuguoyao/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:50:ineach'
from /home/wuguoyao/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:50:in require' from /home/wuguoyao/.rvm/gems/ruby-1.9.2-p0@rails3/gems/enginex-0.8.1/lib/enginex.rb:2:in<top (required)>'
from /home/wuguoyao/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in require' from /home/wuguoyao/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:inrequire'
from /home/wuguoyao/.rvm/gems/ruby-1.9.2-p0@rails3/gems/enginex-0.8.1/bin/enginex:4:in <top (required)>' from /home/wuguoyao/.rvm/gems/ruby-1.9.2-p0@rails3/bin/enginex:19:inload'
from /home/wuguoyao/.rvm/gems/ruby-1.9.2-p0@rails3/bin/enginex:19:in `

'

Running rake tasks from the dummy app

In the tests for my engine, I want to drop/create/migrate (ie, db:reset) the database of the dummy rails app with every test run - is it possible to expose the rake tasks from that app up to the Rakefile of the engine itself, or is there a better way to do that?

undefined method `has_selector?

I generated a bare engine via the executable with the rspec option.
And I added one controller spec where I am asserting response.should have_selector("h1", :content => "hello")
But it blows up. Do I need to require anything seperately?

Failures:
  1) MeroCms::PagesController GET 'pages' should be successful
     Failure/Error: response.should have_selector("h1", :content => "hello")
     undefined method `has_selector?' for #<ActionController::TestResponse:0x10375afb8>
     # ./spec/controllers/pages_controller_spec.rb:11
     # /Users/millisami/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject'

undefined local variable or method 'dep' in ruby 1.9.2

Hi Jose,

I have the following error using ruby 1.9.2, but using 1.8.7 everything works ok.

~/work/conferize% rvm use 1.9.2
Using /home/pdelgallego/.rvm/gems/ruby-1.9.2-p180

~/work/conferize% enginex conferize_test         
/home/pdelgallego/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:283:in `activate_spec': undefined local variable or method `dep' for Gem:Module (NameError)
    from /home/pdelgallego/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:49:in `block in require'
    from /home/pdelgallego/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:48:in `each'
    from /home/pdelgallego/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:48:in `require'
    from /home/pdelgallego/.rvm/gems/ruby-1.9.2-p180/gems/enginex-0.8.1/lib/enginex.rb:2:in `<top (required)>'
    from /home/pdelgallego/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:53:in `require'
    from /home/pdelgallego/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:53:in `require'
    from /home/pdelgallego/.rvm/gems/ruby-1.9.2-p180/gems/enginex-0.8.1/bin/enginex:4:in `<top (required)>'
    from /home/pdelgallego/.rvm/gems/ruby-1.9.2-p180/bin/enginex:19:in `load'
    from /home/pdelgallego/.rvm/gems/ruby-1.9.2-p180/bin/enginex:19:in `<main>'

BTW congrats on your book, I am enjoying it a lot.

Plugin load

Great gem, I was looking for something like this! Thank you.

I'm using it for a plugin. Is there an easy way to load plugin paths, including app/, even init.rb for tests?

can't activate activesupport-3.0.7, already activated activesupport-3.0.9.rc3

Following the code in your book, when I run:

enginex pdf_renderer

I get this:

/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1600:in `raise_if_conflicts': can't activate activesupport-3.0.7, already activated activesupport-3.0.9.rc3 (Gem::LoadError)
from /home/stephen/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:737:in `activate'

I have removed rails-3.0.9.rc3 from my system and problem is gone.

activesupport error

Upon running 'enginex my_engine' I get the following:

/Users/matt/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:268:in activate': can't activate activesupport (= 3.0.6) for [], already activated activesupport-3.0.9 for [] (Gem::LoadError) from /Users/matt/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:50:inblock in require'
from /Users/matt/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:48:in each' from /Users/matt/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:48:inrequire'
from /Users/matt/.rvm/gems/ruby-1.9.2-p180/gems/enginex-0.8.1/lib/enginex.rb:2:in <top (required)>' from /Users/matt/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:inrequire'
from /Users/matt/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in require' from /Users/matt/.rvm/gems/ruby-1.9.2-p180/gems/enginex-0.8.1/bin/enginex:4:in<top (required)>'
from /Users/matt/.rvm/gems/ruby-1.9.2-p180/bin/enginex:19:in load' from /Users/matt/.rvm/gems/ruby-1.9.2-p180/bin/enginex:19:in

'

I have both activesupport 3.06 and 3.09 installed. Any ideas? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.