File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed
rubygem/ruby-csharp_script Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 11require "ruby/csharp_script/version"
2+ require 'win32ole'
23
34module Ruby
4- module CsharpScript
5- # Your code goes here...
5+ module CSharpScript
6+ class CSharpScript
7+ attr_reader :csharp_script
8+ def initialize
9+ @csharp_script = WIN32OLE . new ( "ruby.csharp_script.CSharpScript" )
10+ end
11+
12+ def evaluate_async ( code )
13+ @csharp_script . EvaluateAsync ( code )
14+ end
15+ end
616 end
717end
Original file line number Diff line number Diff line change @@ -9,20 +9,10 @@ Gem::Specification.new do |spec|
99 spec . authors = [ "FUNABARA Masao" ]
1010 spec . email = [ "masao@masoo.jp" ]
1111
12- spec . summary = %q{TODO: Write a short summary, because Rubygems requires one.}
13- spec . description = %q{TODO: Write a longer description or delete this line.}
14- spec . homepage = "TODO: Put your gem's website or public repo URL here. "
12+ spec . summary = "Library to move the CsharpScript from ruby."
13+ spec . description = "Library to move the CsharpScript from ruby."
14+ spec . homepage = "https://github.com/masoo/ruby-csharp_script "
1515 spec . license = "MIT"
16-
17- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18- # to allow pushing to a single host or delete this section to allow pushing to any host.
19- if spec . respond_to? ( :metadata )
20- spec . metadata [ 'allowed_push_host' ] = "TODO: Set to 'http://mygemserver.com'"
21- else
22- raise "RubyGems 2.0 or newer is required to protect against " \
23- "public gem pushes."
24- end
25-
2616 spec . files = `git ls-files -z` . split ( "\x0 " ) . reject do |f |
2717 f . match ( %r{^(test|spec|features)/} )
2818 end
You can’t perform that action at this time.
0 commit comments