roadie 1.0.0.pre1 → 1.0.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ # Override autotest default magic to rerun all tests every time a
2
+ # change is detected on the file system.
3
+ class Autotest
4
+ def get_to_green
5
+ begin
6
+ rerun_all_tests
7
+ wait_for_changes unless all_good
8
+ end until all_good
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ .DS_Store
2
+ pkg
3
+ .*~
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --colour
2
+ --format progress
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source :rubygems
2
+ gemspec
@@ -0,0 +1,73 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ roadie (1.0.0.pre2)
5
+ actionmailer (~> 3.0.0)
6
+ css_parser
7
+ nokogiri
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ abstract (1.0.0)
13
+ actionmailer (3.0.1)
14
+ actionpack (= 3.0.1)
15
+ mail (~> 2.2.5)
16
+ actionpack (3.0.1)
17
+ activemodel (= 3.0.1)
18
+ activesupport (= 3.0.1)
19
+ builder (~> 2.1.2)
20
+ erubis (~> 2.6.6)
21
+ i18n (~> 0.4.1)
22
+ rack (~> 1.2.1)
23
+ rack-mount (~> 0.6.12)
24
+ rack-test (~> 0.5.4)
25
+ tzinfo (~> 0.3.23)
26
+ activemodel (3.0.1)
27
+ activesupport (= 3.0.1)
28
+ builder (~> 2.1.2)
29
+ i18n (~> 0.4.1)
30
+ activesupport (3.0.1)
31
+ builder (2.1.2)
32
+ css_parser (1.0.1)
33
+ diff-lcs (1.1.2)
34
+ erubis (2.6.6)
35
+ abstract (>= 1.0.0)
36
+ i18n (0.4.1)
37
+ mail (2.2.7)
38
+ activesupport (>= 2.3.6)
39
+ mime-types
40
+ treetop (>= 1.4.5)
41
+ mime-types (1.16)
42
+ nokogiri (1.4.3.1)
43
+ polyglot (0.3.1)
44
+ rack (1.2.1)
45
+ rack-mount (0.6.13)
46
+ rack (>= 1.0.0)
47
+ rack-test (0.5.6)
48
+ rack (>= 1.0)
49
+ rspec (2.0.0)
50
+ rspec-core (= 2.0.0)
51
+ rspec-expectations (= 2.0.0)
52
+ rspec-mocks (= 2.0.0)
53
+ rspec-core (2.0.0)
54
+ rspec-expectations (2.0.0)
55
+ diff-lcs (>= 1.1.2)
56
+ rspec-mocks (2.0.0)
57
+ rspec-core (= 2.0.0)
58
+ rspec-expectations (= 2.0.0)
59
+ rspec-rails (2.0.1)
60
+ rspec (~> 2.0.0)
61
+ treetop (1.4.8)
62
+ polyglot (>= 0.3.1)
63
+ tzinfo (0.3.23)
64
+
65
+ PLATFORMS
66
+ ruby
67
+
68
+ DEPENDENCIES
69
+ actionmailer (~> 3.0.0)
70
+ css_parser
71
+ nokogiri
72
+ roadie!
73
+ rspec-rails (>= 2.0.0)
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Jim Neath / Purify
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -2,59 +2,23 @@
2
2
  require 'rubygems'
3
3
  require 'bundler'
4
4
 
5
+ Bundler::GemHelper.install_tasks
6
+
5
7
  begin
6
- Bundler.setup(:default, :development)
8
+ require 'rspec'
7
9
  rescue Bundler::BundlerError => e
8
10
  $stderr.puts e.message
9
11
  $stderr.puts "Run `bundle install` to install missing gems"
10
12
  exit e.status_code
11
13
  end
12
14
 
13
- require 'rake'
14
- require 'jeweler'
15
-
16
- require 'rake/rdoctask'
17
15
  require 'rspec/core/rake_task'
18
16
 
