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 +4 -4
- data/.github/dependabot.yml +11 -0
- data/.github/workflows/sync_component_metadata.yml +25 -0
- data/CODEOWNERS +2 -0
- data/CONTRIBUTING.md +3 -3
- data/SECURITY.md +7 -0
- data/lib/devcenter/client.rb +1 -1
- data/lib/devcenter/commands/preview.rb +1 -1
- data/lib/devcenter/commands/pull.rb +1 -1
- data/lib/devcenter/commands/push.rb +1 -1
- data/lib/devcenter/helpers.rb +1 -1
- data/lib/devcenter/previewer/web_app.rb +1 -1
- data/lib/devcenter/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b474b043b1493420f814bf2e0a710661da5ff2256fe471ad1e6cdc872f3b5c63
|
4
|
+
data.tar.gz: 0133daa804eef0579cf0c058101d63c40bd2c65dec3bbcfa2b585776afe07993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/CONTRIBUTING.md
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
We welcome contributions!
|
4
4
|
|
5
5
|
## Urgent Security Updates
|
6
|
-
*
|
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 `
|
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
|
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.
|
data/lib/devcenter/client.rb
CHANGED
@@ -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.
|
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.
|
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.
|
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
|
data/lib/devcenter/helpers.rb
CHANGED
@@ -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.
|
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
|
data/lib/devcenter/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|