roadie 2.2.0 → 2.3.0.pre1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -7,5 +7,4 @@ pkg
7
7
  .idea/*
8
8
  .rvmrc
9
9
 
10
- gemfiles/*.lock
11
10
  doc
data/.travis.yml CHANGED
@@ -1,5 +1,11 @@
1
+ bundler_args: --without guard
2
+
1
3
  rvm:
2
4
  - 1.8.7
3
5
  - 1.9.2
6
+ - 1.9.3
4
7
 
5
- script: "bundle exec rspec spec"
8
+ gemfile:
9
+ - gemfiles/rails-3.0.gemfile
10
+ - gemfiles/rails-3.1.gemfile
11
+ - gemfiles/rails-3.2.gemfile
data/Appraisals ADDED
@@ -0,0 +1,11 @@
1
+ appraise 'rails-3.0' do
2
+ gem 'rails', '~> 3.0.0'
3
+ end
4
+
5
+ appraise 'rails-3.1' do
6
+ gem 'rails', '~> 3.1.0'
7
+ end
8
+
9
+ appraise 'rails-3.2' do
10
+ gem 'rails', '~> 3.2.0.rc1'
11
+ end
data/Changelog.md CHANGED
@@ -1,9 +1,20 @@
1
1
  ### dev
2
2
 
3
- [full changelog](https://github.com/Mange/roadie/compare/v2.2.0...master)
3
+ [full changelog](https://github.com/Mange/roadie/compare/v2.3.0.pre1...master)
4
4
 
5
5
  * Nothing yet
6
6
 
7
+ ### 2.3.0.pre1
8
+
9
+ [full changelog](https://github.com/Mange/roadie/compare/v2.2.0...v2.3.0.pre1)
10
+
11
+ * Enhancements:
12
+ * Support Rails 3.2.pre1 - [Morton Jonuschat (yabawock)](https://github.com/yabawock)
13
+ * Sped up the Travis builds
14
+ * Official support for Rails 3.0 again
15
+ * Dependencies allow 3.0
16
+ * Travis builds 3.0 among the others
17
+
7
18
  ### 2.2.0
8
19
 
9
20
  [full changelog](https://github.com/Mange/roadie/compare/v2.1.0...v2.2.0)
data/Gemfile CHANGED
@@ -1,2 +1,11 @@
1
1
  source :rubygems
2
2
  gemspec
3
+
4
+ group :guard do
5
+ gem 'guard'
6
+ gem 'guard-rspec'
7
+
8
+ # Guard for Mac
9
+ gem 'rb-fsevent'
10
+ gem 'growl'
11
+ end
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roadie (2.2.0)
5
- actionmailer (~> 3.1.0)
4
+ roadie (2.3.0.pre1)
5
+ actionmailer (> 3.0.0, < 3.3.0)
6
6
  css_parser
7
7
  nokogiri (>= 1.4.4)
8
8
  sprockets
@@ -39,29 +39,34 @@ GEM
39
39
  activesupport (3.1.3)
40
40
  multi_json (~> 1.0)
41
41
  addressable (2.2.6)
42
+ appraisal (0.4.0)
43
+ bundler
44
+ rake
42
45
  arel (2.2.1)
43
46
  builder (3.0.0)
44
47
  css_parser (1.2.5)
45
48
  addressable
46
49
  diff-lcs (1.1.3)
47
50
  erubis (2.7.0)
51
+ ffi (1.0.11)
48
52
  growl (1.0.3)
49
- guard (0.8.8)
53
+ guard (0.10.0)
54
+ ffi (>= 0.5.0)
50
55
  thor (~> 0.14.6)
51
- guard-rspec (0.5.8)
52
- guard (>= 0.8.4)
56
+ guard-rspec (0.6.0)
57
+ guard (>= 0.10.0)
53
58
  hike (1.2.1)
54
59
  i18n (0.6.0)
55
- json (1.6.1)
60
+ json (1.6.4)
56
61
  mail (2.3.0)
57
62
  i18n (>= 0.4.0)
58
63
  mime-types (~> 1.16)
59
64
  treetop (~> 1.4.8)
60
65
  mime-types (1.17.2)
61
- multi_json (1.0.3)
66
+ multi_json (1.0.4)
62
67
  nokogiri (1.5.0)
63
68
  polyglot (0.3.3)
64
- rack (1.3.5)
69
+ rack (1.3.6)
65
70
  rack-cache (1.1)
66
71
  rack (>= 0.4)
67
72
  rack-mount (0.8.3)
@@ -87,7 +92,7 @@ GEM
87
92
  thor (~> 0.14.6)
88
93
  rake (0.9.2.2)
89
94
  rb-fsevent (0.4.3.1)
90
- rdoc (3.11)
95
+ rdoc (3.12)
91
96
  json (~> 1.4)
92
97
  rspec (2.7.0)
93
98
  rspec-core (~> 2.7.0)
@@ -105,7 +110,7 @@ GEM
105
110
  sprockets (2.0.3)
106
111
  hike (~> 1.2)
107
112
  rack (~> 1.0)
108
- tilt (!= 1.3.0, ~> 1.1)
113
+ tilt (~> 1.1, != 1.3.0)
109
114
  thor (0.14.6)
110
115
  tilt (1.3.3)
111
116
  treetop (1.4.10)
@@ -117,10 +122,11 @@ PLATFORMS
117
122
  ruby
118
123
 
119
124
  DEPENDENCIES
125
+ appraisal
120
126
  growl
121
127
  guard
122
128
  guard-rspec
123
129
  rails
124
130
  rb-fsevent
125
131
  roadie!
126
- rspec-rails (>= 2.0.0)
132
+ rspec-rails
data/README.md CHANGED
@@ -5,8 +5,6 @@ Roadie
5
5
 
6
6
  Roadie tries to make sending HTML emails a little less painful in Rails 3 by inlining stylesheets and rewrite relative URLs for you.
7
7
 
8
- You are currently looking at the README for version 2.0 and later which requires Rails 3.1. This gem can be used with Rails 3.0 by staying with the 1.x series.
9
-
10
8
  If you want to have this in Rails 2, please see [MailStyle](https://www.github.com/purify/mail_style).
11
9
 
12
10
  How does it work?
@@ -25,12 +23,18 @@ Build Status
25
23
 
26
24
  [![Build history and status](https://secure.travis-ci.org/Mange/roadie.png)](http://travis-ci.org/#!/Mange/roadie)
27
25
 
28
- Tested with [Travis CI](http://travis-ci.org) using the [following combinations](http://travis-ci.org/#!/Mange/roadie):
26
+ Tested with [Travis CI](http://travis-ci.org) using the [all combinations of](http://travis-ci.org/#!/Mange/roadie):
29
27
 
30
- * Ruby 1.8.7 with Rails 3.1.x
31
- * Ruby 1.9.2 with Rails 3.1.x
28
+ * Ruby:
29
+ * 1.8.7
30
+ * 1.9.2
31
+ * 1.9.3
32
+ * Rails
33
+ * 3.0
34
+ * 3.1
35
+ * 3.2
32
36
 
33
- Let me know if you want any other combination supported officially
37
+ Let me know if you want any other combination supported officially.
34
38
 
35
39
  ### Versioning ###
36
40
 
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
- require 'rubygems'
3
- require 'bundler'
2
+ require 'bundler/setup'
3
+ require 'appraisal'
4
4
 
5
5
  Bundler::GemHelper.install_tasks
6
6
 
@@ -22,3 +22,8 @@ end
22
22
 
23
23
  desc "Default: Run specs"
24
24
  task :default => :spec
25
+
26
+ namespace :spec do
27
+ desc 'Run specs against all supported versions of Rails'
28
+ task :all => ["appraisal:install", "appraisal", "spec"]
29
+ end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source :rubygems
4
+
5
+ gem "rails", "~> 3.0.0"
6
+
7
+ gemspec :path=>"../"
@@ -0,0 +1,115 @@
1
+ PATH
2
+ remote: /Users/mange/Projects/roadie
3
+ specs:
4
+ roadie (2.3.0.pre1)
5
+ actionmailer (> 3.0.0, < 3.3.0)
6
+ css_parser
7
+ nokogiri (>= 1.4.4)
8
+ sprockets
9
+
10
+ GEM
11
+ remote: http://rubygems.org/
12
+ specs:
13
+ abstract (1.0.0)
14
+ actionmailer (3.0.11)
15
+ actionpack (= 3.0.11)
16
+ mail (~> 2.2.19)
17
+ actionpack (3.0.11)
18
+ activemodel (= 3.0.11)
19
+ activesupport (= 3.0.11)
20
+ builder (~> 2.1.2)
21
+ erubis (~> 2.6.6)
22
+ i18n (~> 0.5.0)
23
+ rack (~> 1.2.1)
24
+ rack-mount (~> 0.6.14)
25
+ rack-test (~> 0.5.7)
26
+ tzinfo (~> 0.3.23)
27
+ activemodel (3.0.11)
28
+ activesupport (= 3.0.11)
29
+ builder (~> 2.1.2)
30
+ i18n (~> 0.5.0)
31
+ activerecord (3.0.11)
32
+ activemodel (= 3.0.11)
33
+ activesupport (= 3.0.11)
34
+ arel (~> 2.0.10)
35
+ tzinfo (~> 0.3.23)
36
+ activeresource (3.0.11)
37
+ activemodel (= 3.0.11)
38
+ activesupport (= 3.0.11)
39
+ activesupport (3.0.11)
40
+ addressable (2.2.6)
41
+ appraisal (0.4.0)
42
+ bundler
43
+ rake
44
+ arel (2.0.10)
45
+ builder (2.1.2)
46
+ css_parser (1.2.5)
47
+ addressable
48
+ diff-lcs (1.1.3)
49
+ erubis (2.6.6)
50
+ abstract (>= 1.0.0)
51
+ hike (1.2.1)
52
+ i18n (0.5.0)
53
+ json (1.6.4)
54
+ mail (2.2.19)
55
+ activesupport (>= 2.3.6)
56
+ i18n (>= 0.4.0)
57
+ mime-types (~> 1.16)
58
+ treetop (~> 1.4.8)
59
+ mime-types (1.17.2)
60
+ nokogiri (1.5.0)
61
+ polyglot (0.3.3)
62
+ rack (1.2.5)
63
+ rack-mount (0.6.14)
64
+ rack (>= 1.0.0)
65
+ rack-test (0.5.7)
66
+ rack (>= 1.0)
67
+ rails (3.0.11)
68
+ actionmailer (= 3.0.11)
69
+ actionpack (= 3.0.11)
70
+ activerecord (= 3.0.11)
71
+ activeresource (= 3.0.11)
72
+ activesupport (= 3.0.11)
73
+ bundler (~> 1.0)
74
+ railties (= 3.0.11)
75
+ railties (3.0.11)
76
+ actionpack (= 3.0.11)
77
+ activesupport (= 3.0.11)
78
+ rake (>= 0.8.7)
79
+ rdoc (~> 3.4)
80
+ thor (~> 0.14.4)
81
+ rake (0.9.2.2)
82
+ rdoc (3.12)
83
+ json (~> 1.4)
84
+ rspec (2.7.0)
85
+ rspec-core (~> 2.7.0)
86
+ rspec-expectations (~> 2.7.0)
87
+ rspec-mocks (~> 2.7.0)
88
+ rspec-core (2.7.1)
89
+ rspec-expectations (2.7.0)
90
+ diff-lcs (~> 1.1.2)
91
+ rspec-mocks (2.7.0)
92
+ rspec-rails (2.7.0)
93
+ actionpack (~> 3.0)
94
+ activesupport (~> 3.0)
95
+ railties (~> 3.0)
96
+ rspec (~> 2.7.0)
97
+ sprockets (2.1.2)
98
+ hike (~> 1.2)
99
+ rack (~> 1.0)
100
+ tilt (~> 1.1, != 1.3.0)
101
+ thor (0.14.6)
102
+ tilt (1.3.3)
103
+ treetop (1.4.10)
104
+ polyglot
105
+ polyglot (>= 0.3.1)
106
+ tzinfo (0.3.31)
107
+
108
+ PLATFORMS
109
+ ruby
110
+
111
+ DEPENDENCIES
112
+ appraisal
113
+ rails (~> 3.0.0)
114
+ roadie!
115
+ rspec-rails
@@ -0,0 +1,76 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ abstract (1.0.0)
5
+ actionmailer (3.0.10)
6
+ actionpack (= 3.0.10)
7
+ mail (~> 2.2.19)
8
+ actionpack (3.0.10)
9
+ activemodel (= 3.0.10)
10
+ activesupport (= 3.0.10)
11
+ builder (~> 2.1.2)
12
+ erubis (~> 2.6.6)
13
+ i18n (~> 0.5.0)
14
+ rack (~> 1.2.1)
15
+ rack-mount (~> 0.6.14)
16
+ rack-test (~> 0.5.7)
17
+ tzinfo (~> 0.3.23)
18
+ activemodel (3.0.10)
19
+ activesupport (= 3.0.10)
20
+ builder (~> 2.1.2)
21
+ i18n (~> 0.5.0)
22
+ activesupport (3.0.10)
23
+ builder (2.1.2)
24
+ css_parser (1.1.9)
25
+ diff-lcs (1.1.2)
26
+ erubis (2.6.6)
27
+ abstract (>= 1.0.0)
28
+ i18n (0.5.0)
29
+ mail (2.2.19)
30
+ activesupport (>= 2.3.6)
31
+ i18n (>= 0.4.0)
32
+ mime-types (~> 1.16)
33
+ treetop (~> 1.4.8)
34
+ mime-types (1.16)
35
+ nokogiri (1.5.0)
36
+ polyglot (0.3.2)
37
+ rack (1.2.3)
38
+ rack-mount (0.6.14)
39
+ rack (>= 1.0.0)
40
+ rack-test (0.5.7)
41
+ rack (>= 1.0)
42
+ railties (3.0.10)
43
+ actionpack (= 3.0.10)
44
+ activesupport (= 3.0.10)
45
+ rake (>= 0.8.7)
46
+ rdoc (~> 3.4)
47
+ thor (~> 0.14.4)
48
+ rake (0.9.2)
49
+ rdoc (3.9.2)
50
+ rspec (2.6.0)
51
+ rspec-core (~> 2.6.0)
52
+ rspec-expectations (~> 2.6.0)
53
+ rspec-mocks (~> 2.6.0)
54
+ rspec-core (2.6.4)
55
+ rspec-expectations (2.6.0)
56
+ diff-lcs (~> 1.1.2)
57
+ rspec-mocks (2.6.0)
58
+ rspec-rails (2.6.1)
59
+ actionpack (~> 3.0)
60
+ activesupport (~> 3.0)
61
+ railties (~> 3.0)
62
+ rspec (~> 2.6.0)
63
+ thor (0.14.6)
64
+ treetop (1.4.10)
65
+ polyglot
66
+ polyglot (>= 0.3.1)
67
+ tzinfo (0.3.29)
68
+
69
+ PLATFORMS
70
+ ruby
71
+
72
+ DEPENDENCIES
73
+ actionmailer (~> 3.0.0)
74
+ css_parser
75
+ nokogiri (>= 1.4.4)
76
+ rspec-rails
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source :rubygems
4
+
5
+ gem "rails", "~> 3.1.0"
6
+
7
+ gemspec :path=>"../"
@@ -0,0 +1,120 @@
1
+ PATH
2
+ remote: /Users/mange/Projects/roadie
3
+ specs:
4
+ roadie (2.3.0.pre1)
5
+ actionmailer (> 3.0.0, < 3.3.0)
6
+ css_parser
7
+ nokogiri (>= 1.4.4)
8
+ sprockets
9
+
10
+ GEM
11
+ remote: http://rubygems.org/
12
+ specs:
13
+ actionmailer (3.1.3)
14
+ actionpack (= 3.1.3)
15
+ mail (~> 2.3.0)
16
+ actionpack (3.1.3)
17
+ activemodel (= 3.1.3)
18
+ activesupport (= 3.1.3)
19
+ builder (~> 3.0.0)
20
+ erubis (~> 2.7.0)
21
+ i18n (~> 0.6)
22
+ rack (~> 1.3.5)
23
+ rack-cache (~> 1.1)
24
+ rack-mount (~> 0.8.2)
25
+ rack-test (~> 0.6.1)
26
+ sprockets (~> 2.0.3)
27
+ activemodel (3.1.3)
28
+ activesupport (= 3.1.3)
29
+ builder (~> 3.0.0)
30
+ i18n (~> 0.6)
31
+ activerecord (3.1.3)
32
+ activemodel (= 3.1.3)
33
+ activesupport (= 3.1.3)
34
+ arel (~> 2.2.1)
35
+ tzinfo (~> 0.3.29)
36
+ activeresource (3.1.3)
37
+ activemodel (= 3.1.3)
38
+ activesupport (= 3.1.3)
39
+ activesupport (3.1.3)
40
+ multi_json (~> 1.0)
41
+ addressable (2.2.6)
42
+ appraisal (0.4.0)
43
+ bundler
44
+ rake
45
+ arel (2.2.1)
46
+ builder (3.0.0)
47
+ css_parser (1.2.5)
48
+ addressable
49
+ diff-lcs (1.1.3)
50
+ erubis (2.7.0)
51
+ hike (1.2.1)
52
+ i18n (0.6.0)
53
+ json (1.6.4)
54
+ mail (2.3.0)
55
+ i18n (>= 0.4.0)
56
+ mime-types (~> 1.16)
57
+ treetop (~> 1.4.8)
58
+ mime-types (1.17.2)
59
+ multi_json (1.0.4)
60
+ nokogiri (1.5.0)
61
+ polyglot (0.3.3)
62
+ rack (1.3.6)
63
+ rack-cache (1.1)
64
+ rack (>= 0.4)
65
+ rack-mount (0.8.3)
66
+ rack (>= 1.0.0)
67
+ rack-ssl (1.3.2)
68
+ rack
69
+ rack-test (0.6.1)
70
+ rack (>= 1.0)
71
+ rails (3.1.3)
72
+ actionmailer (= 3.1.3)
73
+ actionpack (= 3.1.3)
74
+ activerecord (= 3.1.3)
75
+ activeresource (= 3.1.3)
76
+ activesupport (= 3.1.3)
77
+ bundler (~> 1.0)
78
+ railties (= 3.1.3)
79
+ railties (3.1.3)
80
+ actionpack (= 3.1.3)
81
+ activesupport (= 3.1.3)
82
+ rack-ssl (~> 1.3.2)
83
+ rake (>= 0.8.7)
84
+ rdoc (~> 3.4)
85
+ thor (~> 0.14.6)
86
+ rake (0.9.2.2)
87
+ rdoc (3.12)
88
+ json (~> 1.4)
89
+ rspec (2.7.0)
90
+ rspec-core (~> 2.7.0)
91
+ rspec-expectations (~> 2.7.0)
92
+ rspec-mocks (~> 2.7.0)
93
+ rspec-core (2.7.1)
94
+ rspec-expectations (2.7.0)
95
+ diff-lcs (~> 1.1.2)
96
+ rspec-mocks (2.7.0)
97
+ rspec-rails (2.7.0)
98
+ actionpack (~> 3.0)
99
+ activesupport (~> 3.0)
100
+ railties (~> 3.0)
101
+ rspec (~> 2.7.0)
102
+ sprockets (2.0.3)
103
+ hike (~> 1.2)
104
+ rack (~> 1.0)
105
+ tilt (~> 1.1, != 1.3.0)
106
+ thor (0.14.6)
107
+ tilt (1.3.3)
108
+ treetop (1.4.10)
109
+ polyglot
110
+ polyglot (>= 0.3.1)
111
+ tzinfo (0.3.31)
112
+
113
+ PLATFORMS
114
+ ruby
115
+
116
+ DEPENDENCIES
117
+ appraisal
118
+ rails (~> 3.1.0)
119
+ roadie!
120
+ rspec-rails
@@ -0,0 +1,73 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ actionmailer (3.1.0.rc6)
5
+ actionpack (= 3.1.0.rc6)
6
+ mail (~> 2.3.0)
7
+ actionpack (3.1.0.rc6)
8
+ activemodel (= 3.1.0.rc6)
9
+ activesupport (= 3.1.0.rc6)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ i18n (~> 0.6)
13
+ rack (~> 1.3.2)
14
+ rack-cache (~> 1.0.2)
15
+ rack-mount (~> 0.8.1)
16
+ rack-test (~> 0.6.0)
17
+ sprockets (~> 2.0.0.beta.12)
18
+ activemodel (3.1.0.rc6)
19
+ activesupport (= 3.1.0.rc6)
20
+ bcrypt-ruby (~> 2.1.4)
21
+ builder (~> 3.0.0)
22
+ i18n (~> 0.6)
23
+ activesupport (3.1.0.rc6)
24
+ multi_json (~> 1.0)
25
+ bcrypt-ruby (2.1.4)
26
+ builder (3.0.0)
27
+ css_parser (1.1.9)
28
+ diff-lcs (1.1.2)
29
+ erubis (2.7.0)
30
+ hike (1.2.1)
31
+ i18n (0.6.0)
32
+ mail (2.3.0)
33
+ i18n (>= 0.4.0)
34
+ mime-types (~> 1.16)
35
+ treetop (~> 1.4.8)
36
+ mime-types (1.16)
37
+ multi_json (1.0.3)
38
+ nokogiri (1.5.0)
39
+ polyglot (0.3.2)
40
+ rack (1.3.2)
41
+ rack-cache (1.0.2)
42
+ rack (>= 0.4)
43
+ rack-mount (0.8.2)
44
+ rack (>= 1.0.0)
45
+ rack-test (0.6.1)
46
+ rack (>= 1.0)
47
+ rspec (2.1.0)
48
+ rspec-core (~> 2.1.0)
49
+ rspec-expectations (~> 2.1.0)
50
+ rspec-mocks (~> 2.1.0)
51
+ rspec-core (2.1.0)
52
+ rspec-expectations (2.1.0)
53
+ diff-lcs (~> 1.1.2)
54
+ rspec-mocks (2.1.0)
55
+ rspec-rails (2.1.0)
56
+ rspec (~> 2.1.0)
57
+ sprockets (2.0.0.beta.14)
58
+ hike (~> 1.2)
59
+ rack (~> 1.0)
60
+ tilt (~> 1.1, != 1.3.0)
61
+ tilt (1.3.2)
62
+ treetop (1.4.10)
63
+ polyglot
64
+ polyglot (>= 0.3.1)
65
+
66
+ PLATFORMS
67
+ ruby
68
+
69
+ DEPENDENCIES
70
+ actionmailer (~> 3.1.0.rc6)
71
+ css_parser
72
+ nokogiri (>= 1.4.4)
73
+ rspec-rails
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source :rubygems
4
+
5
+ gem "rails", "~> 3.2.0.rc1"
6
+
7
+ gemspec :path=>"../"
@@ -0,0 +1,120 @@
1
+ PATH
2
+ remote: /Users/mange/Projects/roadie
3
+ specs:
4
+ roadie (2.3.0.pre1)
5
+ actionmailer (> 3.0.0, < 3.3.0)
6
+ css_parser
7
+ nokogiri (>= 1.4.4)
8
+ sprockets
9
+
10
+ GEM
11
+ remote: http://rubygems.org/
12
+ specs:
13
+ actionmailer (3.2.0.rc1)
14
+ actionpack (= 3.2.0.rc1)
15
+ mail (~> 2.3.0)
16
+ actionpack (3.2.0.rc1)
17
+ activemodel (= 3.2.0.rc1)
18
+ activesupport (= 3.2.0.rc1)
19
+ builder (~> 3.0.0)
20
+ erubis (~> 2.7.0)
21
+ i18n (~> 0.6)
22
+ journey (~> 1.0.0.rc1)
23
+ rack (~> 1.3.5)
24
+ rack-cache (~> 1.1)
25
+ rack-test (~> 0.6.1)
26
+ sprockets (~> 2.1.2)
27
+ activemodel (3.2.0.rc1)
28
+ activesupport (= 3.2.0.rc1)
29
+ builder (~> 3.0.0)
30
+ i18n (~> 0.6)
31
+ activerecord (3.2.0.rc1)
32
+ activemodel (= 3.2.0.rc1)
33
+ activesupport (= 3.2.0.rc1)
34
+ arel (~> 3.0.0.rc1)
35
+ tzinfo (~> 0.3.29)
36
+ activeresource (3.2.0.rc1)
37
+ activemodel (= 3.2.0.rc1)
38
+ activesupport (= 3.2.0.rc1)
39
+ activesupport (3.2.0.rc1)
40
+ i18n (~> 0.6)
41
+ multi_json (~> 1.0)
42
+ addressable (2.2.6)
43
+ appraisal (0.4.0)
44
+ bundler
45
+ rake
46
+ arel (3.0.0.rc1)
47
+ builder (3.0.0)
48
+ css_parser (1.2.5)
49
+ addressable
50
+ diff-lcs (1.1.3)
51
+ erubis (2.7.0)
52
+ hike (1.2.1)
53
+ i18n (0.6.0)
54
+ journey (1.0.0.rc4)
55
+ json (1.6.4)
56
+ mail (2.3.0)
57
+ i18n (>= 0.4.0)
58
+ mime-types (~> 1.16)
59
+ treetop (~> 1.4.8)
60
+ mime-types (1.17.2)
61
+ multi_json (1.0.4)
62
+ nokogiri (1.5.0)
63
+ polyglot (0.3.3)
64
+ rack (1.3.6)
65
+ rack-cache (1.1)
66
+ rack (>= 0.4)
67
+ rack-ssl (1.3.2)
68
+ rack
69
+ rack-test (0.6.1)
70
+ rack (>= 1.0)
71
+ rails (3.2.0.rc1)
72
+ actionmailer (= 3.2.0.rc1)
73
+ actionpack (= 3.2.0.rc1)
74
+ activerecord (= 3.2.0.rc1)
75
+ activeresource (= 3.2.0.rc1)
76
+ activesupport (= 3.2.0.rc1)
77
+ bundler (~> 1.0)
78
+ railties (= 3.2.0.rc1)
79
+ railties (3.2.0.rc1)
80
+ actionpack (= 3.2.0.rc1)
81
+ activesupport (= 3.2.0.rc1)
82
+ rack-ssl (~> 1.3.2)
83
+ rake (>= 0.8.7)
84
+ rdoc (~> 3.4)
85
+ thor (~> 0.14.6)
86
+ rake (0.9.2.2)
87
+ rdoc (3.12)
88
+ json (~> 1.4)
89
+ rspec (2.7.0)
90
+ rspec-core (~> 2.7.0)
91
+ rspec-expectations (~> 2.7.0)
92
+ rspec-mocks (~> 2.7.0)
93
+ rspec-core (2.7.1)
94
+ rspec-expectations (2.7.0)
95
+ diff-lcs (~> 1.1.2)
96
+ rspec-mocks (2.7.0)
97
+ rspec-rails (2.7.0)
98
+ actionpack (~> 3.0)
99
+ activesupport (~> 3.0)
100
+ railties (~> 3.0)
101
+ rspec (~> 2.7.0)
102
+ sprockets (2.1.2)
103
+ hike (~> 1.2)
104
+ rack (~> 1.0)
105
+ tilt (~> 1.1, != 1.3.0)
106
+ thor (0.14.6)
107
+ tilt (1.3.3)
108
+ treetop (1.4.10)
109
+ polyglot
110
+ polyglot (>= 0.3.1)
111
+ tzinfo (0.3.31)
112
+
113
+ PLATFORMS
114
+ ruby
115
+
116
+ DEPENDENCIES
117
+ appraisal
118
+ rails (~> 3.2.0.rc1)
119
+ roadie!
120
+ rspec-rails
@@ -1,3 +1,3 @@
1
1
  module Roadie
2
- VERSION = '2.2.0'
2
+ VERSION = '2.3.0.pre1'
3
3
  end
data/roadie.gemspec CHANGED
@@ -16,19 +16,13 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_dependency 'nokogiri', '>= 1.4.4'
18
18
  s.add_dependency 'css_parser'
19
- s.add_dependency 'actionmailer', '~> 3.1.0'
19
+ s.add_dependency 'actionmailer', '> 3.0.0', '< 3.3.0'
20
20
  s.add_dependency 'sprockets'
21
21
 
22
22
  s.add_development_dependency 'rails'
23
- s.add_development_dependency 'rspec-rails', '>= 2.0.0'
23
+ s.add_development_dependency 'rspec-rails'
24
24
 
25
- s.add_development_dependency 'guard'
26
- s.add_development_dependency 'guard-rspec'
27
- s.add_development_dependency 'guard-rspec'
28
-
29
- # Guard for Mac
30
- s.add_development_dependency 'rb-fsevent'
31
- s.add_development_dependency 'growl'
25
+ s.add_development_dependency 'appraisal'
32
26
 
33
27
  s.extra_rdoc_files = %w[README.md Changelog.md]
34
28
  s.require_paths = %w[lib]
@@ -2,12 +2,13 @@ require 'spec_helper'
2
2
 
3
3
  module Roadie
4
4
  shared_examples "roadie integration" do
5
- mailer = Class.new(ActionMailer::Base) do
6
- def self.name() "IntegrationMailer" end
7
-
5
+ mailer = Class.new(AnonymousMailer) do
8
6
  default :css => :integration, :from => 'john@example.com'
9
7
  append_view_path FIXTURES_PATH.join('views')
10
8
 
9
+ # Needed for correct path lookup
10
+ self.mailer_name = "integration_mailer"
11
+
11
12
  def notification(to, reason)
12
13
  @reason = reason
13
14
  mail(:subject => 'Notification for you', :to => to) { |format| format.html; format.text }
@@ -3,14 +3,9 @@ require 'spec_helper'
3
3
 
4
4
  module Roadie
5
5
  describe ActionMailerExtensions, "CSS selection" do
6
- mailer = Class.new(ActionMailer::Base) do
6
+ mailer = Class.new(AnonymousMailer) do
7
7
  default :css => :default
8
8
 
9
- # Just to make ActionMailer::Base not puke
10
- def self.name
11
- "SomeMailer"
12
- end
13
-
14
9
  def default_css
15
10
  mail(:subject => "Default CSS") do |format|
16
11
  format.html { render :text => '' }
@@ -57,14 +52,9 @@ module Roadie
57
52
  end
58
53
 
59
54
  describe ActionMailerExtensions, "using HTML" do
60
- mailer = Class.new(ActionMailer::Base) do
55
+ mailer = Class.new(AnonymousMailer) do
61
56
  default :css => :simple
62
57
 
63
- # Just to make ActionMailer::Base not puke
64
- def self.name
65
- "SomeMailer"
66
- end
67
-
68
58
  def multipart
69
59
  mail(:subject => "Multipart email") do |format|
70
60
  format.html { render :text => 'Hello HTML' }
data/spec/spec_helper.rb CHANGED
@@ -46,8 +46,16 @@ class TestApplication < Rails::Application
46
46
  end
47
47
  end
48
48
 
49
- ActionMailer::Railtie.run_initializers(:default, Rails.application)
50
- Roadie::Railtie.run_initializers(:default, Rails.application)
49
+ if Roadie::Railtie.respond_to?(:run_initializers)
50
+ # Rails >= 3.1
51
+ ActionMailer::Railtie.run_initializers(:default, Rails.application)
52
+ Roadie::Railtie.run_initializers(:default, Rails.application)
53
+ else
54
+ # Rails 3.0
55
+ Rails.application.config.active_support.deprecation = :log
56
+ Rails.logger = Logger.new('/dev/null')
57
+ Rails.application.initialize!
58
+ end
51
59
 
52
60
  RSpec.configure do |c|
53
61
  c.before(:each) do
@@ -55,4 +63,4 @@ RSpec.configure do |c|
55
63
  end
56
64
  end
57
65
 
58
- Dir['./spec/support/**/*'].each { |file| require file }
66
+ Dir['./spec/support/**/*.rb'].each { |file| require file }
@@ -0,0 +1,21 @@
1
+ # Subclass of ActionMailer::Base that does not crash when the class
2
+ # is anonymous. Subclassed in the specs whenever a new mailer is
3
+ # needed
4
+ class AnonymousMailer < ActionMailer::Base
5
+ class << self
6
+ # Pretty much like super, but returns "anonymous" when no
7
+ # name is set
8
+ def mailer_name
9
+ if @mailer_name or name
10
+ super
11
+ else
12
+ "anonymous"
13
+ end
14
+ end
15
+
16
+ # Was an alias. (e.g. pointed to the old, non-overridden method)
17
+ def controller_path
18
+ mailer_name
19
+ end
20
+ end
21
+ end
metadata CHANGED
@@ -1,154 +1,111 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: roadie
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 2.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.3.0.pre1
5
+ prerelease: 6
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Magnus Bergmark
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-12-13 00:00:00 +01:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-04 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: nokogiri
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70348227069780 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
24
21
  version: 1.4.4
