sexxy-emails 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 32babe01899c521ea899cc17a145e0eb8277832e
4
+ data.tar.gz: c9a69cbd23224d57ff8ad082c4b53f41df26a8be
5
+ SHA512:
6
+ metadata.gz: 52b7fb9fa0ea07c607473ae22c3fd60786435921a38742fa8c91c059dff7319a9a6f1d7e487cb046be11749264c9a23977546e6c595334f2667d5854c5919634
7
+ data.tar.gz: ba6a3f2b24d56196cab3f157a15aeb740086ae687dd9cf870c1c6a445c1762facb285f557dc01cd0cdd2c809ef87f2bc4b171cf2dfd4ef9646d31695089fe541
@@ -10,7 +10,11 @@ module SexxyEmails::ActionMailer
10
10
  def stylesheet_include_tag(css)
11
11
  path = css.match(/\.css/) ? css : "#{css}.css"
12
12
  content_tag(:style) do
13
- File.open(File.join(SexxyEmails.public_folder, 'stylesheets', path)).read
13
+ if defined? Rails and defined? Sprockets # Asset pipeline support
14
+ Rails.application.assets[path].body
15
+ else
16
+ File.open(File.join(SexxyEmails.public_folder, 'stylesheets', path)).read
17
+ end
14
18
  end
15
19
  end
16
20
  end
@@ -1,4 +1,3 @@
1
1
  require 'rubygems'
2
- require 'pry'
3
2
  require 'minitest/autorun'
4
3
  require 'mocha/setup'
metadata CHANGED
@@ -1,94 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sexxy-emails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Craig McNamara
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-11-10 00:00:00.000000000 Z
11
+ date: 2014-05-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: css_parser
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: nokogiri
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rdoc
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rake
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: minitest
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description: Adds inline css support to action mailer so you can use a stylesheet
@@ -105,6 +94,10 @@ files:
105
94
  - lib/sexxy_emails/railtie.rb
106
95
  - test/example_padrino_app/app.rb
107
96
  - test/example_padrino_app/views/mailers/basic.html.erb
97
+ - test/example_rails_app/Gemfile
98
+ - test/example_rails_app/Gemfile.lock
99
+ - test/example_rails_app/README.rdoc
100
+ - test/example_rails_app/Rakefile
108
101
  - test/example_rails_app/app/assets/images/rails.png
109
102
  - test/example_rails_app/app/assets/javascripts/application.js
110
103
  - test/example_rails_app/app/assets/stylesheets/application.css
@@ -113,6 +106,7 @@ files:
113
106
  - test/example_rails_app/app/mailers/test_mailer.rb
114
107
  - test/example_rails_app/app/views/layouts/application.html.erb
115
108
  - test/example_rails_app/app/views/test_mailer/basic_css.html.erb
109
+ - test/example_rails_app/config.ru
116
110
  - test/example_rails_app/config/application.rb
117
111
  - test/example_rails_app/config/boot.rb
118
112
  - test/example_rails_app/config/database.yml
@@ -129,12 +123,9 @@ files:
129
123
  - test/example_rails_app/config/initializers/wrap_parameters.rb
130
124
  - test/example_rails_app/config/locales/en.yml
131
125
  - test/example_rails_app/config/routes.rb
132
- - test/example_rails_app/config.ru
133
126
  - test/example_rails_app/db/development.sqlite3
134
127
  - test/example_rails_app/db/seeds.rb
135
128
  - test/example_rails_app/doc/README_FOR_APP
136
- - test/example_rails_app/Gemfile
137
- - test/example_rails_app/Gemfile.lock
138
129
  - test/example_rails_app/log/development.log
139
130
  - test/example_rails_app/public/404.html
140
131
  - test/example_rails_app/public/422.html
@@ -142,8 +133,6 @@ files:
142
133
  - test/example_rails_app/public/favicon.ico
143
134
  - test/example_rails_app/public/index.html
144
135
  - test/example_rails_app/public/robots.txt
145
- - test/example_rails_app/Rakefile
146
- - test/example_rails_app/README.rdoc
147
136
  - test/example_rails_app/script/rails
148
137
  - test/example_rails_app/test/performance/browsing_test.rb
149
138
  - test/example_rails_app/test/test_helper.rb
@@ -154,28 +143,28 @@ files:
154
143
  - test/test_helper.rb
155
144
  homepage: https://github.com/craigmcnamara/sexxy-emails
156
145
  licenses: []
146
+ metadata: {}
157
147
  post_install_message:
158
148
  rdoc_options: []
159
149
  require_paths:
160
150
  - lib
161
151
  required_ruby_version: !ruby/object:Gem::Requirement
162
- none: false
163
152
  requirements:
164
- - - ! '>='
153
+ - - ">="
165
154
  - !ruby/object:Gem::Version
166
155
  version: '0'
167
156
  required_rubygems_version: !ruby/object:Gem::Requirement
168
- none: false
169
157
  requirements:
170
- - - ! '>='
158
+ - - ">="
171
159
  - !ruby/object:Gem::Version
172
160
  version: '0'
173
161
  requirements: []
174
162
  rubyforge_project:
175
- rubygems_version: 1.8.19
163
+ rubygems_version: 2.2.2
176
164
  signing_key:
177
- specification_version: 3
165
+ specification_version: 4
178
166
  summary: Make your email templates sexxy. The name was inspired by General David H.
179
167
  Petraeus.
180
168
  test_files:
181
169
  - test/test_helper.rb
170
+ has_rdoc: false