docker_distribution 0.1.0 → 0.1.2

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: 021cf69a8cf9e64b6b76e760c4799618223d4a0ddd9fe725e93fcec9597b83f7
4
- data.tar.gz: e6d343476659fe83acefe2bd3639f57fe05adf97393462ae0e99f892733a09c5
3
+ metadata.gz: df29a563df5c3905dee99b74d6b1dfef79175c73a27ad016e553391cfa026ed7
4
+ data.tar.gz: c4bcaf72d7525f20042b5cc91a22e6f8ac18692cd31f7744dfca6d0012929201
5
5
  SHA512:
6
- metadata.gz: c3f465e02c2460adbf79ffd76c046c99907d88085b9ce1ddd5c3f66592a689df85a0c31f01d43f3ac6eb8ff69238378720a9ddebe44298346f5246974d66493c
7
- data.tar.gz: cc34f6053e2b17f0a9f433271391b02dfb4ce3cf21cc22658e4362c0031dbb2ef38e2d650d373fc0ed5067d60f2938433c78495ffaf865da407968f192d7ca8d
6
+ metadata.gz: 6ab3c059d0149abaf42364f194b37923e33316fae3e5395991f8ecf9a462ac69245387cea1dcbafa58ad043e05202cca32cea3e580e67f1476a1b67b6fae6d3c
7
+ data.tar.gz: dce9c44d2c73b1b5982d1909de563227c21f8e2d499916f3d29cfb28d6c8a0796c189107131601ae7d0a6217d5bb4a0294266d9b3cce160ac917cd1e2b77d6b0
@@ -26,7 +26,7 @@ module DockerDistribution
26
26
  # with at least one letter or number, with following parts able to be
27
27
  # separated by one period, one or two underscore and multiple dashes.
28
28
  def name_component
29
- expression(alpha_numeric, optional(repeated(separator, alpha_numeric)))
29
+ expression(alpha_numeric, repeated(separator, alpha_numeric))
30
30
  end
31
31
 
32
32
  # domainNameComponent restricts the registry domain component of a
@@ -48,7 +48,7 @@ module DockerDistribution
48
48
  # allowed by DNS to ensure backwards compatibility with Docker image
49
49
  # names. This includes IPv4 addresses on decimal format.
50
50
  def domain_name
51
- expression(domain_name_component, optional(repeated(literal("."), domain_name_component)))
51
+ expression(domain_name_component, repeated(literal("."), domain_name_component))
52
52
  end
53
53
 
54
54
  # host defines the structure of potential domains based on the URI
@@ -109,7 +109,7 @@ module DockerDistribution
109
109
  end
110
110
 
111
111
  def name_pat
112
- expression(optional(domain, literal("/")), name_component, optional(repeated(literal("/"), name_component)))
112
+ expression(optional(domain, literal("/")), name_component, repeated(literal("/"), name_component))
113
113
  end
114
114
 
115
115
  # NameRegexp is the format for the name component of references. The
@@ -120,7 +120,7 @@ module DockerDistribution
120
120
  end
121
121
 
122
122
  def anchored_name
123
- anchored(optional(capture(domain), literal("/")), capture(name_component, optional(repeated(literal("/"), name_component))))
123
+ anchored(optional(capture(domain), literal("/")), capture(name_component, repeated(literal("/"), name_component)))
124
124
  end
125
125
 
126
126
  # anchoredNameRegexp is used to parse a name value, capturing the domain and trailing components.
@@ -211,9 +211,9 @@ module DockerDistribution
211
211
  "^#{expression(*res)}$"
212
212
  end
213
213
 
214
- # repeated wraps the regexp in a non-capturing group to get one or more matches.
214
+ # repeated wraps the regexp in a non-capturing group to get zero or more matches.
215
215
  def repeated(*res)
216
- "#{group(expression(*res))}+"
216
+ group("#{group(expression(*res))}*")
217
217
  end
218
218
 
219
219
  # capture wraps the expression in a capturing group.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DockerDistribution
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker_distribution
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Petrov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2023-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: digest
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bump
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description:
28
42
  email:
29
43
  - partos0511@gmail.com
@@ -31,17 +45,8 @@ executables: []
31
45
  extensions: []
32
46
  extra_rdoc_files: []
33
47
  files:
34
- - ".rubocop.yml"
35
- - CHANGELOG.md
36
- - CODE_OF_CONDUCT.md
37
- - Dockerfile
38
- - Gemfile
39
- - Gemfile.lock
40
- - LICENSE.txt
41
- - Makefile
42
48
  - README.md
43
49
  - Rakefile
44
- - docker-compose.yml
45
50
  - lib/docker_distribution.rb
46
51
  - lib/docker_distribution/canonical_reference.rb
47
52
  - lib/docker_distribution/digest.rb
@@ -55,7 +60,6 @@ files:
55
60
  - lib/docker_distribution/repository.rb
56
61
  - lib/docker_distribution/tagged_reference.rb
57
62
  - lib/docker_distribution/version.rb
58
- - sig/docker_distribution.rbs
59
63
  homepage: https://github.com/artempartos/docker_distribution
60
64
  licenses:
61
65
  - MIT
@@ -78,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
82
  - !ruby/object:Gem::Version
79
83
  version: '0'
80
84
  requirements: []
81
- rubygems_version: 3.3.26
85
+ rubygems_version: 3.2.22
82
86
  signing_key:
83
87
  specification_version: 4
84
88
  summary: Ruby implementation of OCI Distribution Specification reference
data/.rubocop.yml DELETED
@@ -1,27 +0,0 @@
1
- require:
2
- - rubocop-minitest
3
-
4
- AllCops:
5
- Exclude:
6
- - bin/*
7
- - docker_distribution.gemspec
8
- - test/*/**
9
- SuggestExtensions: false
10
- NewCops: disable
11
-
12
- Style/StringLiterals:
13
- Enabled: true
14
- EnforcedStyle: double_quotes
15
-
16
- Style/StringLiteralsInInterpolation:
17
- Enabled: true
18
- EnforcedStyle: double_quotes
19
-
20
- Layout/LineLength:
21
- Max: 140
22
-
23
- Metrics/ClassLength:
24
- Max: 120
25
-
26
- Style/Documentation:
27
- Enabled: false
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2022-09-26
4
-
5
- - Initial release
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
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 partos0511@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.
data/Dockerfile DELETED
@@ -1,12 +0,0 @@
1
- FROM ruby:3.0.2-alpine3.14
2
-
3
- RUN apk update && apk upgrade && apk add bash curl-dev ruby-dev build-base git curl
4
-
5
- RUN mkdir -p /gem
6
- WORKDIR /gem
7
-
8
- COPY . /gem
9
-
10
- RUN bundle install --jobs 4
11
-
12
- ENV PATH /gem/bin:$PATH
data/Gemfile DELETED
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec
6
-
7
- gem "rake", "~> 13"
8
-
9
- gem "minitest", "~> 5"
10
- gem "minitest-power_assert"
11
-
12
- gem "rubocop", "~> 1"
13
-
14
- gem "rubocop-minitest", "~> 0"
15
-
16
- gem "awesome_print"
17
- gem "byebug"
18
-
19
- gem "warning"
data/Gemfile.lock DELETED
@@ -1,60 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- docker_distribution (0.1.0)
5
- digest (~> 3)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- ast (2.4.2)
11
- awesome_print (1.9.2)
12
- byebug (11.1.3)
13
- digest (3.1.0)
14
- json (2.6.2)
15
- minitest (5.16.3)
16
- minitest-power_assert (0.3.1)
17
- minitest
18
- power_assert (>= 1.1)
19
- parallel (1.22.1)
20
- parser (3.1.2.1)
21
- ast (~> 2.4.1)
22
- power_assert (2.0.1)
23
- rainbow (3.1.1)
24
- rake (13.0.6)
25
- regexp_parser (2.5.0)
26
- rexml (3.2.5)
27
- rubocop (1.36.0)
28
- json (~> 2.3)
29
- parallel (~> 1.10)
30
- parser (>= 3.1.2.1)
31
- rainbow (>= 2.2.2, < 4.0)
32
- regexp_parser (>= 1.8, < 3.0)
33
- rexml (>= 3.2.5, < 4.0)
34
- rubocop-ast (>= 1.20.1, < 2.0)
35
- ruby-progressbar (~> 1.7)
36
- unicode-display_width (>= 1.4.0, < 3.0)
37
- rubocop-ast (1.21.0)
38
- parser (>= 3.1.1.0)
39
- rubocop-minitest (0.22.1)
40
- rubocop (>= 0.90, < 2.0)
41
- ruby-progressbar (1.11.0)
42
- unicode-display_width (2.3.0)
43
- warning (1.3.0)
44
-
45
- PLATFORMS
46
- x86_64-linux-musl
47
-
48
- DEPENDENCIES
49
- awesome_print
50
- byebug
51
- docker_distribution!
52
- minitest (~> 5)
53
- minitest-power_assert
54
- rake (~> 13)
55
- rubocop (~> 1)
56
- rubocop-minitest (~> 0)
57
- warning
58
-
59
- BUNDLED WITH
60
- 2.2.22
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2022 Artem Petrov
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/Makefile DELETED
@@ -1,9 +0,0 @@
1
- .PHONY: test lint
2
-
3
- test:
4
- bundle exec rake test
5
-
6
- lint:
7
- bundle exec rubocop -A
8
-
9
-
data/docker-compose.yml DELETED
@@ -1,26 +0,0 @@
1
- version: '3.9'
2
-
3
- x-shared-environment: &shared-environment
4
- BUNDLE_PATH: /bundle_cache
5
- GEM_HOME: /bundle_cache
6
- GEM_PATH: /bundle_cache
7
- RUBYGEMS_API_KEY: ${RUBYGEMS_API_KEY}
8
-
9
- services:
10
- gem:
11
- build: .
12
- environment: *shared-environment
13
- volumes:
14
- - .:/gem:cached
15
- - ~/.ssh:/root/.ssh
16
- - ~/.bash_history:/root/.bash_history
17
- - bundle_cache:/bundle_cache
18
- command: bash
19
-
20
- bundle_cache:
21
- image: busybox
22
- volumes:
23
- - bundle_cache:/bundle_cache
24
-
25
- volumes:
26
- bundle_cache:
@@ -1,4 +0,0 @@
1
- module DockerDistribution
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end