sudo 0.2.0 → 0.3.0

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: 2053fedb37f34b870e40e278da1d10d1319eb7ca312ecb0095df168d32b99c2e
4
- data.tar.gz: 8b50e8441761ef16a2abe245d7d9e0b1904a82eddb8fe5984b710025fd0f7d23
3
+ metadata.gz: 8533dcc019e5bf40c31a3a2f0d00fb1ed7799710fbd623e1f35bdc7b3854f8ad
4
+ data.tar.gz: d21c8cc10c30840bdcd0d6a9c86816ea8123897305c5e4b41b6503301c39e8f6
5
5
  SHA512:
6
- metadata.gz: 415df83c7088c488e652b34dabb82b74eaccc01b8344b6728af9e416128337d82198dc1241f1a2c27a48f4c7e4ab3fba4cc46b4e4df21c53a26fbadc08d219e6
7
- data.tar.gz: 538abc4e634d6201d21ff2fda5cc34f694367201e9991643094462573f246d34897fb928a078dd6247ee7426c501f25dc321fde464e4e5058cc39e8689ef8239
6
+ metadata.gz: 53a797c78535d39c6fd4c123726345cc6ad4a73617f8e835437ab49c86168dbfd83696776ea7c2a1fdb26419e88f9cb6799bf33365447ff42c2a023015c0fc48
7
+ data.tar.gz: e81deabf36e8a0a4a4bad76e8d94560c0518e25deb8f8dac7184dcbb9befee866f704a2f17716dafc773ad0427329120c7ca88562fb82af21e061234681c5114
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Sudo
2
2
 
3
+ ## 0.3.0 _(July 04, 2023)_
4
+ - Works on ruby 3.2
5
+
3
6
  ## 0.2.0 _(November 05, 2018)_
4
7
  - Modernized
5
8
  - Tests
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2010, 2011, 2012, 2013 Guido De Rosa
3
+ Copyright (c) 2010-2023 Guido De Rosa
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,5 +1,4 @@
1
- [![Version ](https://img.shields.io/gem/v/sudo.svg?maxAge=2592000)](https://rubygems.org/gems/sudo)
2
- [![Build Status](https://travis-ci.com/gderosa/rubysu.svg?branch=master)](https://travis-ci.com/gderosa/rubysu)
1
+ [![Gem Version](https://badge.fury.io/rb/sudo.svg)](https://badge.fury.io/rb/sudo)[![Build Status](https://travis-ci.com/gderosa/rubysu.svg?branch=master)](https://travis-ci.com/gderosa/rubysu)
3
2
  [![Maintainability](https://api.codeclimate.com/v1/badges/3fdebfb836bebb531fb3/maintainability)](https://codeclimate.com/github/gderosa/rubysu/maintainability)
4
3
  [![Test Coverage](https://api.codeclimate.com/v1/badges/3fdebfb836bebb531fb3/test_coverage)](https://codeclimate.com/github/gderosa/rubysu/test_coverage)
5
4
 
@@ -9,7 +8,7 @@ Give Ruby objects superuser privileges.
9
8
 
10
9
  Based on [dRuby](http://ruby-doc.org/stdlib-2.5.3/libdoc/drb/rdoc/DRb.html) and [sudo](http://www.sudo.ws/).
11
10
 
12
- Only tested with [MRI](http://en.wikipedia.org/wiki/Ruby_MRI). (2.3, 2.4 and 2.5)
11
+ Only tested with [MRI](http://en.wikipedia.org/wiki/Ruby_MRI).
13
12
 
14
13
  ## Usage
15
14
 
@@ -79,22 +78,26 @@ graphical): support this feature.
79
78
 
80
79
  ## Credits
81
80
 
82
- ### Author
81
+ ### Author and Copyright
83
82
 
84
83
  Guido De Rosa ([@gderosa](http://github.com/gderosa/)).
85
84
 
86
- Originally sponsored by [@vemarsas](https://github.com/vemarsas).
85
+ See LICENSE.
87
86
 
88
87
  ### Contributors
89
88
 
90
- Dale ([@voltechs](https://github.com/voltechs))
89
+ Dale Stevens ([@voltechs](https://github.com/voltechs))
91
90
 
92
91
  Robert M. Koch ([@threadmetal](https://github.com/threadmetal))
93
92
 
93
+ Wolfgang Teuber ([@wteuber](https://github.com/wteuber))
94
+
94
95
  ### Other aknowledgements
95
96
  Thanks to Tony Arcieri and Brian Candler for suggestions on
96
97
  [ruby-talk](http://www.ruby-forum.com/topic/262655).
97
98
 
99
+ Initially developed by G. D. while working at [@vemarsas](https://github.com/vemarsas).
100
+
98
101
  ## Contributing
99
102
 
100
103
  1. Fork it ( https://github.com/gderosa/rubysu/fork )
@@ -2,7 +2,7 @@ require 'pathname'
2
2
 
3
3
  module Sudo
4
4
 
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
 
7
7
  def self.root
8
8
  @root ||= Pathname.new(File.expand_path('../../', __dir__))
data/lib/sudo/system.rb CHANGED
@@ -18,7 +18,7 @@ module Sudo
18
18
  end
19
19
 
20
20
  def unlink(file)
21
- if file and File.exists? file
21
+ if file and File.exist? file
22
22
  system("sudo rm -f #{file}") or
23
23
  raise(FileStillExists, "Couldn't delete #{file}")
24
24
  end
data/lib/sudo/wrapper.rb CHANGED
@@ -69,7 +69,7 @@ module Sudo
69
69
  finalizer = Finalizer.new(pid: @sudo_pid, socket: @socket)
70
70
  ObjectSpace.define_finalizer(self, finalizer)
71
71
 
72
- if wait_for(timeout: 1){File.exists? @socket}
72
+ if wait_for(timeout: 1){File.exist? @socket}
73
73
  @proxy = DRbObject.new_with_uri(server_uri)
74
74
  else
75
75
  raise RuntimeError, "Couldn't create DRb socket #{@socket}"
@@ -83,7 +83,7 @@ module Sudo
83
83
  def running?
84
84
  true if (
85
85
  @sudo_pid and Process.exists? @sudo_pid and
86
- @socket and File.exists? @socket and
86
+ @socket and File.exist? @socket and
87
87
  @proxy
88
88
  )
89
89
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sudo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guido De Rosa
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-05 00:00:00.000000000 Z
11
+ date: 2023-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-byebug
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.3'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.3'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -86,12 +86,12 @@ files:
86
86
  - lib/sudo/system.rb
87
87
  - lib/sudo/wrapper.rb
88
88
  - libexec/server.rb
89
- homepage: https://github.com/gderosa/rubysu
89
+ homepage: https://github.com/TwilightCoders/rubysu
90
90
  licenses:
91
91
  - MIT
92
92
  metadata:
93
93
  allowed_push_host: https://rubygems.org
94
- post_install_message:
94
+ post_install_message:
95
95
  rdoc_options: []
96
96
  require_paths:
97
97
  - lib
@@ -106,9 +106,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubyforge_project:
110
- rubygems_version: 2.7.3
111
- signing_key:
109
+ rubygems_version: 3.1.6
110
+ signing_key:
112
111
  specification_version: 4
113
112
  summary: Give Ruby objects superuser privileges
114
113
  test_files: []