19
- NAME = "roadie"
20
- EXTRA_RDOC_FILES = %w[README.textile]
21
- Jeweler::Tasks.new do |t|
22
- t.name = NAME
23
- t.summary = %{Making HTML emails comfortable for the Rails rockstars}
24
- t.email = "magnus.bergmark@gmail.com"
25
- t.homepage = "http://github.com/Mange/roadie"
26
- t.description = %{Roadie tries to make sending HTML emails a little less painful in Rails 3 by inlining stylesheets and rewrite relative URLs for you.}
27
- t.author = "Magnus Bergmark"
28
-
29
- t.require_path = 'lib'
30
- t.files = %w(Rakefile) + EXTRA_RDOC_FILES + Dir.glob(File.join(*%w[{lib,spec} ** *]).to_s)
31
- t.extra_rdoc_files = EXTRA_RDOC_FILES
32
-
33
- # dependencies defined in Gemfile
34
- end
35
-
36
- Jeweler::RubygemsDotOrgTasks.new
37
-
38
- desc "Generate documentation for the #{NAME} plugin."
39
- Rake::RDocTask.new(:rdoc) do |t|
40
- t.rdoc_dir = 'rdoc'
41
- t.title = NAME
42
- t.options << '--line-numbers' << '--inline-source'
43
- t.rdoc_files.include(EXTRA_RDOC_FILES)
44
- t.rdoc_files.include('lib/**/*.rb')
45
- end
46
-
47
- desc "Run plugin specs for #{NAME}."
17
+ desc "Run specs"
48
18
  RSpec::Core::RakeTask.new('spec') do |t|
49
19
  t.pattern = 'spec/**/*_spec.rb'
50
20
  t.rspec_opts = ["-c"]
51
21
  end
52
22
 
53
- desc "Run plugin specs for #{NAME} with specdoc formatting and colors"
54
- RSpec::Core::RakeTask.new('specdoc') do |t|
55
- t.pattern = 'spec/**/*_spec.rb'
56
- t.rspec_opts = ["--format specdoc", "-c"]
57
- end
58
-
59
- desc "Default: Run specs."
23
+ desc "Default: Run specs"
60
24
  task :default => :spec
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0.pre1
@@ -0,0 +1 @@
1
+ Autotest.add_discovery { 'rspec2' }
@@ -20,6 +20,7 @@ module Roadie
20
20
  end
21
21
  end
22
22
 
23
+ require 'roadie/version'
23
24
  require 'roadie/inliner'
24
25
 
25
26
  require 'action_mailer'
@@ -0,0 +1,3 @@
1
+ module Roadie
2
+ VERSION = '1.0.0.pre2'
3
+ end
@@ -0,0 +1,29 @@
1
+ # roadie.gemspec
2
+ # -*- encoding: utf-8 -*-
3
+
4
+ $:.push File.expand_path("../lib", __FILE__)
5
+ require 'roadie/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = 'roadie'
9
+ s.version = Roadie::VERSION
10
+ s.platform = Gem::Platform::RUBY
11
+ s.authors = ['Magnus Bergmark']
12
+ s.email = ['magnus.bergmark@gmail.com']
13
+ s.homepage = 'http://github.com/Mange/roadie'
14
+ s.summary = %q{Making HTML emails comfortable for the Rails rockstars}
15
+ s.description = %q{Roadie tries to make sending HTML emails a little less painful in Rails 3 by inlining stylesheets and rewrite relative URLs for you.}
16
+
17
+ s.add_dependency 'nokogiri'
18
+ s.add_dependency 'css_parser'
19
+ s.add_dependency 'actionmailer', '~> 3.0.0'
20
+
21
+ s.add_development_dependency 'rspec-rails', '>= 2.0.0'
22
+
23
+ s.extra_rdoc_files = %w[README.textile]
24
+ s.require_paths = %w[lib]
25
+
26
+ s.files = `git ls-files`.split("\n")
27
+ s.test_files = `git ls-files -- spec/*`.split("\n")
28
+ end
29
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roadie
3
3
  version: !ruby/object:Gem::Version
4
- hash: 270495472
4
+ hash: 270495473
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
- - pre1
11
- version: 1.0.0.pre1
10
+ - pre2
11
+ version: 1.0.0.pre2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Magnus Bergmark
@@ -20,8 +20,9 @@ date: 2011-01-06 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
+ name: nokogiri
23
24
  prerelease: false
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
25
+ requirement: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
28
  - - ">="
@@ -30,12 +31,12 @@ dependencies:
30
31
  segments:
31
32
  - 0
