Skip to content

Commit 97fad9b

Browse files
committed
Fixed #338
* Update the `track_change` to `track_changes` Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 564b84f commit 97fad9b

File tree

10 files changed

+14
-13
lines changed

10 files changed

+14
-13
lines changed

docs/CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* New `--vartext` option
66
* Add support for `checksum_sha256`
77
* `check` command will not counted INFO message as error when `--verbose` is set
8+
* Update `track_change` to `track_changes`
89

910
2018-6-25
1011

src/attributecode/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def create_fields(self):
688688

689689
('redistribute', BooleanField()),
690690
('attribute', BooleanField()),
691-
('track_change', BooleanField()),
691+
('track_changes', BooleanField()),
692692
('modified', BooleanField()),
693693

694694
('changelog_file', FileTextField()),
@@ -760,7 +760,7 @@ def attribution_fields(fields):
760760
'notice_url',
761761
'redistribute',
762762
'attribute',
763-
'track_change',
763+
'track_changes',
764764
'modified',
765765
'changelog_file',
766766
'owner',

tests/test_model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ def test_About_dumps_does_not_transform_strings_in_lists(self):
607607
notice_url:
608608
redistribute:
609609
attribute:
610-
track_change:
610+
track_changes:
611611
modified:
612612
changelog_file:
613613
owner: nexB Inc.
@@ -683,7 +683,7 @@ def test_field_names(self):
683683
'notice_url',
684684
'redistribute',
685685
'attribute',
686-
'track_change',
686+
'track_changes',
687687
'modified',
688688
'changelog_file',
689689
'owner',
@@ -784,7 +784,7 @@ def test_About_dumps_all_fields_if_not_present_with_absent_True(self):
784784
notice_url:
785785
redistribute:
786786
attribute:
787-
track_change:
787+
track_changes:
788788
modified:
789789
changelog_file:
790790
owner:
@@ -902,7 +902,7 @@ def test_About_as_dict_with_present(self):
902902
'owner_url': u'',
903903
'redistribute': u'',
904904
'spec_version': u'',
905-
'track_change': u'',
905+
'track_changes': u'',
906906
'vcs_branch': u'',
907907
'vcs_path': u'',
908908
'vcs_repository': u'',

tests/testdata/gen/inv.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
about_file_path,about_resource,name,version,download_url,description,homepage_url,notes,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_change,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,spec_version,custom1
1+
about_file_path,about_resource,name,version,download_url,description,homepage_url,notes,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_changes,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,spec_version,custom1
22
inv/this.ABOUT,.,AboutCode,0.11.0,,"multi
33
line",,,,,,,,,,,,,,,,,,,,,,,,,,,"multi
44
line"

tests/testdata/gen/inv5.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
about_file_path,about_resource,name,version,download_url,description,homepage_url,notes,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_change,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,spec_version,custom1
1+
about_file_path,about_resource,name,version,download_url,description,homepage_url,notes,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_changes,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,spec_version,custom1
22
inv/this.ABOUT,.,AboutCode,0.11.0,,,,,,this.LICENSE,,,,,,,,,,,,,,,,,,,,,,,"multi
33
line"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
about_file_path,about_resource_path,about_resource,name,version,download_url,description,homepage_url,notes,license,license_expression,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_change,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,checksum_sha256,spec_version
1+
about_file_path,about_resource_path,about_resource,name,version,download_url,description,homepage_url,notes,license,license_expression,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_changes,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,checksum_sha256,spec_version
22
/about/about.ABOUT,.,.,AboutCode,0.11.0,,AboutCode is a tool to process ABOUT files. An ABOUT file is a file.,http://dejacode.org,,apache-2.0,apache-2.0,,apache-2.0.LICENSE,,Copyright (c) 2013-2014 nexB Inc.,NOTICE,,,,,,,nexB Inc.,,,"Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez",git,https://github.com/dejacode/about-code-tool.git,,,,,,,,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
about_file_path,about_resource_path,about_resource,name,version,download_url,description,homepage_url,notes,license,license_expression,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_change,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,checksum_sha256,spec_version
1+
about_file_path,about_resource_path,about_resource,name,version,download_url,description,homepage_url,notes,license,license_expression,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_changes,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,checksum_sha256,spec_version
22
/about/about_with_about_resource_path.ABOUT,"./apache-2.0.LICENSE
33
../../complex/about/apache-2.0.LICENSE",apache-2.0.LICENSE,Apache License 2.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

tests/testdata/inventory/complex/expected.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
about_file_path,about_resource_path,about_resource,name,version,download_url,description,homepage_url,notes,license,license_expression,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_change,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,spec_version,author_file,dje_license,keywords,license_text_file
1+
about_file_path,about_resource_path,about_resource,name,version,download_url,description,homepage_url,notes,license,license_expression,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_changes,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,spec_version,author_file,dje_license,keywords,license_text_file
22
/about/about.ABOUT,/about/,.,AboutCode,0.11.0,,"AboutCode is a tool
33
to process ABOUT files.
44
An ABOUT file is a file.",http://dejacode.org,,apache-2.0,apache-2.0,,apache-2.0.LICENSE,,Copyright (c) 2013-2014 nexB Inc.,NOTICE,,,,,,,nexB Inc.,,,"Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez",git,https://github.com/dejacode/about-code-tool.git,,,,,,,,,,,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
about_file_path,about_resource_path,about_resource,name,version,download_url,description,homepage_url,notes,license,license_expression,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_change,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,checksum_sha256,spec_version
1+
about_file_path,about_resource_path,about_resource,name,version,download_url,description,homepage_url,notes,license,license_expression,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_changes,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,checksum_sha256,spec_version
22
/about/about.ABOUT,,,AboutCode,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

tests/testdata/load/expected.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
about_file_path,about_resource_path,about_resource,name,version,download_url,description,homepage_url,notes,license,license_expression,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_change,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,checksum_sha256,spec_version
1+
about_file_path,about_resource_path,about_resource,name,version,download_url,description,homepage_url,notes,license,license_expression,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_changes,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,checksum_sha256,spec_version
22
/load/this.ABOUT,.,.,AboutCode,0.11.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

0 commit comments

Comments
 (0)