crosby 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b6644351cbd94255b116edf49999a4aa7f8a202
4
- data.tar.gz: d206eadba0406bd3d0df0f7c07f7d819ec6eb38a
3
+ metadata.gz: ff855aaed38fdea404558c000e53815fad971d44
4
+ data.tar.gz: 7923d35df65fc29141a92fb44065e62febb7b3c8
5
5
  SHA512:
6
- metadata.gz: 4a8bbab03e19b11417d517d44b76d7fa59c7a09d4d70fe35dc9ebb660538842d0ad8d431589b7296e0c431fb4575f174e314e16ffd46a41d91c82c393d3a6b90
7
- data.tar.gz: 44460e785fa692c1249d98df48c912bd50a8b55f4fe6773d00c0dba1ddff5aeed78545110ffacf60c97af8995c47bd659d275010c34d847b4a2bd58ee7092e5d
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.
@@ -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 quotes required for encoding
58
+ .gsub(/([^=])=\n/, '\1') # single quote required for encoding
55
59
  .gsub(/=3D/, "=")
56
60
  end
57
61
 
@@ -1,3 +1,3 @@
1
1
  module Crosby
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crosby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Matthews