embedding_go_in_a_gem 0.1.1 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be789b94e70cc6fc96d8c33538e8ad5cbd76f581bbc9ba8b1e2ec1ac057d5efa
4
- data.tar.gz: 85e9da47b44da03bed1a43b7762fcf286f050c8d129e3658362c20e973c954ec
3
+ metadata.gz: e5a954556aceb6b966df8c266f9ec0b0faf95c7f1f4cf1dc2ba6cfbcf510fd62
4
+ data.tar.gz: e2e70c9150c14ce3376376ed9cf156288867e2a88be51f6c47ed943f0fa51215
5
5
  SHA512:
6
- metadata.gz: 4330271b185b981c519f256c49f3eb08cebfdcf7707ad182b99e64ac7eacc188e7bd743868fb142fe6600431534a65894536dfe292368e81d236134a91345eed
7
- data.tar.gz: c7522befe219271966e6837f20c9d6593fd1d26c118389973ccff237a7f13146dbe5f3b3e2f9b054849058214234274b03629d8c613467e2ae51977b80efc2ba
6
+ metadata.gz: 2a4d09bc319023952819c5d5ce802d5973913e7449e074cd9819a105fa57a8e28546a9061a425e5e178e8f42920013e6eb357a553cfed584c590320b33f46582
7
+ data.tar.gz: 02b83689186ea5cb2006e60047136edb262f624628e4dd4ae5ae1a90d41443906afc0f177bec0ce4e64f49eee299de704cbc9f1bda0e52601c838f3f43d06987
data/bin/egiag ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'embedding_go_in_a_gem'
4
+ EmbeddingGoInAGem.new.run
@@ -0,0 +1,14 @@
1
+ GOBIN = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'go', 'bin',))
2
+
3
+ File.write "Makefile", <<MAKEFILE
4
+ build:
5
+ GOBIN="#{GOBIN}" go install github.com/linux2647/sample-go-program@v0.1.0
6
+ @touch embedding_go_in_a_gem.bundle
7
+ @touch embedding_go_in_a_gem.so
8
+
9
+ all: install
10
+ clean:
11
+ install:
12
+ MAKEFILE
13
+
14
+ $makefile_created = true
@@ -1,6 +1,6 @@
1
1
  class EmbeddingGoInAGem
2
2
  def run
3
- :todo
3
+ exec(File.expand_path(File.join(File.dirname(__FILE__), '..', 'go', 'bin', 'sample-go-program')))
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embedding_go_in_a_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Howell
@@ -10,6 +10,20 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake-compiler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rspec
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -26,14 +40,16 @@ dependencies:
26
40
  version: '0'
27
41
  description: Can you embed a binary in a Gem? Can you distribute it to multiple architectures?
28
42
  email: stephen@infinitecanvas.net
29
- executables: []
30
- extensions: []
43
+ executables:
44
+ - egiag
45
+ extensions:
46
+ - ext/embedding_go_in_a_gem/extconf.rb
31
47
  extra_rdoc_files: []
32
48
  files:
33
49
  - MIT-LICENSE
34
50
  - README.md
35
- - ext/sample-go-program
36
- - lib/.gemkeep
51
+ - bin/egiag
52
+ - ext/embedding_go_in_a_gem/extconf.rb
37
53
  - lib/embedding_go_in_a_gem.rb
38
54
  - spec/gem_spec.rb
39
55
  homepage: https://github.com/linux2647/embedding-go-in-a-gem
Binary file
data/lib/.gemkeep DELETED
File without changes