[
http://jira.openqa.org/browse/WTR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zeljko closed WTR-393.
----------------------
Resolution: Won't Fix
If this is still a problem, please report it here:
https://github.com/watir/watir-classic/issues
> Cannot vendor firewatir gem (Rails)
> -----------------------------------
>
> Key: WTR-393
> URL: http://jira.openqa.org/browse/WTR-393
> Project: Watir
> Issue Type: Bug
> Components: FireWatir
> Affects Versions: Open QA Migration
> Environment: linux
> Reporter: Zeljko
> Assignee: Charley Baker
> Fix For: Future
>
>
> - moved from http://code.google.com/p/firewatir/issues/detail?id=71
> Issue 71: Cannot vendor firewatir gem (Rails)
> 1 person starred this issue and may be notified of changes.
> Status: New
> Owner: ----
> Type-Defect
> Priority-Medium
> Reported by pietromas, Jun 13, 2008
> What steps will reproduce the problem?
> 1. Add config.gem 'firewatir' to config/environment.rb
> 2. sudo gem install firewatir
> 3. rake gems:unpack && rake gems:build
> 4. sudo gem uninstall firewatir
> 5. run your tests
> What is the expected output? What do you see instead?
> Tests should run the same way they do when firewatir gem is installed on
> the system. Instead it will choke because "These gems that this application
> depends on are missing: - firewatir"
> What version of the product are you using? On what operating system?
> 1.1.1, Ubuntu. Rails 2.1.0, RubyGems 0.9.4.
> Please provide any additional information below.
> This is hugely frustrating.
> ---
> Comment 1 by pietromas, Jun 13, 2008
> Solution is to restructure gem in more standard way (i.e. add a lib
> directory). As a
> work around you could add something like
> {code}
> config.load_paths += Dir["#{RAILS_ROOT}/vendor/gems/**"].map do |dir|
> File.directory?("#{dir}/lib") ? '' : dir
> end
> {code}
> (adds the top level directory of every vendored gem to the load path unless it
> contains a lib directory (which will already be added automagically)) to
> environment.rb.
> ---
> Comment 2 by pietromas, Jun 13, 2008
> Neater ...
> {code}
> config.load_paths += Dir["#{RAILS_ROOT}/vendor/gems/*"].reject {
> |d| File.directory?("#{d}/lib")
> }
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development