home · contact · privacy
Fix tests and unfortunate captcha dir name choice.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 25 Jan 2017 23:39:06 +0000 (00:39 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 25 Jan 2017 23:39:06 +0000 (00:39 +0100)
README.md
processor/default.html.do
test/test_files/captchas/bar baz [deleted file]
test/test_files/captchas/foo [deleted file]
test/test_files/captchas/linkable/bar baz [new file with mode: 0644]
test/test_files/captchas/linkable/foo [new file with mode: 0644]
test/test_files/captchas/linkable/te&quot;st [new file with mode: 0644]
test/test_files/captchas/te&quot;st [deleted file]

index c1d9f4b6c751e3d3d92b7864830328fafab0043f..88573aa86b98909bb93efa9df4d180c3d727f7f6 100644 (file)
--- a/README.md
+++ b/README.md
@@ -33,9 +33,9 @@ these links will be added as article-specific linkbacks to the .html file and
 the feed entry.
 
 Just like the .links files, article-specific files containing captcha data are
 the feed entry.
 
 Just like the .links files, article-specific files containing captcha data are
-created and can be edited in ./captchas/. The first line of such a file is meant
-as a captcha, and the second line as its description, which may be inserted via
-templating into the article HTML file.
+created and can be edited in ./captchas/linkable/. The first line of such a file
+is meant as a captcha, and the second line as its description, which may be
+inserted via templating into the article HTML file.
 
 Some metadata files will also be generated below ./metadata/: For each article,
 there will be generated a .automatic_metadata (to contain an article's UUID,
 
 Some metadata files will also be generated below ./metadata/: For each article,
 there will be generated a .automatic_metadata (to contain an article's UUID,
index 31fa9cd5e24259401c9ff0332eae1639f95c8648..8e88dbb86ca4bbbcf55e1dfb250a417289e9b912 100644 (file)
@@ -10,7 +10,7 @@ prep_url() {
 # Pull in global dependencies.
 . ./helpers.sh
 metadata_dir=metadata
 # Pull in global dependencies.
 . ./helpers.sh
 metadata_dir=metadata
-captchas_dir=captchas/public
+captchas_dir=captchas/linkable
 mkdir -p "$captchas_dir"
 meta_file="${metadata_dir}/${1%.html}.automatic_metadata"
 redo-ifchange "$meta_file"
 mkdir -p "$captchas_dir"
 meta_file="${metadata_dir}/${1%.html}.automatic_metadata"
 redo-ifchange "$meta_file"
diff --git a/test/test_files/captchas/bar baz b/test/test_files/captchas/bar baz
deleted file mode 100644 (file)
index 42bf241..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-apple
-apple
\ No newline at end of file
diff --git a/test/test_files/captchas/foo b/test/test_files/captchas/foo
deleted file mode 100644 (file)
index 42bf241..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-apple
-apple
\ No newline at end of file
diff --git a/test/test_files/captchas/linkable/bar baz b/test/test_files/captchas/linkable/bar baz
new file mode 100644 (file)
index 0000000..42bf241
--- /dev/null
@@ -0,0 +1,2 @@
+apple
+apple
\ No newline at end of file
diff --git a/test/test_files/captchas/linkable/foo b/test/test_files/captchas/linkable/foo
new file mode 100644 (file)
index 0000000..42bf241
--- /dev/null
@@ -0,0 +1,2 @@
+apple
+apple
\ No newline at end of file
diff --git a/test/test_files/captchas/linkable/te&quot;st b/test/test_files/captchas/linkable/te&quot;st
new file mode 100644 (file)
index 0000000..42bf241
--- /dev/null
@@ -0,0 +1,2 @@
+apple
+apple
\ No newline at end of file
diff --git a/test/test_files/captchas/te&quot;st b/test/test_files/captchas/te&quot;st
deleted file mode 100644 (file)
index 42bf241..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-apple
-apple
\ No newline at end of file