rails_email_preview 0.2.12 → 0.2.13

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
  SHA1:
3
- metadata.gz: 528049f3b44f95cb5ce989849643ea8cd8dd4420
4
- data.tar.gz: 9706cd13d2749ccc82a80cd8b43864867a6d6598
3
+ metadata.gz: b44a4b280e5291dc798bfeb120c17818d0dd2e37
4
+ data.tar.gz: 0f855925b97c9f6be33ddb0d25ca2953b1ca1793
5
5
  SHA512:
6
- metadata.gz: cce764481f48980482629a5e84feb9f13c5b95472f2a65f2b06a028a67754fa6d302c6fb276fce1e10b69e79deca1a0e72cfcff50dbd2fd0b4ac0d5ed04d4415
7
- data.tar.gz: 1699e0d59af2b6af7a67d4bfc2197ce93a7c206307e5459c1ab28ec776fb5a83b7da1f79df8146a97279373cc4b2f31a47e47adf0f888c5470ea9a793725650b
6
+ metadata.gz: e0fa37f8f6df335c3da58b8e1c5e503f07ba4ceb4ca3d99f92805937954eea5d0af0d9ab7ec42aa0622380a60e0ce2406eec687d9051d468bef229c6b4265763
7
+ data.tar.gz: d1b2994ead7dc9bc522a0b1a36e4f0a6c639d280117afb3ed1131efb08f29f8e40d64e88a2ac0974838a308296bfd7cdf4c1eeda0bb6929fe444d3534e391feb
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Rails Email Preview [![Build Status](https://travis-ci.org/glebm/rails_email_preview.png)](https://travis-ci.org/glebm/rails_email_preview) [![Gem Version](https://badge.fury.io/rb/rails_email_preview.png)](http://badge.fury.io/rb/rails_email_preview)
1
+ Rails Email Preview [![Build Status](https://travis-ci.org/glebm/rails_email_preview.png)](https://travis-ci.org/glebm/rails_email_preview) [![Gem Version](https://badge.fury.io/rb/rails_email_preview.png)](http://badge.fury.io/rb/rails_email_preview) [![Code Climate](https://codeclimate.com/github/glebm/rails_email_preview.png)](https://codeclimate.com/github/glebm/rails_email_preview)
2
2
  ================================
3
3
 
4
4
  A Rails Engine to preview plain text and html email in your browser. Compatible with Rails 3 and 4.
@@ -199,3 +199,7 @@ This project rocks and uses MIT-LICENSE.
199
199
  [rep-nav-screenshot]: https://raw.github.com/glebm/rails_email_preview/master/doc/img/rep-nav.png "Email List Screenshot"
200
200
  [rep-show-screenshot]: https://raw.github.com/glebm/rails_email_preview/master/doc/img/rep-show.png "Show Email Screenshot"
201
201
  [rep-show-default-screenshot]: https://raw.github.com/glebm/rails_email_preview/master/doc/img/rep-show-default.png "Show Email Screenshot (default styles)"
202
+
203
+
204
+ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/glebm/rails_email_preview/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
205
+
@@ -19,7 +19,7 @@ module RailsEmailPreview
19
19
  snippet_id = "email-#{cms_email_id}"
20
20
  return '(no subject)' unless Cms::Snippet.where(identifier: snippet_id).exists?
21
21
  [I18n.locale, I18n.default_locale].compact.each do |locale|
22
- site = Cms::Site.find_by_locale(locale)
22
+ site = Cms::Site.find_by_locale(locale.to_s)
23
23
  snippet = site.snippets.find_by_identifier(snippet_id)
24
24
  next unless snippet.try(:content).present?
25
25
 
@@ -45,11 +45,11 @@ module RailsEmailPreview
45
45
  # Will also render an "✎ Edit text" link if used from
46
46
  def cms_email_snippet(snippet_id = self.cms_email_id)
47
47
  snippet_id = "email-#{snippet_id}"
48
- site = Cms::Site.find_by_locale(I18n.locale)
48
+ site = Cms::Site.find_by_locale(I18n.locale.to_s)
49
49
  if Cms::Snippet.where(identifier: snippet_id).exists?
50
50
  # Fallback default locale: (# prefill)
51
51
  unless (content = cms_snippet_content(snippet_id, site).presence)
52
- default_site = Cms::Site.find_by_locale(I18n.default_locale)
52
+ default_site = Cms::Site.find_by_locale(I18n.default_locale.to_s)
53
53
  fallback_content = cms_snippet_content(snippet_id, default_site).presence
54
54
  end
55
55
  result = (content || fallback_content).to_s
@@ -1,3 +1,3 @@
1
1
  module RailsEmailPreview
2
- VERSION = '0.2.12'
2
+ VERSION = '0.2.13'
3
3
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_email_preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Mazovetskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-26 00:00:00.000000000 Z
11
+ date: 2013-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: activesupport
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '3.2'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '3.2'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rails
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -38,20 +24,6 @@ dependencies:
38
24
  - - '>='
39
25
  - !ruby/object:Gem::Version
40
26
  version: '3.2'
41
- - !ruby/object:Gem::Dependency
42
- name: slim
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: slim-rails
57
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,20 +38,6 @@ dependencies:
66
38
  - - '>='
67
39
  - !ruby/object:Gem::Version
68
40
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: sass
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
41
  - !ruby/object:Gem::Dependency
84
42
  name: sass-rails
85
43
  requirement: !ruby/object:Gem::Requirement
@@ -94,20 +52,6 @@ dependencies:
94
52
  - - '>='
95
53
  - !ruby/object:Gem::Version
96
54
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: thor
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
55
  - !ruby/object:Gem::Dependency
112
56
  name: turbolinks
113
57
  requirement: !ruby/object:Gem::Requirement
@@ -197,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
141
  version: '0'
198
142
  requirements: []
199
143
  rubyforge_project:
200
- rubygems_version: 2.0.6
144
+ rubygems_version: 2.1.10
201
145
  signing_key:
202
146
  specification_version: 4
203
147
  summary: Preview emails in browser (rails engine)