devcenter 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a6a2e1b6bd8e979e6ce1106773f16a40a23221f9214ba9b3594a3cbf6d1a514
4
- data.tar.gz: bcc5f9fab7d7cf2f965f764f1c3b92c1bfb36efa662cb5bf4b5c2dca1b092a69
3
+ metadata.gz: b474b043b1493420f814bf2e0a710661da5ff2256fe471ad1e6cdc872f3b5c63
4
+ data.tar.gz: 0133daa804eef0579cf0c058101d63c40bd2c65dec3bbcfa2b585776afe07993
5
5
  SHA512:
6
- metadata.gz: 688237e4aeeca4f10f5fc0010af7afb84860a2a64053072c16b868eb7587121cd58b9883c6c04616f01541c3416e0a0dcfc4066ec2c26c983fdf04c84378d9dc
7
- data.tar.gz: 46573fcc5c761c4fc54e02f1f437bef83a2ac73f9c6aa5c4c6ba51c0e41fcc85a64eda294621683c17df5b49452721e0b2a26ac65d4491d879f4447670712d7f
6
+ metadata.gz: 92eba4bb3db60fc16d70cef92d3b580ce0e2667eb3cb81f1d3b50139744f5f24e641760b7c925162f15fdc3b280e1b2f2a7f3f4f84c92afb320d08781841a697
7
+ data.tar.gz: 2297598449a88c17fae4bf672ca6b683c6f244dd2252a7bd7f87b2fc3a890be4ebcb21d51e440237916c7c2a00fefb9a9268631fec8640e9b7791fcaf6c7f61d
@@ -0,0 +1,11 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "bundler"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "weekly"
@@ -0,0 +1,25 @@
1
+ name: "Send data to Components Inventory"
2
+ on:
3
+ workflow_dispatch:
4
+ push:
5
+ branches:
6
+ - "main"
7
+ paths:
8
+ - ".heroku/components-inventory/*.json"
9
+ pull_request:
10
+ types:
11
+ - opened
12
+ - synchronize
13
+ paths:
14
+ - ".heroku/components-inventory/*.json"
15
+ jobs:
16
+ action:
17
+ runs-on: sfdc-hk-ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Send data to Components Inventory
21
+ uses: heroku/components-action@main
22
+ with:
23
+ COMPONENTS_GHA_APP_ID: ${{ secrets.COMPONENTS_GHA_APP_ID}}
24
+ COMPONENTS_GHA_APP_PRIVATE_KEY: ${{ secrets.COMPONENTS_GHA_APP_PRIVATE_KEY}}
25
+ COMPONENTS_GHA_JSON_TOKEN: ${{ secrets.COMPONENTS_GHA_JSON_TOKEN}}
data/CODEOWNERS CHANGED
@@ -1,2 +1,4 @@
1
1
  # Comment line immediately above ownership line is reserved for related gus information. Please be careful while editing.
2
+ * @heroku/marketing-web-ops
3
+ * @heroku/front-end
2
4
  #ECCN:Open Source
data/CONTRIBUTING.md CHANGED
@@ -3,12 +3,12 @@
3
3
  We welcome contributions!
4
4
 
5
5
  ## Urgent Security Updates
6
- * Page us from the "Dev Center" HipChat room. While you wait for us, push your fix to a topic branch on GitHub.
6
+ * If internal to Salesforce/Heroku, please contact the #marketing-web-ops team on Slack.
7
7
 
8
8
  ## Any Other Contribution
9
9
 
10
- * Create a topic branch from where you want to base your work (this is usually the `master` branch).
10
+ * Create a topic branch from where you want to base your work (this is usually the `main` branch).
11
11
  * Make commits of logical units.
12
12
  * Check for unnecessary whitespace with `git --diff` before commiting.
13
- * Push your changes to a topic branch in the main repository.
13
+ * Push your changes to a topic branch in the GitHub repository.
14
14
  * Submit a pull request to the base branch.
