Last active
March 11, 2024 13:05
-
-
Save costa/57e2776abd897e69c2c43c08bde4b715 to your computer and use it in GitHub Desktop.
The principal excerpts of the "Lively Video Reporting" system core comps' integ specs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "Automated publishing" do # NOTE incl. drv/youtube integration | |
# ...setup... | |
it "should happen whenever .pub.video is comitted to 'log' git repo" do | |
Dir.chdir log_repo_work_dir do | |
sample_pub_video_path = File.join(today_date_path, 'just-testing.pub.video') | |
sample_pub_video_text = # NOTE straight outta ../README.md | |
<<EOF | |
Chang Wash Fun, winter 2022, Chiang Mai, Thailand | |
src: | |
- media/#{media_path}: https://icloud.com/photos | |
pub: | |
Hapless Tourists Washing Elephants in Thailand - this could be you if you weren't careful and didn't stay home instead! | |
#chiangmai, thailand, 2022, live | |
- #{youtube_channel_url} | |
EOF | |
File.write sample_pub_video_path, sample_pub_video_text | |
git_commit! "another video FROM PARADISE for my friends and family to enjoy" | |
expect(video_youtube_url = | |
ask("Do you see your new (Chang) video published? What it's YouTube URL? [...]") | |
).not_to be_empty | |
git_pull! | |
expect(File.read sample_pub_video_path).to eq sample_pub_video_text.sub(youtube_channel_url, video_youtube_url) | |
end | |
end | |
end | |
describe "Automated vlogging" do # NOTE incl. drv/icloud integration | |
# ...setup... | |
it "should happen whenever iCloud has a new *relevant* video" do | |
Dir.chdir log_repo_work_dir do | |
expected_pub_video_path = File.join(today_date_path, 'icloud-auto.pub.video') | |
expect(expected_pub_video_pub_url = ask("Enter the (channel) URL for publishing")).not_to be_empty | |
puts RQRCode::QRCode.new(expected_pub_video_pub_url).as_ansi | |
expect(ask "Now, shoot your best (very short, please) video with your (stock) iSome device:\n" + | |
"at the end of the video, point and focus its camera on the QR above (publishing URL).\n" + | |
"After a (probably long) while, check it is uploaded to your (stock) iCloud.\n" + | |
"Then, give it a few reasonable minutes, and now, let's check that .pub.video log [OK]" | |
).to be_empty | |
git_pull! | |
expect(File.read expected_pub_video_path).to match expected_pub_video_pub_url # TODO more checks | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment