search for: win32console

Displaying 16 results from an estimated 16 matches for "win32console".

2007 Mar 06
10
Windows rspec "gem install win32console"
Hi, Hi I am trying to use RSPEC on windows and i keep getting the following error "You must gem install win32console to use colour on Windows" I have installed this Gem but i am still getting the same error. The file that error is coming from is: C:\ruby\lib\ruby\gems\1.8\gems\rspec-0.8.2\lib\spec\runner\formatter\base_text_formatter.rb Do i need to put this line of code in? Where do i put it? require ...
2008 Jan 21
6
Rspec 1.1.2 on Windows
I am using Rspec 1.1.2 on Windows XP SP2 I am receiving the following error when I run ''rake spec'' from a brand new project: C:/SVN_Projects/rspec/vendor/plugins/rspec/lib/spec/runner/options.rb:107:in `colour='': You must gem install win32console to use colour on Windows (RuntimeError) I have the win32console gem installed and the error still occurs. It seems that the require statement in options.rb line 105 is throwing an exception and I am not sure why. I have even gone to the extent of replacing ''Win32/Console/ANSI''...
2010 Oct 28
0
Autotest+RSpec2+Win32console = no color
I have the same problem with the combination above with Ruby 1.9.2 on Windows XP, as described here: http://www.ruby-forum.com/topic/205569 Calling Rspec directly produces colored output, but autotest spits out ANSI sequences. The issue was supposed to be closed with win32console 1.3.0, but obviously it didn''t for the above-mentioned combination. -- Posted via http://www.ruby-forum.com/.
2007 Aug 18
6
RSpec: "--color" not working in spec.opts when combined with "--drb"
Windows XP SP 2 ruby 1.8.5 gems: rails 1.2.3 rake 0.7.3 win32console 1.0.8 plugins: rspec 1.0.8 rspec_rails 1.0.8 spec.opts: --colour --format progress --loadby mtime --reverse --drb When I run "rake spec" or "ruby script/spec spec --color" this is the output: D:\dev\project>rake spec (in D:/dev/project) ←[32m.←[0m←[32m.←[0m←[32m.←[0m←[32m...
2007 Dec 27
3
RSpec on Ruby 1.9: before(:all) (Not Yet Implemented) pending messages instead of tests
On Dec 27, 2007 3:18 PM, Shot (Piotr Szotkowski) <shot at hot.pl> wrote: > Shot (Piotr Szotkowski): > > > I happily hand-compiled Ruby 1.9.0-0 into /home/shot/opt/ruby today > > and I''m running into a strange error with RSpec ? all my examples work > > perfectly with Ruby 1.8 but are considered peding on Ruby 1.9. > > FWIW, I get the same result with
2012 May 16
0
Announce: Puppet 2.7.15rc1 Available
...modules by looking them up in its cached list, resulting in up to an order of magnitude improvement in compilation time. *Colorize console output on Windows Previously, `Puppet[:color]` was false on Windows, because the Windows console does not support ANSI escape sequences. The win32console gem converts ANSI color escape sequences into Win32 console API calls to change the foreground color, etc. If the output stream has been redirected to a file, then the gem does not translate the sequences, instead preserving them in the stream, as is done on Unix. To disable co...
2007 Feb 13
3
spec.opts
Hi, Just built the gem from trunk for the first time and ran into an issue with the generated spec.opts file (rev. 1493). Moving the file out of the way fixed the problem. I''m not on windows, so this is not a win32console gem issue as per the README. /usr/lib/ruby/gems/1.8/gems/rspec-0.8.0/lib/spec/expectations/sugar.rb:13:in `call'': undefined local variable or method `colour'' for #<Object:0xb7d289f0> (NameError) from /usr/lib/ruby/gems/1.8/gems/rspec-0.8.0/lib/spec/expectations/suga...
2006 Dec 21
1
heres how to get color output in rspec_autotest with rspec 0.7.5
...@dry_run = dry_run - @colour = colour + @colour = colour || force_colour + @force_colour = force_colour begin ; require ''Win32/Console/ANSI'' if @colour && PLATFORM =~ /win32/ ; rescue LoadError ; raise "You must gem install win32console to use colour on Windows" ; end end @@ -96,7 +97,7 @@ module Spec end def colour(text, colour_code) - return text unless @colour && @output == Kernel + return text unless @force_colour || (@colour && @output == Kernel)...
2011 Nov 02
3
form_for text_field
...mingw32) term-ansicolor (1.0.5) tilt (1.3.3) trollop (1.16.2) tzinfo (0.3.23) will_paginate (2.3.12) win32-api (1.4.6 x86-mingw32) win32-clipboard (0.5.2) win32-dir (0.3.6) win32-eventlog (0.5.2) win32-file (0.6.3) win32-file-stat (1.3.4) win32-process (0.6.2) win32-sapi (0.1.5) win32-sound (0.4.2) win32console (1.3.0 x86-mingw32) windows-api (0.4.0) windows-pr (1.1.2, 1.0.9) wxruby (2.0.1 x86-mingw32) gems -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to r...
2008 Jan 21
0
RSpec 1.1.2, --colour and Windows
...a patch against CURRENT for fixing the latest issue introduced in 1.1.2 regarding colour and Windows. http://rspec.lighthouseapp.com/projects/5645/tickets/244-no-coloured-output-on-windows-due-missing-rubyopt just-warn-about-windows-no-colour.patch The patch just warn the user about the lack of win32console gem (prior trying to load rubygems) and then revert the color decision to false to avoid garbled output. Since I lack the time to recreate all the scenario (pre_commit and everything) to run the specs, I assume will not affect any other place (since is just for windows). This fix problems when us...
2007 Oct 31
12
autotest displays no output
Hey, I''m trying to configure autotest with rspec on cygwin but something is going wrong. I made a very simple testing environment with a user.rb and user_spec.rb file. Rspec works fine, but autotest outputs nothing - it just stays here, idle. ^C doesn''t display anything more. I can see it''s running because I added require ''autotest/snarl'' in my
2008 Oct 10
16
rspec - undefined method `describe'' for main:Object
When i run a spec file i am getting the following error D:\Diwakar\spec_diwa\spec\controllers>spec sandbox_controller_spec.rb c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.15/lib/spec/api/sugar.rb:17:in `method_ missing'': undefined method `describe'' for main:Object (NoMethodError) from ./sandbox_controller_spec.rb:7 from
2009 Oct 08
0
autospec cannont find gems
....1) sqlite3-ruby (1.2.5, 1.2.1) test-unit (2.0.3) win32-api (1.4.5, 1.0.4) win32-clipboard (0.5.2, 0.4.3) win32-dir (0.3.5, 0.3.2) win32-eventlog (0.5.2, 0.4.6) win32-file (0.6.3, 0.5.4) win32-file-stat (1.3.4, 1.2.7) win32-process (0.6.1, 0.5.3) win32-sapi (0.1.5, 0.1.4) win32-sound (0.4.2, 0.4.1) win32console (1.2.0) windows-api (0.3.1, 0.2.0) windows-pr (1.0.8, 0.7.2) ZenTest (4.1.4) When attempting to run autospec, I get the follwing errors about not being able to find installed gems C:\INSTAN~3.0-W\rails_apps\katai>autospec -rails loading autotest/rails_rspec C:\INSTAN~3.0-W\ruby\bin\ruby C:/IN...
2010 Feb 23
12
"no such file to load -- gettext/rails" error
...veresource (2.3.5) activesupport (2.3.5, 1.4.4) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) gem_plugin (0.2.3) gettext (2.1.0) locale (2.0.5) log4r (1.1.5) mongrel (1.1.5) rack (1.0.1) rails (2.3.5) rake (0.8.7) ruby-postgres (0.7.1.2006.04.06) win32console (1.2.0) Gettext is indeed installed: C:\Ruby\lib\ruby\gems\1.8\gems\gettext-2.1.0 Any ideas? ============================================= C:\rails_apps\aaa_arb>ruby script/server -e production => Booting Mongrel => Rails 2.3.5 application starting on http://0.0.0.0:3000 C:/Ruby/lib/ruby...
2008 Jan 11
26
Mongrel doesn''t start under Rails 2.0.2/Win XP
All, Mongrel 1.1.3 Rails 2.0.2 Ruby 1.8.6 Windows XP SP2 When I issue the command "ruby script/server" from any of my Rails projects on v. 2.0.2, I get a Windows dialog with the error: "The application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem." I''ve gone through the process of attempting to introduce
2007 Nov 22
11
Initial run of RSpec 1.0.8 on MS-WinXPproSP2
Rails 1.2.5 Ruby 1.8.6 Rake 0.7.3 RSpec 1.0.8 PostgreSQL 8.2.5 I am experiencing a problem with the "rake spec spec" task on an initial trial of rspec. After creating the rails app I installed rspec and rspec_on_rails in the vendor\plugins subdirectory from svn. I then used ruby script\generate rspec_model product. I next manually created the database instances depot_development and