cheesy-gallery 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f2dc0d1b0518ec5f9babfd8ac91c4c602cdedf7408761f481c9b7651bb1f6cc2
4
+ data.tar.gz: f3ba017868795eabf9f7426081c277cc86bd63e5e9921ad206ab0577db2be738
5
+ SHA512:
6
+ metadata.gz: 65954e185f7d3220273d277ad6c108e37f429f683ec3bc3a65983ada225e3a4a47e27d0ef4e30489cc4e549b2b4866f7c12858212facb104426e9b8484e96f98
7
+ data.tar.gz: fb8a7bd3428de2da5e7920eb6d9084035cb68d7acfbf3f242f8a95feacaff749c4e9d4e835e2a09f1c4aeae60dbfa0bfa5c12ebbc0b7fce9d6f1ebe74abfeac2
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,116 @@
1
+ AllCops:
2
+ TargetRubyVersion: "2.6"
3
+ Exclude:
4
+ - "spec/fixtures/**/*"
5
+ - "vendor/**/*"
6
+
7
+ # This is part of jekylls loading convention
8
+ Naming/FileName:
9
+ Exclude:
10
+ - "lib/cheesy-gallery.rb"
11
+
12
+ # A more modern default
13
+ Layout/LineLength:
14
+ Max: 200
15
+
16
+ # don't deviate from the default template too much
17
+ Style/GuardClause:
18
+ Exclude:
19
+ - "cheesy-gallery.gemspec"
20
+
21
+ # Metrics, excludes complexity and sizing metrics for now, as ruby's defaults are very strict
22
+ Metrics/AbcSize:
23
+ Enabled: False
24
+
25
+ Metrics/BlockLength:
26
+ Description: rspec uses long describe blocks, so allow long blocks under spec/
27
+ Enabled: False
28
+ Exclude:
29
+ - "spec/**/*.rb"
30
+
31
+ Metrics/ClassLength:
32
+ Enabled: False
33
+
34
+ Metrics/CyclomaticComplexity:
35
+ Enabled: False
36
+
37
+ Metrics/MethodLength:
38
+ Enabled: False
39
+
40
+ Metrics/ModuleLength:
41
+ Enabled: False
42
+
43
+ Metrics/ParameterLists:
44
+ Enabled: False
45
+
46
+ Metrics/PerceivedComplexity:
47
+ Enabled: False
48
+
49
+ # Style Cops
50
+ Style/AsciiComments:
51
+ Description: Names, non-english speaking communities.
52
+ Enabled: False
53
+
54
+ Style/BlockDelimiters:
55
+ Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to be consistent then.
56
+ EnforcedStyle: braces_for_chaining
57
+
58
+ Style/ClassAndModuleChildren:
59
+ Description: Compact style reduces the required amount of indentation.
60
+ EnforcedStyle: compact
61
+
62
+ Style/EmptyElse:
63
+ Description: Enforce against empty else clauses, but allow `nil` for clarity.
64
+ EnforcedStyle: empty
65
+
66
+ Style/FormatString:
67
+ Description: Following the main puppet project's style, prefer the % format format.
68
+ EnforcedStyle: percent
69
+
70
+ Style/FormatStringToken:
71
+ Description: Following the main puppet project's style, prefer the simpler template tokens over annotated ones.
72
+ EnforcedStyle: template
73
+
74
+ Style/IfUnlessModifier:
75
+ Description: Post-fix `if` modifiers are hard to parse for newcomers. We don't want to encourage them. Post-fix `unless` modifiers could be nice in some cases, but the Cop doesn't differentiate.
76
+ Enabled: false
77
+
78
+ Style/Lambda:
79
+ Description: Prefer the keyword for easier discoverability.
80
+ EnforcedStyle: literal
81
+
82
+ Style/MethodCalledOnDoEndBlock:
83
+ Enabled: true
84
+
85
+ Style/RegexpLiteral:
86
+ Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
87
+ EnforcedStyle: percent_r
88
+
89
+ Style/SymbolProc:
90
+ Description: SymbolProc notation is not discoverable
91
+ Enabled: false
92
+
93
+ Style/TernaryParentheses:
94
+ Description: Checks for use of parentheses around ternary conditions. Enforce parentheses on complex expressions for better readability, but seriously consider breaking it up.
95
+ EnforcedStyle: require_parentheses_when_complex
96
+
97
+ Style/TrailingCommaInArguments:
98
+ Description: Prefer always trailing comma on multiline argument lists. This makes diffs, and re-ordering nicer.
99
+ EnforcedStyleForMultiline: comma
100
+
101
+ Style/TrailingCommaInArrayLiteral:
102
+ Description: Prefer always trailing comma on multiline literals. This makes diffs, and re-ordering nicer.
103
+ EnforcedStyleForMultiline: comma
104
+
105
+ Style/TrailingCommaInHashLiteral:
106
+ Description: Prefer always trailing comma on multiline literals. This makes diffs, and re-ordering nicer.
107
+ EnforcedStyleForMultiline: comma
108
+
109
+ Style/SymbolArray:
110
+ Description: Using percent style obscures symbolic intent of array's contents.
111
+ Enabled: true
112
+ EnforcedStyle: brackets
113
+
114
+ # Enforce LF line endings, even when on Windows
115
+ Layout/EndOfLine:
116
+ EnforcedStyle: lf
@@ -0,0 +1,34 @@
1
+ ---
2
+ os: linux
3
+ dist: focal
4
+ language: ruby
5
+ cache: bundler
6
+ rvm:
7
+ - 2.7.1
8
+
9
+ # adopt future bundler 3 config style
10
+ before_install:
11
+ - bundle config set deployment 'true' # expect Gemfile.lock to be up-to-date for testing
12
+ - bundle config set path ${BUNDLE_PATH:-vendor/bundle}
13
+ - bundle config set jobs 3
14
+ - bundle config set retry 3
15
+ install: bundle install
16
+
17
+ jobs:
18
+ include:
19
+ - env: CHECK=rspec
20
+ script:
21
+ - bundle exec rake
22
+ - env: CHECK=sorbet
23
+ script:
24
+ - bundle exec srb tc --ignore=/vendor
25
+ - env: CHECK=build
26
+ gemfile: spec/fixtures/test_site/Gemfile
27
+ script:
28
+ - (cd spec/fixtures/test_site && bundle exec jekyll build --strict --trace --verbose)
29
+ - (cd spec/fixtures/test_site && find _site -type f && echo -e '\n===\n' && cat _site/gallery_one/index.html && file _site/gallery_two/third/Morgenspaziergang-3.jpg_thumb.jpg)
30
+
31
+ # only branch-test merges to main
32
+ branches:
33
+ only:
34
+ - main
@@ -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 <david@black.co.at>. 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 project 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.
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in cheesy-gallery.gemspec
8
+ gemspec
@@ -0,0 +1,134 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cheesy-gallery (0.5.0)
5
+ jekyll (~> 4.0)
6
+ rmagick (~> 4.0)
7
+ sorbet-runtime
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ addressable (2.7.0)
13
+ public_suffix (>= 2.0.2, < 5.0)
14
+ ast (2.4.1)
15
+ codecov (0.2.8)
16
+ json
17
+ simplecov
18
+ coderay (1.1.3)
19
+ colorator (1.1.0)
20
+ concurrent-ruby (1.1.7)
21
+ diff-lcs (1.4.4)
22
+ docile (1.3.2)
23
+ em-websocket (0.5.1)
24
+ eventmachine (>= 0.12.9)
25
+ http_parser.rb (~> 0.6.0)
26
+ eventmachine (1.2.7)
27
+ ffi (1.13.1)
28
+ forwardable-extended (2.6.0)
29
+ http_parser.rb (0.6.0)
30
+ i18n (1.8.5)
31
+ concurrent-ruby (~> 1.0)
32
+ jekyll (4.1.1)
33
+ addressable (~> 2.4)
34
+ colorator (~> 1.0)
35
+ em-websocket (~> 0.5)
36
+ i18n (~> 1.0)
37
+ jekyll-sass-converter (~> 2.0)
38
+ jekyll-watch (~> 2.0)
39
+ kramdown (~> 2.1)
40
+ kramdown-parser-gfm (~> 1.0)
41
+ liquid (~> 4.0)
42
+ mercenary (~> 0.4.0)
43
+ pathutil (~> 0.9)
44
+ rouge (~> 3.0)
45
+ safe_yaml (~> 1.0)
46
+ terminal-table (~> 1.8)
47
+ jekyll-sass-converter (2.1.0)
48
+ sassc (> 2.0.1, < 3.0)
49
+ jekyll-watch (2.2.1)
50
+ listen (~> 3.0)
51
+ json (2.3.1)
52
+ kramdown (2.3.0)
53
+ rexml
54
+ kramdown-parser-gfm (1.1.0)
55
+ kramdown (~> 2.0)
56
+ liquid (4.0.3)
57
+ listen (3.2.1)
58
+ rb-fsevent (~> 0.10, >= 0.10.3)
59
+ rb-inotify (~> 0.9, >= 0.9.10)
60
+ mercenary (0.4.0)
61
+ method_source (1.0.0)
62
+ parallel (1.19.2)
63
+ parser (2.7.1.4)
64
+ ast (~> 2.4.1)
65
+ pathutil (0.16.2)
66
+ forwardable-extended (~> 2.6)
67
+ pry (0.13.1)
68
+ coderay (~> 1.1)
69
+ method_source (~> 1.0)
70
+ public_suffix (4.0.5)
71
+ rainbow (3.0.0)
72
+ rake (13.0.1)
73
+ rb-fsevent (0.10.4)
74
+ rb-inotify (0.10.1)
75
+ ffi (~> 1.0)
76
+ regexp_parser (1.7.1)
77
+ rexml (3.2.4)
78
+ rmagick (4.1.2)
79
+ rouge (3.22.0)
80
+ rspec (3.9.0)
81
+ rspec-core (~> 3.9.0)
82
+ rspec-expectations (~> 3.9.0)
83
+ rspec-mocks (~> 3.9.0)
84
+ rspec-core (3.9.2)
85
+ rspec-support (~> 3.9.3)
86
+ rspec-expectations (3.9.2)
87
+ diff-lcs (>= 1.2.0, < 2.0)
88
+ rspec-support (~> 3.9.0)
89
+ rspec-mocks (3.9.1)
90
+ diff-lcs (>= 1.2.0, < 2.0)
91
+ rspec-support (~> 3.9.0)
92
+ rspec-support (3.9.3)
93
+ rubocop (0.89.1)
94
+ parallel (~> 1.10)
95
+ parser (>= 2.7.1.1)
96
+ rainbow (>= 2.2.2, < 4.0)
97
+ regexp_parser (>= 1.7)
98
+ rexml
99
+ rubocop-ast (>= 0.3.0, < 1.0)
100
+ ruby-progressbar (~> 1.7)
101
+ unicode-display_width (>= 1.4.0, < 2.0)
102
+ rubocop-ast (0.3.0)
103
+ parser (>= 2.7.1.4)
104
+ ruby-progressbar (1.10.1)
105
+ safe_yaml (1.0.5)
106
+ sassc (2.4.0)
107
+ ffi (~> 1.9)
108
+ simplecov (0.19.0)
109
+ docile (~> 1.1)
110
+ simplecov-html (~> 0.11)
111
+ simplecov-html (0.12.2)
112
+ sorbet (0.5.5879)
113
+ sorbet-static (= 0.5.5879)
114
+ sorbet-runtime (0.5.5883)
115
+ sorbet-static (0.5.5879-universal-darwin-14)
116
+ terminal-table (1.8.0)
117
+ unicode-display_width (~> 1.1, >= 1.1.1)
118
+ unicode-display_width (1.7.0)
119
+
120
+ PLATFORMS
121
+ ruby
122
+
123
+ DEPENDENCIES
124
+ bundler (~> 2.1)
125
+ cheesy-gallery!
126
+ codecov
127
+ pry
128
+ rake (~> 13.0)
129
+ rspec (~> 3.0)
130
+ rubocop
131
+ sorbet
132
+
133
+ BUNDLED WITH
134
+ 2.1.4
@@ -0,0 +1,15 @@
1
+ Copyright 2020 David Schmitt <david@black.co.at>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ * No Harm: The software may not be used by anyone for systems or activities that actively and knowingly endanger, harm, or otherwise threaten the physical, mental, economic, or general well-being of other individuals or groups, in violation of the United Nations Universal Declaration of Human Rights (https://www.un.org/en/universal-declaration-human-rights/).
8
+
9
+ * Services: If the Software is used to provide a service to others, the licensee shall, as a condition of use, require those others not to use the service in any way that violates the No Harm clause above.
10
+
11
+ * Enforceability: If any portion or provision of this License shall to any extent be declared illegal or unenforceable by a court of competent jurisdiction, then the remainder of this License, or the application of such portion or provision in circumstances other than those as to which it is so declared illegal or unenforceable, shall not be affected thereby, and each portion and provision of this Agreement shall be valid and enforceable to the fullest extent permitted by law.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14
+
15
+ This Hippocratic License is an Ethical Source license (https://ethicalsource.dev) derived from the MIT License, amended to limit the impact of the unethical use of open source software.
@@ -0,0 +1,39 @@
1
+ # Cheesy::Gallery
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cheesy/gallery`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'cheesy-gallery'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install cheesy-gallery
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/DavidS/cheesy-gallery. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the Cheesy::Gallery project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/DavidS/cheesy-gallery/blob/main/CODE_OF_CONDUCT.md).