highlander 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/{CHANGES → CHANGES.md} +9 -6
- data/Gemfile +6 -0
- data/{MANIFEST → MANIFEST.md} +0 -0
- data/{README → README.md} +14 -12
- data/Rakefile +1 -1
- data/highlander.gemspec +1 -3
- data/lib/highlander.rb +1 -1
- data/test/test_highlander.rb +1 -1
- metadata +11 -13
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8d4284b42ffc643eb16bd6f3866e52b7b33cc5b95a2f7968b84c50e1de50543
|
4
|
+
data.tar.gz: 77933ea6a43de8d6c9b5df5fc22df056b9fa0936f9bfa739ba880965ae9e4a4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10c717e7b41e470c2c459d1e14fe83c52569a8b0cf341d1d944a32b0f5aca8ce88060c61fd46bf2ffc97aab31fa33ed4de4de92dbd4f404d954f7f53609e1bc3
|
7
|
+
data.tar.gz: cda33cf9c6bd29c9068aa7e87f56d0b077c65f44cccdc6cc87a0c3f68ec44e541b4b0d15c39f2f5b0b80de9018c3339a9c5b8b88fc3455448d65bddd1f4ffaab
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/{CHANGES → CHANGES.md}
RENAMED
@@ -1,25 +1,28 @@
|
|
1
|
-
|
1
|
+
## 0.2.3 - 15-Dec-2020
|
2
|
+
* Switch to markdown format for doc files since github isn't parsing rdoc.
|
3
|
+
|
4
|
+
## 0.2.2 - 21-Jul-2020
|
2
5
|
* Added a LICENSE file as required by the Apache-2.0 license.
|
3
6
|
* The VERSION constant is now frozen.
|
4
7
|
* Updated certs file again.
|
5
8
|
|
6
|
-
|
9
|
+
## 0.2.1 - 1-Feb-2017
|
7
10
|
* Changed RuntimeError message to fix a missed opportunity.
|
8
11
|
* Fixed typo in description.
|
9
12
|
* Updated certs file.
|
10
13
|
|
11
|
-
|
14
|
+
## 0.2.0 - 3-Oct-2015
|
12
15
|
* Changed license to Apache 2.0.
|
13
16
|
* Gem related tasks in the Rakefile now assume Rubygems 2.x.
|
14
17
|
* Added certs file. This gem is now signed.
|
15
18
|
|
16
|
-
|
19
|
+
## 0.1.2 - 13-Oct-2014
|
17
20
|
* Updates the gemspec, README and Rakefile.
|
18
21
|
|
19
|
-
|
22
|
+
## 0.1.1 - 13-Jan-2013
|
20
23
|
* Fix for 1.9. Moved the BEGIN block outside the module itself
|
21
24
|
to avoid a parse error.
|
22
25
|
* Some gemspec and README updates.
|
23
26
|
|
24
|
-
|
27
|
+
## 0.1.0 - 12-Dec-2010
|
25
28
|
* Initial release
|
data/Gemfile
ADDED
data/{MANIFEST → MANIFEST.md}
RENAMED
File without changes
|
data/{README → README.md}
RENAMED
@@ -1,11 +1,12 @@
|
|
1
|
-
|
1
|
+
## Description
|
2
2
|
A gem that ensures only one instance of your main script is running.
|
3
3
|
In short, there can be only one.
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
## Installation
|
6
|
+
`gem install highlander`
|
7
7
|
|
8
|
-
|
8
|
+
## Synopsis
|
9
|
+
```
|
9
10
|
require 'highlander' # This should be the -first- thing in your code.
|
10
11
|
# Your code here
|
11
12
|
|
@@ -16,30 +17,31 @@
|
|
16
17
|
|
17
18
|
# Second attempt while the first instance is still running, fails.
|
18
19
|
ruby your_script.rb # => RuntimeError
|
20
|
+
```
|
19
21
|
|
20
|
-
|
22
|
+
## Notes
|
21
23
|
Simply requiring the highlander gem ensures that only one instance
|
22
24
|
of that script cannot be started again. If you try to start it again
|
23
25
|
it will raise a RuntimeError.
|
24
26
|
|
25
|
-
|
27
|
+
## Known Issues
|
26
28
|
If you start your program, modify it while its running, and run it again
|
27
29
|
then this library will not work.
|
28
30
|
|
29
|
-
|
31
|
+
## Acknowledgements
|
30
32
|
Ara Howard for ideas.
|
31
33
|
|
32
|
-
|
34
|
+
## License
|
33
35
|
Apache-2.0
|
34
36
|
|
35
|
-
|
37
|
+
## Copyright
|
36
38
|
(C) 2010-2020 Daniel J. Berger
|
37
39
|
All Rights Reserved.
|
38
40
|
|
39
|
-
|
41
|
+
## Warranty
|
40
42
|
This package is provided "as is" and without any express or
|
41
43
|
implied warranties, including, without limitation, the implied
|
42
44
|
warranties of merchantability and fitness for a particular purpose.
|
43
45
|
|
44
|
-
|
45
|
-
Daniel Berger
|
46
|
+
## Author
|
47
|
+
Daniel J. Berger
|
data/Rakefile
CHANGED
data/highlander.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'highlander'
|
5
|
-
spec.version = '0.2.
|
5
|
+
spec.version = '0.2.3'
|
6
6
|
spec.license = 'Apache-2.0'
|
7
7
|
spec.author = 'Daniel J. Berger'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
@@ -12,8 +12,6 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
13
13
|
spec.cert_chain = ['certs/djberg96_pub.pem']
|
14
14
|
|
15
|
-
spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
|
16
|
-
|
17
15
|
spec.description = <<-EOF
|
18
16
|
The highlander spec ensures that only one instance of the current
|
19
17
|
process is running. If you try to run the same Ruby program again
|
data/lib/highlander.rb
CHANGED
data/test/test_highlander.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: highlander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- |
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
|
36
36
|
WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2020-
|
38
|
+
date: 2020-12-16 00:00:00.000000000 Z
|
39
39
|
dependencies: []
|
40
40
|
description: |2
|
41
41
|
The highlander spec ensures that only one instance of the current
|
@@ -44,15 +44,13 @@ description: |2
|
|
44
44
|
email: djberg96@gmail.com
|
45
45
|
executables: []
|
46
46
|
extensions: []
|
47
|
-
extra_rdoc_files:
|
48
|
-
- README
|
49
|
-
- CHANGES
|
50
|
-
- MANIFEST
|
47
|
+
extra_rdoc_files: []
|
51
48
|
files:
|
52
|
-
- CHANGES
|
49
|
+
- CHANGES.md
|
50
|
+
- Gemfile
|
53
51
|
- LICENSE
|
54
|
-
- MANIFEST
|
55
|
-
- README
|
52
|
+
- MANIFEST.md
|
53
|
+
- README.md
|
56
54
|
- Rakefile
|
57
55
|
- certs/djberg96_pub.pem
|
58
56
|
- highlander.gemspec
|
@@ -62,7 +60,7 @@ homepage: https://github.com/djberg96/highlander
|
|
62
60
|
licenses:
|
63
61
|
- Apache-2.0
|
64
62
|
metadata: {}
|
65
|
-
post_install_message:
|
63
|
+
post_install_message:
|
66
64
|
rdoc_options: []
|
67
65
|
require_paths:
|
68
66
|
- lib
|
@@ -77,8 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
75
|
- !ruby/object:Gem::Version
|
78
76
|
version: '0'
|
79
77
|
requirements: []
|
80
|
-
rubygems_version: 3.
|
81
|
-
signing_key:
|
78
|
+
rubygems_version: 3.1.4
|
79
|
+
signing_key:
|
82
80
|
specification_version: 4
|
83
81
|
summary: There can be only one! Process, that is.
|
84
82
|
test_files:
|
metadata.gz.sig
CHANGED
Binary file
|