Sha256: 36d6b984451754283c7428c799ccb08aa6040e1f8a6ec524f3bb19fe559e49dc

Contents?: true

Size: 1.46 KB

Versions: 5

Compression:

Stored size: 1.46 KB

Contents

# GoGem
Helpers for compiling Go extensions for ruby

[![Gem Version](https://badge.fury.io/rb/go_gem.svg)](https://badge.fury.io/rb/go_gem)

## Installation
Add below.

```ruby
spec.add_dependency "go_gem"
```

See below for details.

[/_tools/patch_for_go_gem/](/_tools/patch_for_go_gem/)

## Usage
### `create_go_makefile`
`create_go_makefile` is an extension of `create_makefile`.

Add a task and hacks to build Go against the `Makefile` generated by `create_makefile`.

e.g.

```ruby
# ext/GEM_NAME/extconf.rb

require "mkmf"
require "go_gem/mkmf" # Append this

# Use create_go_makefile instead of create_makefile
# create_makefile("example/example")
create_go_makefile("example/example")
```

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ruby-go-gem/go-gem-wrapper.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
go_gem-0.2.4 README.md
go_gem-0.2.3 README.md
go_gem-0.2.2 README.md
go_gem-0.2.1 README.md
go_gem-0.2.0 README.md