25
22
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: css_parser
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70348227069780
25
+ - !ruby/object:Gem::Dependency
26
+ name: css_parser
27
+ requirement: &70348227069320 !ruby/object:Gem::Requirement
31
28
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
36
33
  type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: actionmailer
40
34
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70348227069320
36
+ - !ruby/object:Gem::Dependency
37
+ name: actionmailer
38
+ requirement: &70348227068760 !ruby/object:Gem::Requirement
42
39
  none: false
43
- requirements:
44
- - - ~>
45
- - !ruby/object:Gem::Version
46
- version: 3.1.0
40
+ requirements:
41
+ - - ! '>'
42
+ - !ruby/object:Gem::Version
43
+ version: 3.0.0
44
+ - - <
45
+ - !ruby/object:Gem::Version
46
+ version: 3.3.0
47
47
  type: :runtime
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: sprockets
51
48
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ version_requirements: *70348227068760
50
+ - !ruby/object:Gem::Dependency
51
+ name: sprockets
52
+ requirement: &70348227068080 !ruby/object:Gem::Requirement
53
53
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
58
  type: :runtime
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: rails
62
- prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
64
- none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: "0"
69
- type: :development
70
- version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
72
- name: rspec-rails
73
- prerelease: false
74
- requirement: &id006 !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: 2.0.0
80
- type: :development
81
- version_requirements: *id006
82
- - !ruby/object:Gem::Dependency
83
- name: guard
84
59
  prerelease: false
