themes_for_rails 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -1,5 +1,5 @@
1
- if [[ -n "$rvm_environments_path" && -s "$rvm_environments_path/ruby-1.9.2-p0@theme_support" ]] ; then
2
- \. "$rvm_environments_path/ruby-1.9.2-p0@theme_support"
1
+ if [[ -n "$rvm_environments_path" && -s "$rvm_environments_path/ruby-1.9.2-p180@theme_support" ]] ; then
2
+ \. "$rvm_environments_path/ruby-1.9.2-p180@theme_support"
3
3
  else
4
- rvm --create use "ruby-1.9.2-p0@theme_support"
4
+ rvm --create use "ruby-1.9.2-p180@theme_support"
5
5
  fi
data/Gemfile CHANGED
@@ -1,11 +1,12 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'sqlite3-ruby', :require => 'sqlite3'
4
- gem "rails", "3.0.0"
5
- gem 'test-unit', :require => 'test/unit'
6
- gem "rspec-rails", ">= 2.0.0.beta.20"
7
- gem 'themes_for_rails', :path => '.'
8
- gem 'jeweler'
9
- gem "contest"
10
- gem 'mocha'
3
+ gemspec
11
4
 
5
+ group :development, :test do
6
+ gem "sqlite3"
7
+ gem "test-unit", :require => "test/unit"
8
+ gem "rspec-rails", ">= 2.0.0.beta.20"
9
+ gem "jeweler"
10
+ gem "contest"
11
+ gem "mocha"
12
+ end
data/Gemfile.lock CHANGED
@@ -1,101 +1,98 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- themes_for_rails (0.4.0)
4
+ themes_for_rails (0.4.1)
5
+ rails (~> 3.0.0)
6
+ themes_for_rails
5
7
 
6
8
  GEM
7
9
  remote: http://rubygems.org/
8
10
  specs:
9
11
  abstract (1.0.0)
10
- actionmailer (3.0.0)
11
- actionpack (= 3.0.0)
12
- mail (~> 2.2.5)
13
- actionpack (3.0.0)
14
- activemodel (= 3.0.0)
15
- activesupport (= 3.0.0)
12
+ actionmailer (3.0.5)
13
+ actionpack (= 3.0.5)
14
+ mail (~> 2.2.15)
15
+ actionpack (3.0.5)
16
+ activemodel (= 3.0.5)
17
+ activesupport (= 3.0.5)
16
18
  builder (~> 2.1.2)
17
19
  erubis (~> 2.6.6)
18
- i18n (~> 0.4.1)
20
+ i18n (~> 0.4)
19
21
  rack (~> 1.2.1)
20
- rack-mount (~> 0.6.12)
21
- rack-test (~> 0.5.4)
22
+ rack-mount (~> 0.6.13)
23
+ rack-test (~> 0.5.7)
22
24
  tzinfo (~> 0.3.23)
23
- activemodel (3.0.0)
24
- activesupport (= 3.0.0)
25
+ activemodel (3.0.5)
26
+ activesupport (= 3.0.5)
25
27
  builder (~> 2.1.2)
26
- i18n (~> 0.4.1)
27
- activerecord (3.0.0)
28
- activemodel (= 3.0.0)
29
- activesupport (= 3.0.0)
30
- arel (~> 1.0.0)
28
+ i18n (~> 0.4)
29
+ activerecord (3.0.5)
30
+ activemodel (= 3.0.5)
31
+ activesupport (= 3.0.5)
32
+ arel (~> 2.0.2)
31
33
  tzinfo (~> 0.3.23)
32
- activeresource (3.0.0)
33
- activemodel (= 3.0.0)
34
- activesupport (= 3.0.0)
35
- activesupport (3.0.0)
36
- arel (1.0.1)
37
- activesupport (~> 3.0.0)
34
+ activeresource (3.0.5)
35
+ activemodel (= 3.0.5)
36
+ activesupport (= 3.0.5)
37
+ activesupport (3.0.5)
38
+ arel (2.0.9)
38
39
  builder (2.1.2)
39
40
  contest (0.1.2)
40
41
  diff-lcs (1.1.2)
41
42
  erubis (2.6.6)
42
43
  abstract (>= 1.0.0)
43
- gemcutter (0.6.1)
44
44
  git (1.2.5)
45
- i18n (0.4.2)
46
- jeweler (1.4.0)
47
- gemcutter (>= 0.1.0)
45
+ i18n (0.5.0)
46
+ jeweler (1.5.2)
47
+ bundler (~> 1.0.0)
48
48
  git (>= 1.2.5)
49
- rubyforge (>= 2.0.0)
50
- json_pure (1.4.6)
51
- mail (2.2.9)
49
+ rake
50
+ mail (2.2.19)
52
51
  activesupport (>= 2.3.6)
53
- i18n (~> 0.4.1)
52
+ i18n (>= 0.4.0)
54
53
  mime-types (~> 1.16)
55
54
  treetop (~> 1.4.8)
56
55
  mime-types (1.16)
57
- mocha (0.9.9)
58
- rake
56
+ mocha (0.9.12)
59
57
  polyglot (0.3.1)
60
58
  rack (1.2.1)
61
59
  rack-mount (0.6.13)
62
60
  rack (>= 1.0.0)
63
- rack-test (0.5.6)
61
+ rack-test (0.5.7)
64
62
  rack (>= 1.0)
65
- rails (3.0.0)
66
- actionmailer (= 3.0.0)
67
- actionpack (= 3.0.0)
68
- activerecord (= 3.0.0)
69
- activeresource (= 3.0.0)
70
- activesupport (= 3.0.0)
71
- bundler (~> 1.0.0)
72
- railties (= 3.0.0)
73
- railties (3.0.0)
74
- actionpack (= 3.0.0)
75
- activesupport (= 3.0.0)
76
- rake (>= 0.8.4)
77
- thor (~> 0.14.0)
63
+ rails (3.0.5)
64
+ actionmailer (= 3.0.5)
65
+ actionpack (= 3.0.5)
66
+ activerecord (= 3.0.5)
67
+ activeresource (= 3.0.5)
68
+ activesupport (= 3.0.5)
69
+ bundler (~> 1.0)
70
+ railties (= 3.0.5)
71
+ railties (3.0.5)
72
+ actionpack (= 3.0.5)
73
+ activesupport (= 3.0.5)
74
+ rake (>= 0.8.7)
75
+ thor (~> 0.14.4)
78
76
  rake (0.8.7)
