mjml-remote-rails 0.1.0 → 0.2.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: 54c05c64b5d9536df569f7040305cf75050d5a1d5651b3dadc325eec559c594a
4
- data.tar.gz: a3f27b935d46494e65358b21bfd845f9bc8dad1173cc93475a394b77445f48ae
3
+ metadata.gz: 1ef4fa361c4cd6cf639b1d939b331cf90a7a36fc61976bdc57fbbe597cad17e2
4
+ data.tar.gz: 4c4151825bb7ad3d39befc1b5b8e170b58f06ea30248ae60d292666476287c7b
5
5
  SHA512:
6
- metadata.gz: e37fc5cda6d5d4d130a2457047eba9ffed24b7c3de555fe14b24dc2fb8a8b1eca2d36a91dbdb3f4d09c0e43857527610cd57c61ac115278dc629d74dcb008240
7
- data.tar.gz: 231f742abf8a9457985b6e990440fa550724d6c6c28ba252a3412157f74ee595ac7221edca5a18fbd3c9f00e4829112c8c208d798541b647584d78796bd012ff
6
+ metadata.gz: 756efce5aa9d501b1f97ab1b40427303263833d9f69911502fdb9a407aa870441771857d095448d2f4abec2863ae9c0ae0ed31a9bdef5097ee254c00f435c24f
7
+ data.tar.gz: 8856f5db5572453618184e012517ccb6e98abaad16e38853927004421b2a054f49c0dbe7a652c6f72f5bee31f7ea6da4955e515d5e04d101b863f9f39a37d982
data/Gemfile.lock CHANGED
@@ -1,106 +1,123 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mjml-remote-rails (0.1.0)
5
- faraday (~> 0.12)
4
+ mjml-remote-rails (0.2.0)
5
+ faraday (>= 0.12, < 2.0)
6
6
  rails (~> 5.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.2.2)
12
- actionpack (= 5.2.2)
11
+ actioncable (5.2.6)
12
+ actionpack (= 5.2.6)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.2)
16
- actionpack (= 5.2.2)
17
- actionview (= 5.2.2)
18
- activejob (= 5.2.2)
15
+ actionmailer (5.2.6)
16
+ actionpack (= 5.2.6)
17
+ actionview (= 5.2.6)
18
+ activejob (= 5.2.6)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.2.2)
22
- actionview (= 5.2.2)
23
- activesupport (= 5.2.2)
24
- rack (~> 2.0)
21
+ actionpack (5.2.6)
22
+ actionview (= 5.2.6)
23
+ activesupport (= 5.2.6)
24
+ rack (~> 2.0, >= 2.0.8)
25
25
  rack-test (>= 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.2)
29
- activesupport (= 5.2.2)
28
+ actionview (5.2.6)
29
+ activesupport (= 5.2.6)
30
30
  builder (~> 3.1)
31
31
  erubi (~> 1.4)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.2)
35
- activesupport (= 5.2.2)
34
+ activejob (5.2.6)
35
+ activesupport (= 5.2.6)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.2.2)
38
- activesupport (= 5.2.2)
39
- activerecord (5.2.2)
40
- activemodel (= 5.2.2)
41
- activesupport (= 5.2.2)
37
+ activemodel (5.2.6)
38
+ activesupport (= 5.2.6)
39
+ activerecord (5.2.6)
40
+ activemodel (= 5.2.6)
41
+ activesupport (= 5.2.6)
42
42
  arel (>= 9.0)
43
- activestorage (5.2.2)
44
- actionpack (= 5.2.2)
45
- activerecord (= 5.2.2)
46
- marcel (~> 0.3.1)
47
- activesupport (5.2.2)
43
+ activestorage (5.2.6)
44
+ actionpack (= 5.2.6)
45
+ activerecord (= 5.2.6)
46
+ marcel (~> 1.0.0)
47
+ activesupport (5.2.6)
48
48
  concurrent-ruby (~> 1.0, >= 1.0.2)
49
49
  i18n (>= 0.7, < 2)
50
50
  minitest (~> 5.1)
51
51
  tzinfo (~> 1.1)
52
52
  arel (9.0.0)
53
- builder (3.2.3)
54
- concurrent-ruby (1.1.4)
55
- crass (1.0.4)
53
+ builder (3.2.4)
54
+ concurrent-ruby (1.1.9)
55
+ crass (1.0.6)
56
56
  diff-lcs (1.3)