32
33
  version: "0"
33
- name: nokogiri
34
- requirement: *id001
35
34
  type: :runtime
35
+ version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
37
+ name: css_parser
37
38
  prerelease: false
38
- version_requirements: &id002 !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
39
40
  none: false
40
41
  requirements:
41
42
  - - ">="
@@ -44,12 +45,12 @@ dependencies:
44
45
  segments:
45
46
  - 0
46
47
  version: "0"
47
- name: css_parser
48
- requirement: *id002
49
48
  type: :runtime
49
+ version_requirements: *id002
50
50
  - !ruby/object:Gem::Dependency
51
+ name: actionmailer
51
52
  prerelease: false
52
- version_requirements: &id003 !ruby/object:Gem::Requirement
53
+ requirement: &id003 !ruby/object:Gem::Requirement
53
54
  none: false
54
55
  requirements:
55
56
  - - ~>
@@ -60,43 +61,12 @@ dependencies:
60
61
  - 0
61
62
  - 0
62
63
  version: 3.0.0
63
- name: actionmailer
64
- requirement: *id003
65
64
  type: :runtime
65
+ version_requirements: *id003
66
66
  - !ruby/object:Gem::Dependency
67
+ name: rspec-rails
67
68
  prerelease: false
68
- version_requirements: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
77
- name: rake
78
- requirement: *id004
79
- type: :development
80
- - !ruby/object:Gem::Dependency
81
- prerelease: false
82
- version_requirements: &id005 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ~>
86
- - !ruby/object:Gem::Version
87
- hash: 270495428
88
- segments:
89
- - 1
90
- - 5
91
- - 0
92
- - pre5
93
- version: 1.5.0.pre5
94
- name: jeweler
95
- requirement: *id005
96
- type: :development
97
- - !ruby/object:Gem::Dependency
98
- prerelease: false
99
- version_requirements: &id006 !ruby/object:Gem::Requirement
69
+ requirement: &id004 !ruby/object:Gem::Requirement
100
70
  none: false
101
71
  requirements:
102
72
  - - ">="
@@ -107,11 +77,11 @@ dependencies:
107
77
  - 0
108
78
  - 0
109
79
  version: 2.0.0
110
- name: rspec-rails
111
- requirement: *id006
112
80
  type: :development
81
+ version_requirements: *id004
113
82
  description: Roadie tries to make sending HTML emails a little less painful in Rails 3 by inlining stylesheets and rewrite relative URLs for you.
114
- email: magnus.bergmark@gmail.com
83
+ email:
84
+ - magnus.bergmark@gmail.com
115
85
  executables: []
116
86
 
117
87
  extensions: []
@@ -119,11 +89,21 @@ extensions: []
119
89
  extra_rdoc_files:
120
90
  - README.textile
121
91
  files:
92
+ - .autotest
93
+ - .gitignore
94
+ - .rspec
95
+ - Gemfile
96
+ - Gemfile.lock
97
+ - MIT-LICENSE
122
98
  - README.textile
123
99
  - Rakefile
100
+ - VERSION
101
+ - autotest/discover.rb
124
102
  - lib/roadie.rb
125
103
  - lib/roadie/action_mailer_extensions.rb
126
104
  - lib/roadie/inliner.rb
105
+ - lib/roadie/version.rb
106
+ - roadie.gemspec
127
107
  - spec/fixtures/public/stylesheets/bar.css
128
108
  - spec/fixtures/public/stylesheets/foo.css
129
109
  - spec/fixtures/public/stylesheets/integration.css
@@ -171,6 +151,11 @@ signing_key:
171
151
  specification_version: 3
172
152
  summary: Making HTML emails comfortable for the Rails rockstars
173
153
  test_files:
154
+ - spec/fixtures/public/stylesheets/bar.css
155
+ - spec/fixtures/public/stylesheets/foo.css
156
+ - spec/fixtures/public/stylesheets/integration.css
157
+ - spec/fixtures/views/integration_mailer/notification.html.erb
158
+ - spec/fixtures/views/integration_mailer/notification.text.erb
174
159
  - spec/integration_spec.rb
175
160
  - spec/lib/roadie/action_mailer_extensions_spec.rb
176
161
  - spec/lib/roadie/inliner_spec.rb