79
- rspec (2.0.1)
80
- rspec-core (~> 2.0.1)
81
- rspec-expectations (~> 2.0.1)
82
- rspec-mocks (~> 2.0.1)
83
- rspec-core (2.0.1)
84
- rspec-expectations (2.0.1)
85
- diff-lcs (>= 1.1.2)
86
- rspec-mocks (2.0.1)
87
- rspec-core (~> 2.0.1)
88
- rspec-expectations (~> 2.0.1)
89
- rspec-rails (2.0.1)
90
- rspec (~> 2.0.0)
91
- rubyforge (2.0.4)
92
- json_pure (>= 1.1.7)
93
- sqlite3-ruby (1.3.1)
94
- test-unit (2.1.1)
95
- thor (0.14.3)
96
- treetop (1.4.8)
77
+ rspec (2.5.0)
78
+ rspec-core (~> 2.5.0)
79
+ rspec-expectations (~> 2.5.0)
80
+ rspec-mocks (~> 2.5.0)
81
+ rspec-core (2.5.1)
82
+ rspec-expectations (2.5.0)
83
+ diff-lcs (~> 1.1.2)
84
+ rspec-mocks (2.5.0)
85
+ rspec-rails (2.5.0)
86
+ actionpack (~> 3.0)
87
+ activesupport (~> 3.0)
88
+ railties (~> 3.0)
89
+ rspec (~> 2.5.0)
90
+ sqlite3 (1.3.3)
91
+ test-unit (2.2.0)
92
+ thor (0.14.6)
93
+ treetop (1.4.9)
97
94
  polyglot (>= 0.3.1)
98
- tzinfo (0.3.23)
95
+ tzinfo (0.3.24)
99
96
 
100
97
  PLATFORMS
101
98
  ruby
@@ -104,8 +101,7 @@ DEPENDENCIES
104
101
  contest
105
102
  jeweler
106
103
  mocha
107
- rails (= 3.0.0)
108
104
  rspec-rails (>= 2.0.0.beta.20)
109
- sqlite3-ruby
105
+ sqlite3
110
106
  test-unit
111
107
  themes_for_rails!
data/README.textile CHANGED
@@ -87,6 +87,21 @@ end
87
87
 
88
88
  As a general rule, when passing a String, that becomes the theme name, but when a Symbol is sent, it gets treated as method message.
89
89
 
90
+
91
+ h3. Action Mailer integration:
92
+
93
+ As a plus, you can use it from Action Mailer too (thanks to rafaelss) like this:
94
+
95
+ <pre>
96
+ class MyMailer < ActionMailer::Base
97
+
98
+ def notify_someone
99
+ mail :theme => "blue" , :to => "some@one.com"
100
+ end
101
+
102
+ end
103
+ </pre>
104
+
90
105
  h3. Url Helpers
91
106
 
92
107
  In your views you should be able to access your assets like this (given the theme 'default' is set):
@@ -137,7 +152,7 @@ At least for now, you can change the ThemesForRails base dir in your app, in the
137
152
  KillerApp::Application.configure do
138
153
  #
139
154
 
140
- config.themes_for_rails.base_dir = File.join(Rails.root, "skins")
155
+ config.themes_for_rails.base_dir = File.join(Rails.root, "tmp")
141
156
 
142
157
  #...
143
158
  end
data/Rakefile CHANGED
@@ -21,13 +21,13 @@ begin
21
21
  Jeweler::Tasks.new do |gemspec|
22
22
  gemspec.name = "themes_for_rails"
23
23
  gemspec.summary = "Themes support for rails (3)"
24
- gemspec.description = "It allows an application to have many different ways of rendering static assets and dynamic views. "
24
+ gemspec.description = "It allows an application to have many different ways of rendering static assets and dynamic views."
25
25
  gemspec.email = "lucasefe@gmail.com"
26
26
  gemspec.homepage = "http://github.com/lucasefe/themes_for_rails"
27
27
  gemspec.authors = ["Lucas Florio"]
28
28
  gemspec.version = ThemesForRails::VERSION
29
+ gemspec.add_dependency "rails", "~> 3.0.0"
29
30
  end
30
31
  rescue LoadError
31
32
  puts "Jeweler not available. Install it with: gem install jeweler"
32
33
  end
33
-
@@ -4,7 +4,7 @@ module ThemesForRails
4
4
  desc "Creates a ThemeForRails basic structure."
5
5
 
6
6
  def create_themes_folder
7
- empty_directory(File.join(Rails.root, 'themes'))
7
+ empty_directory(ThemesForRails.config.themes_path)
8
8
  end
9
9
 
10
10
  def add_themes_for_rails_routes
@@ -5,13 +5,10 @@ module ThemesForRails
5
5
  desc "Creates an empty theme."
6
6
 
7
7
  def create_theme
8
- theme_dir = File.join(themes_path, name)
8
+ theme_dir = File.join(ThemesForRails.config.themes_path, name)
9
9
  directory 'theme', theme_dir
10
10
  end
11
- private
12
- def themes_path
13
- File.join(Rails.root, "themes")
14
- end
11
+
15
12
  end
16
13
  end
17
14
  end
@@ -3,19 +3,22 @@ namespace :themes do
3
3
  task :create_cache => :environment do
4
4
  for theme in ThemesForRails.available_themes
5
5
  theme_name = File.basename(theme)
6
- puts "Creating #{Rails.public_path}/themes/#{theme_name}"
6
+ theme_dir = ThemesForRails.config.themes_dir
7
+ theme_base = "#{Rails.public_path}/#{theme_dir}/#{theme_name}"
8
+ puts "Creating #{theme_base}"
7
9
 
