pakyow-mailer 1.0.0.rc5 → 1.0.0

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: bae7e4d2b4d1ebf0b76ccb411169ee188d3b79002f886c8d7f04f962768ae304
4
- data.tar.gz: def5a39586cfdb37809562afaae5305f83fe432568fa74c63d9a08ebc1384528
3
+ metadata.gz: 7d1b1ee378aa3baf868f06ed5dca88e288a3a8d6fc1c637eb1f101d802891048
4
+ data.tar.gz: 0d1310ec97aa8fc9d3b42bf05504d38043da3300419ec56ca61faeefef7102dd
5
5
  SHA512:
6
- metadata.gz: f4db4f6958bd95546e4d37cc757df055ae2eebc369861a73878ba6a54adafa201fc68d07eee1674fe4a0afedaa6b9ca45f57da06e8056a207eade4d79e111c99
7
- data.tar.gz: 82c0f0b8b7a5ce79da0f820e0ffaf38b892b00dbe3fd208f5fd55fab1af6f5e408a29e11b315d263d50870f084cfd87aae0f2bf28882e505fff0c0548209c4e9
6
+ metadata.gz: ca6c30535f359b03ef2da4b9b6680ae7b566bd4e31c2d473fb5f3ea15c36e318ad0918189a2d3bc3297218dc2743493b23d719f3798f569b471d5c9feeae7dc4
7
+ data.tar.gz: 5af0d2c56e7a1a32cb5defe9040815ac581ae749fca015bbeb3f6ea2fc24125e0835d61f3b285cc951f4954912b37e89fdac9bf341e44168dd77c52025ae226b
data/CHANGELOG.md CHANGED
@@ -1,33 +1,5 @@
1
- # 0.11.0
1
+ # UNRELEASED
2
2
 
3
- * Adds support to use mutators on a mailer view
4
- * Moves everything into the Pakyow namespace
3
+ # 1.0
5
4
 
6
- # 0.10.0 / 2015-10-19
7
-
8
- * Prevent styles from being mixed into plaintext emails
9
- * Ported all tests to rspec
10
-
11
- # 0.9.1 / 2014-12-06
12
-
13
- * No changes -- bumped version to be consistent
14
-
15
- # 0.9.0 / 2014-11-09
16
-
17
- * Removes support for Ruby versions < 2.0.0
18
-
19
- # 0.8.0 / 2014-03-02
20
-
21
- * Major rewrite, including premailer support
22
-
23
- # 0.7.2 / 2012-02-29
24
-
25
- * Set HTML part of email rather than body
26
-
27
- # 0.7.1 / 2012-01-08
28
-
29
- * No changes -- bumped version to be consistent
30
-
31
- # 0.7.0 / 2011-11-19
32
-
33
- * Initial gem release
5
+ * Hello, Web
@@ -3,9 +3,9 @@
3
3
  require "pakyow/support/extension"
4
4
 
5
5
  module Pakyow
6
- module Mailer
7
- module Behavior
8
- module Config
6
+ class Application
7
+ module Config
8
+ module Mailer
9
9
  extend Support::Extension
10
10
 
11
11
  apply_extension do
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Pakyow
4
+ class Application
5
+ module Helpers
6
+ module Mailer
7
+ def mailer(path = nil)
8
+ connection = @connection.dup
9
+ mailer = app.mailer(path, connection.values)
10
+
11
+ if block_given?
12
+ context = dup
13
+ context.instance_variable_set(:@connection, connection)
14
+ context.instance_exec(mailer, &Proc.new)
15
+ end
16
+
17
+ mailer
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -2,17 +2,17 @@
2
2
 
3
3
  require "pakyow/framework"
4
4
 
5
- require "pakyow/mailer/behavior/config"
6
- require "pakyow/mailer/helpers"
5
+ require "pakyow/application/config/mailer"
6
+ require "pakyow/application/helpers/mailer"
7
7
 
8
8
  module Pakyow
9
9
  module Mailer
10
10
  class Framework < Pakyow::Framework(:mailer)
11
11
  def boot
12
12
  object.class_eval do
13
- include Behavior::Config
13
+ include Pakyow::Application::Config::Mailer
14
14
 
15
- register_helper :active, Helpers
15
+ register_helper :active, Pakyow::Application::Helpers::Mailer
16
16
 
17
17
  mail_renderer = Class.new(isolated(:Renderer)) do
18
18
  # Override so we don't trigger any hooks.
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pakyow-mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Powell
8
- - Bret Young
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2019-07-15 00:00:00.000000000 Z
11
+ date: 2019-07-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: pakyow-assets
@@ -17,70 +16,70 @@ dependencies:
17
16
  requirements:
18
17
  - - '='
19
18
  - !ruby/object:Gem::Version
20
- version: 1.0.0.rc5
19
+ version: 1.0.0
21
20
  type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
24
  - - '='
