ebooks 0.2.0 → 0.2.1

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: 1c27c66d737ceb553a92fdf5ff43988e814d9e6c
4
- data.tar.gz: d3541f051138de3992c20fbb59ab36629954a691
3
+ metadata.gz: 32d10b9a65e7f8dab38c0f8e27c4b1b3cc4466c5
4
+ data.tar.gz: e89296e9ddc88012c813b3a96ae2ba6dcec168a9
5
5
  SHA512:
6
- metadata.gz: bda3e52be0ba90d94c56c94c435b2a162e503df1fa3760707189fbf32eef15d3859665e32ecdf7f48854475c06ee45b2d92d8e9bb62189f9319f85b5c2867cb1
7
- data.tar.gz: 1f9f2b58633df4502436a253cf79c7ae39c32c0b48ca3c9ad90f99829c5aa017ace407c36bd0358fbd3479da57e1f6555ba216bbdf563b91e640413f54a7a786
6
+ metadata.gz: 87d25aa4645a310830b1f0d9c647c36677f43be280003e671b5aa6f687440f678b6b77863a6972eb828fe92d37e5aea80f369558ac2e279420e0de96666f344a
7
+ data.tar.gz: 5cbea5200d7dd45bdbe36a52198987e74884a67f5d1746e5468708801d52f8e4dea6df2e44ca98abdc7ff442d23b517770dfd7fd4d21a58f534821f94633bd18
@@ -1,3 +1,11 @@
1
- ## HEAD
1
+ ## 0.2.1 / 2015-01-24
2
+
3
+ * Remove usernames and manual RTs (#4)
4
+
5
+ ## 0.2.0 / 2014-11-23
2
6
 
3
7
  * Fix Twitter v5 Integration (#3)
8
+
9
+ ## 0.1.0 / 2013-09-25
10
+
11
+ * Birthday!
@@ -19,8 +19,11 @@ module Ebooks
19
19
  # Create a new clean file of text that acts as the seed for your Markov chains
20
20
  File.open(@corpus_path, 'w') do |file|
21
21
  csv_text.reverse_each do |row|
22
- # Strip links and new lines
23
- tweet_text = row[5].gsub(/(?:f|ht)tps?:\/[^\s]+/, '').gsub(/\n/,' ')
22
+ tweet_text = row[5]
23
+ .gsub(/(?:f|ht)tps?:\/[^\s]+/, '') # Strip links
24
+ .gsub(/\n/,' ') # Strip new lines
25
+ .gsub(/@[a-z0-9_]+/i, '') # Strip usernames
26
+ .gsub(/[R|M]T/, '') # Strip RTs
24
27
  # Save the text
25
28
  file.write("#{tweet_text}\n")
26
29
  end
@@ -1,3 +1,3 @@
1
1
  module Ebooks
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parker Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-23 00:00:00.000000000 Z
11
+ date: 2015-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thread