scribo 1.0.39 → 1.0.40

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf62c4b22a9221823ead96c6310e2e136b9325e1d3bd9c825b9e27b0451e8b7d
4
- data.tar.gz: 7ec6b44df24fd7cc6e86fb5f4d0ecaabfb814f20aa3adfa0e611a8fbce31b746
3
+ metadata.gz: 2038388c9a53be7434cab9d09df117b3f6754bb2b58caa6725fb90e1dcc5f850
4
+ data.tar.gz: 481ba9937602ced2dbde21c2082707e6f2b49af8eeb0847d473dd5b4bc01a05b
5
5
  SHA512:
6
- metadata.gz: ae34ef0aa6cf0e29e2d8dd4c36f87ebc3cfc9c936b413cb6e0d13bdc4e6b40af714f22d830870c0405d2a43406ec58858573df617bc496a69a4972204f1a3e19
7
- data.tar.gz: 4b5ace2022112b677adf4e666508694821c056aa202b7e4148df4882e8a9c8d17d02dfe037d11d987c2830d6571b8e8a23c6184b512ca78d637e86a36c127d23
6
+ metadata.gz: c19a2c507c6c58f2591e638f87015d12e2394e7185ba5271fc0f70f899cf44d61f70f81faed86a190fb84a1676e460252ba6b0d7093e842104a8e39b7a958d38
7
+ data.tar.gz: 6296a79e4e9d8a1a519bd4d1139f1a70329b9d6e67694e69784a4d4f3abb7ca375692dd124927b977a4192c2d3919a8f80c69fc3433f1e05d3de564da1fba92f
@@ -0,0 +1,11 @@
1
+ name: Rubygem Push
2
+ on:
3
+ push:
4
+ tags:
5
+ - '*'
6
+ jobs:
7
+ build:
8
+ uses: entdec/_workflows/.github/workflows/gem-push.yml@main
9
+ with:
10
+ public: true
11
+ secrets: inherit
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ test/dummy/db/*.sqlite3
5
+ test/dummy/db/*.sqlite3-journal
6
+ test/dummy/log/*.log
7
+ test/dummy/tmp/
8
+ test/files/themes
9
+ /.idea
10
+ /.idea/*
11
+ node_modules
12
+ .history/
data/.reek.yml ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ ### Generic smell configuration
3
+ detectors:
4
+ # You can disable smells completely
5
+ NillCheck:
6
+ enabled: false
7
+ UncommunicativeVariableName:
8
+ enabled: false
data/.rubocop.yml ADDED
@@ -0,0 +1,44 @@
1
+ inherit_from: .rubocop_todo.yml
2
+ AllCops:
3
+ NewCops: enable
4
+ TargetRubyVersion: 2.5
5
+ Exclude:
6
+ - 'bin/**/*'
7
+ - 'db/**/*'
8
+ - 'vagrant/**/*'
9
+ - 'vendor/**/*'
10
+ - 'spec/**/*'
11
+ - 'lib/generators/**/*'
12
+ - 'node_modules/**/*'
13
+ - 'test/dummy/**/*'
14
+ - 'test/dummy/config/**/*'
15
+
16
+ Metrics:
17
+ Enabled: false
18
+
19
+ Style/PercentLiteralDelimiters:
20
+ PreferredDelimiters:
21
+ '%': '[]'
22
+ '%i': '[]'
23
+ '%q': '[]'
24
+ '%Q': '[]'
25
+ '%r': '[]'
26
+ '%s': '[]'
27
+ '%w': '[]'
28
+ '%W': '[]'
29
+ '%x': '[]'
30
+
31
+ Style/Documentation:
32
+ Enabled: false
33
+
34
+ Style/GuardClause:
35
+ Enabled: false
36
+
37
+ Style/ClassAndModuleChildren:
38
+ Enabled: false
39
+
40
+ Layout/TrailingEmptyLines:
41
+ Enabled: true
42
+
43
+ Layout/LineLength:
44
+ Max: 1000
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,129 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-08-17 08:02:27 +0000 using RuboCop version 0.74.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 8
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
12
+ # SupportedHashRocketStyles: key, separator, table
13
+ # SupportedColonStyles: key, separator, table
14
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
15
+ Layout/HashAlignment:
16
+ Exclude:
17
+ - 'lib/scribo/configuration.rb'
18
+
19
+ # Offense count: 2
20
+ # Cop supports --auto-correct.
21
+ Layout/ElseAlignment:
22
+ Exclude:
23
+ - 'app/controllers/scribo/admin/sites_controller.rb'
24
+ - 'lib/scribo/action_controller_renderers.rb'
25
+
26
+ # Offense count: 4
27
+ # Cop supports --auto-correct.
28
+ Layout/EmptyLineAfterGuardClause:
29
+ Exclude:
30
+ - 'app/models/scribo/content.rb'
31
+ - 'lib/scribo/action_controller_helpers.rb'
32
+
33
+ # Offense count: 3
34
+ # Cop supports --auto-correct.
35
+ # Configuration parameters: EnforcedStyle.
36
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
37
+ Layout/EmptyLinesAroundClassBody:
38
+ Exclude:
39
+ - 'app/models/scribo/site.rb'
40
+ - 'app/services/scribo/site_export_service.rb'
41
+ - 'app/services/scribo/site_import_service.rb'
42
+
43
+ # Offense count: 2
44
+ # Cop supports --auto-correct.
45
+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
46
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
47
+ Layout/EndAlignment:
48
+ Exclude:
49
+ - 'app/controllers/scribo/admin/sites_controller.rb'
50
+ - 'lib/scribo/action_controller_renderers.rb'
51
+
52
+ # Offense count: 1
53
+ # Cop supports --auto-correct.
54
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
55
+ # SupportedStyles: special_inside_parentheses, consistent, align_braces
56
+ Layout/FirstHashElementIndentation:
57
+ Exclude:
58
+ - 'lib/scribo/configuration.rb'
59
+
60
+ # Offense count: 3
61
+ # Cop supports --auto-correct.
62
+ # Configuration parameters: Width, IgnoredPatterns.
63
+ Layout/IndentationWidth:
64
+ Exclude:
65
+ - 'app/controllers/scribo/admin/sites_controller.rb'
66
+ - 'lib/scribo/action_controller_renderers.rb'
67
+ - 'lib/scribo/liquid/parser.rb'
68
+
69
+ # Offense count: 1
70
+ # Cop supports --auto-correct.
71
+ # Configuration parameters: AllowForAlignment.
72
+ Layout/SpaceAroundOperators:
73
+ Exclude:
74
+ - 'app/controllers/scribo/admin/sites/contents_controller.rb'
75
+
76
+ # Offense count: 1
77
+ # Cop supports --auto-correct.
78
+ # Configuration parameters: EnforcedStyle.
79
+ # SupportedStyles: final_newline, final_blank_line
80
+ Layout/TrailingEmptyLines:
81
+ Exclude:
82
+ - 'app/services/scribo/site_import_service.rb'
83
+
84
+ # Offense count: 1
85
+ # Cop supports --auto-correct.
86
+ Style/Encoding:
87
+ Exclude:
88
+ - 'app/inputs/code_mirror_input.rb'
89
+
90
+ # Offense count: 6
91
+ # Cop supports --auto-correct.
92
+ Style/ExpandPathArguments:
93
+ Exclude:
94
+ - 'Rakefile'
95
+ - 'scribo.gemspec'
96
+ - 'test/test_helper.rb'
97
+
98
+ # Offense count: 2
99
+ # Cop supports --auto-correct.
100
+ # Configuration parameters: EnforcedStyle.
101
+ # SupportedStyles: always, never
102
+ Style/FrozenStringLiteralComment:
103
+ Exclude:
104
+ - 'lib/scribo/configuration.rb'
105
+ - 'lib/scribo/liquid/parser.rb'
106
+
107
+ # Offense count: 2
108
+ Style/IdenticalConditionalBranches:
109
+ Exclude:
110
+ - 'lib/scribo/action_controller_renderers.rb'
111
+
112
+ # Offense count: 1
113
+ # Cop supports --auto-correct.
114
+ Style/IfUnlessModifier:
115
+ Exclude:
116
+ - 'lib/scribo/action_controller_helpers.rb'
117
+
118
+ # Offense count: 1
119
+ Style/MissingRespondToMissing:
120
+ Exclude:
121
+ - 'app/helpers/scribo/application_helper.rb'
122
+
123
+ # Offense count: 2
124
+ # Cop supports --auto-correct.
125
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
126
+ # SupportedStyles: single_quotes, double_quotes
127
+ Style/StringLiterals:
128
+ Exclude:
129
+ - 'app/models/scribo/content.rb'
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at tom@degrunt.nl. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+ git_source(:github) { |repo_name| "git@github.com:#{repo_name}" }
5
+ git_source(:entdec) { |repo_name| "git@github.com:entdec/#{repo_name}" }
6
+
7
+ # Declare your gem's dependencies in scribo.gemspec.
8
+ # Bundler will treat runtime dependencies like base dependencies, and
9
+ # development dependencies will be added by default to the :development group.
10
+ gemspec
11
+
12
+ # Declare any dependencies that are still in development here instead of in
13
+ # your gemspec. These might include edge Rails or gems from your path or
14
+ # Git. Remember to move these dependencies to your gemspec before releasing
15
+ # your gem to rubygems.org.
16
+
17
+ # To use a debugger
18
+ # gem 'byebug', group: [:development, :test]
19
+
20
+ # bundle config --delete local.liquidum
21
+ # bundle config local.liquidum ../../components/liquidum
22
+
23
+ gem 'auxilium', '~> 3.0'
24
+ gem 'key_path', github: 'entdec/keypath-ruby.git', branch: 'master'
25
+
26
+ gem 'rubocop'
27
+ gem 'signum'
28
+
29
+ group :test do
30
+ gem 'pry-rails'
31
+ end