26
25
  - !ruby/object:Gem::Version
27
- version: 1.0.0.rc5
26
+ version: 1.0.0
28
27
  - !ruby/object:Gem::Dependency
29
28
  name: pakyow-core
30
29
  requirement: !ruby/object:Gem::Requirement
31
30
  requirements:
32
31
  - - '='
33
32
  - !ruby/object:Gem::Version
34
- version: 1.0.0.rc5
33
+ version: 1.0.0
35
34
  type: :runtime
36
35
  prerelease: false
37
36
  version_requirements: !ruby/object:Gem::Requirement
38
37
  requirements:
39
38
  - - '='
40
39
  - !ruby/object:Gem::Version
41
- version: 1.0.0.rc5
40
+ version: 1.0.0
42
41
  - !ruby/object:Gem::Dependency
43
42
  name: pakyow-presenter
44
43
  requirement: !ruby/object:Gem::Requirement
45
44
  requirements:
46
45
  - - '='
47
46
  - !ruby/object:Gem::Version
48
- version: 1.0.0.rc5
47
+ version: 1.0.0
49
48
  type: :runtime
50
49
  prerelease: false
51
50
  version_requirements: !ruby/object:Gem::Requirement
52
51
  requirements:
53
52
  - - '='
54
53
  - !ruby/object:Gem::Version
55
- version: 1.0.0.rc5
54
+ version: 1.0.0
56
55
  - !ruby/object:Gem::Dependency
57
56
  name: pakyow-routing
58
57
  requirement: !ruby/object:Gem::Requirement
59
58
  requirements:
60
59
  - - '='
61
60
  - !ruby/object:Gem::Version
62
- version: 1.0.0.rc5
61
+ version: 1.0.0
63
62
  type: :runtime
64
63
  prerelease: false
65
64
  version_requirements: !ruby/object:Gem::Requirement
66
65
  requirements:
67
66
  - - '='
68
67
  - !ruby/object:Gem::Version
69
- version: 1.0.0.rc5
68
+ version: 1.0.0
70
69
  - !ruby/object:Gem::Dependency
71
70
  name: pakyow-support
72
71
  requirement: !ruby/object:Gem::Requirement
73
72
  requirements:
74
73
  - - '='
75
74
  - !ruby/object:Gem::Version
76
- version: 1.0.0.rc5
75
+ version: 1.0.0
77
76
  type: :runtime
78
77
  prerelease: false
79
78
  version_requirements: !ruby/object:Gem::Requirement
80
79
  requirements:
81
80
  - - '='
82
81
  - !ruby/object:Gem::Version
83
- version: 1.0.0.rc5
82
+ version: 1.0.0
84
83
  - !ruby/object:Gem::Dependency
85
84
  name: css_parser
86
85
  requirement: !ruby/object:Gem::Requirement
@@ -138,7 +137,7 @@ dependencies:
138
137
  - !ruby/object:Gem::Version
139
138
  version: '2.15'
140
139
  description: Mailers for Pakyow
141
- email: bryan@metabahn.com
140
+ email: bryan@bryanp.org
142
141
  executables: []
143
142
  extensions: []
144
143
  extra_rdoc_files: []
@@ -146,14 +145,14 @@ files:
146
145
  - CHANGELOG.md
147
146
  - LICENSE
148
147
  - README.md
148
+ - lib/pakyow/application/config/mailer.rb
149
+ - lib/pakyow/application/helpers/mailer.rb
149
150
  - lib/pakyow/mailer.rb
150
- - lib/pakyow/mailer/behavior/config.rb
151
151
  - lib/pakyow/mailer/framework.rb
152
- - lib/pakyow/mailer/helpers.rb
153
152
  - lib/pakyow/mailer/mailer.rb
154
153
  - lib/pakyow/mailer/plaintext.rb
155
154
  - lib/pakyow/mailer/style_inliner.rb
156
- homepage: https://pakyow.org
155
+ homepage: https://pakyow.com
157
156
  licenses:
158
157
  - LGPL-3.0
159
158
  metadata: {}
@@ -168,9 +167,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
168
167
  version: 2.5.0
169
168
  required_rubygems_version: !ruby/object:Gem::Requirement
170
169
  requirements:
171
- - - ">"
170
+ - - ">="
172
171
  - !ruby/object:Gem::Version
173
- version: 1.3.1
172
+ version: '0'
174
173
  requirements: []
175
174
  rubygems_version: 3.0.3
176
175
  signing_key:
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Pakyow
4
- module Mailer
5
- module Helpers
6
- def mailer(path = nil)
7
- connection = @connection.dup
8
- mailer = app.mailer(path, connection.values)
9
-
10
- if block_given?
11
- context = dup
12
- context.instance_variable_set(:@connection, connection)
13
- context.instance_exec(mailer, &Proc.new)
14
- end
15
-
16
- mailer
17
- end
18
- end
19
- end
20
- end