8
- FileUtils.mkdir_p "#{Rails.public_path}/themes/#{theme_name}"
9
- FileUtils.cp_r "#{theme}/images", "#{Rails.public_path}/themes/#{theme_name}/images", :verbose => true
10
- FileUtils.cp_r "#{theme}/stylesheets", "#{Rails.public_path}/themes/#{theme_name}/stylesheets", :verbose => true
11
- FileUtils.cp_r "#{theme}/javascripts", "#{Rails.public_path}/themes/#{theme_name}/javascripts", :verbose => true
10
+ FileUtils.mkdir_p "#{theme_base}"
11
+ FileUtils.cp_r "#{theme}/images", "#{theme_base}/images", :verbose => true
12
+ FileUtils.cp_r "#{theme}/stylesheets", "#{theme_base}/stylesheets", :verbose => true
13
+ FileUtils.cp_r "#{theme}/javascripts", "#{theme_base}/javascripts", :verbose => true
12
14
  end
13
15
  end
14
16
  desc "Removes the cached (public) theme folders"
15
17
  task :remove_cache => :environment do
16
- puts "Removing #{Rails.public_path}/themes"
17
- FileUtils.rm_r "#{Rails.public_path}/themes", :force => true
18
+ theme_dir = ThemesForRails.config.themes_dir
19
+ puts "Removing #{Rails.public_path}/#{theme_dir}"
20
+ FileUtils.rm_r "#{Rails.public_path}/#{theme_dir}", :force => true
18
21
  end
19
22
  desc "Updates the cached (public) theme folders"
20
23
  task :update_cache => [:remove_cache, :create_cache]
21
- end
24
+ end
@@ -17,6 +17,10 @@ module ThemesForRails
17
17
  @themes_dir ||= "themes"
18
18
  end
19
19
 
20
+ def themes_path
21
+ File.join(base_dir, themes_dir)
22
+ end
23
+
20
24
  def clear
21
25
  @base_dir = nil
22
26
  @themes_dir = nil
@@ -0,0 +1,21 @@
1
+ module ThemesForRails
2
+ module MailerMethods
3
+ extend ActiveSupport::Concern
4
+
5
+ included do
6
+ alias_method_chain :mail, :theme
7
+ end
8
+
9
+ module InstanceMethods
10
+
11
+ def mail_with_theme(headers = {}, &block)
12
+ theme_opts = headers[:theme] || self.class.default[:theme]
13
+ theme(theme_opts) if theme_opts
14
+
15
+ mail_without_theme(headers, &block)
16
+ end
17
+ end
18
+ end
19
+ end
20
+
21
+ ActiveSupport.on_load(:action_mailer) { include ThemesForRails::MailerMethods }
@@ -1,9 +1,10 @@
1
1
  module ThemesForRails
2
2
  module Routes
3
3
  def themes_for_rails
4
- match 'themes/:theme/stylesheets/*asset' => 'themes_for_rails/assets#stylesheets', :as => :base_theme_stylesheet
5
- match 'themes/:theme/javascripts/*asset' => 'themes_for_rails/assets#javascripts', :as => :base_theme_javascript
6
- match 'themes/:theme/images/*asset' => 'themes_for_rails/assets#images', :as => :base_theme_image
4
+ theme_dir = ThemesForRails.config.themes_dir
5
+ match "#{theme_dir}/:theme/stylesheets/*asset" => 'themes_for_rails/assets#stylesheets', :as => :base_theme_stylesheet
6
+ match "#{theme_dir}/:theme/javascripts/*asset" => 'themes_for_rails/assets#javascripts', :as => :base_theme_javascript
7
+ match "#{theme_dir}/:theme/images/*asset" => 'themes_for_rails/assets#images', :as => :base_theme_image
7
8
  end
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module ThemesForRails
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -17,10 +17,18 @@ module ThemesForRails
17
17
  base_theme_image_path(:theme => self.theme_name, :asset => asset)
18
18
  end
19
19
 
20
- alias_method :theme_image_path, :current_theme_image_path
21
- alias_method :theme_javascript_path, :current_theme_javascript_path
22
- alias_method :theme_stylesheet_path, :current_theme_stylesheet_path
20
+ def theme_stylesheet_path(asset, new_theme_name = self.theme_name)
21
+ base_theme_stylesheet_path(:theme => new_theme_name, :asset => "#{asset}.css")
22
+ end
23
+
24
+ def theme_javascript_path(asset, new_theme_name = self.theme_name)
25
+ base_theme_javascript_path(:theme => new_theme_name, :asset => "#{asset}.js")
26
+ end
23
27
 
28
+ def theme_image_path(asset, new_theme_name = self.theme_name)
29
+ base_theme_image_path(:theme => new_theme_name, :asset => asset)
30
+ end
31
+
24
32
  def theme_image_tag(source, options = {})
25
33
  image_tag(theme_image_path(source), options)
26
34
  end
@@ -8,7 +8,7 @@ module ThemesForRails
8
8
  end
9
9
 
10
10
  def available_themes(&block)
11
- Dir.glob(File.join(config.base_dir, config.themes_dir, "*"), &block)
11
+ Dir.glob(File.join(config.themes_path, "*"), &block)
12
12
  end
13
13
  alias each_theme_dir available_themes
14
14
 
@@ -48,6 +48,7 @@ require 'themes_for_rails/url_helpers'
48
48
  require 'themes_for_rails/view_helpers'
49
49
  require 'themes_for_rails/assets_controller'
50
50
  require 'themes_for_rails/controller_methods'
51
+ require 'themes_for_rails/mailer_methods'
51
52
  require 'themes_for_rails/railtie'
52
53
  require 'themes_for_rails/routes'
53
54
  require 'themes_for_rails/version'