85
- requirement: &id007 !ruby/object:Gem::Requirement
86
- none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: "0"
91
- type: :development
92
- version_requirements: *id007
93
- - !ruby/object:Gem::Dependency
94
- name: guard-rspec
95
- prerelease: false
96
- requirement: &id008 !ruby/object:Gem::Requirement
60
+ version_requirements: *70348227068080
61
+ - !ruby/object:Gem::Dependency
62
+ name: rails
63
+ requirement: &70348227067600 !ruby/object:Gem::Requirement
97
64
  none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- version: "0"
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
102
69
  type: :development
103
- version_requirements: *id008
104
- - !ruby/object:Gem::Dependency
105
- name: guard-rspec
106
70
  prerelease: false
107
- requirement: &id009 !ruby/object:Gem::Requirement
71
+ version_requirements: *70348227067600
72
+ - !ruby/object:Gem::Dependency
73
+ name: rspec-rails
74
+ requirement: &70348227008540 !ruby/object:Gem::Requirement
108
75
  none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: "0"
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
113
80
  type: :development
114
- version_requirements: *id009
115
- - !ruby/object:Gem::Dependency
116
- name: rb-fsevent
117
81
  prerelease: false
118
- requirement: &id010 !ruby/object:Gem::Requirement
82
+ version_requirements: *70348227008540
83
+ - !ruby/object:Gem::Dependency
84
+ name: appraisal
85
+ requirement: &70348227008120 !ruby/object:Gem::Requirement
119
86
  none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: "0"
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
124
91
  type: :development
