Cucumber and Rails 2.3.x Initializers
January 10th, 2011
Cucumber sets the RAILS_ENV to ‘cucumber’, so this means that any yaml configuration files that use RAIL_ENV will need to be modified to handle RAILS_ENV being set to ‘cucumber’.
Be sure to check your YAML files as follows:
cd <RAILS_ROOT>/config grep -R RAILS_ENV *.yml
Be sure to check your initializers and environment code
cd <RAILS_ROOT>/config grep -R RAILS_ENV *.rb
Rails 2.3.8 with rspec and cucumber
November 11th, 2010
Now that Rails 3.0 has been released, rspec and cucumber are version numbers are moving forward. If you’re still supporting a Rails 2.3.8 app and need rspec and cucumber, here is the gem list:
rspec (1.3.0) rspec-rails (1.3.2, 1.3.0) gherkin (2.2.9, 2.1.5) cucumber (0.8.5) cucumber-rails (0.3.2) capybara (0.4.0) database_cleaner (0.6.0)
Installation
rails -d postgresql kuketest cd kuketest vi config/database.yml ruby script/generate rspec ruby script/generate cucumber --rspec --capybara
If desired, add factory_girl
sudo gem install factory_girl -v 1.2.4
Before testing the cucumber features, make sure you have prepared the test database:
rake db:test:prepare
You’ll need to install the following, to support Capybara, on Debian Systems:
apt-get install libxml2-dev apt-get install libxslt-dev
Adding a gem to your own gem repository
November 11th, 2010
gem install builder cd /usr/local/src git clone git://github.com/user/gem cd /usr/local/src/gem_src gem build the_gem.gemspec cd /usr/local/src/gem_src cp the_gem.gem /var/www/gemsite/gem cd /var/www/gemsite gem generate_index -d /var/www/gemsite
mysql gem and OSX 10.6.4
September 18th, 2010
The mysql gem is used for performance, since it provides mysql C binding for use by Ruby on Rails or Ruby programs.
sudo port install mysql5 mysql5-server mysql5-devel
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -v 2.7 \ -- --with-mysql-config=/opt/local/bin/mysql_config5
Declarative Authorization, Ruby 1.8.7, and Heroku Bamboo
August 31st, 2010
The latest declarative_authorization uses requires the use Ruby 1.8.7 and is incompatible with the Heroku Aspen stack, therefore if you are on the Aspen stack, you must migrate to the Bamboo stack that has Ruby 1.8.7.
After you have migrated to the Bamboo stack, you will find that your Heroku app will not start, this is because incompatible gems have been pulled in, which conflict with Rack 1.1.0, when Heroku adds the declarative_authorization gem.
To prevent pulling in the incompatible gems, specify in the .gems file:
declarative_authorization --ignore-dependencies
For more details: http://docs.heroku.com/rails236
Daimoku Update: Agent Smith online!
February 27th, 2010
System Agent AI “Agent Smith” is now online!
In case you didn’t know, the Agents are there to keep order and prevent the Players from becoming ‘Neo’ and hacking the game world, from inside. NPC System Agents will patrol the system looking for anomalies and punish those that attempt to overthrow or hack the game world.
Daimoku Multi-Programmer Online is an environment written in Ruby and ActiveRecord and implemented using Why’s Freaky-Freaky Sandbox. Daimoku allows multiple Ruby programmers to chat, share code and objects in real-time in an EW-Two-style environment.
Visit http://daimoku.elitefrontier.org for more information
Daimoku Multi-Programmer Online: Update
January 31st, 2010
Daimoku Multi-Programmer Online is an environment written in Ruby and ActiveRecord and implemented using Why’s Freaky-Freaky Sandbox. Daimoku allows multiple Ruby programmers to chat, share code and objects in real-time in an EW-Two-style environment.
System Agent AIs
NPC System Agents are now online. The only thing left is to program their AI to look for game world anomalies.
In case you didn’t know, the Agents are there to keep order and prevent the Players from becoming ‘Neo’ and hacking the game world, from inside. NPC System Agents will patrol the system looking for anomalies and punish those that attempt to overthrow or hack the game world.
Alpha Testers Wanted
If you’re interested in being an alpha tester and messing around with the system, send an e-mail to [rdegraci @ gmail com] with the subject “Request Daimoku Alpha Test”.
Any questions? Just ask in the comments.