@@ -0,0 +1,34 @@
1
+ require File.expand_path("test/test_helper.rb")
2
+
3
+ THEME = 'pink'
4
+
5
+ class Notifier < ActionMailer::Base
6
+ default :theme => THEME
7
+
8
+ def welcome(user)
9
+ mail(:theme => user.theme)
10
+ end
11
+
12
+ def thanks(user)
13
+ mail
14
+ end
15
+ end
16
+
17
+ module ThemesForRails
18
+ class MailerMethodsTest < ActionController::TestCase
19
+
20
+ should "set theme using mail headers" do
21
+ Notifier.any_instance.expects(:theme).with("purple")
22
+
23
+ user = mock("User", :theme => "purple")
24
+ Notifier.welcome(user)
25
+ end
26
+
27
+ should "set theme using mail default opts" do
28
+ Notifier.any_instance.expects(:theme).with("pink")
29
+
30
+ user = mock("User")
31
+ Notifier.thanks(user)
32
+ end
33
+ end
34
+ end
@@ -1,13 +1,16 @@
1
1
  require "test_helper"
2
2
 
3
3
  class ThemesForRailsTest < Test::Unit::TestCase
4
+
4
5
  should 'know the available themes' do
5
6
  assert_equal ['default'], ThemesForRails.available_theme_names
6
7
  end
8
+
7
9
  should 'use config for each_theme_dir' do
8
- ThemesForRails.config.base_dir = Rails.root + 'app'
9
- assert_equal ['app_theme'], ThemesForRails.each_theme_dir.map {|f| File.basename(f) }
10
+ ThemesForRails.config.themes_dir = 'another_themes'
11
+ assert_equal %w(another_default), ThemesForRails.each_theme_dir.map {|theme| File.basename(theme) }
10
12
  end
13
+
11
14
  teardown do
12
15
  ThemesForRails.config.clear
13
16
  end
@@ -16,6 +16,14 @@ module ThemesForRails
16
16
  @config ||= stub({:perform_caching => false, :asset_path => "/assets", :asset_host => ''})
17
17
  end
18
18
 
19
+ should "provide path helpers for a given theme name" do
20
+
21
+ assert_equal "/themes/sometheme/stylesheets/style.css", theme_stylesheet_path('style', "sometheme")
22
+ assert_equal "/themes/sometheme/javascripts/app.js", theme_javascript_path('app', "sometheme")
23
+ assert_equal "/themes/sometheme/images/logo.png", theme_image_path('logo.png', "sometheme")
24
+
25
+ end
26
+
19
27
  should 'delegate to stylesheet_link_tag' do
20
28
  assert_match /media=.screen/, theme_stylesheet_link_tag('cuac.css')
21
29
  end