57
- erubi (1.8.0)
58
- faraday (0.15.4)
57
+ erubi (1.10.0)
58
+ faraday (1.8.0)
59
+ faraday-em_http (~> 1.0)
60
+ faraday-em_synchrony (~> 1.0)
61
+ faraday-excon (~> 1.1)
62
+ faraday-httpclient (~> 1.0.1)
63
+ faraday-net_http (~> 1.0)
64
+ faraday-net_http_persistent (~> 1.1)
65
+ faraday-patron (~> 1.0)
66
+ faraday-rack (~> 1.0)
59
67
  multipart-post (>= 1.2, < 3)
60
- globalid (0.4.2)
61
- activesupport (>= 4.2.0)
62
- i18n (1.5.3)
68
+ ruby2_keywords (>= 0.0.4)
69
+ faraday-em_http (1.0.0)
70
+ faraday-em_synchrony (1.0.0)
71
+ faraday-excon (1.1.0)
72
+ faraday-httpclient (1.0.1)
73
+ faraday-net_http (1.0.1)
74
+ faraday-net_http_persistent (1.2.0)
75
+ faraday-patron (1.0.0)
76
+ faraday-rack (1.0.0)
77
+ globalid (0.5.2)
78
+ activesupport (>= 5.0)
79
+ i18n (1.8.10)
63
80
  concurrent-ruby (~> 1.0)
64
- loofah (2.2.3)
81
+ loofah (2.12.0)
65
82
  crass (~> 1.0.2)
66
83
  nokogiri (>= 1.5.9)
67
84
  mail (2.7.1)
68
85
  mini_mime (>= 0.1.1)
69
- marcel (0.3.3)
70
- mimemagic (~> 0.3.2)
71
- method_source (0.9.2)
72
- mimemagic (0.3.3)
73
- mini_mime (1.0.1)
74
- mini_portile2 (2.4.0)
75
- minitest (5.11.3)
76
- multipart-post (2.0.0)
77
- nio4r (2.3.1)
78
- nokogiri (1.10.1)
79
- mini_portile2 (~> 2.4.0)
80
- rack (2.0.6)
86
+ marcel (1.0.2)
87
+ method_source (1.0.0)
88
+ mini_mime (1.1.2)
89
+ mini_portile2 (2.6.1)
90
+ minitest (5.14.4)
91
+ multipart-post (2.1.1)
92
+ nio4r (2.5.8)
93
+ nokogiri (1.12.5)
94
+ mini_portile2 (~> 2.6.1)
95
+ racc (~> 1.4)
96
+ racc (1.6.0)
97
+ rack (2.2.3)
81
98
  rack-test (1.1.0)
82
99
  rack (>= 1.0, < 3)
83
- rails (5.2.2)
84
- actioncable (= 5.2.2)
85
- actionmailer (= 5.2.2)
86
- actionpack (= 5.2.2)
87
- actionview (= 5.2.2)
88
- activejob (= 5.2.2)
89
- activemodel (= 5.2.2)
90
- activerecord (= 5.2.2)
91
- activestorage (= 5.2.2)
92
- activesupport (= 5.2.2)
100
+ rails (5.2.6)
101
+ actioncable (= 5.2.6)
102
+ actionmailer (= 5.2.6)
103
+ actionpack (= 5.2.6)
104
+ actionview (= 5.2.6)
105
+ activejob (= 5.2.6)
106
+ activemodel (= 5.2.6)
107
+ activerecord (= 5.2.6)
108
+ activestorage (= 5.2.6)
109
+ activesupport (= 5.2.6)
93
110
  bundler (>= 1.3.0)
94
- railties (= 5.2.2)
111
+ railties (= 5.2.6)
95
112
  sprockets-rails (>= 2.0.0)
96
113
  rails-dom-testing (2.0.3)
97
114
  activesupport (>= 4.2.0)
98
115
  nokogiri (>= 1.6)
99
- rails-html-sanitizer (1.0.4)
100
- loofah (~> 2.2, >= 2.2.2)
101
- railties (5.2.2)
102
- actionpack (= 5.2.2)
103
- activesupport (= 5.2.2)
116
+ rails-html-sanitizer (1.4.2)
117
+ loofah (~> 2.3)
118
+ railties (5.2.6)
119
+ actionpack (= 5.2.6)
120
+ activesupport (= 5.2.6)
104
121
  method_source
