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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a6a2e1b6bd8e979e6ce1106773f16a40a23221f9214ba9b3594a3cbf6d1a514
4
- data.tar.gz: bcc5f9fab7d7cf2f965f764f1c3b92c1bfb36efa662cb5bf4b5c2dca1b092a69
3
+ metadata.gz: e14877c0a01c5a7452775884149d1ce58b50e274072bc9766beffa4ab2c8a506
4
+ data.tar.gz: 7f2d3ff839591dd7077b0d9d71af29d32d9490e8c5d0573bef03540ca77fcfa7
5
5
  SHA512:
6
- metadata.gz: 688237e4aeeca4f10f5fc0010af7afb84860a2a64053072c16b868eb7587121cd58b9883c6c04616f01541c3416e0a0dcfc4066ec2c26c983fdf04c84378d9dc
7
- data.tar.gz: 46573fcc5c761c4fc54e02f1f437bef83a2ac73f9c6aa5c4c6ba51c0e41fcc85a64eda294621683c17df5b49452721e0b2a26ac65d4491d879f4447670712d7f
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
@@ -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.
@@ -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.0'.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.0
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: 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.2.33
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