merimee 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +17 -8
- data/lib/merimee.rb +1 -1
- data/lib/merimee/version.rb +1 -1
- metadata +5 -5
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
> Pour parler sans ambiguïté, ce dîner à Sainte-Adresse, près du Havre, malgré les effluves embaumés de la mer, malgré les vins de très bons crus, les cuisseaux de veau et les cuissots de chevreuil prodigués par l’amphitryon, fut un vrai guêpier.
|
4
4
|
|
5
|
-
_merimee_ adds some
|
5
|
+
_merimee_ adds some rspec macros (Test::Case to come ... maybe) to add automatic spell checking to your tests.
|
6
6
|
|
7
7
|
## Install
|
8
8
|
|
@@ -13,18 +13,26 @@ gem 'merimee'
|
|
13
13
|
## Configuration
|
14
14
|
|
15
15
|
The config object has the following methods/arguments :
|
16
|
-
|
16
|
+
|
17
|
+
```ruby
|
17
18
|
Merime::Checker.new do |config|
|
18
|
-
|
19
|
+
# Ignore OHAI spelling errors. This is case sensitive for now, feel free to tell me if you feel it shouldn't be the case.
|
20
|
+
config.dict_add 'OHAI'
|
19
21
|
config.dict_add %w{Trealiu Chtulu} # Ignore other words, method takes any enumerable too !
|
20
|
-
|
21
|
-
|
22
|
+
|
23
|
+
# Ignore all words contained in blah.txt, one per line
|
24
|
+
config.dict_add_file 'blah.txt'
|
25
|
+
|
26
|
+
# English by default, but AfterTheDeadline also supports French(fr), Spanish(es), German(de), Portuguese(pt)
|
27
|
+
config.language = 'en'
|
28
|
+
|
22
29
|
# AtD says that you should provide a key, unique per use. You don't need to register/get it, but
|
23
30
|
# you can't have more than one request on their servers at the same time with the same key.
|
24
31
|
# Since merimee is intended for test mode, it should be fine.
|
25
|
-
config.api_key = 'blah'
|
32
|
+
config.api_key = 'blah'
|
26
33
|
|
27
|
-
|
34
|
+
# You can ignore some types of errors.
|
35
|
+
config.ignore_types << 'spelling'
|
28
36
|
end
|
29
37
|
```
|
30
38
|
|
@@ -68,7 +76,8 @@ end
|
|
68
76
|
#### Configuration with RSpec
|
69
77
|
You can still modify your config within RSpec :
|
70
78
|
|
71
|
-
```ruby
|
79
|
+
```ruby
|
80
|
+
#In your spec_helper.rb
|
72
81
|
require 'merimee'
|
73
82
|
|
74
83
|
RSpec.configure do |config|
|
data/lib/merimee.rb
CHANGED
@@ -12,7 +12,7 @@ if defined?(RSpec) && defined?(RSpec::Matchers)
|
|
12
12
|
|
13
13
|
RSpec.configure do |config|
|
14
14
|
config.merimee_config = Merimee::Config.new
|
15
|
-
config.extend Merimee::Rspec::ViewCheckerHelper
|
15
|
+
config.extend Merimee::Rspec::ViewCheckerHelper
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
data/lib/merimee/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merimee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: crack
|
16
|
-
requirement: &
|
16
|
+
requirement: &70305273190660 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70305273190660
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: minitest
|
27
|
-
requirement: &
|
27
|
+
requirement: &70305273190080 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70305273190080
|
36
36
|
description: Automatically submit your rendered views to AfterTheDeadline free spell
|
37
37
|
check service, and make sure you don't have any errors in your views !
|
38
38
|
email:
|