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 1
1
require "ruby/csharp_script/version"
2
+ require 'win32ole'
2
3
3
4
module 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
6
16
end
7
17
end
Original file line number Diff line number Diff line change @@ -9,20 +9,10 @@ Gem::Specification.new do |spec|
9
9
spec . authors = [ "FUNABARA Masao" ]
10
10
spec . email = [ "[email protected] " ]
11
11
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 "
15
15
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
-
26
16
spec . files = `git ls-files -z` . split ( "\x0 " ) . reject do |f |
27
17
f . match ( %r{^(test|spec|features)/} )
28
18
end
You can’t perform that action at this time.
0 commit comments