mruby_utils 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cad5a2807ae3d8d92c4332e79527773490306d9a9281e869287c6ed2d9a1788
4
- data.tar.gz: 4716a02a8edc836a4cf21b5e2e8cebbc2288f7a7298a52a3e5d183ebc6e7e1ba
3
+ metadata.gz: 29dfd2c22cd0ccc3623ef257fd2576372b1bdc08db61e273b6fda9da4f5832fd
4
+ data.tar.gz: 8fa13ad53037035a1973403513de3508ec0f09b39517c109861a9348a8514158
5
5
  SHA512:
6
- metadata.gz: 8fce298c4ac03a3252e75f2bf18a15138efa7b33a1e827ccdc13fcbdf247a923f585139dd5f3693fe3d45a7c1f5b4341e8925f7e333a7ef537c47ee7f0f7c0b1
7
- data.tar.gz: 5668b1d024b7a3ba81a8a90550012d6aed5f7524a6ef271e17bf5a82da23ea6fe009bafbc566107293c1fc636554f0b3796f6f11b31b4737b9bac4963428b64c
6
+ metadata.gz: 75ba8d9a295afced5edd21a57e5d1eb79019797b338cc8da07d97cc5f121160661da10a8a8d5b5730ed797548ad978c0ac96515deaf32faa819740669f444dcf
7
+ data.tar.gz: 213d21f048b8e2fe9e459d01eb76bbc89851bc132ece81dc5a0df42fc677f7cd9a4ef9b76b939cef1396e9d8ad53c4deb7e0c42d3cad33c9ff56b30661160298
@@ -50,7 +50,7 @@ module MRuby
50
50
  #
51
51
  # @return [ Void ]
52
52
  def glibc_version=(version)
53
- return if !ENV['GLIBC_HEADERS'] || is_a?(MRuby::CrossBuild)
53
+ return if !ENV['GLIBC_HEADERS'] || is_a?(CrossBuild)
54
54
 
55
55
  [cc, cxx].each do |cc|
56
56
  cc.flags << "-include #{ENV['GLIBC_HEADERS']}/x64/force_link_glibc_#{version}.h"
@@ -69,7 +69,10 @@ module MRuby
69
69
  # Defaults to: false
70
70
  # @param [ Boolean ] debug Build with debug flag and enable tracing
71
71
  # Defaults to: false
72
- def configure_libssh2(openssl: false, threading: false, zlib: true, tiny: false, debug: false)
72
+ # @param [ Boolean ] source Github repo from where to download the source
73
+ #
74
+ # @return [ Void ]
75
+ def configure_libssh2(openssl: false, threading: false, zlib: true, tiny: false, debug: false, source: nil)
73
76
  linker.libraries << 'crypto' if openssl
74
77
 
75
78
  [cc, cxx].each do |cc|
@@ -79,6 +82,18 @@ module MRuby
79
82
  cc.defines += %w[MBEDTLS_THREADING_PTHREAD MBEDTLS_THREADING_C] if threading
80
83
  cc.defines += %w[LIBSSH2DEBUG MRB_SSH_DEBUG] if debug
81
84
  end
85
+
86
+ self.libssh2_source = source if source
87
+ end
88
+
89
+ # Override the github repo from where to download the libssh2 source code.
90
+ #
91
+ # @param [ String ] github A format like "account/repo#branch"
92
+ #
93
+ # @return [ Void ]
94
+ def libssh2_source=(github)
95
+ require File.join(gem_clone_dir, 'mruby-ssh/lib/ssh/downloader')
96
+ SSH::Downloader.add_source :libssh2, github: github
82
97
  end
83
98
  end
84
99
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mruby_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastián Katzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-03 00:00:00.000000000 Z
11
+ date: 2019-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake