themes_for_rails 0.5.1 → 1.0.0rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. data/.rvmrc +1 -0
  2. data/Gemfile.lock +82 -60
  3. data/README.textile +235 -11
  4. data/Rakefile +31 -11
  5. data/init.rb +1 -0
  6. data/lib/generators/themes_for_rails/install_generator.rb +21 -6
  7. data/lib/generators/themes_for_rails/templates/README +11 -0
  8. data/lib/generators/themes_for_rails/templates/theme/{images → assets/images}/.gitkeep +0 -0
  9. data/lib/generators/themes_for_rails/templates/theme/{javascripts → assets/javascripts}/.gitkeep +0 -0
  10. data/lib/generators/themes_for_rails/templates/theme/assets/javascripts/application.js +9 -0
  11. data/lib/generators/themes_for_rails/templates/theme/{stylesheets → assets/stylesheets}/.gitkeep +0 -0
  12. data/lib/generators/themes_for_rails/templates/theme/assets/stylesheets/application.css +7 -0
  13. data/lib/generators/themes_for_rails/theme_generator.rb +2 -3
  14. data/lib/themes_for_rails.rb +15 -40
  15. data/lib/themes_for_rails/assets_finder.rb +44 -0
  16. data/lib/themes_for_rails/common_methods.rb +26 -34
  17. data/lib/themes_for_rails/config.rb +8 -59
  18. data/lib/themes_for_rails/{action_controller.rb → controller_methods.rb} +7 -13
  19. data/lib/themes_for_rails/logging.rb +14 -0
  20. data/lib/themes_for_rails/mailer_methods.rb +22 -0
  21. data/lib/themes_for_rails/railtie.rb +10 -21
  22. data/lib/themes_for_rails/routes.rb +3 -15
  23. data/lib/themes_for_rails/version.rb +1 -2
  24. data/lib/themes_for_rails/view_helpers.rb +52 -0
  25. data/spec/controllers/my_controller_spec.rb +99 -0
  26. data/{test/dummy_app → spec/dummy}/.gitignore +2 -1
  27. data/spec/dummy/Gemfile +35 -0
  28. data/spec/dummy/Gemfile.lock +127 -0
  29. data/spec/dummy/README +261 -0
  30. data/{test/dummy_app → spec/dummy}/Rakefile +1 -1
  31. data/{test/dummy_app/public → spec/dummy/app/assets}/images/rails.png +0 -0
  32. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  33. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  34. data/{test/dummy_app → spec/dummy}/app/controllers/application_controller.rb +0 -0
  35. data/{test/dummy_app → spec/dummy}/app/helpers/application_helper.rb +0 -0
  36. data/{test/dummy_app/empty_themes → spec/dummy/app/mailers}/.gitkeep +0 -0
  37. data/{test/dummy_app/lib/tasks → spec/dummy/app/models}/.gitkeep +0 -0
  38. data/spec/dummy/app/themes/default/assets/images/rails.png +0 -0
  39. data/spec/dummy/app/themes/default/assets/javascripts/application.js +9 -0
  40. data/spec/dummy/app/themes/default/assets/stylesheets/application.css +7 -0
  41. data/spec/dummy/app/themes/default/views/layouts/application.html.erb +14 -0
  42. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  43. data/{test/dummy_app → spec/dummy}/config.ru +0 -0
  44. data/{test/dummy_app → spec/dummy}/config/application.rb +12 -6
  45. data/spec/dummy/config/boot.rb +6 -0
  46. data/{test/dummy_app → spec/dummy}/config/database.yml +10 -3
  47. data/{test/dummy_app → spec/dummy}/config/environment.rb +0 -0
  48. data/{test/dummy_app → spec/dummy}/config/environments/development.rb +8 -4
  49. data/{test/dummy_app → spec/dummy}/config/environments/production.rb +24 -13
  50. data/{test/dummy_app → spec/dummy}/config/environments/test.rb +9 -2
  51. data/{test/dummy_app → spec/dummy}/config/initializers/backtrace_silencers.rb +0 -0
  52. data/{test/dummy_app → spec/dummy}/config/initializers/inflections.rb +0 -0
  53. data/{test/dummy_app → spec/dummy}/config/initializers/mime_types.rb +0 -0
  54. data/{test/dummy_app → spec/dummy}/config/initializers/secret_token.rb +1 -1
  55. data/{test/dummy_app → spec/dummy}/config/initializers/session_store.rb +2 -2
  56. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  57. data/{test/dummy_app → spec/dummy}/config/locales/en.yml +1 -1
  58. data/spec/dummy/config/routes.rb +3 -0
  59. data/{test/dummy_app → spec/dummy}/db/seeds.rb +2 -2
  60. data/spec/dummy/doc/README_FOR_APP +2 -0
  61. data/{test/dummy_app/public/stylesheets → spec/dummy/lib/assets}/.gitkeep +0 -0
  62. data/{doc/REVIEW_NOTES → spec/dummy/lib/tasks/.gitkeep} +0 -0
  63. data/{test/dummy_app/another_themes/another_default/images/logo.png → spec/dummy/log/.gitkeep} +0 -0
  64. data/{test/dummy_app → spec/dummy}/public/404.html +0 -0
  65. data/{test/dummy_app → spec/dummy}/public/422.html +0 -0
  66. data/{test/dummy_app → spec/dummy}/public/500.html +0 -0
  67. data/{test/dummy_app → spec/dummy}/public/favicon.ico +0 -0
  68. data/{test/dummy_app → spec/dummy}/public/index.html +10 -8
  69. data/{test/dummy_app → spec/dummy}/public/robots.txt +0 -0
  70. data/{test/dummy_app → spec/dummy}/script/rails +0 -0
  71. data/{test/dummy_app/another_themes/another_default/images/nested/logo.png → spec/dummy/test/fixtures/.gitkeep} +0 -0
  72. data/{test/dummy_app/another_themes/another_default/stylesheets/style.css → spec/dummy/test/functional/.gitkeep} +0 -0
  73. data/{test/dummy_app/another_themes/another_default/views/products/index.html.erb → spec/dummy/test/integration/.gitkeep} +0 -0
  74. data/spec/dummy/test/performance/browsing_test.rb +12 -0
  75. data/spec/dummy/test/test_helper.rb +13 -0
  76. data/{test/dummy_app/themes/default/images/logo.png → spec/dummy/test/unit/.gitkeep} +0 -0
  77. data/{test/dummy_app/themes/default/images/nested/logo.png → spec/dummy/vendor/assets/stylesheets/.gitkeep} +0 -0
  78. data/{test/dummy_app/themes/default/javascripts/app.min.js → spec/dummy/vendor/plugins/.gitkeep} +0 -0
  79. data/spec/lib/assets_finder_spec.rb +10 -0
  80. data/spec/lib/common_methods_spec.rb +30 -0
  81. data/spec/lib/config_spec.rb +19 -0
  82. data/spec/lib/controller_methods_spec.rb +19 -0
  83. data/spec/lib/view_helpers_spec.rb +38 -0
  84. data/spec/mailers/mailer_methods_spec.rb +39 -0
  85. data/spec/spec_helper.rb +15 -0
  86. data/test/dummy_app/Gemfile.lock +91 -0
  87. data/test/dummy_app/{themes/default/stylesheets/images/logo.png → log/development.log} +0 -0
  88. data/test/dummy_app/log/test.log +6 -0
  89. data/themes_for_rails.gemspec +140 -20
  90. metadata +112 -183
  91. data/.gitignore +0 -7
  92. data/.travis.yml +0 -2
  93. data/LICENSE +0 -21
  94. data/doc/README.textile +0 -363
  95. data/doc/RMU_REVIEW +0 -26
  96. data/doc/TODO.textile +0 -3
  97. data/lib/themes_for_rails/action_mailer.rb +0 -22
  98. data/lib/themes_for_rails/action_view.rb +0 -62
  99. data/lib/themes_for_rails/assets_controller.rb +0 -66
  100. data/lib/themes_for_rails/interpolation.rb +0 -11
  101. data/lib/themes_for_rails/url_helpers.rb +0 -27
  102. data/test/dummy_app/Gemfile +0 -30
  103. data/test/dummy_app/another_themes/another_default/javascripts/app.js +0 -1
  104. data/test/dummy_app/another_themes/another_default/stylesheets/style2.css +0 -3
  105. data/test/dummy_app/another_themes/another_default/views/layouts/default.html.erb +0 -10
  106. data/test/dummy_app/app/views/layouts/application.html.erb +0 -14
  107. data/test/dummy_app/config/boot.rb +0 -13
  108. data/test/dummy_app/config/routes.rb +0 -4
  109. data/test/dummy_app/public/javascripts/application.js +0 -2
  110. data/test/dummy_app/public/javascripts/controls.js +0 -965
  111. data/test/dummy_app/public/javascripts/dragdrop.js +0 -974
  112. data/test/dummy_app/public/javascripts/effects.js +0 -1123
  113. data/test/dummy_app/public/javascripts/prototype.js +0 -6001
  114. data/test/dummy_app/public/javascripts/rails.js +0 -175
  115. data/test/dummy_app/themes/default/javascripts/app.js +0 -1
  116. data/test/dummy_app/themes/default/stylesheets/style.css +0 -0
  117. data/test/dummy_app/themes/default/stylesheets/style2.css +0 -3
  118. data/test/dummy_app/themes/default/views/layouts/default.html.erb +0 -10
  119. data/test/dummy_app/themes/default/views/products/index.html.erb +0 -0
  120. data/test/lib/action_controller_test.rb +0 -170
  121. data/test/lib/action_mailer_test.rb +0 -35
  122. data/test/lib/action_view_test.rb +0 -54
  123. data/test/lib/assets_controller_test.rb +0 -73
  124. data/test/lib/common_methods_test.rb +0 -28
  125. data/test/lib/config_test.rb +0 -26
  126. data/test/lib/integration_test.rb +0 -12
  127. data/test/lib/routes_test.rb +0 -40
  128. data/test/lib/themes_for_rails_test.rb +0 -18
  129. data/test/support/extensions.rb +0 -19
  130. data/test/test_helper.rb +0 -12
@@ -0,0 +1,13 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
7
+ #
8
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
9
+ # -- they do not yet inherit this setting
10
+ fixtures :all
11
+
12
+ # Add more helper methods to be used by all tests here...
13
+ end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+ require 'themes_for_rails/assets_finder'
3
+
4
+ describe ThemesForRails::AssetsFinder do
5
+ it "should match the theme and the path of a given REQUEST_PATH" do
6
+ _, theme, asset_path = *ThemesForRails::AssetsFinder::THEME_REGEX_MATCHER.match("themes/pink/assets/ruby.jpg")
7
+ theme.should == "pink"
8
+ asset_path.should == "ruby.jpg"
9
+ end
10
+ end
@@ -0,0 +1,30 @@
1
+ require "spec_helper"
2
+
3
+ describe "ThemesForRails::CommonMethods" do
4
+ before :all do
5
+ @common = Object.new
6
+ @common.extend ThemesForRails::CommonMethods
7
+ @common.theme_name = "awesome"
8
+ ThemesForRails.config.clear
9
+ end
10
+
11
+ it 'should use config themes_dir to build theme views path' do
12
+ ThemesForRails.config.themes_dir = 'skinner'
13
+ @common.send(:views_path_for, 'skinner').should match(/skinner\/views/)
14
+ end
15
+
16
+ it 'should use config themes_dir to build theme javascripts assets path' do
17
+ ThemesForRails.config.themes_dir = 'skinner'
18
+ @common.send(:assets_path_for, 'skinner', :javascripts).should match(/skinner\/assets\/javascripts/)
19
+ end
20
+
21
+ it 'should use config themes_dir to build theme stylesheets assets path' do
22
+ ThemesForRails.config.themes_dir = 'skinner'
23
+ @common.send(:assets_path_for, 'skinner', :stylesheets).should match(/skinner\/assets\/stylesheets/)
24
+ end
25
+
26
+ it 'should use config themes_dir to build theme images assets path' do
27
+ ThemesForRails.config.themes_dir = 'skinner'
28
+ @common.send(:assets_path_for, 'skinner', :images).should match(/skinner\/assets\/images/)
29
+ end
30
+ end
@@ -0,0 +1,19 @@
1
+ require "spec_helper"
2
+
3
+ describe "ThemesForRails::Config" do
4
+ before :each do
5
+ ThemesForRails.config.clear
6
+ end
7
+
8
+ it 'should change the directory to directory with themes that we specify' do
9
+ ThemesForRails.config do |config|
10
+ config.themes_dir = 'app/themes'
11
+ end
12
+
13
+ ThemesForRails.available_theme_names.should == ['default']
14
+ end
15
+
16
+ it 'should change the directory to default themes directory' do
17
+ ThemesForRails.available_theme_names.should == ['default']
18
+ end
19
+ end
@@ -0,0 +1,19 @@
1
+ require "spec_helper"
2
+
3
+ describe "ActionMailerInclusion" do
4
+ it "should include the ControllerMethods module" do
5
+ ActionMailer::Base.included_modules.should include(ThemesForRails::ControllerMethods)
6
+ end
7
+ end
8
+
9
+ describe "ActionControllerInclusion" do
10
+ it "should include the ControllerMethods module" do
11
+ ActionController::Base.included_modules.should include(ThemesForRails::ControllerMethods)
12
+ end
13
+ end
14
+
15
+ describe "ApplicationControllerInclusion" do
16
+ it "should include the ControllerMethods module" do
17
+ ApplicationController.included_modules.should include(ThemesForRails::ControllerMethods)
18
+ end
19
+ end
@@ -0,0 +1,38 @@
1
+ require 'spec_helper'
2
+
3
+ describe ThemesForRails::ViewHelpers do
4
+
5
+ let(:helper) do
6
+ config = stub({:perform_caching => false,
7
+ :asset_path => "/assets",
8
+ :relative_url_root => nil,
9
+ :default_asset_host_protocol => nil,
10
+ :asset_host => ''})
11
+
12
+ Class.new(ActionView::AssetPaths) do
13
+ attr_accessor :theme_name
14
+ include ThemesForRails::ViewHelpers
15
+ include Sprockets::Helpers::RailsHelper
16
+ end.new(config)
17
+ end
18
+
19
+ it "should provide path helpers for common asset formats" do
20
+ helper.theme_image_path('logo.png', 'pink').should == "/themes/pink/assets/logo.png"
21
+ helper.theme_stylesheet_path('app.css', 'pink').should == "/themes/pink/assets/app.css"
22
+ helper.theme_javascript_path('app.js', 'pink').should == "/themes/pink/assets/app.js"
23
+ end
24
+
25
+ it "should provide path helpers for current assets" do
26
+ helper.theme_name = "pink"
27
+ helper.current_theme_image_path('logo.png').should == "/themes/pink/assets/logo.png"
28
+ helper.current_theme_stylesheet_path('app.css').should == "/themes/pink/assets/app.css"
29
+ helper.current_theme_javascript_path('app.js').should == "/themes/pink/assets/app.js"
30
+ end
31
+
32
+ it "should delegate options when provided" do
33
+ helper.theme_name = "pink"
34
+ helper.stub(:params=> {})
35
+ helper.theme_javascript_include_tag('app.js', :title => "ponele").should match(/title=\"ponele\"/)
36
+ helper.theme_stylesheet_link_tag('app.css', :media => "screen").should match(/media=\"screen\"/)
37
+ end
38
+ end
@@ -0,0 +1,39 @@
1
+ require "spec_helper"
2
+
3
+ THEME = 'pink'
4
+
5
+ class Notifier < ActionMailer::Base
6
+ include ThemesForRails
7
+ default :theme => THEME
8
+
9
+ def welcome(user)
10
+ mail(:theme => user.theme)
11
+ end
12
+
13
+ def thanks(user)
14
+ mail
15
+ end
16
+ end
17
+ describe "AnyMailer" do
18
+ it "should include ThemesForRails basic functionality" do
19
+ Notifier.included_modules.should include(ThemesForRails::ControllerMethods)
20
+ Notifier.included_modules.should include(ThemesForRails::MailerMethods)
21
+ end
22
+
23
+ end
24
+ describe "ThemesForRails::MailerMethods" do
25
+ it "should set theme using mail headers" do
26
+ Notifier.any_instance.should_receive(:set_theme).with("purple")
27
+ user = mock("User", :theme => "purple")
28
+ Notifier.welcome(user).deliver
29
+ end
30
+
31
+ it "should set theme using mail default opts" do
32
+ Notifier.any_instance.should_receive(:set_theme).with("pink")
33
+ user = mock("User")
34
+ Notifier.thanks(user).deliver
35
+ end
36
+ end
37
+
38
+
39
+
@@ -0,0 +1,15 @@
1
+ # encoding: utf-8
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require 'rubygems'
5
+ require 'bundler/setup'
6
+ require 'rails/all'
7
+ require 'rspec/rails'
8
+
9
+ $:.unshift File.expand_path('../../lib', __FILE__)
10
+
11
+ require 'themes_for_rails'
12
+ require "dummy/config/environment"
13
+
14
+ $:.unshift File.expand_path('../support', __FILE__)
15
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
@@ -0,0 +1,91 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ actionmailer (3.1.0.rc5)
5
+ actionpack (= 3.1.0.rc5)
6
+ mail (~> 2.3.0)
7
+ actionpack (3.1.0.rc5)
8
+ activemodel (= 3.1.0.rc5)
9
+ activesupport (= 3.1.0.rc5)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ i18n (~> 0.6)
13
+ rack (~> 1.3.1)
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.rc5)
19
+ activesupport (= 3.1.0.rc5)
20
+ bcrypt-ruby (~> 2.1.4)
21
+ builder (~> 3.0.0)
22
+ i18n (~> 0.6)
23
+ activerecord (3.1.0.rc5)
24
+ activemodel (= 3.1.0.rc5)
25
+ activesupport (= 3.1.0.rc5)
26
+ arel (~> 2.1.4)
27
+ tzinfo (~> 0.3.29)
28
+ activeresource (3.1.0.rc5)
29
+ activemodel (= 3.1.0.rc5)
30
+ activesupport (= 3.1.0.rc5)
31
+ activesupport (3.1.0.rc5)
32
+ multi_json (~> 1.0)
33
+ arel (2.1.4)
34
+ bcrypt-ruby (2.1.4)
35
+ builder (3.0.0)
36
+ erubis (2.7.0)
37
+ hike (1.2.0)
38
+ i18n (0.6.0)
39
+ mail (2.3.0)
40
+ i18n (>= 0.4.0)
41
+ mime-types (~> 1.16)
42
+ treetop (~> 1.4.8)
43
+ mime-types (1.16)
44
+ multi_json (1.0.3)
45
+ polyglot (0.3.2)
46
+ rack (1.3.2)
47
+ rack-cache (1.0.2)
48
+ rack (>= 0.4)
49
+ rack-mount (0.8.2)
50
+ rack (>= 1.0.0)
51
+ rack-ssl (1.3.2)
52
+ rack
53
+ rack-test (0.6.1)
54
+ rack (>= 1.0)
55
+ rails (3.1.0.rc5)
56
+ actionmailer (= 3.1.0.rc5)
57
+ actionpack (= 3.1.0.rc5)
58
+ activerecord (= 3.1.0.rc5)
59
+ activeresource (= 3.1.0.rc5)
60
+ activesupport (= 3.1.0.rc5)
61
+ bundler (~> 1.0)
62
+ railties (= 3.1.0.rc5)
63
+ railties (3.1.0.rc5)
64
+ actionpack (= 3.1.0.rc5)
65
+ activesupport (= 3.1.0.rc5)
66
+ rack-ssl (~> 1.3.2)
67
+ rake (>= 0.8.7)
68
+ rdoc (~> 3.4)
69
+ thor (~> 0.14.6)
70
+ rake (0.9.2)
71
+ rdoc (3.9.2)
72
+ sprockets (2.0.0.beta.13)
73
+ hike (~> 1.2)
74
+ rack (~> 1.0)
75
+ tilt (~> 1.1, != 1.3.0)
76
+ sqlite3 (1.3.4)
77
+ sqlite3-ruby (1.3.3)
78
+ sqlite3 (>= 1.3.3)
79
+ thor (0.14.6)
80
+ tilt (1.3.2)
81
+ treetop (1.4.10)
82
+ polyglot
83
+ polyglot (>= 0.3.1)
84
+ tzinfo (0.3.29)
85
+
86
+ PLATFORMS
87
+ ruby
88
+
89
+ DEPENDENCIES
90
+ rails (= 3.1.0.rc5)
91
+ sqlite3-ruby
@@ -0,0 +1,6 @@
1
+ Processing by MyController#hello as HTML
2
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)
3
+ Processing by CustomThemeController#hello as HTML
4
+ Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
5
+ Processing by PrivateCustomThemeController#hello as HTML
6
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
@@ -1,25 +1,145 @@
1
-
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
2
4
  # -*- encoding: utf-8 -*-
3
- require File.expand_path('../lib/themes_for_rails/version', __FILE__)
4
5
 
5
- Gem::Specification.new do |gem|
6
- gem.authors = ["Lucas Florio"]
7
- gem.email = ["lucasefe@gmail.com"]
8
- gem.summary = "Theme Support for Rails 3"
9
- gem.description = %q{It allows an application to have many different ways of rendering static assets and dynamic views.}
10
- gem.homepage = "https://github.com/lucasefe/themes_for_rails"
6
+ Gem::Specification.new do |s|
7
+ s.name = "themes_for_rails"
8
+ s.version = "1.0.0rc1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Lucas Florio"]
12
+ s.date = "2011-11-16"
13
+ s.description = "It allows an application to have many different ways of rendering static assets and dynamic views."
14
+ s.email = "lucasefe@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "README.textile"
17
+ ]
18
+ s.files = [
19
+ ".rspec",
20
+ ".rvmrc",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "README.textile",
24
+ "Rakefile",
25
+ "init.rb",
26
+ "lib/generators/themes_for_rails/install_generator.rb",
27
+ "lib/generators/themes_for_rails/templates/README",
28
+ "lib/generators/themes_for_rails/templates/theme/assets/images/.gitkeep",
29
+ "lib/generators/themes_for_rails/templates/theme/assets/javascripts/.gitkeep",
30
+ "lib/generators/themes_for_rails/templates/theme/assets/javascripts/application.js",
31
+ "lib/generators/themes_for_rails/templates/theme/assets/stylesheets/.gitkeep",
32
+ "lib/generators/themes_for_rails/templates/theme/assets/stylesheets/application.css",
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_finder.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/logging.rb",
42
+ "lib/themes_for_rails/mailer_methods.rb",
43
+ "lib/themes_for_rails/railtie.rb",
44
+ "lib/themes_for_rails/routes.rb",
45
+ "lib/themes_for_rails/version.rb",
46
+ "lib/themes_for_rails/view_helpers.rb",
47
+ "spec/controllers/my_controller_spec.rb",
48
+ "spec/dummy/.gitignore",
49
+ "spec/dummy/Gemfile",
50
+ "spec/dummy/Gemfile.lock",
51
+ "spec/dummy/README",
52
+ "spec/dummy/Rakefile",
53
+ "spec/dummy/app/assets/images/rails.png",
54
+ "spec/dummy/app/assets/javascripts/application.js",
55
+ "spec/dummy/app/assets/stylesheets/application.css",
56
+ "spec/dummy/app/controllers/application_controller.rb",
57
+ "spec/dummy/app/helpers/application_helper.rb",
58
+ "spec/dummy/app/mailers/.gitkeep",
59
+ "spec/dummy/app/models/.gitkeep",
60
+ "spec/dummy/app/themes/default/assets/images/rails.png",
61
+ "spec/dummy/app/themes/default/assets/javascripts/application.js",
62
+ "spec/dummy/app/themes/default/assets/stylesheets/application.css",
63
+ "spec/dummy/app/themes/default/views/layouts/application.html.erb",
64
+ "spec/dummy/app/views/layouts/application.html.erb",
65
+ "spec/dummy/config.ru",
66
+ "spec/dummy/config/application.rb",
67
+ "spec/dummy/config/boot.rb",
68
+ "spec/dummy/config/database.yml",
69
+ "spec/dummy/config/environment.rb",
70
+ "spec/dummy/config/environments/development.rb",
71
+ "spec/dummy/config/environments/production.rb",
72
+ "spec/dummy/config/environments/test.rb",
73
+ "spec/dummy/config/initializers/backtrace_silencers.rb",
74
+ "spec/dummy/config/initializers/inflections.rb",
75
+ "spec/dummy/config/initializers/mime_types.rb",
76
+ "spec/dummy/config/initializers/secret_token.rb",
77
+ "spec/dummy/config/initializers/session_store.rb",
78
+ "spec/dummy/config/initializers/wrap_parameters.rb",
79
+ "spec/dummy/config/locales/en.yml",
80
+ "spec/dummy/config/routes.rb",
81
+ "spec/dummy/db/seeds.rb",
82
+ "spec/dummy/doc/README_FOR_APP",
83
+ "spec/dummy/lib/assets/.gitkeep",
84
+ "spec/dummy/lib/tasks/.gitkeep",
85
+ "spec/dummy/log/.gitkeep",
86
+ "spec/dummy/public/404.html",
87
+ "spec/dummy/public/422.html",
88
+ "spec/dummy/public/500.html",
89
+ "spec/dummy/public/favicon.ico",
90
+ "spec/dummy/public/index.html",
91
+ "spec/dummy/public/robots.txt",
92
+ "spec/dummy/script/rails",
93
+ "spec/dummy/test/fixtures/.gitkeep",
94
+ "spec/dummy/test/functional/.gitkeep",
95
+ "spec/dummy/test/integration/.gitkeep",
96
+ "spec/dummy/test/performance/browsing_test.rb",
97
+ "spec/dummy/test/test_helper.rb",
98
+ "spec/dummy/test/unit/.gitkeep",
99
+ "spec/dummy/vendor/assets/stylesheets/.gitkeep",
100
+ "spec/dummy/vendor/plugins/.gitkeep",
101
+ "spec/lib/assets_finder_spec.rb",
102
+ "spec/lib/common_methods_spec.rb",
103
+ "spec/lib/config_spec.rb",
104
+ "spec/lib/controller_methods_spec.rb",
105
+ "spec/lib/view_helpers_spec.rb",
106
+ "spec/mailers/mailer_methods_spec.rb",
107
+ "spec/spec_helper.rb",
108
+ "test/dummy_app/Gemfile.lock",
109
+ "test/dummy_app/log/development.log",
110
+ "test/dummy_app/log/test.log",
111
+ "themes_for_rails.gemspec"
112
+ ]
113
+ s.homepage = "http://github.com/lucasefe/themes_for_rails"
114
+ s.require_paths = ["lib"]
115
+ s.rubygems_version = "1.8.10"
116
+ s.summary = "Themes support for rails (3)"
11
117
 
12
- gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
13
- gem.files = `git ls-files`.split("\n")
14
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
- gem.name = "themes_for_rails"
16
- gem.require_paths = ["lib"]
17
- gem.version = ThemesForRails::VERSION
118
+ if s.respond_to? :specification_version then
119
+ s.specification_version = 3
18
120
 
19
- gem.add_dependency('rails', [">= 3.0.0"])
20
- gem.add_development_dependency "sqlite3"
21
- gem.add_development_dependency "test-unit"
22
- gem.add_development_dependency "contest"
23
- gem.add_development_dependency "mocha"
24
- gem.add_development_dependency('rails', ["= 3.0.11"])
121
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
122
+ s.add_runtime_dependency(%q<themes_for_rails>, [">= 0"])
123
+ s.add_development_dependency(%q<rails>, ["~> 3.1"])
124
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
125
+ s.add_development_dependency(%q<rspec>, [">= 0"])
126
+ s.add_development_dependency(%q<rspec-rails>, [">= 0"])
127
+ s.add_runtime_dependency(%q<rails>, ["~> 3.1.0"])
128
+ else
129
+ s.add_dependency(%q<themes_for_rails>, [">= 0"])
130
+ s.add_dependency(%q<rails>, ["~> 3.1"])
131
+ s.add_dependency(%q<sqlite3>, [">= 0"])
132
+ s.add_dependency(%q<rspec>, [">= 0"])
133
+ s.add_dependency(%q<rspec-rails>, [">= 0"])
134
+ s.add_dependency(%q<rails>, ["~> 3.1.0"])
135
+ end
136
+ else
137
+ s.add_dependency(%q<themes_for_rails>, [">= 0"])
138
+ s.add_dependency(%q<rails>, ["~> 3.1"])
139
+ s.add_dependency(%q<sqlite3>, [">= 0"])
140
+ s.add_dependency(%q<rspec>, [">= 0"])
141
+ s.add_dependency(%q<rspec-rails>, [">= 0"])
142
+ s.add_dependency(%q<rails>, ["~> 3.1.0"])
143
+ end
25
144
  end
145
+