falkorlib 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -6
- data/README.md +46 -10
- data/completion/_falkor +16 -1
- data/falkorlib.gemspec +2 -2
- data/lib/falkorlib/bootstrap/base.rb +8 -7
- data/lib/falkorlib/bootstrap/git.rb +19 -4
- data/lib/falkorlib/cli.rb +16 -1
- data/lib/falkorlib/version.rb +1 -1
- data/spec/falkorlib/bootstrap_spec.rb +45 -1
- data/templates/gitignore/All.gitignore +2 -0
- data/templates/gitignore/Python.gitignore +162 -0
- data/templates/gitignore/TeX.gitignore +309 -0
- data/templates/motd/motd.erb +2 -2
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37fcb8b97b1d69855519e107c3b498b224b4c58b82aaba45b517186726d2d3e7
|
4
|
+
data.tar.gz: 71829736e0e1d1b9998f1bc337ff54f966436fa453883f38808a3f200154cd1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76ef2f5dcf9894e58198a734b96ef835cc8d30797a5325e25bd074a6472f9c9a84a758c5e0f97e3223ebaa97398ab9f6bf827542a593e5199dd78c77710a31d8
|
7
|
+
data.tar.gz: 64190b4118bd42dade6007d705365b2f753737a07a31ac3a95d9dcc1f16e9fa08a3d0ffb7311dfe51cbddd75195d74f08d97ce87e02092bf482fdb386ab2072a
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
falkorlib (0.9.
|
4
|
+
falkorlib (0.9.1)
|
5
5
|
activesupport (~> 6.1, >= 6.1.7.5)
|
6
6
|
artii (~> 2.1, >= 2.1.2)
|
7
7
|
awesome_print (~> 1.9, >= 1.9.2)
|
8
8
|
configatron (~> 3.0)
|
9
9
|
deep_merge (~> 1.0)
|
10
10
|
diffy (~> 3.4, >= 3.4.2)
|
11
|
-
facter (~>
|
11
|
+
facter (~> 4.6.1)
|
12
12
|
git_remote_branch (~> 0)
|
13
13
|
json (~> 2.6, >= 2.6.3)
|
14
14
|
license-generator (~> 0)
|
@@ -37,8 +37,11 @@ GEM
|
|
37
37
|
diff-lcs (1.5.0)
|
38
38
|
diffy (3.4.2)
|
39
39
|
docile (1.4.0)
|
40
|
-
facter (
|
40
|
+
facter (4.6.1)
|
41
|
+
hocon (~> 1.3)
|
42
|
+
thor (>= 1.0.1, < 2.0)
|
41
43
|
git_remote_branch (0.3.8)
|
44
|
+
hocon (1.4.0)
|
42
45
|
i18n (1.14.1)
|
43
46
|
concurrent-ruby (~> 1.0)
|
44
47
|
io-console (0.6.0)
|
@@ -59,12 +62,12 @@ GEM
|
|
59
62
|
pry (0.14.2)
|
60
63
|
coderay (~> 1.1)
|
61
64
|
method_source (~> 1.0)
|
62
|
-
psych (5.1.
|
65
|
+
psych (5.1.2)
|
63
66
|
stringio
|
64
67
|
rainbow (2.2.2)
|
65
68
|
rake
|
66
69
|
rake (13.1.0)
|
67
|
-
rdoc (6.6.
|
70
|
+
rdoc (6.6.3.1)
|
68
71
|
psych (>= 4.0.0)
|
69
72
|
reline (0.4.1)
|
70
73
|
io-console (~> 0.5)
|
@@ -107,7 +110,7 @@ GEM
|
|
107
110
|
tzinfo (2.0.6)
|
108
111
|
concurrent-ruby (~> 1.0)
|
109
112
|
unicode-display_width (1.8.0)
|
110
|
-
yard (0.9.
|
113
|
+
yard (0.9.36)
|
111
114
|
zeitwerk (2.6.12)
|
112
115
|
|
113
116
|
PLATFORMS
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ Coverage](https://api.codeclimate.com/v1/badges/9f1c7762f29572b3f8f0/test_covera
|
|
13
13
|
|_| \__,_|_|_|\_\___/|_| |_____|_|_.__/
|
14
14
|
|
15
15
|
|
16
|
-
Copyright (c) 2012-
|
16
|
+
Copyright (c) 2012-2024 Sebastien Varrette <Sebastien.Varrette@gmail.com>
|
17
17
|
|
18
18
|
Sebastien Varrette aka Falkor's Common library to share Ruby code, `{rake,cap}`
|
19
19
|
tasks and project templates
|
@@ -116,15 +116,16 @@ This library comes with a CLI `falkor`, providing the following [sub] commands.
|
|
116
116
|
|
117
117
|
__Base commands__
|
118
118
|
|
119
|
-
| Command
|
120
|
-
|
121
|
-
| `falkor --version, -V`
|
122
|
-
| `falkor help [COMMAND]`
|
123
|
-
| `falkor gitcrypt <PATH> [options]`
|
124
|
-
| `falkor
|
125
|
-
| `falkor
|
126
|
-
| `falkor
|
127
|
-
| `falkor
|
119
|
+
| Command | Description |
|
120
|
+
|-------------------------------------+-----------------------------------------------------|
|
121
|
+
| `falkor --version, -V` | Print the version number of Falkor[Lib] |
|
122
|
+
| `falkor help [COMMAND]` | Describe available commands or one specific command |
|
123
|
+
| `falkor gitcrypt <PATH> [options]` | Initialize git-crypt for the repository |
|
124
|
+
| `falkor gitignore <PATH> [options]` | Populate .gitignore |
|
125
|
+
| `falkor init <PATH> [options]` | Bootstrap a Git[flow] Repository |
|
126
|
+
| `falkor mkdocs [options]` | Initialize mkdocs for the current project |
|
127
|
+
| `falkor motd <PATH> [options]` | Initiate a 'motd' file - message of the day |
|
128
|
+
| `falkor vagrant [options]` | Initialize vagrant for the current project |
|
128
129
|
|
129
130
|
__`falkor link <type> [path]`__
|
130
131
|
|
@@ -491,6 +492,41 @@ Then install the required dependent gems as follows:
|
|
491
492
|
|
492
493
|
$> bundle install
|
493
494
|
|
495
|
+
### Using bundle during developments
|
496
|
+
|
497
|
+
When you are developping /contributing to this module, you can test *locally* the `falkor` CLI with:
|
498
|
+
|
499
|
+
```bash
|
500
|
+
bundle exec falkor [...] /path/to/testing/directory
|
501
|
+
```
|
502
|
+
|
503
|
+
### Release a new gem
|
504
|
+
|
505
|
+
(notes for myself ;))
|
506
|
+
|
507
|
+
Once satisfied with the changes:
|
508
|
+
|
509
|
+
* disable (temporarily) git commit signing as it slow downs the rspec tests `~/.config/git/git.local`
|
510
|
+
|
511
|
+
```bash
|
512
|
+
rake version:bump:{patch,minor,major} # Select accordingly
|
513
|
+
# Ensure all tests pass - otherwise correct them in the release/<new-version> branch
|
514
|
+
rake version:release
|
515
|
+
```
|
516
|
+
|
517
|
+
The follow the [guide for publishing your gem](https://guides.rubygems.org/publishing/):
|
518
|
+
|
519
|
+
* Sign-in on [RubyGem Dashboard](https://rubygems.org/dashboard)
|
520
|
+
* **DO NOT** save your credentials under `~//.gem/credentials` as suggested (just why would you do that?)
|
521
|
+
* Run:
|
522
|
+
|
523
|
+
```bash
|
524
|
+
gem push pkg/falkorlib-<version>.gem
|
525
|
+
```
|
526
|
+
|
527
|
+
Check the status on <https://rubygems.org/gems/falkorlib>
|
528
|
+
|
529
|
+
* Restore your [local] git configuration to sign back all your commits
|
494
530
|
|
495
531
|
### Git Branching Model
|
496
532
|
|
data/completion/_falkor
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#compdef falkor
|
2
2
|
########################################################################################
|
3
3
|
# -*- mode:sh; -*-
|
4
|
-
# Time-stamp: <
|
4
|
+
# Time-stamp: <Sat 2024-08-31 16:27 svarrette>
|
5
5
|
#
|
6
6
|
# ZSH completion for [FalkorLib](https://github.com/Falkor/falkorlib)
|
7
7
|
#
|
@@ -41,6 +41,7 @@ _falkor()
|
|
41
41
|
'commands:Lists all available commands'
|
42
42
|
'config:Print the current configuration of FalkorLib'
|
43
43
|
'gitcrypt:Initialize git-crypt for the current repository'
|
44
|
+
'gitignore:Initialize .gitignore for the current repository'
|
44
45
|
'help:Describe available commands or one specific command'
|
45
46
|
'init:Bootstrap a Git Repository the falkor way'
|
46
47
|
'link:Initialize a special symlink (.root, .makefile.d etc.)'
|
@@ -77,6 +78,8 @@ _falkor()
|
|
77
78
|
__falkor_config && ret=0 ;;
|
78
79
|
(gitcrypt)
|
79
80
|
__falkor_gitcrypt && ret=0 ;;
|
81
|
+
(gitignore)
|
82
|
+
__falkor_gitignore && ret=0 ;;
|
80
83
|
(init)
|
81
84
|
__falkor_init && ret=0 ;;
|
82
85
|
(link)
|
@@ -340,6 +343,18 @@ __falkor_gitcrypt() {
|
|
340
343
|
'*:directory:_files -/'
|
341
344
|
}
|
342
345
|
|
346
|
+
##################
|
347
|
+
__falkor_gitignore() {
|
348
|
+
local curcontext=$curcontext state line ret=1
|
349
|
+
declare -A opt_args
|
350
|
+
|
351
|
+
_arguments -C \
|
352
|
+
{--all,-a}'[Ignore all files (except .gitignore)]' \
|
353
|
+
{--latex,-l}'[Setup .gitignore for LaTeX sources]' \
|
354
|
+
{--python,-p}'[Setup .gitignore for Python project]' \
|
355
|
+
'*:directory:_files -/'
|
356
|
+
}
|
357
|
+
|
343
358
|
##################
|
344
359
|
__falkor_init() {
|
345
360
|
local curcontext=$curcontext state line ret=1
|
data/falkorlib.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.version = FalkorLib::Version.to_s #$version
|
9
9
|
s.date = Time.now.strftime('%Y-%m-%d')
|
10
10
|
s.summary = "Sebastien Varrette aka Falkor's Common library to share Ruby code and {rake,cap} tasks"
|
11
|
-
s.description = "This is my personal library I use to share the Ruby tidbits and Rake tasks I made it for my various projects, and also to bootstrap easily several
|
11
|
+
s.description = "This is my personal library I use to share the Ruby tidbits and Rake tasks I made it for my various projects, and also to bootstrap easily several elements of my daily workflow (new git repository, new beamer slides etc.).\n"
|
12
12
|
|
13
13
|
s.homepage = "https://github.com/Falkor/falkorlib"
|
14
14
|
s.licenses = 'MIT'
|
@@ -77,7 +77,7 @@ Gem::Specification.new do |s|
|
|
77
77
|
s.add_runtime_dependency("configatron", '~> 3.0')
|
78
78
|
s.add_runtime_dependency("deep_merge", '~> 1.0')
|
79
79
|
s.add_runtime_dependency("diffy", '~> 3.4', '>= 3.4.2')
|
80
|
-
s.add_runtime_dependency("facter", '~>
|
80
|
+
s.add_runtime_dependency("facter", '~> 4.6.1')
|
81
81
|
s.add_runtime_dependency 'git_remote_branch', '~> 0'
|
82
82
|
s.add_runtime_dependency("json", '~> 2.6', '>= 2.6.3')
|
83
83
|
s.add_runtime_dependency("license-generator", '~> 0')
|
@@ -226,6 +226,7 @@ module FalkorLib
|
|
226
226
|
exit_status = run %(
|
227
227
|
mkdir -p #{dirname}
|
228
228
|
echo '*' > #{dirname}/.gitignore
|
229
|
+
echo '!.gitignore' >> #{dirname}/.gitignore
|
229
230
|
)
|
230
231
|
if FalkorLib::Git.init?(path)
|
231
232
|
exit_status = FalkorLib::Git.add(File.join(trashdir.to_s, '.gitignore' ),
|
@@ -297,15 +298,15 @@ module FalkorLib
|
|
297
298
|
next if [:file, :width].include?(k)
|
298
299
|
config[k.to_sym] = ask( "\t" + format("Message of the Day (MotD) %-10s", k.to_s), config[k.to_sym]) unless options[:no_interaction]
|
299
300
|
end
|
300
|
-
config[:os] = Facter.value(
|
301
|
-
config[:os] = "Mac " + Facter.value(
|
301
|
+
config[:os] = Facter.value('os.distro.description') if Facter.value('os.distro.description')
|
302
|
+
config[:os] = "Mac " + Facter.value('system_profiler.system_version') if Facter.value('system_profiler.system_version')
|
302
303
|
unless options[:nodemodel]
|
303
|
-
config[:nodemodel] = Facter.value(
|
304
|
-
config[:nodemodel] += " (#{Facter.value(
|
305
|
-
config[:nodemodel] += " " + Facter.value(
|
306
|
-
config[:nodemodel] += " #{Facter.value(
|
304
|
+
config[:nodemodel] = Facter.value('system_profiler.model_name') if Facter.value('system_profiler.model_name')
|
305
|
+
config[:nodemodel] += " (#{Facter.value('system_profiler.processor_name')}" if Facter.value('system_profiler.processor_name')
|
306
|
+
config[:nodemodel] += " " + Facter.value('system_profiler.processor_speed') if Facter.value('system_profiler.processor_speed')
|
307
|
+
config[:nodemodel] += " #{Facter.value('system_profiler.cores')} cores )" if Facter.value('system_profiler.cores')
|
307
308
|
end
|
308
|
-
config[:nodemodel] = Facter.value(
|
309
|
+
config[:nodemodel] = Facter.value('system_profiler.model_name') unless options[:nodemodel]
|
309
310
|
write_from_erb_template(erbfile, outfile, config, options)
|
310
311
|
end # motd
|
311
312
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
################################################################################
|
3
|
-
# Time-stamp: <
|
3
|
+
# Time-stamp: <Sat 2024-08-31 16:34 svarrette>
|
4
4
|
################################################################################
|
5
5
|
# Interface for the main Bootstrapping operations
|
6
6
|
#
|
@@ -215,11 +215,26 @@ module FalkorLib
|
|
215
215
|
run %( git crypt add-gpg-user #{k} )
|
216
216
|
end
|
217
217
|
end
|
218
|
+
end # gitcrypt
|
218
219
|
|
220
|
+
###### gitignore ######
|
221
|
+
# Initialize .gitignore in the [current] directory
|
222
|
+
def gitignore(dir = Dir.pwd, options = {})
|
223
|
+
path = normalized_path(dir)
|
224
|
+
unless File.directory?(path)
|
225
|
+
warning "The directory '#{path}' does not exist yet."
|
226
|
+
warning 'Do you want to create (and git init) this directory?'
|
227
|
+
really_continue?
|
228
|
+
run %(mkdir -p #{path})
|
229
|
+
end
|
230
|
+
templatedir = File.join( FalkorLib.templates, 'gitignore')
|
231
|
+
src_gitignore = 'All.gitignore' # Default without any option
|
232
|
+
src_gitignore = 'TeX.gitignore' if options[:latex]
|
233
|
+
src_gitignore = 'Python.gitignore' if options[:python]
|
234
|
+
src_gitignore = 'All.gitignore' if options[:all]
|
235
|
+
run %(cp #{templatedir}/#{src_gitignore} #{path}/.gitignore)
|
236
|
+
end # gitignore
|
219
237
|
|
220
238
|
|
221
|
-
|
222
|
-
end # gitcrypt
|
223
|
-
|
224
239
|
end # module Bootstrap
|
225
240
|
end # module FalkorLib
|
data/lib/falkorlib/cli.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
################################################################################
|
3
|
-
# Time-stamp: <
|
3
|
+
# Time-stamp: <Sat 2024-08-31 16:30 svarrette>
|
4
4
|
################################################################################
|
5
5
|
# Interface for the CLI
|
6
6
|
#
|
@@ -93,6 +93,21 @@ CONFIG_LONG_DESC
|
|
93
93
|
FalkorLib::Bootstrap.gitcrypt(path, options)
|
94
94
|
end # gitcrypt
|
95
95
|
|
96
|
+
###### gitignore ######
|
97
|
+
method_option :all, :aliases => ['--all', '-a' ], :type => :boolean, :default => true,
|
98
|
+
:desc => "Ignore all files (except .gitignore)"
|
99
|
+
method_option :latex, :aliases => ['--latex', '--tex', '-l' ], :type => :boolean, :default => false,
|
100
|
+
:desc => "Setup .gitignore for LaTeX sources"
|
101
|
+
method_option :python, :aliases => '-p', :type => :boolean, :default => false,
|
102
|
+
:desc => "Setup .gitignore for Python project"
|
103
|
+
#......................................
|
104
|
+
desc "gitignore <PATH> [options]", "Initialize .gitignore for the [current] directory (by default, ignore all files but .gitignore"
|
105
|
+
def gitignore(path = '.')
|
106
|
+
FalkorLib::Bootstrap.gitignore(path, options)
|
107
|
+
end # gitignore
|
108
|
+
|
109
|
+
|
110
|
+
|
96
111
|
###### init ######
|
97
112
|
desc "init <PATH> [options]", "Bootstrap a Git Repository"
|
98
113
|
long_desc <<-INIT_LONG_DESC
|
data/lib/falkorlib/version.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#########################################
|
3
3
|
# bootstrap_spec.rb
|
4
4
|
# @author Sebastien Varrette <Sebastien.Varrette@uni.lu>
|
5
|
-
# Time-stamp: <
|
5
|
+
# Time-stamp: <Sat 2024-08-31 16:18 svarrette>
|
6
6
|
#
|
7
7
|
# @description Check the basic Bootstrapping operations
|
8
8
|
#
|
@@ -186,6 +186,50 @@ describe FalkorLib::Bootstrap do
|
|
186
186
|
expect(File).to exist( File.join(dir, f))
|
187
187
|
end
|
188
188
|
end
|
189
|
+
|
190
|
+
it "#gitignore -- git ignore population from default templates (ignore all)" do
|
191
|
+
c = FalkorLib::Bootstrap.gitignore(dir, { :no_interaction => true })
|
192
|
+
gitignore = File.join(dir, '.gitignore')
|
193
|
+
expect(File).to exist( gitignore )
|
194
|
+
# Default .gitignore should ignore itself
|
195
|
+
File.read(File.realpath( gitignore )) do |f|
|
196
|
+
f.should include "!.gitignore"
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
it "#gitignore -- git ignore population from LaTeX templates" do
|
201
|
+
c = FalkorLib::Bootstrap.gitignore(dir, { :latex => true, :no_interaction => true })
|
202
|
+
gitignore = File.join(dir, '.gitignore')
|
203
|
+
expect(File).to exist( gitignore )
|
204
|
+
# Default .gitignore should ignore itself
|
205
|
+
File.read(File.realpath( gitignore )) do |f|
|
206
|
+
[
|
207
|
+
"*.aux",
|
208
|
+
"*.synctex",
|
209
|
+
"/*.pdf", # ignore local PDF
|
210
|
+
].each do |pattern|
|
211
|
+
f.should include "#{pattern}"
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
it "#gitignore -- git ignore population from Python templates" do
|
217
|
+
c = FalkorLib::Bootstrap.gitignore(dir, { :python => true, :no_interaction => true })
|
218
|
+
gitignore = File.join(dir, '.gitignore')
|
219
|
+
expect(File).to exist( gitignore )
|
220
|
+
# Default .gitignore should ignore itself
|
221
|
+
File.read(File.realpath( gitignore )) do |f|
|
222
|
+
[
|
223
|
+
"__pycache__/",
|
224
|
+
"*.egg-info",
|
225
|
+
"*.nox",
|
226
|
+
].each do |pattern|
|
227
|
+
f.should include "#{pattern}"
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
|
189
233
|
end
|
190
234
|
|
191
235
|
if (ctx == :with_git and !ENV['TRAVIS_CI_RUN'])
|
@@ -0,0 +1,162 @@
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
2
|
+
__pycache__/
|
3
|
+
*.py[cod]
|
4
|
+
*$py.class
|
5
|
+
|
6
|
+
# C extensions
|
7
|
+
*.so
|
8
|
+
|
9
|
+
# Distribution / packaging
|
10
|
+
.Python
|
11
|
+
build/
|
12
|
+
develop-eggs/
|
13
|
+
dist/
|
14
|
+
downloads/
|
15
|
+
eggs/
|
16
|
+
.eggs/
|
17
|
+
lib/
|
18
|
+
lib64/
|
19
|
+
parts/
|
20
|
+
sdist/
|
21
|
+
var/
|
22
|
+
wheels/
|
23
|
+
share/python-wheels/
|
24
|
+
*.egg-info/
|
25
|
+
.installed.cfg
|
26
|
+
*.egg
|
27
|
+
MANIFEST
|
28
|
+
|
29
|
+
# PyInstaller
|
30
|
+
# Usually these files are written by a python script from a template
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
32
|
+
*.manifest
|
33
|
+
*.spec
|
34
|
+
|
35
|
+
# Installer logs
|
36
|
+
pip-log.txt
|
37
|
+
pip-delete-this-directory.txt
|
38
|
+
|
39
|
+
# Unit test / coverage reports
|
40
|
+
htmlcov/
|
41
|
+
.tox/
|
42
|
+
.nox/
|
43
|
+
.coverage
|
44
|
+
.coverage.*
|
45
|
+
.cache
|
46
|
+
nosetests.xml
|
47
|
+
coverage.xml
|
48
|
+
*.cover
|
49
|
+
*.py,cover
|
50
|
+
.hypothesis/
|
51
|
+
.pytest_cache/
|
52
|
+
cover/
|
53
|
+
|
54
|
+
# Translations
|
55
|
+
*.mo
|
56
|
+
*.pot
|
57
|
+
|
58
|
+
# Django stuff:
|
59
|
+
*.log
|
60
|
+
local_settings.py
|
61
|
+
db.sqlite3
|
62
|
+
db.sqlite3-journal
|
63
|
+
|
64
|
+
# Flask stuff:
|
65
|
+
instance/
|
66
|
+
.webassets-cache
|
67
|
+
|
68
|
+
# Scrapy stuff:
|
69
|
+
.scrapy
|
70
|
+
|
71
|
+
# Sphinx documentation
|
72
|
+
docs/_build/
|
73
|
+
|
74
|
+
# PyBuilder
|
75
|
+
.pybuilder/
|
76
|
+
target/
|
77
|
+
|
78
|
+
# Jupyter Notebook
|
79
|
+
.ipynb_checkpoints
|
80
|
+
|
81
|
+
# IPython
|
82
|
+
profile_default/
|
83
|
+
ipython_config.py
|
84
|
+
|
85
|
+
# pyenv
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
88
|
+
# .python-version
|
89
|
+
|
90
|
+
# pipenv
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
94
|
+
# install all needed dependencies.
|
95
|
+
#Pipfile.lock
|
96
|
+
|
97
|
+
# poetry
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
100
|
+
# commonly ignored for libraries.
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
102
|
+
#poetry.lock
|
103
|
+
|
104
|
+
# pdm
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
106
|
+
#pdm.lock
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
108
|
+
# in version control.
|
109
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
110
|
+
.pdm.toml
|
111
|
+
.pdm-python
|
112
|
+
.pdm-build/
|
113
|
+
|
114
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
115
|
+
__pypackages__/
|
116
|
+
|
117
|
+
# Celery stuff
|
118
|
+
celerybeat-schedule
|
119
|
+
celerybeat.pid
|
120
|
+
|
121
|
+
# SageMath parsed files
|
122
|
+
*.sage.py
|
123
|
+
|
124
|
+
# Environments
|
125
|
+
.env
|
126
|
+
.venv
|
127
|
+
env/
|
128
|
+
venv/
|
129
|
+
ENV/
|
130
|
+
env.bak/
|
131
|
+
venv.bak/
|
132
|
+
|
133
|
+
# Spyder project settings
|
134
|
+
.spyderproject
|
135
|
+
.spyproject
|
136
|
+
|
137
|
+
# Rope project settings
|
138
|
+
.ropeproject
|
139
|
+
|
140
|
+
# mkdocs documentation
|
141
|
+
/site
|
142
|
+
|
143
|
+
# mypy
|
144
|
+
.mypy_cache/
|
145
|
+
.dmypy.json
|
146
|
+
dmypy.json
|
147
|
+
|
148
|
+
# Pyre type checker
|
149
|
+
.pyre/
|
150
|
+
|
151
|
+
# pytype static type analyzer
|
152
|
+
.pytype/
|
153
|
+
|
154
|
+
# Cython debug symbols
|
155
|
+
cython_debug/
|
156
|
+
|
157
|
+
# PyCharm
|
158
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
159
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
160
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
161
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
162
|
+
#.idea/
|
@@ -0,0 +1,309 @@
|
|
1
|
+
## Core latex/pdflatex auxiliary files:
|
2
|
+
*.aux
|
3
|
+
*.lof
|
4
|
+
*.log
|
5
|
+
*.lot
|
6
|
+
*.fls
|
7
|
+
*.out
|
8
|
+
*.toc
|
9
|
+
*.fmt
|
10
|
+
*.fot
|
11
|
+
*.cb
|
12
|
+
*.cb2
|
13
|
+
.*.lb
|
14
|
+
|
15
|
+
## Intermediate documents:
|
16
|
+
*.dvi
|
17
|
+
*.xdv
|
18
|
+
*-converted-to.*
|
19
|
+
# these rules might exclude image files for figures etc.
|
20
|
+
# *.ps
|
21
|
+
# *.eps
|
22
|
+
# *.pdf
|
23
|
+
|
24
|
+
## Generated if empty string is given at "Please type another file name for output:"
|
25
|
+
.pdf
|
26
|
+
|
27
|
+
## Bibliography auxiliary files (bibtex/biblatex/biber):
|
28
|
+
*.bbl
|
29
|
+
*.bcf
|
30
|
+
*.blg
|
31
|
+
*-blx.aux
|
32
|
+
*-blx.bib
|
33
|
+
*.run.xml
|
34
|
+
|
35
|
+
## Build tool auxiliary files:
|
36
|
+
*.fdb_latexmk
|
37
|
+
*.synctex
|
38
|
+
*.synctex(busy)
|
39
|
+
*.synctex.gz
|
40
|
+
*.synctex.gz(busy)
|
41
|
+
*.pdfsync
|
42
|
+
|
43
|
+
## Build tool directories for auxiliary files
|
44
|
+
# latexrun
|
45
|
+
latex.out/
|
46
|
+
|
47
|
+
## Auxiliary and intermediate files from other packages:
|
48
|
+
# algorithms
|
49
|
+
*.alg
|
50
|
+
*.loa
|
51
|
+
|
52
|
+
# achemso
|
53
|
+
acs-*.bib
|
54
|
+
|
55
|
+
# amsthm
|
56
|
+
*.thm
|
57
|
+
|
58
|
+
# beamer
|
59
|
+
*.nav
|
60
|
+
*.pre
|
61
|
+
*.snm
|
62
|
+
*.vrb
|
63
|
+
|
64
|
+
# changes
|
65
|
+
*.soc
|
66
|
+
|
67
|
+
# comment
|
68
|
+
*.cut
|
69
|
+
|
70
|
+
# cprotect
|
71
|
+
*.cpt
|
72
|
+
|
73
|
+
# elsarticle (documentclass of Elsevier journals)
|
74
|
+
*.spl
|
75
|
+
|
76
|
+
# endnotes
|
77
|
+
*.ent
|
78
|
+
|
79
|
+
# fixme
|
80
|
+
*.lox
|
81
|
+
|
82
|
+
# feynmf/feynmp
|
83
|
+
*.mf
|
84
|
+
*.mp
|
85
|
+
*.t[1-9]
|
86
|
+
*.t[1-9][0-9]
|
87
|
+
*.tfm
|
88
|
+
|
89
|
+
#(r)(e)ledmac/(r)(e)ledpar
|
90
|
+
*.end
|
91
|
+
*.?end
|
92
|
+
*.[1-9]
|
93
|
+
*.[1-9][0-9]
|
94
|
+
*.[1-9][0-9][0-9]
|
95
|
+
*.[1-9]R
|
96
|
+
*.[1-9][0-9]R
|
97
|
+
*.[1-9][0-9][0-9]R
|
98
|
+
*.eledsec[1-9]
|
99
|
+
*.eledsec[1-9]R
|
100
|
+
*.eledsec[1-9][0-9]
|
101
|
+
*.eledsec[1-9][0-9]R
|
102
|
+
*.eledsec[1-9][0-9][0-9]
|
103
|
+
*.eledsec[1-9][0-9][0-9]R
|
104
|
+
|
105
|
+
# glossaries
|
106
|
+
*.acn
|
107
|
+
*.acr
|
108
|
+
*.glg
|
109
|
+
*.glo
|
110
|
+
*.gls
|
111
|
+
*.glsdefs
|
112
|
+
*.lzo
|
113
|
+
*.lzs
|
114
|
+
*.slg
|
115
|
+
*.slo
|
116
|
+
*.sls
|
117
|
+
|
118
|
+
# uncomment this for glossaries-extra (will ignore makeindex's style files!)
|
119
|
+
# *.ist
|
120
|
+
|
121
|
+
# gnuplot
|
122
|
+
*.gnuplot
|
123
|
+
*.table
|
124
|
+
|
125
|
+
# gnuplottex
|
126
|
+
*-gnuplottex-*
|
127
|
+
|
128
|
+
# gregoriotex
|
129
|
+
*.gaux
|
130
|
+
*.glog
|
131
|
+
*.gtex
|
132
|
+
|
133
|
+
# htlatex
|
134
|
+
*.4ct
|
135
|
+
*.4tc
|
136
|
+
*.idv
|
137
|
+
*.lg
|
138
|
+
*.trc
|
139
|
+
*.xref
|
140
|
+
|
141
|
+
# hyperref
|
142
|
+
*.brf
|
143
|
+
|
144
|
+
# knitr
|
145
|
+
*-concordance.tex
|
146
|
+
# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files
|
147
|
+
# *.tikz
|
148
|
+
*-tikzDictionary
|
149
|
+
|
150
|
+
# listings
|
151
|
+
*.lol
|
152
|
+
|
153
|
+
# luatexja-ruby
|
154
|
+
*.ltjruby
|
155
|
+
|
156
|
+
# makeidx
|
157
|
+
*.idx
|
158
|
+
*.ilg
|
159
|
+
*.ind
|
160
|
+
|
161
|
+
# minitoc
|
162
|
+
*.maf
|
163
|
+
*.mlf
|
164
|
+
*.mlt
|
165
|
+
*.mtc[0-9]*
|
166
|
+
*.slf[0-9]*
|
167
|
+
*.slt[0-9]*
|
168
|
+
*.stc[0-9]*
|
169
|
+
|
170
|
+
# minted
|
171
|
+
_minted*
|
172
|
+
*.pyg
|
173
|
+
|
174
|
+
# morewrites
|
175
|
+
*.mw
|
176
|
+
|
177
|
+
# newpax
|
178
|
+
*.newpax
|
179
|
+
|
180
|
+
# nomencl
|
181
|
+
*.nlg
|
182
|
+
*.nlo
|
183
|
+
*.nls
|
184
|
+
|
185
|
+
# pax
|
186
|
+
*.pax
|
187
|
+
|
188
|
+
# pdfpcnotes
|
189
|
+
*.pdfpc
|
190
|
+
|
191
|
+
# sagetex
|
192
|
+
*.sagetex.sage
|
193
|
+
*.sagetex.py
|
194
|
+
*.sagetex.scmd
|
195
|
+
|
196
|
+
# scrwfile
|
197
|
+
*.wrt
|
198
|
+
|
199
|
+
# svg
|
200
|
+
svg-inkscape/
|
201
|
+
|
202
|
+
# sympy
|
203
|
+
*.sout
|
204
|
+
*.sympy
|
205
|
+
sympy-plots-for-*.tex/
|
206
|
+
|
207
|
+
# pdfcomment
|
208
|
+
*.upa
|
209
|
+
*.upb
|
210
|
+
|
211
|
+
# pythontex
|
212
|
+
*.pytxcode
|
213
|
+
pythontex-files-*/
|
214
|
+
|
215
|
+
# tcolorbox
|
216
|
+
*.listing
|
217
|
+
|
218
|
+
# thmtools
|
219
|
+
*.loe
|
220
|
+
|
221
|
+
# TikZ & PGF
|
222
|
+
*.dpth
|
223
|
+
*.md5
|
224
|
+
*.auxlock
|
225
|
+
|
226
|
+
# titletoc
|
227
|
+
*.ptc
|
228
|
+
|
229
|
+
# todonotes
|
230
|
+
*.tdo
|
231
|
+
|
232
|
+
# vhistory
|
233
|
+
*.hst
|
234
|
+
*.ver
|
235
|
+
|
236
|
+
# easy-todo
|
237
|
+
*.lod
|
238
|
+
|
239
|
+
# xcolor
|
240
|
+
*.xcp
|
241
|
+
|
242
|
+
# xmpincl
|
243
|
+
*.xmpi
|
244
|
+
|
245
|
+
# xindy
|
246
|
+
*.xdy
|
247
|
+
|
248
|
+
# xypic precompiled matrices and outlines
|
249
|
+
*.xyc
|
250
|
+
*.xyd
|
251
|
+
|
252
|
+
# endfloat
|
253
|
+
*.ttt
|
254
|
+
*.fff
|
255
|
+
|
256
|
+
# Latexian
|
257
|
+
TSWLatexianTemp*
|
258
|
+
|
259
|
+
## Editors:
|
260
|
+
# WinEdt
|
261
|
+
*.bak
|
262
|
+
*.sav
|
263
|
+
|
264
|
+
# Texpad
|
265
|
+
.texpadtmp
|
266
|
+
|
267
|
+
# LyX
|
268
|
+
*.lyx~
|
269
|
+
|
270
|
+
# Kile
|
271
|
+
*.backup
|
272
|
+
|
273
|
+
# gummi
|
274
|
+
.*.swp
|
275
|
+
|
276
|
+
# KBibTeX
|
277
|
+
*~[0-9]*
|
278
|
+
|
279
|
+
# TeXnicCenter
|
280
|
+
*.tps
|
281
|
+
|
282
|
+
# auto folder when using emacs and auctex
|
283
|
+
./auto/*
|
284
|
+
*.el
|
285
|
+
|
286
|
+
# expex forward references with \gathertags
|
287
|
+
*-tags.tex
|
288
|
+
|
289
|
+
# standalone packages
|
290
|
+
*.sta
|
291
|
+
|
292
|
+
# Makeindex log files
|
293
|
+
*.lpz
|
294
|
+
|
295
|
+
# xwatermark package
|
296
|
+
*.xwm
|
297
|
+
|
298
|
+
# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib
|
299
|
+
# option is specified. Footnotes are the stored in a file with suffix Notes.bib.
|
300
|
+
# Uncomment the next line to have this generated file ignored.
|
301
|
+
#*Notes.bib
|
302
|
+
|
303
|
+
### Custom additions by Falkor
|
304
|
+
# GNU Texinfo
|
305
|
+
.texinfo/*
|
306
|
+
|
307
|
+
# Don't consider generated PDF - they must be probably committed at the end
|
308
|
+
# somewhere else
|
309
|
+
/*.pdf
|
data/templates/motd/motd.erb
CHANGED
@@ -8,11 +8,11 @@ Welcome to <%= config[:hostname].chomp %>
|
|
8
8
|
<%= ("=" * config[:width]) + "\n" %>
|
9
9
|
Hostname: <%= config[:hostname].chomp %>
|
10
10
|
OS: <%= config[:os] %>
|
11
|
-
IP: <%= Facter.value(
|
11
|
+
IP: <%= Facter.value('networking.ip') %> (@mac: <%= Facter.value('networking.mac') %>)
|
12
12
|
Support: <%= config[:support] %>
|
13
13
|
|
14
14
|
=== <%= config[:desc] %> ===
|
15
15
|
<%= config[:nodemodel] %>
|
16
|
-
RAM: <%= Facter.value(
|
16
|
+
RAM: <%= Facter.value('memory.system.total') %> -- Swap size: <%= Facter.value('memory.swap.total') %>
|
17
17
|
|
18
18
|
<%= ("=" * config[:width]) + "\n" %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: falkorlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastien Varrette
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -138,14 +138,14 @@ dependencies:
|
|
138
138
|
requirements:
|
139
139
|
- - "~>"
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
141
|
+
version: 4.6.1
|
142
142
|
type: :runtime
|
143
143
|
prerelease: false
|
144
144
|
version_requirements: !ruby/object:Gem::Requirement
|
145
145
|
requirements:
|
146
146
|
- - "~>"
|
147
147
|
- !ruby/object:Gem::Version
|
148
|
-
version:
|
148
|
+
version: 4.6.1
|
149
149
|
- !ruby/object:Gem::Dependency
|
150
150
|
name: git_remote_branch
|
151
151
|
requirement: !ruby/object:Gem::Requirement
|
@@ -349,7 +349,7 @@ dependencies:
|
|
349
349
|
- !ruby/object:Gem::Version
|
350
350
|
version: 0.9.20
|
351
351
|
description: 'This is my personal library I use to share the Ruby tidbits and Rake
|
352
|
-
tasks I made it for my various projects, and also to bootstrap easily several
|
352
|
+
tasks I made it for my various projects, and also to bootstrap easily several elements
|
353
353
|
of my daily workflow (new git repository, new beamer slides etc.).
|
354
354
|
|
355
355
|
'
|
@@ -466,6 +466,9 @@ files:
|
|
466
466
|
- templates/gems/sysadmin-warrior.gemspec
|
467
467
|
- templates/git-crypt/.gitattributes
|
468
468
|
- templates/git-crypt/pre-commit.git-crypt.sh
|
469
|
+
- templates/gitignore/All.gitignore
|
470
|
+
- templates/gitignore/Python.gitignore
|
471
|
+
- templates/gitignore/TeX.gitignore
|
469
472
|
- templates/latex/.gitignore
|
470
473
|
- templates/latex/acm/ACM-Reference-Format.bst
|
471
474
|
- templates/latex/acm/acmart.cls
|