jekyll-logger-tap 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5e72991f7e1e96c3e072ef9628035b6965e6d42770e186a817a8e89ff011745c
4
+ data.tar.gz: ae1014594b9ea6b14d5baa8d4e0731b9031246d344441add49f2381669d5dbf2
5
+ SHA512:
6
+ metadata.gz: 03d38bccab4e6ac090f8b33ead7d1a05cfe723719feccae2cb94e277b82b929156c43e679c9e657c586612da5e7cbc7996b0c013c8386e5d0a3338f8ac2f4deb
7
+ data.tar.gz: 279ee232090e7013df2070e00227dca6d1cfbbe5c61e7e6831a533181f09188341809cd56a0a8a98e101110144f5b53dbea8b81bce99a4fcdb13f56c272a5631
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## v0.1.0 - 2023-10-02
9
+
10
+ ### Added
11
+
12
+ - It works!
data/LICENSE.txt ADDED
@@ -0,0 +1,168 @@
1
+ Copyright (c) 2023 Sutty
2
+
3
+ The following license is modified from the MIT license and downloaded
4
+ from <https://github.com/Laurelai/anti-fascist-mit-license> on
5
+ 2019-07-11.
6
+
7
+ Anti-Fascist MIT License:
8
+
9
+ The following conditions must be met by any person obtaining a copy of
10
+ this software:
11
+
12
+ - You MAY NOT be a fascist.
13
+ - You MUST not financially support fascists.
14
+ - You MUST not intentionally provide or knowingly provide through
15
+ inaction a platform for fascists to spread propaganda or organize.
16
+ - You MUST not publicly voice support for fascists.
17
+ - You MAY NOT be a member of any fascist organization, even if you are a
18
+ member to infiltrate for anti-fascist purposes.
19
+
20
+ "Fascist" can be understood as any group or individual who promotes the
21
+ political ideology of fascism.
22
+
23
+ "Fascism" can be broken down into 11 ideological features as well as 8
24
+ tactics that can form a fascist system in varying combinations, for the
25
+ sake of simplicity and brevity the individual or organization in
26
+ question must match to at least 5 features or tactics or a combination
27
+ of the two determined by the individual licencer.
28
+
29
+ Said licencer may provide a list if an individual or group matches to at
30
+ least 5 features upon request from the individual or group in question.
31
+
32
+ The ideological features are listed below.
33
+
34
+ 1. Hyper-nationalism.
35
+
36
+ As defined as "The belief in the superiority of one's nation and of the
37
+ paramount importance of advancing it."
38
+
39
+ 2. Militarism.
40
+
41
+ As defined as "Advocating for an increase in military forces beyond what
42
+ the real defense of a nation needs, more influence of the military upon
43
+ the policies of the civilian government, and a preference for force as a
44
+ solution over diplomacy for problems."
45
+
46
+ 3. Glorification of violence and readiness to use it in politics.
47
+
48
+ As defined as "The belief that violence can be used to cleanse a
49
+ tarnished nation, also by using violence to harm, intimidate or kill
50
+ political oppoenents."
51
+
52
+ 4. Fetishization of youth.
53
+
54
+ As defined as "Extolling the virtues of youth and making a special
55
+ appeal to young people to join a cause or organization"
56
+
57
+ 5. Fetishization of masculinity.
58
+
59
+ As defined as "Extolling the virtues of male authority or patriarchy and
60
+ making a special appeal to men to be leaders of households and groups"
61
+
62
+ 6. Leader cult.
63
+
64
+ As defined as "Creating an idealized, heroic, and worshipful image of a
65
+ leader, often through unquestioning flattery and praise."
66
+
67
+ 7. Lost-golden-age syndrome.
68
+
69
+ As defined as "Creating or promoting the idea that a nation had a lost
70
+ or stolen golden age in the past that must be returned to"
71
+
72
+ 8. Self-definition by opposition.
73
+
74
+ As defined as "Creating or promoting the idea that the group or
75
+ individual is the only person or way who can fight real or imagined
76
+ evils within a society."
77
+
78
+ 9. Mass mobilization and mass party.
79
+
80
+ As defined as "Creating or promoting the creation of a populist group or
81
+ party for the advancment of fascist tactics or features."
82
+
83
+ 10. Hierarchical party structure and tendency to purge the disloyal.
84
+
85
+ As defined as "Removal of membership from a group for lacking absolute
86
+ loyalty or lacking further usefulness to the group. Also having a
87
+ hierarchical structure within the group itself."
88
+
89
+ 11. Theatricality.
90
+
91
+ As defined as "Using spectacle to gain and keep the attention of those
92
+ inside and outside of the group using speeches full of absolutes and or
93
+ superlatives. Elaborate collective rituals (rallies) meant to reenforce
94
+ loyalty within the group."
95
+
96
+ Fascist tactics include
97
+
98
+ 1) Persecution of national minorities.
99
+ 2) Persecution of racial minorities.
100
+ 3) Persecution of religious minorities (Anti-Semitism, Islamophobia and others).
101
+ 4) Promotion of a type of national purity.
102
+ 5) Promotion of a state run by ideologically oriented corporate bodies.
103
+ 6) Persecution of gender or sexual minorities.
104
+ 7) Persecution of the disabled.
105
+ 8) Formation of extra-legal forces (brownshirts) to defend fascist values.
106
+
107
+ Special criteria: Meeting only one point of the special criteria is
108
+ enough to consider someone or a group to be fascist for the purposes of
109
+ this licence.
110
+
111
+ 1. Promotion of any theories that state members of the jewish ethnicity
112
+ or faith control or largely control the world, finance, or other
113
+ global major power system.
114
+
115
+ 2. Denial of the holocaust or any other historically proven genocide.
116
+
117
+ 3. Promotion of ethnostates.
118
+
119
+ 4. Advocating for eugenics. Either positive or negative eugenics.
120
+ Promotion for the rights of abortion are not considered eugenics.
121
+
122
+ 5. Advocating for the removal of rights or legal protections from a
123
+ class or group of people.
124
+
125
+ Former fascists: People or organizations who used to promote the
126
+ political ideology of fascism but no longer do so must meet the
127
+ following criterea to be able to use this software.
128
+
129
+ 1. Publicly disavow past fascist deeds and ideologies.
130
+
131
+ 2. Expose any and all known fascists former allies to the public.
132
+
133
+ A suggested route would be through the one peoples project
134
+ (onepeoplesproject.com). If they can confirm you have done so that
135
+ will count as meeting condition two.
136
+
137
+ 3. Publicly destroy any and all fascist paraphenelia you have in your
138
+ posession including removal of tattoos and body markings
139
+ affiliated with fascist groups or gangs.
140
+
141
+ ANTI-FASCIST-MIT LICENSE:
142
+
143
+ Permission is hereby granted, free of charge, to any person obtaining a
144
+ copy of this software and associated documentation files (the
145
+ "Software"), to deal in the Software without restriction, including
146
+ without limitation the rights to use, copy, modify, merge, publish,
147
+ distribute, sublicense, and/or sell copies of the Software, and to
148
+ permit persons to whom the Software is furnished to do so, subject to
149
+ the following conditions:
150
+
151
+ The above copyright notice and this permission notice shall be included
152
+ in all copies or substantial portions of the Software.
153
+
154
+ The above licence agreement conditions are met in full.
155
+
156
+ The Anti-Fascist MIT License may only be used under the terms of the
157
+ Anti-Fascist MIT License.
158
+
159
+ Any modified versions of this software must also include the
160
+ Anti-Fascist MIT Licence.
161
+
162
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
163
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
164
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
165
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
166
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
167
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
168
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # jekyll-logger-tap
2
+
3
+ A [Test Anything Protocol](http://testanything.org/) formatter for
4
+ Jekyll logs.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your Jekyll site's `Gemfile`:
9
+
10
+ ```ruby
11
+ group :jekyll_plugins do
12
+ gem 'jekyll-logger-tap', require: 'jekyll-logger-tap'
13
+ end
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install jekyll-logger-tap
23
+
24
+ ## Usage
25
+
26
+ You don't need to do anything else. Since the `:jekyll_plugins` group
27
+ is loaded early by Jekyll, all logging should be following the TAP
28
+ format.
29
+
30
+ ## Contributing
31
+
32
+ Bug reports and pull requests are welcome on 0xacab.org at
33
+ https://0xacab.org/sutty/jekyll/CAMBIAME-jekyll-theme. This project is
34
+ intended to be a safe, welcoming space for collaboration, and
35
+ contributors are expected to adhere to the [Sutty's code of
36
+ conduct](http://sutty.nl/en/code-of-conduct).
37
+
38
+ ## Development
39
+
40
+ To set up your environment to develop this theme, run `bundle install`.
41
+
42
+ Your theme is setup just like a normal Jekyll site! To test your theme,
43
+ run `bundle exec jekyll serve` and open your browser at
44
+ `http://localhost:4000`. This starts a Jekyll server using your
45
+ theme. Add pages, documents, data, etc. like normal to test your theme's
46
+ contents. As you make modifications to your theme and to your content,
47
+ your site will regenerate and you should see the changes in the browser
48
+ after a refresh, just like normal.
49
+
50
+ When your theme is released, only the files in `_layouts`, `_includes`,
51
+ `_sass` and `assets` tracked with Git will be bundled.
52
+
53
+ To add a custom directory to your theme-gem, please edit the array in
54
+ `CAMBIAME-jekyll-theme.gemspec` accordingly.
55
+
56
+ ## License
57
+
58
+ The theme is available as open source under the terms of the
59
+ [Anti-fascist MIT License](LICENSE.txt).
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Jekyll
4
+ module LogAdapters
5
+ # Provides a replacement for Stevenson to use the Test Anything
6
+ # Protocol
7
+ #
8
+ # http://testanything.org/
9
+ module Tap
10
+ class Logger < Jekyll::Stevenson
11
+ # TAP doesn't have that many levels, so we differentiate errors
12
+ # from warnings by color and prefix.
13
+ SEVERITY_FORMAT = {
14
+ 'DEBUG' => '#',
15
+ 'INFO' => 'ok -'.green,
16
+ 'WARN' => 'not ok - Warning:'.yellow,
17
+ 'ERROR' => 'not ok - Error:'.red,
18
+ 'FATAL' => 'Bail out!'.red,
19
+ 'ANY' => ''
20
+ }
21
+
22
+ # Replace the formatter with a proc
23
+ #
24
+ # Multi-line messages are assumed to be debug level, like the
25
+ # profiler table.
26
+ def initialize
27
+ super
28
+
29
+ @formatter = proc do |severity, _, _, msg|
30
+ msg = msg.to_s.strip_ansi.strip
31
+
32
+ next if msg.empty?
33
+
34
+ if msg.lines.size > 1
35
+ msg.lines.map do |line|
36
+ "#{SEVERITY_FORMAT['DEBUG']} #{line}"
37
+ end.join
38
+ else
39
+ "#{SEVERITY_FORMAT[severity]} #{msg}"
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'jekyll/log_adapters/tap'
4
+
5
+ Jekyll.logger = Jekyll::LogAdapters::Tap::Logger.new
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-logger-tap
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - f
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-10-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
27
+ description:
28
+ email:
29
+ - f@sutty.nl
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files:
33
+ - README.md
34
+ - CHANGELOG.md
35
+ - LICENSE.txt
36
+ files:
37
+ - CHANGELOG.md
38
+ - LICENSE.txt
39
+ - README.md
40
+ - lib/jekyll-logger-tap.rb
41
+ - lib/jekyll/log_adapters/tap.rb
42
+ homepage: https://0xacab.org/sutty/jekyll/jekyll-logger-tap
43
+ licenses:
44
+ - Nonstandard
45
+ metadata:
46
+ bug_tracker_uri: https://0xacab.org/sutty/jekyll/jekyll-logger-tap/issues
47
+ homepage_uri: https://0xacab.org/sutty/jekyll/jekyll-logger-tap
48
+ source_code_uri: https://0xacab.org/sutty/jekyll/jekyll-logger-tap
49
+ changelog_uri: https://0xacab.org/sutty/jekyll/jekyll-logger-tap/-/blob/master/CHANGELOG.md
50
+ documentation_uri: https://rubydoc.info/gems/jekyll-logger-tap
51
+ post_install_message:
52
+ rdoc_options:
53
+ - "--title"
54
+ - jekyll-logger-tap - TAP logger for Jekyll
55
+ - "--main"
56
+ - README.md
57
+ - "--line-numbers"
58
+ - "--inline-source"
59
+ - "--quiet"
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ requirements: []
73
+ rubygems_version: 3.3.26
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: TAP logger for Jekyll
77
+ test_files: []