public-ai-install 0.0.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/bin/public-ai-install +37 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6445eb072e65a3f28efd6b095c49498fdd13989afaf26da846591590b5548804
4
+ data.tar.gz: 691e9f8809f35e573440929ffee5e8b5b1b7e6ba91cfbdf12b17477408501c67
5
+ SHA512:
6
+ metadata.gz: 404ee6f6696ab4fe120fbfadbccc24e80ffd6798abd9572bc54ee66ef480790d94952868c6ac718d005ff2a23f75939e6a5cc5db71feb7093ee46a4b127f575d
7
+ data.tar.gz: 03e4e7f5453fc3c9317ff883c31582763c755261a3a1cc2247b3b614eac140bd28a4bc21af012888f96615b8d8720de3433c52ffbf56d5c1fe1257eaad99dd97
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ REL = File.join("packages", "public-ai-sync", "bin", "install-public-ai.sh")
4
+
5
+ def main
6
+ launcher = found_launcher
7
+ abort "public-ai-install: set PUBLIC_AI_DIR to a checkout of this pack" if launcher.nil?
8
+ exec "bash", launcher, consumer
9
+ end
10
+
11
+ def consumer
12
+ ARGV[0] || Dir.pwd
13
+ end
14
+
15
+ def found_launcher
16
+ from_env || walk_from(File.dirname(File.expand_path(__FILE__)))
17
+ end
18
+
19
+ def from_env
20
+ dir = ENV.fetch("PUBLIC_AI_DIR", "")
21
+ return nil if dir.empty?
22
+ hit = File.join(dir, REL)
23
+ File.file?(hit) ? hit : nil
24
+ end
25
+
26
+ def walk_from(start)
27
+ cur = start
28
+ loop do
29
+ hit = File.join(cur, REL)
30
+ return hit if File.file?(hit)
31
+ parent = File.dirname(cur)
32
+ return nil if parent == cur
33
+ cur = parent
34
+ end
35
+ end
36
+
37
+ main
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: public-ai-install
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.86
5
+ platform: ruby
6
+ authors:
7
+ - CodyTVWeber
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Download the public AI pack into a consumer repository
13
+ executables:
14
+ - public-ai-install
15
+ extensions: []
16
+ extra_rdoc_files: []
17
+ files:
18
+ - bin/public-ai-install
19
+ homepage: https://github.com/CodyTVWeber/Public-AI
20
+ licenses:
21
+ - MIT
22
+ metadata:
23
+ homepage_uri: https://github.com/CodyTVWeber/Public-AI
24
+ source_code_uri: https://github.com/CodyTVWeber/Public-AI
25
+ bug_tracker_uri: https://github.com/CodyTVWeber/Public-AI/issues
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '2.7'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 4.0.20
41
+ specification_version: 4
42
+ summary: Download the public AI pack
43
+ test_files: []