rundown 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rundown.rb +2 -1
- data/lib/rundown/version.rb +1 -1
- data/spec/rundown_spec.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0998d436ea905e8e3bd054a56a94d9e458314597
|
|
4
|
+
data.tar.gz: 78f19c99cbd6f34a4677da36f75d2a3f8fe81473
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96b9619a4388e1046fb46398275032ad5f7285db909230d8c8c94bb99f13b8d0a420fae1960cb66fadceb6d771b311994b75d586ec242560fee9c17656e232db
|
|
7
|
+
data.tar.gz: 8723aa11a0a4e14893e211287d517ed4131ecb25c752826eb4c9ff3362808b18fd691979cc9ec529e2c37743c9a32ea8418e85e3be8c98c094a321c9decb2d18
|
data/lib/rundown.rb
CHANGED
|
@@ -6,8 +6,9 @@ require 'sentiment_parser'
|
|
|
6
6
|
|
|
7
7
|
require 'rundown/parser'
|
|
8
8
|
require 'rundown/processor'
|
|
9
|
-
require 'rundown/processors/email'
|
|
10
9
|
require 'rundown/processors/dates'
|
|
10
|
+
require 'rundown/processors/email'
|
|
11
|
+
require 'rundown/processors/hashtags'
|
|
11
12
|
require 'rundown/processors/links'
|
|
12
13
|
require 'rundown/processors/phone'
|
|
13
14
|
require 'rundown/processors/reading_time'
|
data/lib/rundown/version.rb
CHANGED
data/spec/rundown_spec.rb
CHANGED
|
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
|
3
3
|
describe Rundown do
|
|
4
4
|
subject {
|
|
5
5
|
"I'm sorry, I'm extremely busy right now. I just looked at the clock, and it's 12:54 AM, I've still got a lot of work to do. Don't worry about the event tomorrow, it's been moved ahead a week, the 28th of december. Remember though, you've got to call to get a ticket soon, their # is 1-212-323-1239. Their website says it costs $23 per person.
|
|
6
|
-
If you've got enough time, they have some more information on their website, http://theevent.com. @modsognir has tickets already.
|
|
6
|
+
If you've got enough time, they have some more information on their website, http://theevent.com. @modsognir has tickets already. #prepared
|
|
7
7
|
Regards,
|
|
8
8
|
David (david32@gmail.com)"
|
|
9
9
|
}
|
|
@@ -34,6 +34,10 @@ David (david32@gmail.com)"
|
|
|
34
34
|
it { expect(Rundown::Processors::Links.new(subject).process.first).to eql('http://theevent.com') }
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
+
describe 'hashtags' do
|
|
38
|
+
it { expect(Rundown::Processors::Hashtags.new(subject).process.first).to eql('#prepared') }
|
|
39
|
+
end
|
|
40
|
+
|
|
37
41
|
context 'basic string' do
|
|
38
42
|
subject { Rundown.parse("I'll see you on the 18th, give me a ring on 07912 345 678. - Jerertt, me@example.com") }
|
|
39
43
|
|