125
- version_requirements: *id010
126
- - !ruby/object:Gem::Dependency
127
- name: growl
128
92
  prerelease: false
129
- requirement: &id011 !ruby/object:Gem::Requirement
130
- none: false
131
- requirements:
132
- - - ">="
133
- - !ruby/object:Gem::Version
134
- version: "0"
135
- type: :development
136
- version_requirements: *id011
137
- description: Roadie tries to make sending HTML emails a little less painful in Rails 3 by inlining stylesheets and rewrite relative URLs for you.
138
- email:
93
+ version_requirements: *70348227008120
94
+ description: Roadie tries to make sending HTML emails a little less painful in Rails
95
+ 3 by inlining stylesheets and rewrite relative URLs for you.
96
+ email:
139
97
  - magnus.bergmark@gmail.com
140
98
  executables: []
141
-
142
99
  extensions: []
143
-
144
- extra_rdoc_files:
100
+ extra_rdoc_files:
145
101
  - README.md
146
102
  - Changelog.md
147
- files:
103
+ files:
148
104
  - .autotest
149
105
  - .gitignore
150
106
  - .travis.yml
151
107
  - .yardopts
108
+ - Appraisals
152
109
  - Changelog.md
153
110
  - Gemfile
154
111
  - Gemfile.lock
