From 73a30b9bec453ededf1491b07106b666e8e83709 Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Sat, 25 Oct 2014 19:40:59 +0200 Subject: [PATCH] moved lists in subdirectories --- filter_users.yml => filters/users.yml | 0 filter_words.yml => filters/words.yml | 0 husbando.yml => lists/husbando.yml | 0 waifu.yml => lists/waifu.yml | 0 waifu.rb | 11 ++++++----- 5 files changed, 6 insertions(+), 5 deletions(-) rename filter_users.yml => filters/users.yml (100%) rename filter_words.yml => filters/words.yml (100%) rename husbando.yml => lists/husbando.yml (100%) rename waifu.yml => lists/waifu.yml (100%) diff --git a/filter_users.yml b/filters/users.yml similarity index 100% rename from filter_users.yml rename to filters/users.yml diff --git a/filter_words.yml b/filters/words.yml similarity index 100% rename from filter_words.yml rename to filters/words.yml diff --git a/husbando.yml b/lists/husbando.yml similarity index 100% rename from husbando.yml rename to lists/husbando.yml diff --git a/waifu.yml b/lists/waifu.yml similarity index 100% rename from waifu.yml rename to lists/waifu.yml diff --git a/waifu.rb b/waifu.rb index b4c2cee..7c85c42 100755 --- a/waifu.rb +++ b/waifu.rb @@ -4,11 +4,12 @@ require "tumblr_client" require "ostruct" +version = "v2.0.1" keys = YAML.load_file File.expand_path(".", "config.yml") -FILTER_WORDS = YAML.load_file File.expand_path(".", "filter_words.yml") -FILTER_USERS = YAML.load_file File.expand_path(".", "filter_users.yml") -waifu = YAML.load_file File.expand_path(".", "waifu.yml") -husbando = YAML.load_file File.expand_path(".", "husbando.yml") +FILTER_WORDS = YAML.load_file File.expand_path(".", "filters/words.yml") +FILTER_USERS = YAML.load_file File.expand_path(".", "filters/users.yml") +waifu = YAML.load_file File.expand_path(".", "lists/waifu.yml") +husbando = YAML.load_file File.expand_path(".", "lists/husbando.yml") client = Twitter::REST::Client.new do |config| config.consumer_key = keys['twitter']['consumer_key'] @@ -46,7 +47,7 @@ $current_user.id = keys['twitter']["access_token"].split("-")[0].to_i end -puts "yourwaifu" +puts "yourwaifu #{version}" puts "-------------------------------" puts "waifu entries: \033[34;1m#{waifu.count}\033[0m" puts "husbando entries: \033[34;1m#{husbando.count}\033[0m"