diff options
-rw-r--r-- | father.cpp | 15 | ||||
m--------- | vendor/verbly | 0 |
2 files changed, 9 insertions, 6 deletions
diff --git a/father.cpp b/father.cpp index 7ea5080..198b38a 100644 --- a/father.cpp +++ b/father.cpp | |||
@@ -73,6 +73,8 @@ int main(int argc, char** argv) | |||
73 | std::string configfile(argv[1]); | 73 | std::string configfile(argv[1]); |
74 | YAML::Node config = YAML::LoadFile(configfile); | 74 | YAML::Node config = YAML::LoadFile(configfile); |
75 | 75 | ||
76 | verbly::database database(config["verbly_datafile"].as<std::string>()); | ||
77 | |||
76 | twitter::auth auth; | 78 | twitter::auth auth; |
77 | auth.setConsumerKey(config["consumer_key"].as<std::string>()); | 79 | auth.setConsumerKey(config["consumer_key"].as<std::string>()); |
78 | auth.setConsumerSecret(config["consumer_secret"].as<std::string>()); | 80 | auth.setConsumerSecret(config["consumer_secret"].as<std::string>()); |
@@ -81,8 +83,6 @@ int main(int argc, char** argv) | |||
81 | 83 | ||
82 | std::set<twitter::user_id> streamedFriends; | 84 | std::set<twitter::user_id> streamedFriends; |
83 | 85 | ||
84 | verbly::database database(config["verbly_datafile"].as<std::string>()); | ||
85 | |||
86 | twitter::client client(auth); | 86 | twitter::client client(auth); |
87 | 87 | ||
88 | std::cout << "Starting streaming..." << std::endl; | 88 | std::cout << "Starting streaming..." << std::endl; |
@@ -155,8 +155,8 @@ int main(int argc, char** argv) | |||
155 | 155 | ||
156 | if (secondAdjective.isValid()) | 156 | if (secondAdjective.isValid()) |
157 | { | 157 | { |
158 | name << verbly::token::capitalize(firstAdverb); | 158 | name << firstAdverb; |
159 | name << verbly::token::capitalize(secondAdjective); | 159 | name << secondAdjective; |
160 | } | 160 | } |
161 | } | 161 | } |
162 | } | 162 | } |
@@ -170,7 +170,7 @@ int main(int argc, char** argv) | |||
170 | 170 | ||
171 | if (firstAdjective.isValid()) | 171 | if (firstAdjective.isValid()) |
172 | { | 172 | { |
173 | name = verbly::token::capitalize(firstAdjective); | 173 | name = firstAdjective; |
174 | } | 174 | } |
175 | } | 175 | } |
176 | 176 | ||
@@ -179,7 +179,10 @@ int main(int argc, char** argv) | |||
179 | { | 179 | { |
180 | verbly::token action = { | 180 | verbly::token action = { |
181 | "Hi", | 181 | "Hi", |
182 | verbly::token::punctuation(",", name), | 182 | verbly::token::punctuation(",", |
183 | verbly::token::capitalize( | ||
184 | verbly::token::casing::title_case, | ||
185 | name)), | ||
183 | "I'm Dad."}; | 186 | "I'm Dad."}; |
184 | 187 | ||
185 | std::string result = | 188 | std::string result = |
diff --git a/vendor/verbly b/vendor/verbly | |||
Subproject 8916c6911c23ca7ff7e78a90b30a295c2b9b9c2 | Subproject 350bfdb5ea9b4f7e50746c50a46d8032cbc5a10 | ||