Skip to content

Commit 6e292f2

Browse files
committed
Use homepage_url instead of home_url #298
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 8b773d9 commit 6e292f2

File tree

96 files changed

+103
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+103
-103
lines changed

SPECIFICATION.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A simple and valid ABOUT file named httpd.ABOUT may look like this::
2727
about_resource: httpd-2.4.3.tar.gz
2828
name: Apache HTTP Server
2929
version: 2.4.3
30-
home_url: http://httpd.apache.org
30+
homepage_url: http://httpd.apache.org
3131
download_url: http://archive.apache.org/dist/httpd/httpd-2.4.3.tar.gz
3232
license_file: httpd.LICENSE
3333
notice_file: httpd.NOTICE
@@ -102,7 +102,7 @@ A field name can contain only these US-ASCII characters:
102102
- uppercase and lowercase letters from A to Z
103103
- the "_" underscore sign.
104104

105-
- Field names are not case sensitive. For example, "HOME_URL" and "Home_url"
105+
- Field names are not case sensitive. For example, "HOMEPAGE_URL" and "HomePage_url"
106106
represent the same field name.
107107

108108
- A field name must start at the beginning of a new line. It can be followed by
@@ -281,7 +281,7 @@ Optional Information fields
281281
- download_url: A direct URL to download the original file or archive documented
282282
by this ABOUT file.
283283

284-
- home_url: URL to the homepage for this component.
284+
- homepage_url: URL to the homepage for this component.
285285

286286
- changelog_file: Changelog file for the component.
287287

about.ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version: 3.0.0.dev6
66
owner: nexB Inc.
77
author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez
88

9-
home_url: https://aboutcode.org
9+
homepage_url: https://aboutcode.org
1010

1111
vcs_tool: git
1212
vcs_repository: https://github.com/dejacode/about-code-tool.git

docs/UsingAboutCodetoDocumentYourSoftwareAssets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ You should start with a software inventory of your codebase in spreadsheet forma
9696
<td>Optional</td>
9797
</tr>
9898
<tr>
99-
<td>home_url</td>
99+
<td>homepage_url</td>
100100
<td>URL to the homepage for this component</td>
101101
<td>Optional</td>
102102
</tr>
0 Bytes
Binary file not shown.

etc/scripts/irc-notify.py.ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: irc-notify.py
22
version: def54f8166089b733d166665fdabcad4cdc526d8
33
download_url: https://raw.githubusercontent.com/gridsync/gridsync/def54f8166089b733d166665fdabcad4cdc526d8/misc/irc-notify.py
44
description: Quick and dirty IRC notification script.
5-
home_url: https://github.com/gridsync/gridsync
5+
homepage_url: https://github.com/gridsync/gridsync
66
owner: Christopher R. Wood
77
copyright: Copyright (C) 2015-2016 Christopher R. Wood
88
dje_license_key: gpl-2.0-plus

src/attributecode/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ def create_fields(self):
668668
('version', SingleLineField()),
669669
('download_url', UrlField()),
670670
('description', StringField()),
671-
('home_url', UrlField()),
671+
('homepage_url', UrlField()),
672672
('notes', StringField()),
673673

674674
('license', ListField()),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Name,Version,DejaCode License,Homepage
22
{% for about in abouts %}
3-
"{{about.name}}","{{about.version}}","{{about.license_name}}","{{about.home_url}}"
3+
"{{about.name}}","{{about.version}}","{{about.license_name}}","{{about.homepage_url}}"
44
{% endfor %}

tests/test_model.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def test_About_duplicate_field_names_are_detected_with_different_case(self):
390390
def check_About_hydrate(self, about, fields, errors):
391391
expected = set([
392392
'name',
393-
'home_url',
393+
'homepage_url',
394394
'download_url',
395395
'version',
396396
'copyright',
@@ -596,7 +596,7 @@ def test_About_dumps_does_not_transform_strings_in_lists(self):
596596
version: 0.11.0
597597
download_url:
598598
description: AboutCode is a tool to process ABOUT files. An ABOUT file is a file.
599-
home_url: http://dejacode.org
599+
homepage_url: http://dejacode.org
600600
notes:
601601
license: apache-2.0
602602
license_expression: apache-2.0
@@ -671,7 +671,7 @@ def test_field_names(self):
671671
'version',
672672
'download_url',
673673
'description',
674-
'home_url',
674+
'homepage_url',
675675
'notes',
676676
'license',
677677
'license_expression',
@@ -744,7 +744,7 @@ def test_About_dumps(self):
744744
AboutCode is a tool
745745
to process ABOUT files.
746746
An ABOUT file is a file.
747-
home_url: http://dejacode.org
747+
homepage_url: http://dejacode.org
748748
license: apache-2.0
749749
license_expression: apache-2.0
750750
license_file: apache-2.0.LICENSE
@@ -771,7 +771,7 @@ def test_About_dumps_all_fields_if_not_present_with_absent_True(self):
771771
version: 0.11.0
772772
download_url:
773773
description:
774-
home_url:
774+
homepage_url:
775775
notes:
776776
license:
777777
license_expression:
@@ -884,7 +884,7 @@ def test_About_as_dict_with_present(self):
884884
'copyright': u'Copyright (c) 2013-2014 nexB Inc.',
885885
'description': u'AboutCode is a tool\nfor files.',
886886
'download_url': u'',
887-
'home_url': u'',
887+
'homepage_url': u'',
888888
'license': u'apache-2.0',
889889
'license_expression': u'apache-2.0',
890890
'license_file': u'',
@@ -1031,7 +1031,7 @@ def test_load_dict_handles_field_validation_correctly(self):
10311031
u'author': u'Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez',
10321032
u'copyright': u'Copyright (c) 2013-2014 nexB Inc.',
10331033
u'description': u'AboutCode is a tool to process ABOUT files. An ABOUT file is a file.',
1034-
u'home_url': u'http://dejacode.org',
1034+
u'homepage_url': u'http://dejacode.org',
10351035
u'license_expression': u'apache-2.0',
10361036
u'license_file': u'apache-2.0.LICENSE',
10371037
u'name': u'AboutCode',

tests/testdata/allAboutInOneDir/about_ref/csv_serialize.py.ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
download_url: http://djangosnippets.org/snippets/2240/download/
22
name: csv_serialize
33
version: 2013-01-16
4-
home_url: http://djangosnippets.org/snippets/2240/
4+
homepage_url: http://djangosnippets.org/snippets/2240/
55
license_url: http://djangosnippets.org/about/tos/
66
license_text_file: ../../thirdparty/django_snippets.LICENSE
77

tests/testdata/allAboutInOneDir/about_ref/django_snippets_2413.ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2011-04-12
33
download_url: http://djangosnippets.org/snippets/2413/download/
44

55
name: Yet another query string template tag
6-
home_url: http://djangosnippets.org/snippets/2413/
6+
homepage_url: http://djangosnippets.org/snippets/2413/
77

88
license_url: http://djangosnippets.org/about/tos/
99
license_text_file: ../../thirdparty/django_snippets.LICENSE

0 commit comments

Comments
 (0)