devcenter 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/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: e14877c0a01c5a7452775884149d1ce58b50e274072bc9766beffa4ab2c8a506
|
4
|
+
data.tar.gz: 7f2d3ff839591dd7077b0d9d71af29d32d9490e8c5d0573bef03540ca77fcfa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efd596a2e45bcbee1162ad4d46b57f4f118511b2a61c839f2c20e587c07f53c5fcdb6c42980af1629aa569f6604edc24ac33eca9eb677133c40098617abfe039
|
7
|
+
data.tar.gz: d3eef4bffd642c45430da300e2dd791efe5684c5b02501fde995d5c2907444d3e76702bd9b1e75e1d8dacc026e5dbaf56fffaac9f317cf7618485215af9bf142
|
@@ -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.
|
@@ -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.0
|
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: 2024-05-02 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.6
|
254
257
|
signing_key:
|
255
258
|
specification_version: 4
|
256
259
|
summary: CLI to interact with Heroku's Dev Center
|