markdown_it_ruby 0.1.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 17a71dccb5da286b28b69ef8956a4e2d60d331a4af2990401169646ea7acb56a
4
+ data.tar.gz: 5f0247e7cfee562d1e74d99d0903c9c2a09b5baad7e25abea5e402218ac32d19
5
+ SHA512:
6
+ metadata.gz: 9b6789d6a6bd6f8ad7179a08d5b238a3ac8fad93a72dd4c88ee0887aca6f72d9644a2af9c09d1e0a5a1f159cc54ca19e7dffcd5a5f5137588aca2ea3da30b4f2
7
+ data.tar.gz: ed1b30a33d5575b3f22d0b1d6f9380f0211e1ccae8469d6ff46ec83d5fc628ef05be32f41abc5a0633689001b6f2aa6e03e77785f074551d4e7aec434a81cf46
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,171 @@
1
+ # certain cops (checks) and to alter their behavior if they accept
2
+ # any parameters. The file can be placed either in your home
3
+ # directory or in some project directory.
4
+ #
5
+ # RuboCop will start looking for the configuration file in the directory
6
+ # where the inspected file is and continue its way up to the root directory.
7
+ #
8
+ # See https://docs.rubocop.org/rubocop/configuration
9
+
10
+ require:
11
+ - rubocop-rspec
12
+
13
+ AllCops:
14
+ TargetRubyVersion: 3.2
15
+ NewCops: enable
16
+ Exclude:
17
+ - "bin/*"
18
+ - "vendor/**/*"
19
+ - "db/schema.rb"
20
+ - "db/migrate/**/*.rb"
21
+ - "lib/openapi/**/*"
22
+
23
+ Metrics/BlockLength:
24
+ Exclude:
25
+ - "lib/tasks/**/*"
26
+ - "config/routes.rb"
27
+ - "config/environments/*.rb"
28
+ - "config/initializers/*.rb"
29
+ - "test/**/*"
30
+ - "spec/**/*"
31
+
32
+ Lint/EmptyBlock:
33
+ Exclude:
34
+ - "test/factories/**/*.rb"
35
+
36
+ # blockの書き方を、関数か手続きかで書き分けることで意図を伝えたい
37
+ Style/BlockDelimiters:
38
+ EnforcedStyle: semantic
39
+ # single linerに限って { } を許す(モデルやコントローラのDSLをdo..endで改行すると冗長になるので)
40
+ AllowBracesOnProceduralOneLiners: true
41
+ # let, beforeブロックやfactoryの書き方はDSLの慣習に合わせたいので緩めておく
42
+ Exclude:
43
+ - "spec/**/*.rb"
44
+
45
+ # classにドキュメント必須とはしない(乖離が生まれるためコードを正とする)
46
+ Style/Documentation:
47
+ Enabled: false
48
+
49
+ # 日本語によるコードコメントを許可。開発チームが多国籍化する場合は再検討
50
+ Style/AsciiComments:
51
+ Enabled: false
52
+
53
+ # single-linerを強制せず、明示的にIFブロックを示すことを許す
54
+ Style/IfUnlessModifier:
55
+ Enabled: false
56
+
57
+ Style/RedundantFetchBlock:
58
+ # railsの設定ファイルはデフォルトでfetchにブロックを利用するため、そちらの記法に合わせておく
59
+ Exclude:
60
+ - "config/**/*.rb"
61
+
62
+ # Style/HashSyntax:
63
+ # # TODO: defaultの `always`だと違反コードが目立つため、いったんは旧来のRubyistが
64
+ # # 慣れている冗長な書き方を許可する。
65
+ # # どこかの時点でこれを外し、新しいシンタックスに一括移行したい
66
+ # EnforcedShorthandSyntax: either
67
+
68
+ Style/RescueModifier:
69
+ Exclude:
70
+ - "spec/**/*_spec.rb"
71
+
72
+ # spec内ではDSL的に見やすい記法を許可する
73
+ # (require_parenthesis, omit_parenthesisいずれも強制せず、実装者に委ねる)
74
+ Style/MethodCallWithArgsParentheses:
75
+ Exclude:
76
+ - "spec/**/*_spec.rb"
77
+
78
+ # 最終要素の追加・削除時に他の要素に差分が出ることがあるため、いわゆるケツカンマを許可する
79
+ Style/TrailingCommaInArguments:
80
+ EnforcedStyleForMultiline: comma
81
+ Style/TrailingCommaInArrayLiteral:
82
+ EnforcedStyleForMultiline: comma
83
+ Style/TrailingCommaInHashLiteral:
84
+ EnforcedStyleForMultiline: comma
85
+
86
+ Style/FrozenStringLiteralComment:
87
+ # 本番でrequireされない場所は高速化に寄与しないため、実装の簡便さのために許可しておく
88
+ Exclude:
89
+ - "db/**/*/"
90
+ - "lib/tasks"
91
+
92
+ Metrics/MethodLength:
93
+ Enabled: true
94
+ CountComments: false
95
+ Max: 20
96
+
97
+ Layout/HashAlignment:
98
+ EnforcedHashRocketStyle: "table"
99
+ EnforcedColonStyle: "table"
100
+
101
+ Layout/LineLength:
102
+ Max: 130
103
+ AllowedPatterns: ['(\A|\s)#'] # ignore comments
104
+ Exclude:
105
+ - "db/fixtures/**"
106
+ - "spec/**/*"
107
+ - "config/initializers/*.rb"
108
+
109
+ Metrics/AbcSize:
110
+ Max: 20
111
+
112
+ Style/StringLiterals:
113
+ Enabled: false
114
+
115
+ # ブロック表記を明示的にしておきます。(暗黙のブロック引数のバケツリレーを期待していると、引数漏れに気づかないので)
116
+ # https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Naming/BlockForwarding
117
+ Naming/BlockForwarding:
118
+ EnforcedStyle: explicit
119
+
120
+ RSpec/ExampleLength:
121
+ # 配列やハッシュは記法により行数を稼ぐため許可しておく
122
+ CountAsOne: ["array", "hash", "heredoc"]
123
+ # system specはシナリオテストのため長くなることを受け入れる
124
+ Exclude:
125
+ - "spec/system/**/*"
126
+
127
+ RSpec/MultipleExpectations:
128
+ # system specにかぎって複数の期待値を許可する
129
+ Exclude:
130
+ - "spec/system/**/*"
131
+
132
+ RSpec/ExampleWithoutDescription:
133
+ EnforcedStyle: single_line_only
134
+
135
+ RSpec/NestedGroups:
136
+ # request specやmodelの責務が大きなメソッドのテストで複合条件を表現するために
137
+ # contextを重ねることがあるため、条件を緩和しています (default Max: 3)
138
+ Max: 8
139
+
140
+ RSpec/NamedSubject:
141
+ # 副作用のテストをする際にsubjectを単体で使うことが多い。各テストでsubjectとして
142
+ # テスト対象を明示することを迂回させたくないのと、named subjectでなければ読みづらい
143
+ # ケースが特にみられないので切っておく
144
+ Enabled: false
145
+
146
+ RSpec/MultipleMemoizedHelpers:
147
+ # テストケースのコンテキストが複合していくと増えてしまうため、現状に合わせておく(default 5)
148
+ # 特に依存関係が深いパターンが多いがrspec-parameterizedなどを使って利用を減らす
149
+ Max: 10
150
+
151
+ RSpec/ContextWording:
152
+ Prefixes:
153
+ - when
154
+ - with
155
+ - without
156
+ - if
157
+ - unless
158
+ - for
159
+ - before
160
+ - after
161
+ - in
162
+ AllowedPatterns:
163
+ - /とき$/
164
+ - /時$/
165
+ - /場合$/
166
+
167
+ RSpec/IndexedLet:
168
+ # テストケース中で特に区別する理由のない2つのレコードにindexを多用しているが
169
+ # 変数名には適切な意図が表現されるよう意識されていることが多く現状それほど困っていない。
170
+ # 実装の簡便性を重視しいったん黙らせる。
171
+ Enabled: false
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at fursich0@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.