Skip to content

Commit 03342ab

Browse files
authored
Merge pull request #1150 from szepeviktor/typos
Fix typos
2 parents c883177 + c12e3ae commit 03342ab

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ For access the rails console use the following command:
3838

3939
`docker-compose exec app rails console`
4040

41-
Runing rake tasks in docker follows a similar pattern:
41+
Running rake tasks in docker follows a similar pattern:
4242

4343
`docker-compose exec app rake packages:sync_recent`
4444

app/controllers/api/v1/packages_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def lookup
8686
if params[:purl].present?
8787
begin
8888
purl = PackageURL.parse(params[:purl])
89-
name = [purl.namespace, purl.name].compact.join(Ecosystem::Base.purl_type_to_namespace_seperator(purl.type))
89+
name = [purl.namespace, purl.name].compact.join(Ecosystem::Base.purl_type_to_namespace_separator(purl.type))
9090
ecosystem = Ecosystem::Base.purl_type_to_ecosystem(purl.type)
9191
registry = Registry.find_by_ecosystem(ecosystem)
9292
registry.sync_package_async(name) if registry

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def lookup_by_purl(purl_string)
1919
repository_url = "https://github.com/#{purl.namespace}/#{purl.name}"
2020
scope = Package.repository_url(repository_url)
2121
else
22-
name = [namespace, purl.name].compact.join(Ecosystem::Base.purl_type_to_namespace_seperator(purl.type))
22+
name = [namespace, purl.name].compact.join(Ecosystem::Base.purl_type_to_namespace_separator(purl.type))
2323
ecosystem = Ecosystem::Base.purl_type_to_ecosystem(purl.type)
2424
registry_ids = Registry.where(ecosystem: ecosystem).pluck(:id)
2525
Package.where(name: name, registry_id: registry_ids)

app/models/ecosystem/actions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def dependencies_metadata(name, version, package)
149149
Bibliothecary::Parsers::Actions.parse_manifest(deps).map do |dep|
150150
{
151151
package_name: dep[:name],
152-
requirements: dep[:requirement].chomp.precense || '*',
152+
requirements: dep[:requirement].chomp.presence || '*',
153153
kind: dep[:type],
154154
ecosystem: 'actions'
155155
}

app/models/ecosystem/base.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,16 @@ def self.purl_type
175175
name.demodulize.downcase
176176
end
177177

178-
def self.namespace_seperator
178+
def self.namespace_separator
179179
'/'
180180
end
181181

182182
def self.purl_type_to_ecosystem(purl_type)
183183
list.find { |p| p.purl_type == purl_type }.try(:lowercase_name)
184184
end
185185

186-
def self.purl_type_to_namespace_seperator(purl_type)
187-
list.find { |p| p.purl_type == purl_type }.try(:namespace_seperator)
186+
def self.purl_type_to_namespace_separator(purl_type)
187+
list.find { |p| p.purl_type == purl_type }.try(:namespace_separator)
188188
end
189189

190190
def namespace_package_names(namespace)

app/models/ecosystem/carthage.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def dependencies_metadata(name, version, package)
8383
Bibliothecary::Parsers::Carthage.parse_cartfile(deps).map do |dep|
8484
{
8585
package_name: dep[:name],
86-
requirements: dep[:requirement].chomp.precense || '*',
86+
requirements: dep[:requirement].chomp.presence || '*',
8787
kind: dep[:type],
8888
ecosystem: 'carthage'
8989
}

app/models/ecosystem/maven.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def purl(package, version = nil)
1111
).to_s
1212
end
1313

14-
def self.namespace_seperator
14+
def self.namespace_separator
1515
':'
1616
end
1717

app/views/infrastructure/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<% @meta_description = "The following 10,000 packages are critical to the operation of the open source ecosystem.
22
They are the foundation of the software supply chain, and are used by millions of developers.
33
They are also the most vulnerable to supply chain attacks." %>
4-
<% @meta_title = "Critical #{params[:registry]} OSS Infrastucture" %>
4+
<% @meta_title = "Critical #{params[:registry]} OSS Infrastructure" %>
55

66
<div class="container-sm">
77

8-
<h1 class='mb-3'>Critical <%= params[:registry] %> OSS Infrastucture</h1>
8+
<h1 class='mb-3'>Critical <%= params[:registry] %> OSS Infrastructure</h1>
99

1010
<p class='lead'>
1111
The following 10,000 packages are critical to the operation of the open source ecosystem.

app/views/unseen/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<% @meta_title = "Unseen #{params[:registry]} Infrastucture" %>
1+
<% @meta_title = "Unseen #{params[:registry]} Infrastructure" %>
22
<% @meta_description = "The following packages are critical to the operation of the #{params[:registry]} open source ecosystem but have very low levels of attention. They are the foundation of the software supply chain, and are used by millions of developers and are also the most vulnerable to supply chain attacks." %>
33

44
<div class="container-sm">
55
<h2>
6-
Unseen <%= params[:registry] %> Infrastucture
6+
Unseen <%= params[:registry] %> Infrastructure
77
</h2>
88

99
<p class='lead'>

config/initializers/rswag_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# that it's configured to generate files in the same folder
77
c.openapi_root = Rails.root.to_s + '/openapi'
88

9-
# Inject a lamda function to alter the returned Swagger prior to serialization
9+
# Inject a lambda function to alter the returned Swagger prior to serialization
1010
# The function will have access to the rack env for the current request
1111
# For example, you could leverage this to dynamically assign the "host" property
1212
#

0 commit comments

Comments
 (0)