custom_update_tags 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/update_tags.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 518a32e3e88c3fe35f8e50820b6d64e141fab62b78a0aea73832d669c735e7db
4
- data.tar.gz: a35d963f10c47bdbedde3931db560c943c06a74c30451e2ac3ba789cc6c8a322
3
+ metadata.gz: c8c9bb7f1787c61ccdb1a48131abc59c9f3a8f2714d56ba7fe7260dde0497150
4
+ data.tar.gz: ab43cddc12906e76cf89d0f685f19bc8ab748639ac924d5c2df5cb5f346f67f0
5
5
  SHA512:
6
- metadata.gz: ab294372f0fd0d513b3edc7d6c4658df237becc4b8c8656c71137b8ebe65d5fb291fe929042fe9dbfc2bbc1b70f4d8d668b26524010ed23db8d4c50a5238d22a
7
- data.tar.gz: fd1dbb56853a958728ccc9236b26cc1d083ff16585e0a5108bfbe999a2f6b160f9e2234b5a205eaa69c5855ecb191756d5e3e9eedf6eb779e0c81fdf9056a25f
6
+ metadata.gz: 3f23f05ae05b101c8caea69c2661a7f81d4484be3e76d3683ea9928c2f5830e1c8bd8998cc6b4357f051eb2ecd2b93be05b3f2118592aceb9225c64d23a38c1f
7
+ data.tar.gz: 2ced78d2e0a76fb3a08f742bc64c8187dc1ae236d9fd1c9ed0d69c8bba33f9226f59f98a91c81bd0e00b17cf4c6f7fcf8ad897fe32b71c644615bd8cd0a75105
data/lib/update_tags.rb CHANGED
@@ -38,7 +38,7 @@ class UpdateTags
38
38
  end
39
39
 
40
40
  def blog_post_filenames
41
- directories = ["./_posts", "./_building", "./_writing", "./_notes"]
41
+ directories = ["./_posts", "./_building", "./_writing", "./_notes", "./_misc"]
42
42
  @blog_post_filenames ||= directories.inject([]) do |acc, directory|
43
43
  entries = Dir.entries(directory) - [".", ".."]
44
44
  entries = entries.map { |entry| "#{directory}/#{entry}" } # Prepend the directory path
@@ -90,7 +90,7 @@ class UpdateTags
90
90
  {% assign collections = 'posts,building,writing,notes,misc' | split: ',' %}
91
91
 
92
92
  {% for collection_name in collections %}
93
- {% assign current_collection = site[collections] %}
93
+ {% assign current_collection = site[collection_name] %}
94
94
  {% for post in current_collection %}
95
95
  {% if post.tags contains tag %}
96
96
  {% assign tagged_posts = tagged_posts | push: post %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom_update_tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pachulski