deploy_rubygem 0.53.1 → 0.54.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: 2feb4ae683f82b8c6f2d5ee3594339cb3c1991a7be19f24ac84094ea26909037
4
- data.tar.gz: cebbccd37b7ce5f2922efd29968549c7d338972a37a975e4456150533e27d54f
3
+ metadata.gz: 39c9d5936de34dc473ea3bd587033d1fa98e4003e503184c1ad67beea77f7480
4
+ data.tar.gz: 3b578c519e618afae4eca099e7d68bc87ba922d9252faa64d665baaea2ce87d8
5
5
  SHA512:
6
- metadata.gz: 79d1eceff74c00612c250b31974b5be1e168f171ad3819cfb062dff14f2dd448174bbbd89ca1061a9f44214bc5de2056a83520cb2431655499bb891a6d942368
7
- data.tar.gz: 5dcf4d69e1e1d5121c08d6e4279b4143beafe00b132f0a47cdd7fb6299f1f7c5a565d796e0ebb06dca1cac2243ad53f1216b83dfb385cc71383174de43591390
6
+ metadata.gz: 1b3a8ea4f76a6f1c01d888c58b97fcbf6d343b34d4aa2e6237df9d60385a3543c0cf4b87bacfe7bc40edcf38f7e4fe6f2dd895790010dda3565c9d29a116ab62
7
+ data.tar.gz: c1b511528446cdf713b314348aac38150c97a86d04e7630bf5f769d33b3125aca6bf543c7520b153a078866a5373b06eb1c684b3d9ead8c546090428168593a9
checksums.yaml.gz.sig CHANGED
Binary file
data/.circleci/config.yml CHANGED
@@ -8,6 +8,25 @@ jobs:
8
8
  username: $DOCKERHUB_USER
9
9
  password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
10
10
 
11
+ environment: {}
12
+ working_directory: /home/circleci/deploy_rubygem
13
+ steps:
14
+ - checkout
15
+ - run: |
16
+ set -xu
17
+ echo 'github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl' >> ~/.ssh/known_hosts
18
+ echo 'github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=' >> ~/.ssh/known_hosts
19
+ echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=' >> ~/.ssh/known_hosts
20
+ cat ~/.ssh/known_hosts
21
+ ssh git@github.com || echo
22
+ gem install deploy_rubygem
23
+ chefrepo_checkout:
24
+ docker:
25
+ - image: cimg/ruby:3.1.2
26
+ auth:
27
+ username: $DOCKERHUB_USER
28
+ password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
29
+
11
30
  environment: {}
12
31
  working_directory: /home/circleci/deploy_rubygem
13
32
  steps:
