pedantic 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pedantic/emphasis.rb +2 -1
- data/lib/pedantic/unimportant.rb +1 -1
- data/spec/pedantic/emphasis_spec.rb +4 -0
- metadata +34 -17
data/lib/pedantic/emphasis.rb
CHANGED
@@ -8,7 +8,8 @@ module Pedantic::Emphasis
|
|
8
8
|
/\bso+\b/ => 'so',
|
9
9
|
/\bre+a+ll+y\b/i => 'really',
|
10
10
|
/\boka+y\b/i => 'okay',
|
11
|
-
/\boo+h/i
|
11
|
+
/\boo+h\b/i => 'ooh',
|
12
|
+
/\bthe shit\b/i => 'fantastic'
|
12
13
|
}.each { |pattern, replacement|
|
13
14
|
string.gsub!(pattern, replacement)
|
14
15
|
}
|
data/lib/pedantic/unimportant.rb
CHANGED
@@ -6,7 +6,7 @@ module Pedantic::Unimportant
|
|
6
6
|
def remove_unimportant_words(string)
|
7
7
|
%w(
|
8
8
|
a again all along also an and are as at but by came can cant couldnt did
|
9
|
-
didn didnt do
|
9
|
+
didn didnt do doesnt dont ever first from have her here him how i if in
|
10
10
|
into is isnt it itll just last least like most my new no not now of on or
|
11
11
|
should sinc so some th than this that the their then those to told too
|
12
12
|
true try until url us were when whether while with within yes you youll
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pedantic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Pat Allan
|
@@ -9,39 +14,49 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-03-18 00:00:00 +11:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: stemmer
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 0
|
30
|
+
- 1
|
23
31
|
version: 1.0.1
|
24
|
-
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
25
34
|
- !ruby/object:Gem::Dependency
|
26
35
|
name: rspec
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
requirements:
|
31
39
|
- - ">="
|
32
40
|
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 1
|
43
|
+
- 2
|
44
|
+
- 9
|
33
45
|
version: 1.2.9
|
34
|
-
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id002
|
35
48
|
- !ruby/object:Gem::Dependency
|
36
49
|
name: yard
|
37
|
-
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
52
|
requirements:
|
41
53
|
- - ">="
|
42
54
|
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 0
|
43
57
|
version: "0"
|
44
|
-
|
58
|
+
type: :development
|
59
|
+
version_requirements: *id003
|
45
60
|
description: Pares text down to the words that matter
|
46
61
|
email: pat@freelancing-gods.com
|
47
62
|
executables: []
|
@@ -76,18 +91,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
91
|
requirements:
|
77
92
|
- - ">="
|
78
93
|
- !ruby/object:Gem::Version
|
94
|
+
segments:
|
95
|
+
- 0
|
79
96
|
version: "0"
|
80
|
-
version:
|
81
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
98
|
requirements:
|
83
99
|
- - ">="
|
84
100
|
- !ruby/object:Gem::Version
|
101
|
+
segments:
|
102
|
+
- 0
|
85
103
|
version: "0"
|
86
|
-
version:
|
87
104
|
requirements: []
|
88
105
|
|
89
106
|
rubyforge_project:
|
90
|
-
rubygems_version: 1.3.
|
107
|
+
rubygems_version: 1.3.6
|
91
108
|
signing_key:
|
92
109
|
specification_version: 3
|
93
110
|
summary: Text Cleaner
|