bwrap 1.0.0.pre.alpha1 → 1.0.0.pre.alpha2

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: e4193a0724aceb154c2e9be0809366ed2998837beeeb577dc101a58e20dca97d
4
- data.tar.gz: a927a6a6b8cb415f3983440ca0437b852582227f5b163f34143ffb375dc96a40
3
+ metadata.gz: cd1c029789733da3f76f30e1de8647ae2844ee70e7b3558944c9fda0e8c48cdd
4
+ data.tar.gz: b2a46db9002fd1c9699ab4d763d1e98105c69539b1fcd05afeb9a9c887fe09f7
5
5
  SHA512:
6
- metadata.gz: f2f49d20cf15a331d34439d71ef038645bc2a5520407cdb519ea8f5e9e32db526dd7524ad35939acd8098a328d6a3c1c2542d5fde44d0adcfd8ae26f2313d5fb
7
- data.tar.gz: ee295629e684ef280652e38a94e7731b6e3227a2bac1150a79da268f3d2972eaac889ac1928103edf9d022c84430898ebc53d008a6f181d412d3f1ede441d0a9
6
+ metadata.gz: 375d76049c7654c40258892a1d3a3e6d062ad80c75402560be71298572c58d5284151966c5b388c16f836999daea732d39fa1ab91a31f9ebd925476ef198fd75
7
+ data.tar.gz: 0e31779606b0f8add41c8ff2c1420a39bfe84cad10dae64c1107161791a404569797c89ed3b8401c0976002203a025f078f603d145c7e9673d037e29cb0d5a0d
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,7 +1,16 @@
1
1
  # Changes
2
2
 
3
+ ## 1.0.0-alpha2 (14.11.2021)
4
+
5
+ * Made gem to tell its license (ISC)
6
+ * Gem building now allows newer bundler versions than 1.17
7
+ * Added Config#xorg_application option
8
+ * Properly resolve /etc/resolv.conf
9
+
3
10
  ## 1.0.0-alpha1 (10.11.2021)
4
11
 
12
+ * First working version
13
+
5
14
  ## 0.1.0 (unreleased)
6
15
 
7
16
  * First, currently unfinished and unreleased version. Work in Progress.
@@ -54,6 +54,8 @@ class Bwrap::Args::Construct
54
54
 
55
55
  # Arguments for generating .Xauthority file.
56
56
  private def xauthority_args
57
+ return [] unless @config.xorg_application
58
+
57
59
  xauth_args = %W{ --ro-bind #{Dir.home}/.Xauthority #{Dir.home}/.Xauthority }
58
60
  debug "Binding following .Xauthority file: #{Dir.home}/.Xauthority"
59
61
  xauth_args
@@ -61,10 +63,12 @@ class Bwrap::Args::Construct
61
63
 
62
64
  # Arguments to read-only bind /etc/resolv.conf.
63
65
  private def resolv_conf
64
- #source_resolv_conf = "/etc/resolv.conf"
65
- source_resolv_conf = "/run/netconfig/resolv.conf"
66
+ # We can’t really bind symlinks, so let’s resolve real path to resolv.conf, in case it is symlinked.
67
+ source_resolv_conf = Pathname.new "/etc/resolv.conf"
68
+ source_resolv_conf = source_resolv_conf.realpath
69
+
66
70
  debug "Binding #{source_resolv_conf} as /etc/resolv.conf"
67
- %w{ --ro-bind /run/netconfig/resolv.conf /etc/resolv.conf }
71
+ %W{ --ro-bind #{source_resolv_conf} /etc/resolv.conf }
68
72
  end
69
73
 
70
74
  # Arguments to create `/run/user/#{uid}`.
data/lib/bwrap/config.rb CHANGED
@@ -26,6 +26,12 @@ class Bwrap::Config
26
26
 
27
27
  attr_accessor :user
28
28
 
29
+ # Set to true to indicate we’re running a X.org application, meaning we need to do some extra holes,
30
+ # like binding .Xauthority.
31
+ #
32
+ # @return [Boolean] Whether Xorg specific binds are used.
33
+ attr_accessor :xorg_application
34
+
29
35
  # Array of directories to be bind mounted and used to construct PATH environment variable.
30
36
  attr_reader :binaries_from
31
37
 
data/lib/bwrap/version.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # bwrap command runner tools.
4
4
  module Bwrap
5
5
  # Current version of bwrap.
6
- VERSION = "1.0.0-alpha1"
6
+ VERSION = "1.0.0-alpha2"
7
7
  end
8
8
 
9
- require "deep-cover" if ENV["DEEP_COVER"]
9
+ require "deep-cover" if ENV["DEEP_COVER"]
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bwrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha1
4
+ version: 1.0.0.pre.alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samu Voutilainen
@@ -54,14 +54,14 @@ dependencies:
54
54
  name: bundler
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: '1.17'
60
60
  type: :development
61
61
  prerelease: false
62
62
  version_requirements: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - "~>"
64
+ - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: '1.17'
67
67
  - !ruby/object:Gem::Dependency
@@ -149,7 +149,8 @@ files:
149
149
  - lib/bwrap/output/output.rb
150
150
  - lib/bwrap/version.rb
151
151
  homepage: https://git.sr.ht/~smar/ruby-bwrap
152
- licenses: []
152
+ licenses:
153
+ - ISC
153
154
  metadata:
154
155
  homepage_uri: https://git.sr.ht/~smar/ruby-bwrap
155
156
  source_code_uri: https://git.sr.ht/~smar/ruby-bwrap
metadata.gz.sig CHANGED
Binary file