@@ -157,6 +114,14 @@ files:
157
114
  - README.md
158
115
  - Rakefile
159
116
  - autotest/discover.rb
117
+ - gemfiles/rails-3.0.gemfile
118
+ - gemfiles/rails-3.0.gemfile.lock
119
+ - gemfiles/rails-3.0.x.Gemfile.lock
120
+ - gemfiles/rails-3.1.gemfile
121
+ - gemfiles/rails-3.1.gemfile.lock
122
+ - gemfiles/rails-3.1.x.Gemfile.lock
123
+ - gemfiles/rails-3.2.gemfile
124
+ - gemfiles/rails-3.2.gemfile.lock
160
125
  - lib/roadie.rb
161
126
  - lib/roadie/action_mailer_extensions.rb
162
127
  - lib/roadie/asset_pipeline_provider.rb
@@ -183,40 +148,40 @@ files:
183
148
  - spec/lib/roadie_spec.rb
184
149
  - spec/shared_examples/asset_provider_examples.rb
185
150
  - spec/spec_helper.rb
151
+ - spec/support/anonymous_mailer.rb
186
152
  - spec/support/change_url_options.rb
187
153
  - spec/support/have_attribute_matcher.rb
188
154
  - spec/support/have_selector_matcher.rb
189
155
  - spec/support/have_styling_matcher.rb
