gemsmith 18.1.1 → 18.2.0

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: efa40f1261ef7850d3675a9a7ce4dc529a9440767c74ea7ac51737367feb176a
4
- data.tar.gz: b7d00bdacacd6031710d3c60867db5a76c23af9043916baf5c97c8b86a455fb3
3
+ metadata.gz: f46e60199854be3dd1eb4bb2c19964558efd399abdd5ee92fb6f0301bcf29478
4
+ data.tar.gz: aef41826ceceaefae5047debd54054ef9d50ca132f782664df3cd3afc56092de
5
5
  SHA512:
6
- metadata.gz: 4a0bb9fb6b20c9314b513a6c63b0d7e0f508ad968df59e4e50c2b31f28e1de0b25ab0e277ddc2ec3f203247394b93f930cc4cd5f347a8cd2a407d220030395e4
7
- data.tar.gz: 2bab2e73aaf57e439302744e2a0099130b4da472eba6908abf78bfbb3f0ca0df34d1cd6190e8ba7c300a0d580a5ffefde31782e137426c41ec033467a9f06e6f
6
+ metadata.gz: 8d1f47132e8b86cdca3e6203dbee344a47552f02c24bc30ce77bbdecc2d86c17819367da4bcdd63d9c5cabf49c926d2c188644136931bceb294844e93bfc59da
7
+ data.tar.gz: e99a9467c8e2fd71fd356fc3b9abcae35f60d35b2171b61f6bdd8d550fe34b0581de78261259ec379c24b454c5d67c5dd830fe1c12e6d3c0e2881a29fabd0b6c
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -338,7 +338,7 @@ specification and RubyGems credentials.
338
338
 
339
339
  === Gem Specification Metadata
340
340
 
341
- Add the following metadata to your gemspec:
341
+ Add the following gemspec metadata to privately publish new versions of your gem:
342
342
 
343
343
  [source,ruby]
344
344
  ----
@@ -379,10 +379,10 @@ to our private server. This is important because this is how we link our gem spe
379
379
  to our private credentials. To illustrate further, here are both files truncated and shown together:
380
380
 
381
381
  ....
382
- # Gem specification metadata which defines the private host to publish to.
382
+ # Gem Specification: The metadata which defines the private host to publish to.
383
383
  spec.metadata = {"allowed_push_host" => "https://private.example.com"}
384
384
 
385
- # Gem credentials where the URL value above becomes the key which enables authentication.
385
+ # Gem Credentials: The URL value -- shown above -- which becomes the key for enabling authentication.
386
386
  https://private.example.com: Basic dXNlcjpwYXNzd29yZA==
387
387
  ....
388
388
 
