crosby 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/crosby/exporter.rb +5 -1
- data/lib/crosby/version.rb +1 -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: ff855aaed38fdea404558c000e53815fad971d44
|
4
|
+
data.tar.gz: 7923d35df65fc29141a92fb44065e62febb7b3c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dbee63b1bb0e6b7e56fbf003fc1e615f9c4fa903578588ac53e72958440b0ae5aa47b62222caaa082c3b1b01f86d918efb14aadfb2fce55133afaae8a7ec059
|
7
|
+
data.tar.gz: 0546c3d353a96d7f5fc0ce38ea99e113bae50e991c1394591da289c8ca3ad92ae6db4d00e1aaf2e4bd7e6027eb053fc5b59c8476f4c5c54a58ea42cb5eeb511c
|
data/README.md
CHANGED
@@ -137,6 +137,12 @@ describe ExampleMailer do
|
|
137
137
|
end
|
138
138
|
```
|
139
139
|
|
140
|
+
#### What about CI? Can I skip Crosby?
|
141
|
+
|
142
|
+
If you'd like to skip the creation of `.crosby` output files, simply set
|
143
|
+
`ENV["SKIP_CROSBY"]=true` and neither the export directory nor the output file
|
144
|
+
will be created.
|
145
|
+
|
140
146
|
### Generating a diff
|
141
147
|
|
142
148
|
`Crosby::Diff` is responsible for comparing files of the same uuid to eachother.
|
data/lib/crosby/exporter.rb
CHANGED
@@ -21,6 +21,10 @@ module Crosby
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def export
|
24
|
+
create_mail
|
25
|
+
|
26
|
+
return false if ENV["SKIP_CROSBY"]
|
27
|
+
|
24
28
|
ensure_path_exists
|
25
29
|
write
|
26
30
|
true
|
@@ -51,7 +55,7 @@ module Crosby
|
|
51
55
|
|
52
56
|
def commonize_text(str)
|
53
57
|
str
|
54
|
-
.gsub(/([^=])=\n/, '\1') # single
|
58
|
+
.gsub(/([^=])=\n/, '\1') # single quote required for encoding
|
55
59
|
.gsub(/=3D/, "=")
|
56
60
|
end
|
57
61
|
|
data/lib/crosby/version.rb
CHANGED