@@ -1,153 +1,213 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{themes_for_rails}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Lucas Florio"]
12
- s.date = %q{2011-02-02}
13
- s.description = %q{It allows an application to have many different ways of rendering static assets and dynamic views. }
11
+ s.authors = [%q{Lucas Florio}]
12
+ s.date = %q{2011-05-17}
13
+ s.description = %q{It allows an application to have many different ways of rendering static assets and dynamic views.}
14
14
  s.email = %q{lucasefe@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "README.textile"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
20
- ".rvmrc",
21
- "Gemfile",
22
- "Gemfile.lock",
23
- "README.textile",
24
- "REVIEW_NOTES",
25
- "RMU_REVIEW",
26
- "Rakefile",
27
- "TODO.textile",
28
- "init.rb",
29
- "lib/generators/themes_for_rails/install_generator.rb",
30
- "lib/generators/themes_for_rails/templates/theme/images/.gitkeep",
31
- "lib/generators/themes_for_rails/templates/theme/javascripts/.gitkeep",
32
- "lib/generators/themes_for_rails/templates/theme/stylesheets/.gitkeep",
33
- "lib/generators/themes_for_rails/templates/theme/views/layouts/.gitkeep",
34
- "lib/generators/themes_for_rails/theme_generator.rb",
35
- "lib/tasks/themes_for_rails.rake",
36
- "lib/themes_for_rails.rb",
37
- "lib/themes_for_rails/assets_controller.rb",
38
- "lib/themes_for_rails/common_methods.rb",
39
- "lib/themes_for_rails/config.rb",
40
- "lib/themes_for_rails/controller_methods.rb",
41
- "lib/themes_for_rails/railtie.rb",
42
- "lib/themes_for_rails/routes.rb",
43
- "lib/themes_for_rails/url_helpers.rb",
44
- "lib/themes_for_rails/version.rb",
45
- "lib/themes_for_rails/view_helpers.rb",
46
- "test/assets_controller_test.rb",
47
- "test/common_methods_test.rb",
48
- "test/config_test.rb",
49
- "test/controller_methods_test.rb",
50
- "test/dummy_app/.gitignore",
51
- "test/dummy_app/Gemfile",
52
- "test/dummy_app/Rakefile",
53
- "test/dummy_app/another_themes/another_default/images/logo.png",
54
- "test/dummy_app/another_themes/another_default/images/nested/logo.png",
55
- "test/dummy_app/another_themes/another_default/javascripts/app.js",
56
- "test/dummy_app/another_themes/another_default/stylesheets/style.css",
57
- "test/dummy_app/another_themes/another_default/stylesheets/style2.css",
58
- "test/dummy_app/another_themes/another_default/views/layouts/default.html.erb",
59
- "test/dummy_app/another_themes/another_default/views/products/index.html.erb",
60
- "test/dummy_app/app/controllers/application_controller.rb",
61
- "test/dummy_app/app/helpers/application_helper.rb",
62
- "test/dummy_app/app/views/layouts/application.html.erb",
63
- "test/dummy_app/config.ru",
64
- "test/dummy_app/config/application.rb",
65
- "test/dummy_app/config/boot.rb",
66
- "test/dummy_app/config/database.yml",
67
- "test/dummy_app/config/environment.rb",
68
- "test/dummy_app/config/environments/development.rb",
69
- "test/dummy_app/config/environments/production.rb",
70
- "test/dummy_app/config/environments/test.rb",
71
- "test/dummy_app/config/initializers/backtrace_silencers.rb",
72
- "test/dummy_app/config/initializers/inflections.rb",
73
- "test/dummy_app/config/initializers/mime_types.rb",
74
- "test/dummy_app/config/initializers/secret_token.rb",
75
- "test/dummy_app/config/initializers/session_store.rb",
76
- "test/dummy_app/config/locales/en.yml",
77
- "test/dummy_app/config/routes.rb",
78
- "test/dummy_app/db/seeds.rb",
79
- "test/dummy_app/empty_themes/.gitkeep",
80
- "test/dummy_app/lib/tasks/.gitkeep",
81
- "test/dummy_app/public/404.html",
82
- "test/dummy_app/public/422.html",
83
- "test/dummy_app/public/500.html",
84
- "test/dummy_app/public/favicon.ico",
85
- "test/dummy_app/public/images/rails.png",
86
- "test/dummy_app/public/index.html",
87
- "test/dummy_app/public/javascripts/application.js",
88
- "test/dummy_app/public/javascripts/controls.js",
89
- "test/dummy_app/public/javascripts/dragdrop.js",
90
- "test/dummy_app/public/javascripts/effects.js",
91
- "test/dummy_app/public/javascripts/prototype.js",
92
- "test/dummy_app/public/javascripts/rails.js",
93
- "test/dummy_app/public/robots.txt",
94
- "test/dummy_app/public/stylesheets/.gitkeep",
95
- "test/dummy_app/script/rails",
96
- "test/dummy_app/themes/default/images/logo.png",
97
- "test/dummy_app/themes/default/images/nested/logo.png",
98
- "test/dummy_app/themes/default/javascripts/app.js",
99
- "test/dummy_app/themes/default/stylesheets/images/logo.png",
100
- "test/dummy_app/themes/default/stylesheets/style.css",
101
- "test/dummy_app/themes/default/stylesheets/style2.css",
102
- "test/dummy_app/themes/default/views/layouts/default.html.erb",
103
- "test/dummy_app/themes/default/views/products/index.html.erb",
104
- "test/routes_test.rb",
105
- "test/support/extensions.rb",
106
- "test/test_helper.rb",
107
- "test/themes_for_rails_test.rb",
108
- "test/view_helpers_test.rb",
109
- "themes_for_rails.gemspec"
19
+ ".rvmrc",
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "README.textile",
23
+ "REVIEW_NOTES",
24
+ "RMU_REVIEW",
25
+ "Rakefile",
26
+ "TODO.textile",
27
+ "init.rb",
28
+ "lib/generators/themes_for_rails/install_generator.rb",
29
+ "lib/generators/themes_for_rails/templates/theme/images/.gitkeep",
30
+ "lib/generators/themes_for_rails/templates/theme/javascripts/.gitkeep",
31
+ "lib/generators/themes_for_rails/templates/theme/stylesheets/.gitkeep",
32
+ "lib/generators/themes_for_rails/templates/theme/views/layouts/.gitkeep",
33
+ "lib/generators/themes_for_rails/theme_generator.rb",
34
+ "lib/tasks/themes_for_rails.rake",
35
+ "lib/themes_for_rails.rb",
36
+ "lib/themes_for_rails/assets_controller.rb",
37
+ "lib/themes_for_rails/common_methods.rb",
38
+ "lib/themes_for_rails/config.rb",
39
+ "lib/themes_for_rails/controller_methods.rb",
40
+ "lib/themes_for_rails/mailer_methods.rb",
41
+ "lib/themes_for_rails/railtie.rb",
42
+ "lib/themes_for_rails/routes.rb",
43
+ "lib/themes_for_rails/url_helpers.rb",
44
+ "lib/themes_for_rails/version.rb",
45
+ "lib/themes_for_rails/view_helpers.rb",
46
+ "test/assets_controller_test.rb",
47
+ "test/common_methods_test.rb",
48
+ "test/config_test.rb",
49
+ "test/controller_methods_test.rb",
50
+ "test/dummy_app/.gitignore",
51
+ "test/dummy_app/Gemfile",
52
+ "test/dummy_app/Rakefile",
53
+ "test/dummy_app/another_themes/another_default/images/logo.png",
54
+ "test/dummy_app/another_themes/another_default/images/nested/logo.png",
55
+ "test/dummy_app/another_themes/another_default/javascripts/app.js",
56
+ "test/dummy_app/another_themes/another_default/stylesheets/style.css",
57
+ "test/dummy_app/another_themes/another_default/stylesheets/style2.css",
58
+ "test/dummy_app/another_themes/another_default/views/layouts/default.html.erb",
59
+ "test/dummy_app/another_themes/another_default/views/products/index.html.erb",
60
+ "test/dummy_app/app/controllers/application_controller.rb",
61
+ "test/dummy_app/app/helpers/application_helper.rb",
62
+ "test/dummy_app/app/views/layouts/application.html.erb",
63
+ "test/dummy_app/config.ru",
64
+ "test/dummy_app/config/application.rb",
65
+ "test/dummy_app/config/boot.rb",
66
+ "test/dummy_app/config/database.yml",
67
+ "test/dummy_app/config/environment.rb",
68
+ "test/dummy_app/config/environments/development.rb",
69
+ "test/dummy_app/config/environments/production.rb",
70
+ "test/dummy_app/config/environments/test.rb",
71
+ "test/dummy_app/config/initializers/backtrace_silencers.rb",
72
+ "test/dummy_app/config/initializers/inflections.rb",
73
+ "test/dummy_app/config/initializers/mime_types.rb",
74
+ "test/dummy_app/config/initializers/secret_token.rb",
75
+ "test/dummy_app/config/initializers/session_store.rb",
76
+ "test/dummy_app/config/locales/en.yml",
77
+ "test/dummy_app/config/routes.rb",
78
+ "test/dummy_app/db/seeds.rb",
79
+ "test/dummy_app/empty_themes/.gitkeep",
80
+ "test/dummy_app/lib/tasks/.gitkeep",
81
+ "test/dummy_app/public/404.html",
82
+ "test/dummy_app/public/422.html",
83
+ "test/dummy_app/public/500.html",
84
+ "test/dummy_app/public/favicon.ico",
85
+ "test/dummy_app/public/images/rails.png",
86
+ "test/dummy_app/public/index.html",
87
+ "test/dummy_app/public/javascripts/application.js",
88
+ "test/dummy_app/public/javascripts/controls.js",
89
+ "test/dummy_app/public/javascripts/dragdrop.js",
90
+ "test/dummy_app/public/javascripts/effects.js",
91
+ "test/dummy_app/public/javascripts/prototype.js",
92
+ "test/dummy_app/public/javascripts/rails.js",
93
+ "test/dummy_app/public/robots.txt",
94
+ "test/dummy_app/public/stylesheets/.gitkeep",
95
+ "test/dummy_app/script/rails",
96
+ "test/dummy_app/themes/default/images/logo.png",
97
+ "test/dummy_app/themes/default/images/nested/logo.png",
98
+ "test/dummy_app/themes/default/javascripts/app.js",
99
+ "test/dummy_app/themes/default/stylesheets/images/logo.png",
100
+ "test/dummy_app/themes/default/stylesheets/style.css",
101
+ "test/dummy_app/themes/default/stylesheets/style2.css",
102
+ "test/dummy_app/themes/default/views/layouts/default.html.erb",
103
+ "test/dummy_app/themes/default/views/products/index.html.erb",
104
+ "test/mailer_methods_test.rb",
105
+ "test/routes_test.rb",
106
+ "test/support/extensions.rb",
107
+ "test/test_helper.rb",
108
+ "test/themes_for_rails_test.rb",
109
+ "test/view_helpers_test.rb",
110
+ "themes_for_rails.gemspec"
110
111
  ]
