spior 0.5.0 → 0.5.2

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: 35ecc00833e5ba627984058a35375d1773ebdb707fb9218bb5060029d91a08a8
4
- data.tar.gz: d688befe355c53c3af9bdf110144f3d91f9a9f2c254b6a5b0ea995f8beec85ab
3
+ metadata.gz: cd8fdf3a383cf535c4e98ceee3ab95f728626fbb9b81ed93997c4a65ffa847d0
4
+ data.tar.gz: a0b374f2ef2511c764269ca2e799e25b8bd49b85aec840b86f7c88feaa977514
5
5
  SHA512:
6
- metadata.gz: df077eb2f83b2b084a2a78378fe1f46d5b8f47fc9482a60e980250fed407e4e662d9c14abe9e8880a3fb0307ad40e1be9e465a4e0ba9bf70bca082ce7b150401
7
- data.tar.gz: 703939ff956cf9601aa367be2e28c987e63b3a8e5560318e7c16eb02ce5d956604a96b71270454d1d9de36fa7f26ade4ac463a2ab7ca0a67e644a6e57cafb41d
6
+ metadata.gz: 5e237a0743b593406cd36b004c9a2e10951fa84aab9969d12054bf321808f0c40fac182b0ea2fa5719899939c0008cddd8cddc5c46a3f3b4cb8f2282243f194c
7
+ data.tar.gz: 18a8abe77ed421fedb39cc9d8eae8aed854703f639ec0db496c1482f6def234e5651343bf75ef6781478e2b4509f70fedb2bbd28967ee636377808e2a837a7cd
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### Fix
2
+ * config for tor and spior, not enough permission - now fixed at 0644.
3
+
1
4
  ## 0.5.0, release 2024-10
2
5
  * Correct runtime with openrc on Gentoo
3
6
  * Remove a lots of old codes.
data/lib/spior/helpers.rb CHANGED
@@ -4,6 +4,7 @@ require 'fileutils'
4
4
  require 'tempfile'
5
5
  require 'open3'
6
6
 
7
+ # Various function for Spior
7
8
  module Helpers
8
9
  def self.auth?
9
10
  return :root if Process.uid == '0'
@@ -33,8 +34,10 @@ module Helpers
33
34
  def self.mv(src, dest)
34
35
  if Process::Sys.getuid == '0'
35
36
  FileUtils.mv(src, dest)
37
+ FileUtils.chmod 0644, dest
36
38
  else
37
39
  cmd("mv #{src} #{dest}")
40
+ cmd("chmod 644 #{dest}")
38
41
  end
39
42
  end
40
43
 
@@ -40,7 +40,7 @@ module Spior
40
40
 
41
41
  File.open(file, mode) do |f|
42
42
  if content.is_a?(Array)
43
- f.puts(content.join('\n'))
43
+ f.puts(content.join("\n"))
44
44
  else
45
45
  f.puts(content)
46
46
  end
data/lib/spior/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spior
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.2'
5
5
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spior
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - szorfein
@@ -36,7 +36,7 @@ cert_chain:
36
36
  urXgRIzALxd/xazPCnoLSXPzfJSI6Y77S1EBvhPd9RaSO8IyH9RhPDP9mnTvW2Kl
37
37
  NAUnoL+txK5a
38
38
  -----END CERTIFICATE-----
39
- date: 2024-10-10 00:00:00.000000000 Z
39
+ date: 2024-10-13 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: interfacez
metadata.gz.sig CHANGED
Binary file