Все вопросы: [ironruby]

60 вопросов

похожие теги:
8
голосов
6ответов
3067 просмотров

IronRuby On Rails VS. Ruby On Rails (Getting Started)

The Scenario I am a C#/ASP.NET/MVC/Silverlight developer with a few years experience. I'm trying to kickstart my Ruby On Rails learning. I'm currently trying to get a real feel for ROR. I Want To Know Standards As a .Net developer, you tend to use a standard IDE (Visual Studio), a few standard da...

0
голосов
2ответов
396 просмотров

How do I automatically add dlls to ironruby engine

I want to automatically add loaded dll of the current application into ironruby engine so that each time I execute a script I won't specify the "require" script anymore. Thanks a lot.

1
голосов
3ответов
571 просмотров

Cucumber on IronRuby incredibly slow to start?

I'm using IronRuby 0.9.1 and cucumber 0.4.0. I also have MRI 1.8 installed. I've created the following wrapper script (icucumber.bat) to run cucumber on IronRuby @ECHO OFF REM This is to tell IronRuby where to find gems. SET GEM_PATH=c:\ruby\lib\ruby\gems.8 @"C:\ironruby\bin\ir.exe" "c:\ruby\bi...

1
голосов
1ответов
174 просмотров

How to register a module to ruby?

How do I register a module to ruby with IronRuby and C#?

2
голосов
4ответов
120 просмотров

ruby inside silverlight functionality over c#

Having just found out that you can use Ruby or Python inside a SilverLight application.. link here ..I wonder if its possible to bypass some of the SilverLight limitations with use of these languages instead of C#. I know that the Ruby Engine inside the SilverLight application is trimmed down...

0
голосов
2ответов
789 просмотров

Calling a generic method from IronRuby

How can I call a generic method (.NET 3.5 SP1) from IronRuby v0.9? Trying to do something as obj.method(:method_name).of(String).call seems not to work as "of" is an unknown method. Thanks a lot

1
голосов
2ответов
875 просмотров

Embedding IronRuby in C# and DateTime

When I embed IronRuby what is the proper way to get a reference to either Ruby's DateTime/Date classes or .NET's System.DateTime. I'm running into errors when I try require 'date' I get the error - no such file to load -- date when I try require 'mscorlib.dll' I get the error - no such file to...

0
голосов
3ответов
746 просмотров

IronRuby calling C# Extension Methods - Error - Compatibility in .NET 3.5

