horse 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22170491444dd3e894eaf5a4f643dbe2e180823e
4
- data.tar.gz: 3a2eac39de166a871b6e37453b9ba4ec9faef7d2
3
+ metadata.gz: 5f23c032e4af82f20b4c720dbd0fae9ec264c618
4
+ data.tar.gz: 28f0e092c18a15dd63f1e46764a4e256e1dc0521
5
5
  SHA512:
6
- metadata.gz: c9e3d18663be7b83e43435a3e7daedcf1036bb1b3e49c6c7fe037180bf71b1f8ba2b43a35c51d8ea7ca6b7133de896d11c3cf4c3bdc2d812908e7e5271e8d7ab
7
- data.tar.gz: 549b3a0ba51981cb2443aa8ed057edb3b94d036d1b27f42fd195f032ed42d14fbe9b004c33b0a269da25a9e86c040024cd6bbd07923a0aa4ab875abf3a6c5be6
6
+ metadata.gz: d173ac864489d3cce3db50320b30879aee23fcd686f7929adf6e0eeb77676005d692733d060bbfc1d9c350a1321624a604d8895a8b7fa74bb3053c77dc0f2f50
7
+ data.tar.gz: e5913793f559afcc10264f110376a0aede09ea7e5185adc4a06fbdd3aa1b70ef07a25bd091a1321a4aff4b58f54bfca3913e5527cc717344c3474eef94d81b65
@@ -1,12 +1,13 @@
1
- module Horse::FunnyTweet
2
- def self.next
3
- results = Horse::PendingTweets.all
1
+ module Horse
2
+ module FunnyTweet
3
+ def self.next
4
+ results = Horse::PendingTweets.all
4
5
 
5
- previously_made_tweets = Horse::PreviouslyMadeTweets.all
6
- if previously_made_tweets.count > 0
7
- results = results.reject { |x| previously_made_tweets.include? x }
6
+ previously_made_tweets = Horse::PreviouslyMadeTweets.all
7
+ if previously_made_tweets.count > 0
8
+ results = results.reject { |x| previously_made_tweets.include? x }
9
+ end
10
+ results.sample
8
11
  end
9
- results.sample
10
12
  end
11
13
  end
12
-
@@ -1,6 +1,8 @@
1
- module Horse::PendingTweets
2
- def self.all
3
- Horse.method_to_get_tweets.call.map { |x| x.strip }
1
+ module Horse
2
+ module PendingTweets
3
+ def self.all
4
+ Horse.method_to_get_tweets.call.map { |x| x.strip }
5
+ end
4
6
  end
5
7
  end
6
8
 
@@ -1,6 +1,8 @@
1
- module Horse::PreviouslyMadeTweets
2
- def self.all
3
- Twitter.client.user_timeline(Horse.twitter_username)
4
- .map { |x| x.text }
1
+ module Horse
2
+ module PreviouslyMadeTweets
3
+ def self.all
4
+ Twitter.client.user_timeline(Horse.twitter_username)
5
+ .map { |x| x.text }
6
+ end
5
7
  end
6
8
  end
@@ -1,6 +1,7 @@
1
- module Horse::Tweeter
2
- def self.tweet message
3
- Horse.twitter_client.update message
1
+ module Horse
2
+ module Tweeter
3
+ def self.tweet message
4
+ Horse.twitter_client.update message
5
+ end
4
6
  end
5
7
  end
6
-
@@ -1,3 +1,3 @@
1
1
  module Horse
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: horse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Cauthon