@@ -1,29 +1,29 @@
1
- I, [2024-05-20T00:12:38.649245 #1026043] INFO -- Kitchen: -----> Starting Test Kitchen (v3.3.2)
2
- E, [2024-05-20T00:12:38.649511 #1026043] ERROR -- Kitchen: ------Exception-------
3
- E, [2024-05-20T00:12:38.649541 #1026043] ERROR -- Kitchen: Class: Kitchen::UserError
4
- E, [2024-05-20T00:12:38.649561 #1026043] ERROR -- Kitchen: Message: Kitchen YAML file /home/jimboadmin/deploy_rubygem/kitchen.yml does not exist.
5
- E, [2024-05-20T00:12:38.649580 #1026043] ERROR -- Kitchen: ----------------------
6
- E, [2024-05-20T00:12:38.649598 #1026043] ERROR -- Kitchen: ------Backtrace-------
7
- E, [2024-05-20T00:12:38.649615 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/loader/yaml.rb:65:in `read'
8
- E, [2024-05-20T00:12:38.649634 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/config.rb:153:in `data'
9
- E, [2024-05-20T00:12:38.649653 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/config.rb:131:in `suites'
10
- E, [2024-05-20T00:12:38.649671 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/config.rb:183:in `filter_instances'
11
- E, [2024-05-20T00:12:38.649690 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/config.rb:142:in `build_instances'
12
- E, [2024-05-20T00:12:38.649708 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/config.rb:116:in `instances'
13
- E, [2024-05-20T00:12:38.649726 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:109:in `filtered_instances'
14
- E, [2024-05-20T00:12:38.649744 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:139:in `parse_subcommand'
15
- E, [2024-05-20T00:12:38.649763 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command/action.rb:34:in `block in call'
16
- E, [2024-05-20T00:12:38.649782 #1026043] ERROR -- Kitchen: /home/jimboadmin/.chef/gem/ruby/3.0.0/gems/benchmark-0.2.1/lib/benchmark.rb:296:in `measure'
17
- E, [2024-05-20T00:12:38.649800 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command/action.rb:33:in `call'
18
- E, [2024-05-20T00:12:38.649818 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/cli.rb:52:in `perform'
19
- E, [2024-05-20T00:12:38.649837 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/cli.rb:198:in `block (2 levels) in <class:CLI>'
20
- E, [2024-05-20T00:12:38.649855 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
21
- E, [2024-05-20T00:12:38.649874 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
22
- E, [2024-05-20T00:12:38.649892 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
23
- E, [2024-05-20T00:12:38.649910 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
24
- E, [2024-05-20T00:12:38.649928 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/bin/kitchen:11:in `block in <top (required)>'
25
- E, [2024-05-20T00:12:38.649946 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/errors.rb:183:in `with_friendly_errors'
26
- E, [2024-05-20T00:12:38.649964 #1026043] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/bin/kitchen:11:in `<top (required)>'
27
- E, [2024-05-20T00:12:38.649983 #1026043] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:389:in `load'
28
- E, [2024-05-20T00:12:38.650009 #1026043] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:389:in `<main>'
29
- E, [2024-05-20T00:12:38.650029 #1026043] ERROR -- Kitchen: ----End Backtrace-----
1
+ I, [2024-05-29T14:03:31.984983 #184666] INFO -- Kitchen: -----> Starting Test Kitchen (v3.3.2)
2
+ E, [2024-05-29T14:03:31.985280 #184666] ERROR -- Kitchen: ------Exception-------
3
+ E, [2024-05-29T14:03:31.985311 #184666] ERROR -- Kitchen: Class: Kitchen::UserError
4
+ E, [2024-05-29T14:03:31.985333 #184666] ERROR -- Kitchen: Message: Kitchen YAML file /home/jimboadmin/deploy_rubygem/kitchen.yml does not exist.
5
+ E, [2024-05-29T14:03:31.985353 #184666] ERROR -- Kitchen: ----------------------
6
+ E, [2024-05-29T14:03:31.985372 #184666] ERROR -- Kitchen: ------Backtrace-------
7
+ E, [2024-05-29T14:03:31.985393 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/loader/yaml.rb:65:in `read'
8
+ E, [2024-05-29T14:03:31.985414 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/config.rb:153:in `data'
9
+ E, [2024-05-29T14:03:31.985435 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/config.rb:131:in `suites'
10
+ E, [2024-05-29T14:03:31.985455 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/config.rb:183:in `filter_instances'
11
+ E, [2024-05-29T14:03:31.985479 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/config.rb:142:in `build_instances'
12
+ E, [2024-05-29T14:03:31.985501 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/config.rb:116:in `instances'
13
+ E, [2024-05-29T14:03:31.985522 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:109:in `filtered_instances'
14
+ E, [2024-05-29T14:03:31.985544 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:139:in `parse_subcommand'
15
+ E, [2024-05-29T14:03:31.985564 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command/action.rb:34:in `block in call'
16
+ E, [2024-05-29T14:03:31.985583 #184666] ERROR -- Kitchen: /home/jimboadmin/.chef/gem/ruby/3.0.0/gems/benchmark-0.2.1/lib/benchmark.rb:296:in `measure'
17
+ E, [2024-05-29T14:03:31.985604 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command/action.rb:33:in `call'
18
+ E, [2024-05-29T14:03:31.985625 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/cli.rb:52:in `perform'
19
+ E, [2024-05-29T14:03:31.985645 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/cli.rb:198:in `block (2 levels) in <class:CLI>'
20
+ E, [2024-05-29T14:03:31.985666 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
21
+ E, [2024-05-29T14:03:31.985686 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
22
+ E, [2024-05-29T14:03:31.985707 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
23
+ E, [2024-05-29T14:03:31.985727 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
24
+ E, [2024-05-29T14:03:31.985747 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/bin/kitchen:11:in `block in <top (required)>'
25
+ E, [2024-05-29T14:03:31.985769 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/errors.rb:183:in `with_friendly_errors'
26
+ E, [2024-05-29T14:03:31.985790 #184666] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/bin/kitchen:11:in `<top (required)>'
27
+ E, [2024-05-29T14:03:31.985811 #184666] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:389:in `load'
28
+ E, [2024-05-29T14:03:31.985840 #184666] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:389:in `<main>'
29
+ E, [2024-05-29T14:03:31.985863 #184666] ERROR -- Kitchen: ----End Backtrace-----
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rspec_status ADDED
@@ -0,0 +1,13 @@
1
+ example_id | status | run_time |
2
+ ---------------------------------- | ------ | --------------- |
3
+ ./spec/deploy_rubygem_spec.rb[1:1] | passed | 0.01539 seconds |
4
+ ./spec/deploy_rubygem_spec.rb[1:2] | passed | 0.001 seconds |
5
+ ./spec/deploy_rubygem_spec.rb[1:3] | passed | 0.00015 seconds |
6
+ ./spec/deploy_rubygem_spec.rb[1:4] | passed | 0.00013 seconds |
7
+ ./spec/deploy_rubygem_spec.rb[2:1] | passed | 0.00018 seconds |
8
+ ./spec/deploy_rubygem_spec.rb[2:2] | passed | 0.00022 seconds |
9
+ ./spec/deploy_rubygem_spec.rb[2:3] | passed | 0.00015 seconds |
10
+ ./spec/deploy_rubygem_spec.rb[2:4] | passed | 0.0001 seconds |
11
+ ./spec/deploy_rubygem_spec.rb[2:5] | passed | 0.00018 seconds |
12
+ ./spec/deploy_rubygem_spec.rb[2:6] | passed | 0.00013 seconds |
13
+ ./spec/deploy_rubygem_spec.rb[2:7] | passed | 1.08 seconds |
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-05-29
4
+
5
+ - Initial release
@@ -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 jimmy.provencher@hotmail.ca. 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/Gemfile CHANGED
@@ -1,3 +1,12 @@
1
- source 'https://rubygems.org/'
1
+ # frozen_string_literal: true
2
2
 
3
- gemspec
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in deploy_rubygem.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.21"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Jimmy Provencher
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/README.md CHANGED
@@ -1,2 +1,39 @@
1
- # deploy-chef-config
2
- Deploy Chef secrets to a chef server with knife
1
+ # DeployRubygem
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ 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/deploy_rubygem`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Development
24
+
25
+ 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.
26
+
27
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/deploy_rubygem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/deploy_rubygem/blob/master/CODE_OF_CONDUCT.md).
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the DeployRubygem project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/deploy_rubygem/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/bin/console ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "deploy_rubygem"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ require "irb"
11
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/opt/chef-workstation/embedded/bin/ruby
2
+ Signal.trap('INT') { exit 1 }
3
+
4
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), %w(.. lib))
5
+ require 'rubygems' unless defined?(Gem)
6
+ require 'deploy_rubygem'
7
+
8
+ DeployRubygem.deploy_jimbodragon
@@ -0,0 +1,8 @@
1
+ #!/opt/chef-workstation/embedded/bin/ruby
2
+ Signal.trap('INT') { exit 1 }
3
+
4
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), %w(.. lib))
5
+ require 'rubygems' unless defined?(Gem)
6
+ require 'deploy_rubygem'
7
+
8
+ DeployRubygem.test
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -30,6 +30,7 @@ require 'git-version-bump'
30
30
  prepare_workstation
31
31
  test_deploy_rubygem
32
32
  deploy_rubygem_manually
33
+ deploy_jimbodragon
33
34
  )
34
35
 
35
36
  # s.cert_chain = [File.expand_path('../jimbodragon/certs/public/jimbodragon.pem')]
@@ -45,7 +46,7 @@ require 'git-version-bump'
45
46
  s.rdoc_options = ['--charset=UTF-8']
46
47
  s.extra_rdoc_files = %w(README.md LICENSE)
47
48
 
48
- # s.required_ruby_version = '>= 2.5.0'
49
+ # s.required_ruby_version = '>= 3.1.2'
49
50
  # s.required_rubygems_version = '>= 2.7.0'
50
51
 
51
52
  s.add_development_dependency('chef')
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "deploy_rubygem"
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'git-version-bump'
4
+ module DeployRubygem
5
+ VERSION = GVB.version
6
+ end
@@ -1,6 +1,7 @@
1
1
 
2
2
  require 'deploy_rubygem/rubygem'
3
3
  require 'deploy_rubygem/cookbook'
4
+ require 'deploy_rubygem/version'
4
5
 
5
6
  module DeployRubygem
6
7
  def self.self_project_options
@@ -11,6 +12,7 @@ module DeployRubygem
11
12
  deploy_rubygem
12
13
  prepare_workstation
13
14
  test_deploy_rubygem
15
+ deploy_jimbodragon
14
16
  ),
15
17
  dependencies: %w(
16
18
  deploy_rubygem
@@ -27,7 +29,7 @@ module DeployRubygem
27
29
  jimbodragon-applications
28
30
  jimbodragon-deploy-context
29
31
  jimbodragon-environment
30
- jimbodragon-git
32
+ jimbodragon-git/
31
33
  jimbodragon-linux-baseline
32
34
  jimbodragon-manual-push
33
35
  jimbodragon-push
@@ -83,4 +85,15 @@ module DeployRubygem
83
85
  DeployRubygem.self_deploy
84
86
  DeployRubygem.deploy_jimbo_management_site
85
87
  end
88
+
89
+ def self.test
90
+ DeployRubygem.change_to_directory(DeployRubygem.deploy_rubygem_path, 'git@github.com:JimboDragonGit/deploy_rubygem.git')
91
+ system("rake install:local")
92
+ system("rake")
93
+ end
94
+
95
+ def self.deploy_jimbodragon
96
+ Dir.chdir(jimbo_management_site_path)
97
+ system('sudo rm -rf /tmp/jimbodragon/; chef exec inspec exec compliance/profiles/jimbodragon-chef')
98
+ end
86
99
  end
@@ -0,0 +1,4 @@
1
+ module DeployRubygem
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'git-version-bump'
4
+ require 'rubygems'
5
+
6
+
7
+ RSpec.describe GVB do
8
+ it "has a version number" do
9
+ expect(GVB.version).not_to be nil
10
+ end
11
+
12
+ %w(major_version minor_version patch_version).each do |method_name|
13
+ puts "self methods = #{self.methods}"
14
+ puts "GVB methods = #{GVB.methods}"
15
+ it "has the method #{method_name}" do
16
+ expect(GVB.methods.include?(method_name.to_sym)).to eq(true)
17
+ end
18
+ end
19
+ end
20
+
21
+ RSpec.describe DeployRubygem do
22
+ it "has a version number" do
23
+ expect(DeployRubygem::VERSION).not_to be nil
24
+ end
25
+
26
+ %w(main deploy_jimbodragon change_to_directory deploy_rubygem_path chefrepo_path).each do |method_name|
27
+ it "has the method #{method_name}" do
28
+ expect(DeployRubygem.methods.include?(method_name.to_sym)).to eq(true)
29
+ end
30
+ end
31
+
32
+ it "has latest version publish" do
33
+ expect(`gem list -r deploy_rubygem`).to include("deploy_rubygem (#{Gem::Version.new("#{GVB.major_version}.#{GVB.minor_version - 1}.1")})")
34
+ end
35
+ end
36
+
37
+ RSpec.describe DeployRubygem.main do
38
+ it "has a version number" do
39
+ expect(DeployRubygem::VERSION).not_to be nil
40
+ end
41
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "deploy_rubygem"
4
+
5
+ RSpec.configure do |config|
6
+ # Enable flags like --only-failures and --next-failure
7
+ config.example_status_persistence_file_path = ".rspec_status"
8
+
9
+ # Disable RSpec exposing methods globally on `Module` and `main`
10
+ config.disable_monkey_patching!
11
+
12
+ config.expect_with :rspec do |c|
13
+ c.syntax = :expect
14
+ end
15
+ end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy_rubygem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.53.1
4
+ version: 0.54.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Provencher
@@ -33,7 +33,7 @@ cert_chain:
33
33
  n6Pwa3EckU/5n8N6gUJTAmGyu6Ncu1pbsZtH450+BJ2z82JNXomdFYlnG8+1XNlj
34
34
  3M1sBFUHvqrBg2hQkQcLHokmQYrYsRK5A7HrxwKcmwM=
35
35
  -----END CERTIFICATE-----
36
- date: 2024-05-23 00:00:00.000000000 Z
36
+ date: 2024-05-29 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: chef
@@ -86,6 +86,7 @@ executables:
86
86
  - prepare_workstation
87
87
  - test_deploy_rubygem
88
88
  - deploy_rubygem_manually
89
+ - deploy_jimbodragon
89
90
  extensions: []
90
91
  extra_rdoc_files:
91
92
  - README.md
@@ -94,20 +95,36 @@ files:
94
95
  - ".circleci/config.yml"
95
96
  - ".gitignore"
96
97
  - ".kitchen/logs/kitchen.log"
98
+ - ".rspec"
99
+ - ".rspec_status"
100
+ - ".rubocop.yml"
101
+ - CHANGELOG.md
102
+ - CODE_OF_CONDUCT.md
97
103
  - Gemfile
98
104
  - LICENSE
105
+ - LICENSE.txt
99
106
  - README.md
107
+ - Rakefile
108
+ - bin/console
100
109
  - bin/deploy_jimbo_management_site_website
110
+ - bin/deploy_jimbodragon
101
111
  - bin/deploy_rubygem
102
112
  - bin/deploy_rubygem_manually
113
+ - bin/local_test_deploy_rubygem
103
114
  - bin/prepare_workstation
115
+ - bin/setup
104
116
  - bin/test_deploy_rubygem
105
117
  - deploy_rubygem.gemspec
118
+ - exe/deploy_rubygem
106
119
  - lib/deploy_rubygem.rb
107
120
  - lib/deploy_rubygem/chef_supermarket.rb
108
121
  - lib/deploy_rubygem/cookbook.rb
109
122
  - lib/deploy_rubygem/inspec.rb
110
123
  - lib/deploy_rubygem/rubygem.rb
124
+ - lib/deploy_rubygem/version.rb
125
+ - sig/deploy_rubygem.rbs
126
+ - spec/deploy_rubygem_spec.rb
127
+ - spec/spec_helper.rb
111
128
  homepage: https://github.com/JimboDragonGit/deploy_rubygem
112
129
  licenses:
113
130
  - MIT
metadata.gz.sig CHANGED
Binary file