111
112
  s.homepage = %q{http://github.com/lucasefe/themes_for_rails}
112
- s.rdoc_options = ["--charset=UTF-8"]
113
- s.require_paths = ["lib"]
114
- s.rubygems_version = %q{1.3.7}
113
+ s.require_paths = [%q{lib}]
114
+ s.rubygems_version = %q{1.8.2}
115
115
  s.summary = %q{Themes support for rails (3)}
116
116
  s.test_files = [
117
117
  "test/assets_controller_test.rb",
118
- "test/common_methods_test.rb",
119
- "test/config_test.rb",
120
- "test/controller_methods_test.rb",
121
- "test/dummy_app/app/controllers/application_controller.rb",
122
- "test/dummy_app/app/helpers/application_helper.rb",
123
- "test/dummy_app/config/application.rb",
124
- "test/dummy_app/config/boot.rb",
125
- "test/dummy_app/config/environment.rb",
126
- "test/dummy_app/config/environments/development.rb",
127
- "test/dummy_app/config/environments/production.rb",
128
- "test/dummy_app/config/environments/test.rb",
129
- "test/dummy_app/config/initializers/backtrace_silencers.rb",
130
- "test/dummy_app/config/initializers/inflections.rb",
131
- "test/dummy_app/config/initializers/mime_types.rb",
132
- "test/dummy_app/config/initializers/secret_token.rb",
133
- "test/dummy_app/config/initializers/session_store.rb",
134
- "test/dummy_app/config/routes.rb",
135
- "test/dummy_app/db/seeds.rb",
136
- "test/routes_test.rb",
137
- "test/support/extensions.rb",
138
- "test/test_helper.rb",
139
- "test/themes_for_rails_test.rb",
140
- "test/view_helpers_test.rb"
118
+ "test/common_methods_test.rb",
119
+ "test/config_test.rb",
120
+ "test/controller_methods_test.rb",
121
+ "test/dummy_app/app/controllers/application_controller.rb",
122
+ "test/dummy_app/app/helpers/application_helper.rb",
123
+ "test/dummy_app/config/application.rb",
124
+ "test/dummy_app/config/boot.rb",
125
+ "test/dummy_app/config/environment.rb",
126
+ "test/dummy_app/config/environments/development.rb",
127
+ "test/dummy_app/config/environments/production.rb",
128
+ "test/dummy_app/config/environments/test.rb",
129
+ "test/dummy_app/config/initializers/backtrace_silencers.rb",
130
+ "test/dummy_app/config/initializers/inflections.rb",
131
+ "test/dummy_app/config/initializers/mime_types.rb",
132
+ "test/dummy_app/config/initializers/secret_token.rb",
133
+ "test/dummy_app/config/initializers/session_store.rb",
134
+ "test/dummy_app/config/routes.rb",
135
+ "test/dummy_app/db/seeds.rb",
136
+ "test/mailer_methods_test.rb",
137
+ "test/routes_test.rb",
138
+ "test/support/extensions.rb",
139
+ "test/test_helper.rb",
140
+ "test/themes_for_rails_test.rb",
141
+ "test/view_helpers_test.rb"
141
142
  ]
142
143
 
143
144
  if s.respond_to? :specification_version then
144
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
145
145
  s.specification_version = 3
146
146
 
147
147
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
148
+ s.add_runtime_dependency(%q<themes_for_rails>, [">= 0"])
149
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
150
+ s.add_development_dependency(%q<test-unit>, [">= 0"])
151
+ s.add_development_dependency(%q<rspec-rails>, [">= 2.0.0.beta.20"])
152
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
153
+ s.add_development_dependency(%q<contest>, [">= 0"])
154
+ s.add_development_dependency(%q<mocha>, [">= 0"])
155
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
156
+ s.add_development_dependency(%q<test-unit>, [">= 0"])
157
+ s.add_development_dependency(%q<rspec-rails>, [">= 2.0.0.beta.20"])
158
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
159
+ s.add_development_dependency(%q<contest>, [">= 0"])
160
+ s.add_development_dependency(%q<mocha>, [">= 0"])
161
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
162
+ s.add_development_dependency(%q<test-unit>, [">= 0"])
163
+ s.add_development_dependency(%q<rspec-rails>, [">= 2.0.0.beta.20"])
164
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
165
+ s.add_development_dependency(%q<contest>, [">= 0"])
166
+ s.add_development_dependency(%q<mocha>, [">= 0"])
167
+ s.add_runtime_dependency(%q<rails>, ["~> 3.0.0"])
148
168
  else
169
+ s.add_dependency(%q<themes_for_rails>, [">= 0"])
170
+ s.add_dependency(%q<sqlite3>, [">= 0"])
171
+ s.add_dependency(%q<test-unit>, [">= 0"])
172
+ s.add_dependency(%q<rspec-rails>, [">= 2.0.0.beta.20"])
173
+ s.add_dependency(%q<jeweler>, [">= 0"])
174
+ s.add_dependency(%q<contest>, [">= 0"])
175
+ s.add_dependency(%q<mocha>, [">= 0"])
176
+ s.add_dependency(%q<sqlite3>, [">= 0"])
177
+ s.add_dependency(%q<test-unit>, [">= 0"])
178
+ s.add_dependency(%q<rspec-rails>, [">= 2.0.0.beta.20"])
179
+ s.add_dependency(%q<jeweler>, [">= 0"])
180
+ s.add_dependency(%q<contest>, [">= 0"])
181
+ s.add_dependency(%q<mocha>, [">= 0"])
182
+ s.add_dependency(%q<sqlite3>, [">= 0"])
183
+ s.add_dependency(%q<test-unit>, [">= 0"])
184
+ s.add_dependency(%q<rspec-rails>, [">= 2.0.0.beta.20"])
185
+ s.add_dependency(%q<jeweler>, [">= 0"])
186
+ s.add_dependency(%q<contest>, [">= 0"])
187
+ s.add_dependency(%q<mocha>, [">= 0"])
188
+ s.add_dependency(%q<rails>, ["~> 3.0.0"])
149
189
  end
150
190
  else
191
+ s.add_dependency(%q<themes_for_rails>, [">= 0"])
192
+ s.add_dependency(%q<sqlite3>, [">= 0"])
193
+ s.add_dependency(%q<test-unit>, [">= 0"])
194
+ s.add_dependency(%q<rspec-rails>, [">= 2.0.0.beta.20"])
195
+ s.add_dependency(%q<jeweler>, [">= 0"])
196
+ s.add_dependency(%q<contest>, [">= 0"])
197
+ s.add_dependency(%q<mocha>, [">= 0"])
198
+ s.add_dependency(%q<sqlite3>, [">= 0"])
199
+ s.add_dependency(%q<test-unit>, [">= 0"])
200
+ s.add_dependency(%q<rspec-rails>, [">= 2.0.0.beta.20"])
201
+ s.add_dependency(%q<jeweler>, [">= 0"])
202
+ s.add_dependency(%q<contest>, [">= 0"])
203
+ s.add_dependency(%q<mocha>, [">= 0"])
204
+ s.add_dependency(%q<sqlite3>, [">= 0"])
205
+ s.add_dependency(%q<test-unit>, [">= 0"])
206
+ s.add_dependency(%q<rspec-rails>, [">= 2.0.0.beta.20"])
207
+ s.add_dependency(%q<jeweler>, [">= 0"])
208
+ s.add_dependency(%q<contest>, [">= 0"])
209
+ s.add_dependency(%q<mocha>, [">= 0"])
210
+ s.add_dependency(%q<rails>, ["~> 3.0.0"])
151
211
  end
152
212
  end
153
213
 
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: themes_for_rails
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 4
8
- - 1
9
- version: 0.4.1
4
+ prerelease:
5
+ version: 0.4.2
10
6
  platform: ruby
11
7
  authors:
12
8
  - Lucas Florio
@@ -14,11 +10,295 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-02-02 00:00:00 -03:00
18
- default_executable:
19
- dependencies: []
20
-
21
- description: "It allows an application to have many different ways of rendering static assets and dynamic views. "
13
+ date: 2011-05-17 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: themes_for_rails
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: sqlite3
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: test-unit
39
+ requirement: &id003 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: "0"
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: rspec-rails
50
+ requirement: &id004 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 2.0.0.beta.20
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *id004
59
+ - !ruby/object:Gem::Dependency
60
+ name: jeweler
61
+ requirement: &id005 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: "0"
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: *id005
70
+ - !ruby/object:Gem::Dependency
71
+ name: contest
72
+ requirement: &id006 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: "0"
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: *id006
81
+ - !ruby/object:Gem::Dependency
82
+ name: mocha
83
+ requirement: &id007 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: "0"
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: *id007
92
+ - !ruby/object:Gem::Dependency
93
+ name: sqlite3
94
+ requirement: &id008 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: "0"
100
+ type: :development
101
+ prerelease: false
102
+ version_requirements: *id008
103
+ - !ruby/object:Gem::Dependency
104
+ name: test-unit
105
+ requirement: &id009 !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: "0"
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: *id009
114
+ - !ruby/object:Gem::Dependency
115
+ name: rspec-rails
116
+ requirement: &id010 !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: 2.0.0.beta.20
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: *id010
125
+ - !ruby/object:Gem::Dependency
126
+ name: jeweler
127
+ requirement: &id011 !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: "0"
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: *id011
136
+ - !ruby/object:Gem::Dependency
137
+ name: contest
138
+ requirement: &id012 !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: "0"
144
+ type: :development
145
+ prerelease: false
146
+ version_requirements: *id012
147
+ - !ruby/object:Gem::Dependency
148
+ name: mocha
149
+ requirement: &id013 !ruby/object:Gem::Requirement
150
+ none: false
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: "0"
155
+ type: :development
156
+ prerelease: false
157
+ version_requirements: *id013
158
+ - !ruby/object:Gem::Dependency
159
+ name: sqlite3
160
+ requirement: &id014 !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: "0"
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: *id014
169
+ - !ruby/object:Gem::Dependency
170
+ name: test-unit
171
+ requirement: &id015 !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: "0"
177
+ type: :development
178
+ prerelease: false
179
+ version_requirements: *id015
180
+ - !ruby/object:Gem::Dependency
181
+ name: rspec-rails
182
+ requirement: &id016 !ruby/object:Gem::Requirement
183
+ none: false
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: 2.0.0.beta.20
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: *id016
191
+ - !ruby/object:Gem::Dependency
192
+ name: jeweler
193
+ requirement: &id017 !ruby/object:Gem::Requirement
194
+ none: false
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ version: "0"
199
+ type: :development
200
+ prerelease: false
201
+ version_requirements: *id017
202
+ - !ruby/object:Gem::Dependency
203
+ name: contest
204
+ requirement: &id018 !ruby/object:Gem::Requirement
205
+ none: false
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ version: "0"
210
+ type: :development
211
+ prerelease: false
212
+ version_requirements: *id018
213
+ - !ruby/object:Gem::Dependency
214
+ name: mocha
215
+ requirement: &id019 !ruby/object:Gem::Requirement
216
+ none: false
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: "0"
221
+ type: :development
222
+ prerelease: false
223
+ version_requirements: *id019
224
+ - !ruby/object:Gem::Dependency
225
+ name: sqlite3
226
+ requirement: &id020 !ruby/object:Gem::Requirement
227
+ none: false
228
+ requirements:
229
+ - - ">="
230
+ - !ruby/object:Gem::Version
231
+ version: "0"
232
+ type: :development
233
+ prerelease: false
234
+ version_requirements: *id020
235
+ - !ruby/object:Gem::Dependency
236
+ name: test-unit
237
+ requirement: &id021 !ruby/object:Gem::Requirement
238
+ none: false
239
+ requirements:
240
+ - - ">="
241
+ - !ruby/object:Gem::Version
242
+ version: "0"
243
+ type: :development
244
+ prerelease: false
245
+ version_requirements: *id021
246
+ - !ruby/object:Gem::Dependency
247
+ name: rspec-rails
248
+ requirement: &id022 !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ version: 2.0.0.beta.20
254
+ type: :development
255
+ prerelease: false
256
+ version_requirements: *id022
257
+ - !ruby/object:Gem::Dependency
258
+ name: jeweler
259
+ requirement: &id023 !ruby/object:Gem::Requirement
260
+ none: false
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: "0"
265
+ type: :development
266
+ prerelease: false
267
+ version_requirements: *id023
268
+ - !ruby/object:Gem::Dependency
269
+ name: contest
270
+ requirement: &id024 !ruby/object:Gem::Requirement
271
+ none: false
272
+ requirements:
273
+ - - ">="
274
+ - !ruby/object:Gem::Version
275
+ version: "0"
276
+ type: :development
277
+ prerelease: false
278
+ version_requirements: *id024
279
+ - !ruby/object:Gem::Dependency
280
+ name: mocha
281
+ requirement: &id025 !ruby/object:Gem::Requirement
282
+ none: false
283
+ requirements:
284
+ - - ">="
285
+ - !ruby/object:Gem::Version
286
+ version: "0"
287
+ type: :development
288
+ prerelease: false
289
+ version_requirements: *id025
290
+ - !ruby/object:Gem::Dependency
291
+ name: rails
292
+ requirement: &id026 !ruby/object:Gem::Requirement
293
+ none: false
294
+ requirements:
295
+ - - ~>
296
+ - !ruby/object:Gem::Version
297
+ version: 3.0.0
298
+ type: :runtime
299
+ prerelease: false
300
+ version_requirements: *id026
301
+ description: It allows an application to have many different ways of rendering static assets and dynamic views.
22
302
  email: lucasefe@gmail.com
23
303
  executables: []
24
304
 
@@ -27,7 +307,6 @@ extensions: []
27
307
  extra_rdoc_files:
28
308
  - README.textile
29
309
  files:
30
- - .gitignore
31
310
  - .rvmrc
32
311
  - Gemfile
33
312
  - Gemfile.lock
@@ -49,6 +328,7 @@ files:
49
328
  - lib/themes_for_rails/common_methods.rb
50
329
  - lib/themes_for_rails/config.rb
51
330
  - lib/themes_for_rails/controller_methods.rb
331
+ - lib/themes_for_rails/mailer_methods.rb
52
332
  - lib/themes_for_rails/railtie.rb
53
333
  - lib/themes_for_rails/routes.rb
54
334
  - lib/themes_for_rails/url_helpers.rb
@@ -112,19 +392,19 @@ files:
112
392
  - test/dummy_app/themes/default/stylesheets/style2.css
113
393
  - test/dummy_app/themes/default/views/layouts/default.html.erb
114
394
  - test/dummy_app/themes/default/views/products/index.html.erb
395
+ - test/mailer_methods_test.rb
115
396
  - test/routes_test.rb
116
397
  - test/support/extensions.rb
117
398
  - test/test_helper.rb
118
399
  - test/themes_for_rails_test.rb
119
400
  - test/view_helpers_test.rb
120
401
  - themes_for_rails.gemspec
121
- has_rdoc: true
122
402
  homepage: http://github.com/lucasefe/themes_for_rails
123
403
  licenses: []
124
404
 
125
405
  post_install_message:
126
- rdoc_options:
127
- - --charset=UTF-8
406
+ rdoc_options: []
407
+
128
408
  require_paths:
129
409
  - lib
130
410
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -132,21 +412,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
412
  requirements:
133
413
  - - ">="
134
414
  - !ruby/object:Gem::Version
135
- segments:
136
- - 0
137
415
  version: "0"
138
416
  required_rubygems_version: !ruby/object:Gem::Requirement
139
417
  none: false
140
418
  requirements:
141
419
  - - ">="
142
420
  - !ruby/object:Gem::Version
143
- segments:
144
- - 0
145
421
  version: "0"
146
422
  requirements: []
147
423
 
148
424
  rubyforge_project:
149
- rubygems_version: 1.3.7
425
+ rubygems_version: 1.8.2
150
426
  signing_key:
151
427
  specification_version: 3
152
428
  summary: Themes support for rails (3)
@@ -170,6 +446,7 @@ test_files:
170
446
  - test/dummy_app/config/initializers/session_store.rb
171
447
  - test/dummy_app/config/routes.rb
172
448
  - test/dummy_app/db/seeds.rb
449
+ - test/mailer_methods_test.rb
173
450
  - test/routes_test.rb
174
451
  - test/support/extensions.rb
175
452
  - test/test_helper.rb
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- .bundle
2
- pkg
3
- tmp
4
- .DS_Store