I have written an Extension Method off of DataGridView called HideColumns. public static class Extensions { public static void HideColumns(this DataGridView dataGridView, params string[] columnNames) { foreach (string str in columnNames) { if (dataGridView.Col...

3
голосов
2ответов
983 просмотров

Ruby approach to data access available in IronRuby

Coming from the Ruby community and approching IronRuby for desktop application development, I have little interest in using a .NET based ORM such as Linq. I want to use the ruby-way of data access that I've come to love from products such as ActiveRecord, DataMapper, and Sequel. After much sear...

2
голосов
3ответов
1288 просмотров

Are IronPython or IronRuby well-suited for the MVVM pattern in WPF/Silverlight?

I've been very happily using the Model-View-ViewModel (MVVM) pattern in WPF and Silverlight apps in combination with C#. Declarative XAML markup and data binding are invaluable - I just can't live without them. But, this talk by Harry Pierson on dynamic languages got me excited about learning a d...

4
голосов
3ответов
1228 просмотров

Watir with IronRuby!

Has anyone used Watir with IronRuby successfully? I am getting an error that the required file 'Watir' was not found. What path do I need to set to get this file to work in IronRuby? For some reason my igem command is not working: C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scrip...

2
голосов
3ответов
685 просмотров

Bin deploy rake (and IronRuby)

I'm on a .NET project, and I would like to migrate build script from MsBuild to Rake. I don't want to force developers (or build agent machines) to have to install anything, I want it to be self contained. If possible I'd prefer to use IronRuby. Is it possible to just drop everything in /tools/r...

5
голосов
1ответов
2083 просмотров

How can I use Ruby code in .NET?

I'd like to use a RubyGem in my C# application. I've downloaded IronRuby, but I'm not sure how to get up and running. Their download includes ir.exe, and it includes some DLLs such as IronRuby.dll. Once IronRuby.dll is referenced in my .NET project, how do I expose the objects and methods of an...

1
голосов
3ответов
355 просмотров

Guidance with SQLite-ruby in IronRuby

What is the approach to get SQLite-ruby working in IronRuby?

1
голосов
2ответов
871 просмотров

IronRuby ActiveRecord and SQLite

I see that the IronRuby team has documented using ActiveRecord in IronRuby with MSSQL - they indicate that some adjustments were required to the adapter. In interview on 8/11/2009, Jimmy indicates a major drawback of IronRuby: The main limitation is that IronRuby does not support any o...

0
голосов
2ответов
431 просмотров

Run Shoes clone in IronRuby

I found cool article on Creating cross platform GUI's with IronRuby where someone re-created the [Shoes](http://en.wikipedia.org/wiki/Shoes_(GUI_toolkit) DSL by _why the lucky stiff in IronRuby. Awesome right! So, I downloaded the IronRuby binaries and the code from the article and ran the f...

0
голосов
1ответов
697 просмотров

How do I build IronRuby on Visual C# 2008 Express Edition?

From the docs it should be possible. I built it on VS 2008 myself - so the source (Sep 8 Master) is okay. I'm trying to build it now with VS Express Edition on this machine. Installed 4.0 Framework Beta 1. Open the Ruby.sln file ; the IDE won't open any of the .csproj files in the solution Unab...

3
голосов
2ответов
295 просмотров

IronRuby - .NET 4.0 - Question Marks and Exclamations at the End of Method Names

Just curious how is the .NET 4.0 CLR world going to call methods ending in question marks and exclamations? What will the syntax look like calling from C# or VB.NET?

0
голосов
2ответов
272 просмотров

undefined method 'bin_path' error on invoking cucumber with ironruby

Just riding on the BDD wave for the past 2 days.. I was intrigued with Aslak Hellesoy's InfoQ video on RSpec. Specifically with the language agnostic integration testing framework claims.. SO I was looking at testing a .Net app with Cucumber which seems to be the latest avatar of the BDD story ru...

4
голосов
1ответов
1710 просмотров

Calling C# from IronRuby

I have created a small C# class in a library. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace helloWorldLib { public class Greeter { public string SayHelloWorld(string name) { return "Hello world " + name; ...

1
голосов
2ответов
191 просмотров

Are there any demo sites that let you test IronRuby with Silverlight?

I want to some very basic IronRuby tests, such as checking the syntax on a regular expression, and if possible would like to be able to do it thorugh my browser. Does anyone know of a site that hosts an IronRuby in Silverlight demo?

12
голосов
9ответов
4171 просмотров

Extending C# .NET application - build a custom scripting language or not?

I need to build a scripting interface for my C# program that does system level testing of embedded firmware. My application contains libraries to fully interact with the devices. There are separate libraries for initiating actions, getting output and tracking success/failure. My application also...

3
голосов
1ответов
431 просмотров

How do I Implement an interface in IronRuby that includes CLR Events

I'm experimenting with IronRuby and WPF and I'd like to write my own commands. What I have below Is as far as I can figure out. class MyCommand include System::Windows::Input::ICommand def can_execute() true end def execute() puts "I'm being commanded" end end But the IComma...

2
голосов
3ответов
157 просмотров

How do I get the current working directory in IronRuby?

I'm wondering how I can read the current working directory of a file being "parsed" by IronRuby. It appears the "execution directory" is the same as the ir.exe file. I need this to create a relative path to content in a XNA solution without hardcoding the path.

0
голосов
1ответов
370 просмотров

How to access a base class property (variable) in ironruby?

I'm trying to do some XNA development with IronRuby but are struggling with both generics (Load) and accessing some of the base-class properties such as Content. Any hints?

3
голосов
5ответов
228 просмотров

What are the options for dynamically-typed .NET web development at this time?

What are you options for dynamically-typed .NET web development at this time? Ruby on Rails with IronRuby? Django (with a few alterations) and IronPython? Don't feel like going the Phalanger route. I'm done with PHP. I assume there is some way to make ASP.NET MVC more dynamic... but can you f...

3
голосов
2ответов
769 просмотров

Can Sinatra be used with IronRuby?

I'm trying to install the following ruby gem on my mac: http://www.sinatrarb.com/intro.html I get the following message: michael-rosarios-macbook:bin michaelrosario1$ mono ir.exe igem sinatra ERROR: While executing gem ... (RuntimeError) Unknown command sinatra michael-ros...

0
голосов
4ответов
528 просмотров

Is it possible to use jruby to write an applet or is it better to use iron ruby for silverlight?

If I wanted to dabble with ruby, would it be easier to write an applet in Jruby or a Silverlight XAP with iron ruby? So far all I have is a vague idea that it might be possible.

0
голосов
2ответов
126 просмотров

How to web enable .NET libraries

I am looking to expose my existing .NET libraries to an intranet. With many moving to RESTful services, OpenRasta looks tempting. In a similar vein, I am playing around with Sinatra in IronRuby. I am primarily looking for 3 points: 1) What are you using to expose your existing codebase to the w...

3
голосов
1ответов
312 просмотров

Можно ли остановить запущенный скрипт DLR / IronPython / IronRuby

У меня есть приложение, которое выполняет созданные пользователем скрипты IronRuby, где каждый поток выполняется в собственном потоке. Моя проблема заключается в том, что могут происходить определенные события, требующие остановки сценария IronRuby в произвольной точке сценария. Я могу сделат...