Skip to content

Commit

Permalink
add rubygem.
Browse files Browse the repository at this point in the history
  • Loading branch information
masoo committed Jun 22, 2017
1 parent 0f569c2 commit 9e718e7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 12 additions & 2 deletions rubygem/ruby-csharp_script/lib/ruby/csharp_script.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
require "ruby/csharp_script/version"
require 'win32ole'

module Ruby
module CsharpScript
# Your code goes here...
module CSharpScript
class CSharpScript
attr_reader :csharp_script
def initialize
@csharp_script = WIN32OLE.new("ruby.csharp_script.CSharpScript")
end

def evaluate_async(code)
@csharp_script.EvaluateAsync(code)
end
end
end
end
16 changes: 3 additions & 13 deletions rubygem/ruby-csharp_script/ruby-csharp_script.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,10 @@ Gem::Specification.new do |spec|
spec.authors = ["FUNABARA Masao"]
spec.email = ["masao@masoo.jp"]

spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
spec.description = %q{TODO: Write a longer description or delete this line.}
spec.homepage = "TODO: Put your gem's website or public repo URL here."
spec.summary = "Library to move the CsharpScript from ruby."
spec.description = "Library to move the CsharpScript from ruby."
spec.homepage = "https://github.com/masoo/ruby-csharp_script"
spec.license = "MIT"

# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
else
raise "RubyGems 2.0 or newer is required to protect against " \
"public gem pushes."
end

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
Expand Down

0 comments on commit 9e718e7

Please sign in to comment.