executable-ruby 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -5
- data/executable-ruby.gemspec +4 -2
- data/lib/exer/make.rb +2 -1
- data/lib/exer/version.rb +1 -1
- data/lib/exer.rb +10 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 510eaf945ea27bb30f6e732bf524924ac7ebb3a78b2efddbc26561c6144d63a1
|
4
|
+
data.tar.gz: '009393949f8aca16bb55450046d38e42a66e04c87aedfb6466a5736e5736b9f4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05d3fcd038e92c0b35b6b21ea15f89bca9f3868c0b57f490de7b5d4248c2151dce14eb7052530053f0f6d000c796a4d111433eea27a8f4ebb2e864d585488903
|
7
|
+
data.tar.gz: a927313f50b58a9498897f6e81f908860e90dc0841dd7189ed61d2329733ff9523f323ff65393e7d0a7c11fa3130f4dc14d335a2f8a857885e2fc4aa1862f358
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# executable-ruby
|
2
2
|
|
3
|
-
Cross-compile executables from [rubygems](https://rubygems.org).
|
3
|
+
Cross-compile executables from [rubygems](https://rubygems.org).
|
4
|
+
This is early development, I will do my best to find some free time to continue working on this (to allow script-installers). For now you can make your gem with executable file, and upload it to rubygems. Than you can make static binary in one-line.
|
4
5
|
|
5
6
|
# How to install
|
6
7
|
|
@@ -17,14 +18,21 @@ If you install gem from ruby-gems, you can run:
|
|
17
18
|
`gem install executable-ruby`
|
18
19
|
`exer --getgo`
|
19
20
|
|
21
|
+
If you don't want to install golang, you can use system installed one:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
Exer.system_golang = true
|
25
|
+
```
|
26
|
+
|
20
27
|
# How to use
|
21
28
|
|
22
|
-
|
23
|
-
|
29
|
+
You can read [documentation on rubydoc](https://rubydoc.info/gems/executable-ruby)
|
30
|
+
|
31
|
+
To start gem run:
|
24
32
|
|
25
33
|
`bin/exer`
|
26
34
|
|
27
|
-
or if you install from [rubygems](https://rubygems.org/alx3dev/executable-ruby)
|
35
|
+
or if you install from [rubygems](https://rubygems.org/alx3dev/executable-ruby/0.2.0)
|
28
36
|
|
29
37
|
`exer`
|
30
38
|
|
@@ -48,7 +56,26 @@ Exer.make do |app|
|
|
48
56
|
app.add :gem_install, 'my-gem-name'
|
49
57
|
app.wait_for_enter
|
50
58
|
end
|
51
|
-
```
|
59
|
+
```
|
60
|
+
|
61
|
+
# License
|
62
|
+
|
63
|
+
Executable Ruby is registered under the GPL-v3 license, but you are also allowed to **build binaries with this gem** for `MIT`, `Apache2` and `OpenBSD` license. You are not allowed to use source-code or it's parts in your application (unless licensed under GPL), but you are allowed to build static binaries for your `MIT, Apache2 or OpenBSD` licensed gem.
|
64
|
+
|
65
|
+
# Tested on:
|
66
|
+
|
67
|
+
Gem tested on:
|
68
|
+
- `Linux Mint 20.2 - Uma`
|
69
|
+
- `Ubuntu 20.04.4`
|
70
|
+
- `Ubuntu 21.10`
|
52
71
|
|
72
|
+
Binaries tested on:
|
73
|
+
- `Windows 10 Home 64bit`
|
74
|
+
- `Windows 10 Pro 64bit`
|
75
|
+
- `Linux Mint 20.2 - Uma`
|
76
|
+
- `Ubuntu 20.04.4`
|
77
|
+
- `Ubuntu 21.10`
|
78
|
+
- `MacOS 11`
|
79
|
+
|
53
80
|
# Contribution
|
54
81
|
This is a work in progress, so please wait to establish some more stable version.
|
data/executable-ruby.gemspec
CHANGED
@@ -11,7 +11,9 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = 'Cross-compile executables to install and/or run ruby-gems.'
|
12
12
|
|
13
13
|
spec.description = <<~DESC
|
14
|
-
Cross compile executables to install and/or run ruby
|
14
|
+
Cross compile executables to install and/or run ruby gem from rubygems.org.
|
15
|
+
Comes with bundled golang, or you can use your system-installed one.
|
16
|
+
Check if gem is installed, install if not and run its binary (bin/gem_name).
|
15
17
|
DESC
|
16
18
|
|
17
19
|
spec.homepage = 'https://www.github.com/alx3dev/executable-ruby'
|
@@ -20,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
20
22
|
|
21
23
|
spec.metadata['homepage_uri'] = spec.homepage
|
22
24
|
spec.metadata['source_code_uri'] = spec.homepage
|
23
|
-
spec.metadata['
|
25
|
+
spec.metadata['documentation_uri'] = "https://rubydoc.info/#{spec.name}/#{spec.version}"
|
24
26
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
25
27
|
|
26
28
|
spec.files = %w[
|
data/lib/exer/make.rb
CHANGED
@@ -150,7 +150,8 @@ module Exer
|
|
150
150
|
end
|
151
151
|
|
152
152
|
def go_build(os, ext = nil)
|
153
|
-
|
153
|
+
go_path = Exer.system_golang? ? 'go' : GO
|
154
|
+
`GOOS=#{os} #{go_path} build -o #{filename}#{ext} #{filename}_install.go`
|
154
155
|
end
|
155
156
|
end
|
156
157
|
end
|
data/lib/exer/version.rb
CHANGED
data/lib/exer.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: executable-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alx3dev
|
@@ -38,9 +38,10 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '13.0'
|
41
|
-
description:
|
42
|
-
|
43
|
-
|
41
|
+
description: |
|
42
|
+
Cross compile executables to install and/or run ruby gem from rubygems.org.
|
43
|
+
Comes with bundled golang, or you can use your system-installed one.
|
44
|
+
Check if gem is installed, install if not and run its binary (bin/gem_name).
|
44
45
|
email:
|
45
46
|
- alx3dev@gmail.com
|
46
47
|
executables:
|
@@ -66,7 +67,7 @@ licenses:
|
|
66
67
|
metadata:
|
67
68
|
homepage_uri: https://www.github.com/alx3dev/executable-ruby
|
68
69
|
source_code_uri: https://www.github.com/alx3dev/executable-ruby
|
69
|
-
|
70
|
+
documentation_uri: https://rubydoc.info/executable-ruby/0.2.1
|
70
71
|
rubygems_mfa_required: 'true'
|
71
72
|
post_install_message:
|
72
73
|
rdoc_options: []
|