Skip to content

Commit b45dee9

Browse files
committed
Switch gem sources to artifactory
This enables us to fulfill commitments to higher standards of security we've made with our clients: - all code used in production must be scanned for potential security vulnerabilities - all code used in production must come from verified sources - production machines must not have access to the internet Please direct any comments or questions to mx/io#584
1 parent 56108cf commit b45dee9

4 files changed

Lines changed: 15 additions & 4 deletions

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

3-
source "https://rubygems.org"
3+
source "https://artifactory.internal.mx/api/gems/read-only-mirror.rubygems.org/"
44

55
gemspec

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PATH
55
thor (>= 0.20.3)
66

77
GEM
8-
remote: https://rubygems.org/
8+
remote: https://artifactory.internal.mx/api/gems/read-only-mirror.rubygems.org/
99
specs:
1010
ast (2.4.0)
1111
coderay (1.1.2)

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Binks can be used in two ways -- as a standalone binary or rake task add-in
1919
Add the following to Gemfile:
2020

2121
```ruby
22-
source "https://gems.internal.mx" do
22+
source "https://artifactory.internal.mx/api/gems/gems.internal.mx/" do
2323
gem "binks"
2424
end
2525
```
@@ -77,6 +77,17 @@ After committing and pushing the version change, run:
7777
rake release
7878
```
7979

80+
If prompted for an `Email` and `Password`, use your `username` and `api_key`
81+
(respectively) for artifactory:
82+
https://artifactory.internal.mx/ui/admin/artifactory/user_profile
83+
84+
For example:
85+
86+
```
87+
Email: bob.ross
88+
Password: QctLW6hhgk+QSID3F4hG8tNwNIgDKYCWcL1ElVkJD74gW6iZFbYFnghzGlt4m3iV7TzOgmY3hW+GdsNnFxG2Jg
89+
```
90+
8091
to push the gem to `gems.internal.mx`
8192

8293
## Dependencies

binks.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require "binks/version"
1818
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the "allowed_push_host"
1919
# to allow pushing to a single host or delete this section to allow pushing to any host.
2020
if spec.respond_to?(:metadata)
21-
spec.metadata["allowed_push_host"] = "https://gems.internal.mx"
21+
spec.metadata["allowed_push_host"] = "https://artifactory.internal.mx/api/gems/gems.internal.mx/"
2222
else
2323
raise "RubyGems 2.0 or newer is required to protect against " \
2424
"public gem pushes."

0 commit comments

Comments
 (0)