105
122
  rake (>= 0.8.7)
106
123
  thor (>= 0.19.0, < 2.0)
@@ -118,20 +135,21 @@ GEM
118
135
  diff-lcs (>= 1.2.0, < 2.0)
119
136
  rspec-support (~> 3.7.0)
120
137
  rspec-support (3.7.1)
121
- sprockets (3.7.2)
138
+ ruby2_keywords (0.0.5)
139
+ sprockets (4.0.2)
122
140
  concurrent-ruby (~> 1.0)
123
141
  rack (> 1, < 3)
124
- sprockets-rails (3.2.1)
142
+ sprockets-rails (3.2.2)
125
143
  actionpack (>= 4.0)
126
144
  activesupport (>= 4.0)
127
145
  sprockets (>= 3.0.0)
128
- thor (0.20.3)
146
+ thor (1.1.0)
129
147
  thread_safe (0.3.6)
130
- tzinfo (1.2.5)
148
+ tzinfo (1.2.9)
131
149
  thread_safe (~> 0.1)
132
- websocket-driver (0.7.0)
150
+ websocket-driver (0.7.5)
133
151
  websocket-extensions (>= 0.1.0)
134
- websocket-extensions (0.1.3)
152
+ websocket-extensions (0.1.5)
135
153
 
136
154
  PLATFORMS
137
155
  ruby
@@ -143,4 +161,4 @@ DEPENDENCIES
143
161
  rspec (~> 3.0)
144
162
 
145
163
  BUNDLED WITH
146
- 1.17.1
164
+ 1.17.3
data/README.md CHANGED
@@ -51,19 +51,14 @@ anyway, it won't really make much of a difference to our users.
51
51
 
52
52
  ## Falling back to regular MJML in development
53
53
 
54
- `Gemfile`
54
+ `Gemfile`:
55
55
 
56
56
  ```ruby
57
- group :production do
58
- gem "mjml-remote-rails"
59
- end
60
- group :development do
61
- gem "mjml-rails", require: false
62
- gem "mjml-remote-rails", require: false
63
- end
57
+ gem "mjml-remote-rails", require: false
58
+ gem "mjml-rails", require: false
64
59
  ```
65
60
 
66
- `config/application.rb` at the top after requiring rails:
61
+ `config/application.rb` at the top after `Bundler.require`:
67
62
 
68
63
  ```ruby
69
64
  if ENV["MJML_ENDPOINT"]
@@ -73,10 +68,13 @@ else
73
68
  end
74
69
  ```
75
70
 
76
- `config/initializers/mjml.rb`
71
+ _(note - if you use dotenv, you might also want to add `Dotenv::Railtie.load` to
72
+ ensure that `MJML_ENDPOINT` is available)_
73
+
74
+ `config/initializers/mjml.rb`:
77
75
 
78
76
  ```ruby
79
- if Rails.env.production? || ENV["MJML_ENDPOINT"]
77
+ if ENV["MJML_ENDPOINT"]
80
78
  Mjml::Remote.setup do |config|
81
79
  ...
82
80
  end
@@ -1,5 +1,5 @@
1
1
  module Mjml
2
2
  module Remote
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
25
  spec.add_development_dependency "rspec", "~> 3.0"
26
26
 
27
- spec.add_dependency "faraday", "~> 0.12"
27
+ spec.add_dependency "faraday", ">= 0.12", "< 2.0"
28
28
  spec.add_dependency "rails", "~> 5.2"
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mjml-remote-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tapio Saarinen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-07 00:00:00.000000000 Z
11
+ date: 2021-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,16 +56,22 @@ dependencies:
56
56
  name: faraday
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.12'
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '2.0'
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - "~>"
69
+ - - ">="
67
70
  - !ruby/object:Gem::Version
68
71
  version: '0.12'
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '2.0'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: rails
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -122,8 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
128
  - !ruby/object:Gem::Version
123
129
  version: '0'
124
130
  requirements: []
125
- rubyforge_project:
126
- rubygems_version: 2.7.6
131
+ rubygems_version: 3.0.9
127
132
  signing_key:
128
133
  specification_version: 4
129
134
  summary: Use MJML with rails, rendered via a HTTP request