@@ -411,6 +411,49 @@ Lastly, should you need to delete a credential (due to a bad login/password for
411
411
  open the `$HOME/.gem/credentials` in your default editor and remove the line(s) you don't need. Upon
412
412
  next publish of your gem, you'll be prompted for the missing credentials.
413
413
 
414
+ === Bundler Configuration
415
+
416
+ So far, I've shown how to privately _publish_ a gem but now we need to teach Bundler how to install
417
+ the gem as dependency within your upstream project. For demonstration purposes, I'm going to assume
418
+ you are using GitHub Packages as your private gem server. You should be able to quickly translate
419
+ this documentation if using an alternate private gem server, though.
420
+
421
+ The first step is to create your own GitHub Personal Access Token (PAT) which is fast to do by
422
+ following GitHub's own
423
+ link:https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token[documentation].
424
+ At a minimum, you'll need to enable _repo_ and _packages_ scopes with read/write access.
425
+
426
+ With your PAT in hand, you'll need to ensure link:https://bundler.io[Bundler] can authenticate to
427
+ the private GitHub Packages gem server by running the following:
428
+
429
+ [source,bash]
430
+ ----
431
+ bundle config set --global rubygems.pkg.github.com <your GitHub handle>:<PAT>
432
+ # Example: bundle config set --global rubygems.pkg.github.com jdoe:ghp_c5b8d394abefebbf45c7b27b379c74978923
433
+ ----
434
+
435
+ 💡 Using Bundler's `--global` flag ensures you only have to define these credentials once for _all_
436
+ projects which reduces maintenance burden on you. The path to this global configuration can be found
437
+ here: `$HOME/.config/bundler/configuration.yml`.
438
+
439
+ Lastly, you can add this gem to your `Gemfile` as follows:
440
+
441
+ [source,ruby]
442
+ ----
443
+ source "https://rubygems.pkg.github.com/alchemists" do
444
+ gem "demo", "~> 0.0"
445
+ end
446
+ ----
447
+
448
+ At this point -- if you run `bundle install` -- you should see the following in your console:
449
+
450
+ ....
451
+ Fetching gem metadata from https://rubygems.pkg.github.com/alchemists/...
452
+ Resolving dependencies...Fetching gem metadata from https://rubygems.org/.....
453
+ ....
454
+
455
+ If so, you're all set!
456
+
414
457
  === GitHub Actions/Packages Automation
415
458
 
416
459
  Earlier, I hinted at using GitHub Packages but what if you could automate the entire publishing
data/gemsmith.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "gemsmith"
5
- spec.version = "18.1.1"
5
+ spec.version = "18.2.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://www.alchemists.io/projects/gemsmith"
@@ -23,16 +23,16 @@ Gem::Specification.new do |spec|
23
23
  spec.cert_chain = [Gem.default_cert_path]
24
24
 
25
25
  spec.required_ruby_version = "~> 3.1"
26
- spec.add_dependency "auto_injector", "~> 0.4"
27
- spec.add_dependency "cogger", "~> 0.0"
26
+ spec.add_dependency "auto_injector", "~> 0.5"
27
+ spec.add_dependency "cogger", "~> 0.1"
28
28
  spec.add_dependency "dry-container", "~> 0.9"
29
29
  spec.add_dependency "dry-monads", "~> 1.4"
30
30
  spec.add_dependency "milestoner", "~> 14.0"
31
- spec.add_dependency "refinements", "~> 9.2"
32
- spec.add_dependency "rubysmith", "~> 3.1"
33
- spec.add_dependency "runcom", "~> 8.2"
34
- spec.add_dependency "spek", "~> 0.2"
35
- spec.add_dependency "versionaire", "~> 10.0"
31
+ spec.add_dependency "refinements", "~> 9.4"
32
+ spec.add_dependency "rubysmith", "~> 3.2"
33
+ spec.add_dependency "runcom", "~> 8.4"
34
+ spec.add_dependency "spek", "~> 0.3"
35
+ spec.add_dependency "versionaire", "~> 10.3"
36
36
  spec.add_dependency "zeitwerk", "~> 2.5"
37
37
 
38
38
  spec.bindir = "exe"
@@ -36,19 +36,19 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.required_ruby_version = "~> <%= RUBY_VERSION[/\d+\.\d+/] %>"
38
38
  <% if configuration.build_cli %>
39
- spec.add_dependency "auto_injector", "~> 0.4"
39
+ spec.add_dependency "auto_injector", "~> 0.5"
40
40
  <% end %>
41
41
  <% if configuration.build_cli %>
42
42
  spec.add_dependency "dry-container", "~> 0.9"
43
43
  <% end %>
44
44
  <% if configuration.build_refinements %>
45
- spec.add_dependency "refinements", "~> 9.2"
45
+ spec.add_dependency "refinements", "~> 9.4"
46
46
  <% end %>
47
47
  <% if configuration.build_cli %>
48
- spec.add_dependency "runcom", "~> 8.2"
48
+ spec.add_dependency "runcom", "~> 8.4"
49
49
  <% end %>
50
50
  <% if configuration.build_cli %>
51
- spec.add_dependency "spek", "~> 0.2"
51
+ spec.add_dependency "spek", "~> 0.3"
52
52
  <% end %>
53
53
  <% if configuration.build_zeitwerk %>
54
54
  spec.add_dependency "zeitwerk", "~> 2.5"
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemsmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.1.1
4
+ version: 18.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
29
29
  RFE=
30
30
  -----END CERTIFICATE-----
31
- date: 2022-05-01 00:00:00.000000000 Z
31
+ date: 2022-05-07 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: auto_injector
@@ -36,28 +36,28 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.4'
39
+ version: '0.5'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.4'
46
+ version: '0.5'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: cogger
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.0'
53
+ version: '0.1'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.0'
60
+ version: '0.1'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: dry-container
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -106,70 +106,70 @@ dependencies:
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '9.2'
109
+ version: '9.4'
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '9.2'
116
+ version: '9.4'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: rubysmith
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '3.1'
123
+ version: '3.2'
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '3.1'
130
+ version: '3.2'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: runcom
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '8.2'
137
+ version: '8.4'
138
138
  type: :runtime
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '8.2'
144
+ version: '8.4'
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: spek
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: '0.2'
151
+ version: '0.3'
152
152
  type: :runtime
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: '0.2'
158
+ version: '0.3'
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: versionaire
161
161
  requirement: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - - "~>"
164
164
  - !ruby/object:Gem::Version
165
- version: '10.0'
165
+ version: '10.3'
166
166
  type: :runtime
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - "~>"
171
171
  - !ruby/object:Gem::Version
172
- version: '10.0'
172
+ version: '10.3'
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: zeitwerk
175
175
  requirement: !ruby/object:Gem::Requirement
@@ -280,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  - !ruby/object:Gem::Version
281
281
  version: '0'
282
282
  requirements: []
283
- rubygems_version: 3.3.12
283
+ rubygems_version: 3.3.13
284
284
  signing_key:
285
285
  specification_version: 4
286
286
  summary: A command line interface for smithing Ruby gems.
metadata.gz.sig CHANGED
Binary file