190
156
  - spec/support/parse_styling.rb
191
- has_rdoc: true
192
157
  homepage: http://github.com/Mange/roadie
193
158
  licenses: []
194
-
195
159
  post_install_message:
196
160
  rdoc_options: []
197
-
198
- require_paths:
161
+ require_paths:
199
162
  - lib
200
- required_ruby_version: !ruby/object:Gem::Requirement
163
+ required_ruby_version: !ruby/object:Gem::Requirement
201
164
  none: false
202
- requirements:
203
- - - ">="
204
- - !ruby/object:Gem::Version
205
- version: "0"
206
- required_rubygems_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ! '>='
167
+ - !ruby/object:Gem::Version
168
+ version: '0'
169
+ segments:
170
+ - 0
171
+ hash: -3727812369412640023
172
+ required_rubygems_version: !ruby/object:Gem::Requirement
207
173
  none: false
208
- requirements:
209
- - - ">="
210
- - !ruby/object:Gem::Version
211
- version: "0"
174
+ requirements:
175
+ - - ! '>'
176
+ - !ruby/object:Gem::Version
177
+ version: 1.3.1
212
178
  requirements: []
213
-
214
179
  rubyforge_project:
215
- rubygems_version: 1.6.2
180
+ rubygems_version: 1.8.10
216
181
  signing_key:
217
182
  specification_version: 3
218
183
  summary: Making HTML emails comfortable for the Rails rockstars
219
- test_files:
184
+ test_files:
220
185
  - spec/fixtures/app/assets/stylesheets/integration.css
221
186
  - spec/fixtures/public/stylesheets/integration.css
222
187
  - spec/fixtures/views/integration_mailer/marketing.html.erb
@@ -232,6 +197,7 @@ test_files:
232
197
  - spec/lib/roadie_spec.rb
233
198
  - spec/shared_examples/asset_provider_examples.rb
234
199
  - spec/spec_helper.rb
200
+ - spec/support/anonymous_mailer.rb
235
201
  - spec/support/change_url_options.rb
236
202
  - spec/support/have_attribute_matcher.rb
237
203
  - spec/support/have_selector_matcher.rb