data/SECURITY.md ADDED
@@ -0,0 +1,7 @@
1
+ ## Security
2
+
3
+ Please report any security issue to [security@salesforce.com](mailto:security@salesforce.com)
4
+ as soon as it is discovered. This library limits its runtime dependencies in
5
+ order to reduce the total cost of ownership as much as can be, but all consumers
6
+ should remain vigilant and have their security stakeholders review all third-party
7
+ products (3PP) like this one and their dependencies.
@@ -96,7 +96,7 @@ module Devcenter
96
96
  end
97
97
 
98
98
  def encode64(str)
99
- Base64.encode64(str).strip
99
+ Base64.strict_encode64(str)
100
100
  end
101
101
  end
102
102
 
@@ -12,7 +12,7 @@ module Devcenter::Commands
12
12
 
13
13
  def validate
14
14
  empty_slug = @slug.nil? || @slug.to_s.strip.empty?
15
- file_exists = !empty_slug && File.exists?(@md_path)
15
+ file_exists = !empty_slug && File.exist?(@md_path)
16
16
  if empty_slug
17
17
  @validation_errors << 'Please provide an article slug'
18
18
  elsif !file_exists
@@ -24,7 +24,7 @@ module Devcenter::Commands
24
24
  file_path = md_file_path(@slug)
25
25
 
26
26
  unless @force_overwrite
27
- cancel_save = File.exists?(file_path) && !agree("The file #{file_path} already exists - overwrite? (yes/no)")
27
+ cancel_save = File.exist?(file_path) && !agree("The file #{file_path} already exists - overwrite? (yes/no)")
28
28
  return if cancel_save
29
29
  end
30
30
 
@@ -10,7 +10,7 @@ module Devcenter::Commands
10
10
 
11
11
  def validate
12
12
  empty_slug = @slug.nil? || @slug.to_s.strip.empty?
13
- file_exists = !empty_slug && File.exists?(@md_path)
13
+ file_exists = !empty_slug && File.exist?(@md_path)
14
14
  if empty_slug
15
15
  @validation_errors << 'Please provide an article slug'
16
16
  elsif !file_exists
@@ -62,7 +62,7 @@ module Devcenter::Helpers
62
62
  def netrc_path
63
63
  default = Netrc.default_path
64
64
  encrypted = default + ".gpg"
65
- if File.exists?(encrypted)
65
+ if File.exist?(encrypted)
66
66
  encrypted
67
67
  else
68
68
  default
@@ -45,7 +45,7 @@ module Devcenter::Previewer
45
45
  get '/:slug' do
46
46
  log "Local article requested: #{params[:slug]}"
47
47
  src_path = File.join(Dir.pwd, "#{params[:slug]}.md")
48
- if File.exists?(src_path)
48
+ if File.exist?(src_path)
49
49
  log "Parsing"
50
50
  @article = Devcenter::ArticleFile.read(src_path)
51
51
  @page_title = @article.metadata.title
@@ -1,3 +1,3 @@
1
1
  module Devcenter
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devcenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heroku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-17 00:00:00.000000000 Z
11
+ date: 2025-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coderay
@@ -200,6 +200,8 @@ executables:
200
200
  extensions: []
201
201
  extra_rdoc_files: []
202
202
  files:
203
+ - ".github/dependabot.yml"
204
+ - ".github/workflows/sync_component_metadata.yml"
203
205
  - ".gitignore"
204
206
  - CODEOWNERS
205
207
  - CONTRIBUTING.md
@@ -207,6 +209,7 @@ files:
207
209
  - LICENSE.txt
208
210
  - README.md
209
211
  - Rakefile
212
+ - SECURITY.md
210
213
  - bin/devcenter
211
214
  - devcenter.gemspec
212
215
  - lib/devcenter.rb
@@ -250,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
253
  - !ruby/object:Gem::Version
251
254
  version: '0'
252
255
  requirements: []
253
- rubygems_version: 3.2.33
256
+ rubygems_version: 3.5.3
254
257
  signing_key:
255
258
  specification_version: 4
256
259
  summary: CLI to interact with Heroku's Dev Center