Skip to content

Commit 9e718e7

Browse files
committed
add rubygem.
1 parent 0f569c2 commit 9e718e7

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
require "ruby/csharp_script/version"
2+
require 'win32ole'
23

34
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
616
end
717
end

rubygem/ruby-csharp_script/ruby-csharp_script.gemspec

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,10 @@ Gem::Specification.new do |spec|
99
spec.authors = ["FUNABARA Masao"]
1010
spec.email = ["[email protected]"]
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

0 commit comments

Comments
 (0)