postmark_customized 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d16bec4401d3d12016f6b2ca8fbfed68d815dd940e68c3a9b55fa34960dbcf16
4
- data.tar.gz: d7f0580d88ce49d693b4d11433f113d4b4635c9767f808c199db1ae6628f6498
3
+ metadata.gz: d71f5cf4dabf5c75112aa2c7e90259eb38ea2a1671db856504c609afd4d5bd86
4
+ data.tar.gz: e0ef7fb656c066ad2b796eca9163906da482219e25a879ad56e30ef9b22581c9
5
5
  SHA512:
6
- metadata.gz: 9234e45648ce025f0f2c3e7cb08886744415c0b7a5a63982c190d38a26f912c7ffd6ecf4fdbf1a201194dbccb7d01b06c4d40ef097554ae21022fe81442f88bb
7
- data.tar.gz: e890ec5dad2a641e7ad19156f5e51b31d5c09178d2f2125019bd1459c69ca0b5ed2476471fe855196a869f8ee97a4f846b29cef9211899c92d284332ee608625
6
+ metadata.gz: 7f6840c519c42f0206c08f81e2592a9f5cd8325b3ddc407e6e289c4f9bdc6a83857676ba120833c92e4334b44e0efd7a0d8a4a6803b0fa5bc323cba174ddee83
7
+ data.tar.gz: 582270f23828f48c9eece5efebe76babf92ba54c2f37c442e6cb4e99381ed9697843e7500ece787cd517eb883bbb9abdef8c2d264966cdcaee684cd014512e12
data/README.md CHANGED
@@ -26,6 +26,9 @@ Or install it yourself as:
26
26
  Create an initializer with the following settings:
27
27
 
28
28
  ```ruby
29
+ # Require adapter here or Griddler will be unable to find adapter for some reason
30
+ require 'griddler/postmark_customized'
31
+
29
32
  Griddler.configure do |config|
30
33
  config.email_service = :postmark_customized
31
34
  end
@@ -68,7 +68,9 @@ module Griddler
68
68
  end
69
69
 
70
70
  def create_tempfile(attachment)
71
- filename = attachment[:Name].gsub(/\/|\\/, '_')[0..150]
71
+ filename = attachment[:Name].split('.')
72
+ filename[0] = filename[0].gsub(/\/|\\/, '_')[0..130]
73
+ filename[1] = ".#{filename[1]}" if filename[1]
72
74
  tempfile = Tempfile.new(filename, Dir::tmpdir, encoding: 'ascii-8bit')
73
75
  tempfile.write(content(attachment))
74
76
  tempfile.rewind
@@ -1,5 +1,5 @@
1
1
  module Griddler
2
2
  module PostmarkCustomized
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmark_customized
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladyslav Sydorenko