zclone 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +11 -0
- data/README.md +5 -0
- data/bin/zclone +28 -0
- metadata +51 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7b04fec6f33be9477f35ee24ceb2500aff1a12794c6b6dd7c9146480f45a9dff
|
4
|
+
data.tar.gz: 244c82fbd9d822dd081b2fcf1cd90e1c7dc68913e22618965e5bb40384abbcfe
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c2db89c718b0694734a8a8f9c2a0ba1779c75d6cef994759270bc928c560f9dd9c9d2dc592f63f176333428a200931b2526d8e6e99bd3ef2c06bc693588aa442
|
7
|
+
data.tar.gz: b9b9670ac374f70a74b04ae28fe82d760a2a698668056ddad789425e89f9461a2eb9535a2a383bc03900f5b7a12887284e667a6e93c21e55658768809a6c1ffe
|
data/LICENSE
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
2
|
+
Version 2, December 2004
|
3
|
+
|
4
|
+
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
5
|
+
|
6
|
+
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
|
7
|
+
|
8
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
9
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
10
|
+
|
11
|
+
0. You just DO WHAT THE FUCK YOU WANT TO.
|
data/README.md
ADDED
data/bin/zclone
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# sharable_constant_value: literal
|
4
|
+
|
5
|
+
repository = ARGV[0].dup
|
6
|
+
if repository.nil?
|
7
|
+
warn 'Please specify the userid and the git directory as arguments.'
|
8
|
+
warn 'For example: zclone 1JFRoDXLLGXuiDE7VzccH3cbeeAkE3K499/zclone.git'
|
9
|
+
exit 1
|
10
|
+
end
|
11
|
+
repository.chomp!
|
12
|
+
|
13
|
+
repository += '.git' unless repository.end_with? '.git'
|
14
|
+
|
15
|
+
zeronet_data = ENV['ZERONET_DATA'].dup
|
16
|
+
if zeronet_data.nil?
|
17
|
+
warn 'Please set the environment variable "ZERONET_DATA" to the data directory of the ZeroNet.'
|
18
|
+
exit 1
|
19
|
+
end
|
20
|
+
zeronet_data.chomp!
|
21
|
+
|
22
|
+
unless File.readable? "#{zeronet_data}/#{repository}"
|
23
|
+
warn 'The git directory does not seem to be readable. Try to clone it anyway...'
|
24
|
+
end
|
25
|
+
|
26
|
+
result = system 'git', 'clone', "#{zeronet_data}/#{repository}"
|
27
|
+
|
28
|
+
exit 1 unless result
|
metadata
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zclone
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marek Küthe
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-10-22 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Git wrapper script to clone Git repositories from ZeroNet.
|
14
|
+
email: m.k@mk16.de
|
15
|
+
executables:
|
16
|
+
- zclone
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files:
|
19
|
+
- LICENSE
|
20
|
+
- README.md
|
21
|
+
files:
|
22
|
+
- LICENSE
|
23
|
+
- README.md
|
24
|
+
- bin/zclone
|
25
|
+
homepage: https://codeberg.org/mark22k/zclone
|
26
|
+
licenses:
|
27
|
+
- WTFPL
|
28
|
+
metadata:
|
29
|
+
source_code_uri: https://codeberg.org/mark22k/zclone
|
30
|
+
bug_tracker_uri: https://codeberg.org/mark22k/zclone/issues
|
31
|
+
rubygems_mfa_required: 'true'
|
32
|
+
post_install_message:
|
33
|
+
rdoc_options: []
|
34
|
+
require_paths:
|
35
|
+
- lib
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.1'
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
requirements: []
|
47
|
+
rubygems_version: 3.4.21
|
48
|
+
signing_key:
|
49
|
+
specification_version: 4
|
50
|
+
summary: Git wrapper script to clone Git repositories from ZeroNet.
|
51
|
+
test_files: []
|