active_theme 0.5.0.pre
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 +8 -0
- data/.rspec +2 -0
- data/.rvmrc +1 -0
- data/.travis.yml +2 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +91 -0
- data/LICENSE +21 -0
- data/README.textile +3 -0
- data/Rakefile +11 -0
- data/active_theme.gemspec +25 -0
- data/doc/README.textile +332 -0
- data/doc/REVIEW_NOTES +0 -0
- data/doc/TODO.textile +3 -0
- data/lib/active_theme.rb +58 -0
- data/lib/active_theme/action_controller.rb +32 -0
- data/lib/active_theme/action_mailer.rb +22 -0
- data/lib/active_theme/action_view.rb +59 -0
- data/lib/active_theme/assets_controller.rb +66 -0
- data/lib/active_theme/common_methods.rb +66 -0
- data/lib/active_theme/config.rb +74 -0
- data/lib/active_theme/interpolation.rb +11 -0
- data/lib/active_theme/railtie.rb +32 -0
- data/lib/active_theme/routes.rb +27 -0
- data/lib/active_theme/url_helpers.rb +27 -0
- data/lib/active_theme/version.rb +4 -0
- data/lib/generators/active_theme/create_generator.rb +14 -0
- data/lib/generators/active_theme/install_generator.rb +16 -0
- data/lib/generators/active_theme/templates/theme/images/.gitkeep +0 -0
- data/lib/generators/active_theme/templates/theme/javascripts/.gitkeep +0 -0
- data/lib/generators/active_theme/templates/theme/stylesheets/.gitkeep +0 -0
- data/lib/generators/active_theme/templates/theme/views/layouts/.gitkeep +0 -0
- data/lib/tasks/active_theme.rake +22 -0
- data/test/dummy_app/.gitignore +4 -0
- data/test/dummy_app/Gemfile +30 -0
- data/test/dummy_app/Rakefile +7 -0
- data/test/dummy_app/another_themes/another_default/images/logo.png +0 -0
- data/test/dummy_app/another_themes/another_default/images/nested/logo.png +0 -0
- data/test/dummy_app/another_themes/another_default/javascripts/app.js +1 -0
- data/test/dummy_app/another_themes/another_default/stylesheets/style.css +0 -0
- data/test/dummy_app/another_themes/another_default/stylesheets/style2.css +3 -0
- data/test/dummy_app/another_themes/another_default/views/layouts/default.html.erb +10 -0
- data/test/dummy_app/another_themes/another_default/views/products/index.html.erb +0 -0
- data/test/dummy_app/app/controllers/application_controller.rb +3 -0
- data/test/dummy_app/app/helpers/application_helper.rb +2 -0
- data/test/dummy_app/app/views/layouts/application.html.erb +14 -0
- data/test/dummy_app/config.ru +4 -0
- data/test/dummy_app/config/application.rb +42 -0
- data/test/dummy_app/config/boot.rb +13 -0
- data/test/dummy_app/config/database.yml +18 -0
- data/test/dummy_app/config/environment.rb +5 -0
- data/test/dummy_app/config/environments/development.rb +26 -0
- data/test/dummy_app/config/environments/production.rb +49 -0
- data/test/dummy_app/config/environments/test.rb +35 -0
- data/test/dummy_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy_app/config/initializers/inflections.rb +10 -0
- data/test/dummy_app/config/initializers/mime_types.rb +5 -0
- data/test/dummy_app/config/initializers/secret_token.rb +7 -0
- data/test/dummy_app/config/initializers/session_store.rb +8 -0
- data/test/dummy_app/config/locales/en.yml +5 -0
- data/test/dummy_app/config/routes.rb +4 -0
- data/test/dummy_app/db/seeds.rb +7 -0
- data/test/dummy_app/empty_themes/.gitkeep +0 -0
- data/test/dummy_app/lib/tasks/.gitkeep +0 -0
- data/test/dummy_app/public/404.html +26 -0
- data/test/dummy_app/public/422.html +26 -0
- data/test/dummy_app/public/500.html +26 -0
- data/test/dummy_app/public/favicon.ico +0 -0
- data/test/dummy_app/public/images/rails.png +0 -0
- data/test/dummy_app/public/index.html +239 -0
- data/test/dummy_app/public/javascripts/application.js +2 -0
- data/test/dummy_app/public/javascripts/controls.js +965 -0
- data/test/dummy_app/public/javascripts/dragdrop.js +974 -0
- data/test/dummy_app/public/javascripts/effects.js +1123 -0
- data/test/dummy_app/public/javascripts/prototype.js +6001 -0
- data/test/dummy_app/public/javascripts/rails.js +175 -0
- data/test/dummy_app/public/robots.txt +5 -0
- data/test/dummy_app/public/stylesheets/.gitkeep +0 -0
- data/test/dummy_app/script/rails +6 -0
- data/test/dummy_app/themes/default/images/logo.png +0 -0
- data/test/dummy_app/themes/default/images/nested/logo.png +0 -0
- data/test/dummy_app/themes/default/javascripts/app.js +1 -0
- data/test/dummy_app/themes/default/javascripts/app.min.js +0 -0
- data/test/dummy_app/themes/default/stylesheets/images/logo.png +0 -0
- data/test/dummy_app/themes/default/stylesheets/style.css +0 -0
- data/test/dummy_app/themes/default/stylesheets/style2.css +3 -0
- data/test/dummy_app/themes/default/views/layouts/default.html.erb +10 -0
- data/test/dummy_app/themes/default/views/products/index.html.erb +0 -0
- data/test/lib/action_controller_test.rb +170 -0
- data/test/lib/action_mailer_test.rb +35 -0
- data/test/lib/action_view_test.rb +54 -0
- data/test/lib/assets_controller_test.rb +73 -0
- data/test/lib/common_methods_test.rb +28 -0
- data/test/lib/config_test.rb +26 -0
- data/test/lib/integration_test.rb +12 -0
- data/test/lib/routes_test.rb +40 -0
- data/test/lib/themes_for_rails_test.rb +18 -0
- data/test/support/extensions.rb +19 -0
- data/test/test_helper.rb +12 -0
- metadata +276 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
require File.expand_path("test/test_helper.rb")
|
|
3
|
+
|
|
4
|
+
module ActiveTheme
|
|
5
|
+
class AssetsControllerTest < ::ActionController::TestCase
|
|
6
|
+
tests ActiveTheme::AssetsController
|
|
7
|
+
|
|
8
|
+
should "respond to stylesheets" do
|
|
9
|
+
assert @controller.respond_to?(:stylesheets)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
should "respond with the right stylesheet file when requested" do
|
|
13
|
+
get 'stylesheets', { :theme => 'default', :asset => 'style.css'}
|
|
14
|
+
assert_response :success
|
|
15
|
+
assert_equal @response.content_type, 'text/css'
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
should "not be success when the stylesheet file is not found" do
|
|
19
|
+
get 'stylesheets', { :theme => 'default', :asset => 'oldstyle.css'}
|
|
20
|
+
assert_response :missing
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# javascripts
|
|
24
|
+
should "respond to javascripts" do
|
|
25
|
+
assert @controller.respond_to?(:javascripts)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
should "respond with the right javascript file when requested" do
|
|
29
|
+
get 'javascripts', { :theme => 'default', :asset => 'app.js'}
|
|
30
|
+
assert_response :success
|
|
31
|
+
assert_equal @response.content_type, 'text/javascript'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
should "respond with the right javascript file when requested (including multiple dot on the filename)" do
|
|
35
|
+
get 'javascripts', { :theme => 'default', :asset => 'app.min.js'}
|
|
36
|
+
assert_response :success
|
|
37
|
+
assert_equal @response.content_type, 'text/javascript'
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
should "not be success when the javascript file is not found" do
|
|
41
|
+
get 'javascripts', { :theme => 'default', :asset => 'oldapp.js'}
|
|
42
|
+
assert_response :missing
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# images
|
|
46
|
+
should "respond to images" do
|
|
47
|
+
assert @controller.respond_to?(:images)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
should "respond with the right image file when requested" do
|
|
51
|
+
get 'images', { :theme => 'default', :asset => 'logo.png'}
|
|
52
|
+
assert_response :success
|
|
53
|
+
assert_equal 'image/png', @response.content_type
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
should "not be success when the image file is not found" do
|
|
57
|
+
get 'images', { :theme => 'default', :asset => 'i_am_not_here.jpg'}
|
|
58
|
+
assert_response :missing
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
should "respond with a nested asset" do
|
|
62
|
+
get 'images', { :theme => 'default', :asset => 'nested/logo.png'}
|
|
63
|
+
assert_response :success
|
|
64
|
+
assert_equal 'image/png', @response.content_type
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
should "respond with properly even when requesting an image inside the stylesheets folder" do
|
|
68
|
+
get 'stylesheets', { :theme => 'default', :asset => 'images/logo.png'}
|
|
69
|
+
assert_response :success
|
|
70
|
+
assert_equal @response.content_type, 'image/png'
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
require File.expand_path("test/test_helper.rb")
|
|
3
|
+
|
|
4
|
+
class ActiveThemeTest < Test::Unit::TestCase
|
|
5
|
+
setup do
|
|
6
|
+
@common = Object.new
|
|
7
|
+
@common.extend ActiveTheme::CommonMethods
|
|
8
|
+
@common.theme_name = "awesome"
|
|
9
|
+
ActiveTheme.config.clear
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
should 'use config base_dir to build theme path' do
|
|
13
|
+
ActiveTheme.config.base_dir = '/some_path'
|
|
14
|
+
assert_match /some_path/, @common.theme_view_path
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
should 'use config views_dir to build theme path' do
|
|
18
|
+
ActiveTheme.config.views_dir =':root/skinner/:name/views'
|
|
19
|
+
assert_match /skinner/, @common.theme_view_path_for('awesome')
|
|
20
|
+
assert_match /skinner/, @common.theme_view_path
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
should 'use config base_dir to build theme path for theme' do
|
|
24
|
+
ActiveTheme.config.base_dir ='some_path'
|
|
25
|
+
assert_match /some_path/, @common.theme_view_path_for('doodley')
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
require File.expand_path("test/test_helper.rb")
|
|
3
|
+
|
|
4
|
+
class ActiveThemeTest < Test::Unit::TestCase
|
|
5
|
+
|
|
6
|
+
should 'change the base directory' do
|
|
7
|
+
ActiveTheme.config do |config|
|
|
8
|
+
config.base_dir = 'empty_themes'
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
assert_equal [], ActiveTheme.available_theme_names
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
should 'change the directory to views' do
|
|
15
|
+
ActiveTheme.config do |config|
|
|
16
|
+
config.themes_dir = ':root/another_themes'
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
assert_equal ['another_default'], ActiveTheme.available_theme_names
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
teardown do
|
|
23
|
+
ActiveTheme.config.clear
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
require File.expand_path("test/test_helper.rb")
|
|
3
|
+
|
|
4
|
+
class ActiveThemeIntegrationTest < ::ActionController::IntegrationTest
|
|
5
|
+
|
|
6
|
+
should "work with Rails 3.0 default configuration" do
|
|
7
|
+
asset_path = "/themes/default/stylesheets/style.css"
|
|
8
|
+
get asset_path
|
|
9
|
+
assert_equal 200, status
|
|
10
|
+
assert_equal asset_path, path
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
require File.expand_path("test/test_helper.rb")
|
|
3
|
+
|
|
4
|
+
module ActiveTheme
|
|
5
|
+
class RoutingTest < ::ActionController::TestCase
|
|
6
|
+
should "recognize stylesheets route" do
|
|
7
|
+
assert_generates('/themes/default/stylesheets/app.css', {
|
|
8
|
+
:controller => 'active_theme/assets',
|
|
9
|
+
:action => 'stylesheets',
|
|
10
|
+
:theme => 'default',
|
|
11
|
+
:asset => 'app.css'
|
|
12
|
+
})
|
|
13
|
+
end
|
|
14
|
+
should "recognize javascripts route" do
|
|
15
|
+
assert_generates('/themes/default/javascripts/app.js', {
|
|
16
|
+
:controller => 'active_theme/assets',
|
|
17
|
+
:action => 'javascripts',
|
|
18
|
+
:theme => 'default',
|
|
19
|
+
:asset => 'app.js'
|
|
20
|
+
})
|
|
21
|
+
end
|
|
22
|
+
should "recognize images route" do
|
|
23
|
+
assert_generates('/themes/default/images/logo.png', {
|
|
24
|
+
:controller => 'active_theme/assets',
|
|
25
|
+
:action => 'images',
|
|
26
|
+
:theme => 'default',
|
|
27
|
+
:asset => 'logo.png'
|
|
28
|
+
})
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
should "recognize nested route" do
|
|
32
|
+
assert_generates('/themes/default/images/nested/logo.png', {
|
|
33
|
+
:controller => 'active_theme/assets',
|
|
34
|
+
:action => 'images',
|
|
35
|
+
:theme => 'default',
|
|
36
|
+
:asset => 'nested/logo.png'
|
|
37
|
+
})
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
require File.expand_path("test/test_helper.rb")
|
|
3
|
+
|
|
4
|
+
class ActiveThemeTest < Test::Unit::TestCase
|
|
5
|
+
|
|
6
|
+
should 'know the available themes' do
|
|
7
|
+
assert_equal ['default'], ActiveTheme.available_theme_names
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
should 'use config for each_theme_dir' do
|
|
11
|
+
ActiveTheme.config.themes_dir = ':root/another_themes'
|
|
12
|
+
assert_equal %w(another_default), ActiveTheme.each_theme_dir.map {|theme| File.basename(theme) }
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
teardown do
|
|
16
|
+
ActiveTheme.config.clear
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
require 'active_support/test_case'
|
|
3
|
+
|
|
4
|
+
class ActiveSupport::TestCase
|
|
5
|
+
|
|
6
|
+
def assert_named_route(result, name)
|
|
7
|
+
assert_equal result, @routes.url_helpers.send(name)
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def assert_send_file(result)
|
|
11
|
+
assert(@response.body.is_a? Proc)
|
|
12
|
+
require 'stringio'
|
|
13
|
+
output = StringIO.new
|
|
14
|
+
output.binmode
|
|
15
|
+
assert_nothing_raised { @response.body.call(@response, output) }
|
|
16
|
+
assert_equal(result, output.string)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
end
|
data/test/test_helper.rb
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
|
3
|
+
|
|
4
|
+
$:.unshift File.dirname(__FILE__)
|
|
5
|
+
|
|
6
|
+
require "dummy_app/config/environment"
|
|
7
|
+
require "rails/test_help"
|
|
8
|
+
require 'mocha'
|
|
9
|
+
require 'contest'
|
|
10
|
+
|
|
11
|
+
$:.unshift File.expand_path('../support', __FILE__)
|
|
12
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: active_theme
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.5.0.pre
|
|
5
|
+
prerelease: 6
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Devin Zhang
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2012-03-25 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
15
|
+
name: rails
|
|
16
|
+
requirement: &2158312560 !ruby/object:Gem::Requirement
|
|
17
|
+
none: false
|
|
18
|
+
requirements:
|
|
19
|
+
- - ! '>='
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 3.0.0
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: *2158312560
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: sqlite3
|
|
27
|
+
requirement: &2158312100 !ruby/object:Gem::Requirement
|
|
28
|
+
none: false
|
|
29
|
+
requirements:
|
|
30
|
+
- - ! '>='
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
type: :development
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: *2158312100
|
|
36
|
+
- !ruby/object:Gem::Dependency
|
|
37
|
+
name: test-unit
|
|
38
|
+
requirement: &2158311520 !ruby/object:Gem::Requirement
|
|
39
|
+
none: false
|
|
40
|
+
requirements:
|
|
41
|
+
- - ! '>='
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '0'
|
|
44
|
+
type: :development
|
|
45
|
+
prerelease: false
|
|
46
|
+
version_requirements: *2158311520
|
|
47
|
+
- !ruby/object:Gem::Dependency
|
|
48
|
+
name: contest
|
|
49
|
+
requirement: &2158310860 !ruby/object:Gem::Requirement
|
|
50
|
+
none: false
|
|
51
|
+
requirements:
|
|
52
|
+
- - ! '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
type: :development
|
|
56
|
+
prerelease: false
|
|
57
|
+
version_requirements: *2158310860
|
|
58
|
+
- !ruby/object:Gem::Dependency
|
|
59
|
+
name: mocha
|
|
60
|
+
requirement: &2158310440 !ruby/object:Gem::Requirement
|
|
61
|
+
none: false
|
|
62
|
+
requirements:
|
|
63
|
+
- - ! '>='
|
|
64
|
+
- !ruby/object:Gem::Version
|
|
65
|
+
version: '0'
|
|
66
|
+
type: :development
|
|
67
|
+
prerelease: false
|
|
68
|
+
version_requirements: *2158310440
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: rails
|
|
71
|
+
requirement: &2158309920 !ruby/object:Gem::Requirement
|
|
72
|
+
none: false
|
|
73
|
+
requirements:
|
|
74
|
+
- - =
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: 3.0.11
|
|
77
|
+
type: :development
|
|
78
|
+
prerelease: false
|
|
79
|
+
version_requirements: *2158309920
|
|
80
|
+
description: It allows an application to have many different ways of rendering static
|
|
81
|
+
assets and dynamic views.
|
|
82
|
+
email:
|
|
83
|
+
- daqing1986@gmail.com
|
|
84
|
+
executables: []
|
|
85
|
+
extensions: []
|
|
86
|
+
extra_rdoc_files: []
|
|
87
|
+
files:
|
|
88
|
+
- .gitignore
|
|
89
|
+
- .rspec
|
|
90
|
+
- .rvmrc
|
|
91
|
+
- .travis.yml
|
|
92
|
+
- Gemfile
|
|
93
|
+
- Gemfile.lock
|
|
94
|
+
- LICENSE
|
|
95
|
+
- README.textile
|
|
96
|
+
- Rakefile
|
|
97
|
+
- active_theme.gemspec
|
|
98
|
+
- doc/README.textile
|
|
99
|
+
- doc/REVIEW_NOTES
|
|
100
|
+
- doc/TODO.textile
|
|
101
|
+
- lib/active_theme.rb
|
|
102
|
+
- lib/active_theme/action_controller.rb
|
|
103
|
+
- lib/active_theme/action_mailer.rb
|
|
104
|
+
- lib/active_theme/action_view.rb
|
|
105
|
+
- lib/active_theme/assets_controller.rb
|
|
106
|
+
- lib/active_theme/common_methods.rb
|
|
107
|
+
- lib/active_theme/config.rb
|
|
108
|
+
- lib/active_theme/interpolation.rb
|
|
109
|
+
- lib/active_theme/railtie.rb
|
|
110
|
+
- lib/active_theme/routes.rb
|
|
111
|
+
- lib/active_theme/url_helpers.rb
|
|
112
|
+
- lib/active_theme/version.rb
|
|
113
|
+
- lib/generators/active_theme/create_generator.rb
|
|
114
|
+
- lib/generators/active_theme/install_generator.rb
|
|
115
|
+
- lib/generators/active_theme/templates/theme/images/.gitkeep
|
|
116
|
+
- lib/generators/active_theme/templates/theme/javascripts/.gitkeep
|
|
117
|
+
- lib/generators/active_theme/templates/theme/stylesheets/.gitkeep
|
|
118
|
+
- lib/generators/active_theme/templates/theme/views/layouts/.gitkeep
|
|
119
|
+
- lib/tasks/active_theme.rake
|
|
120
|
+
- test/dummy_app/.gitignore
|
|
121
|
+
- test/dummy_app/Gemfile
|
|
122
|
+
- test/dummy_app/Rakefile
|
|
123
|
+
- test/dummy_app/another_themes/another_default/images/logo.png
|
|
124
|
+
- test/dummy_app/another_themes/another_default/images/nested/logo.png
|
|
125
|
+
- test/dummy_app/another_themes/another_default/javascripts/app.js
|
|
126
|
+
- test/dummy_app/another_themes/another_default/stylesheets/style.css
|
|
127
|
+
- test/dummy_app/another_themes/another_default/stylesheets/style2.css
|
|
128
|
+
- test/dummy_app/another_themes/another_default/views/layouts/default.html.erb
|
|
129
|
+
- test/dummy_app/another_themes/another_default/views/products/index.html.erb
|
|
130
|
+
- test/dummy_app/app/controllers/application_controller.rb
|
|
131
|
+
- test/dummy_app/app/helpers/application_helper.rb
|
|
132
|
+
- test/dummy_app/app/views/layouts/application.html.erb
|
|
133
|
+
- test/dummy_app/config.ru
|
|
134
|
+
- test/dummy_app/config/application.rb
|
|
135
|
+
- test/dummy_app/config/boot.rb
|
|
136
|
+
- test/dummy_app/config/database.yml
|
|
137
|
+
- test/dummy_app/config/environment.rb
|
|
138
|
+
- test/dummy_app/config/environments/development.rb
|
|
139
|
+
- test/dummy_app/config/environments/production.rb
|
|
140
|
+
- test/dummy_app/config/environments/test.rb
|
|
141
|
+
- test/dummy_app/config/initializers/backtrace_silencers.rb
|
|
142
|
+
- test/dummy_app/config/initializers/inflections.rb
|
|
143
|
+
- test/dummy_app/config/initializers/mime_types.rb
|
|
144
|
+
- test/dummy_app/config/initializers/secret_token.rb
|
|
145
|
+
- test/dummy_app/config/initializers/session_store.rb
|
|
146
|
+
- test/dummy_app/config/locales/en.yml
|
|
147
|
+
- test/dummy_app/config/routes.rb
|
|
148
|
+
- test/dummy_app/db/seeds.rb
|
|
149
|
+
- test/dummy_app/empty_themes/.gitkeep
|
|
150
|
+
- test/dummy_app/lib/tasks/.gitkeep
|
|
151
|
+
- test/dummy_app/public/404.html
|
|
152
|
+
- test/dummy_app/public/422.html
|
|
153
|
+
- test/dummy_app/public/500.html
|
|
154
|
+
- test/dummy_app/public/favicon.ico
|
|
155
|
+
- test/dummy_app/public/images/rails.png
|
|
156
|
+
- test/dummy_app/public/index.html
|
|
157
|
+
- test/dummy_app/public/javascripts/application.js
|
|
158
|
+
- test/dummy_app/public/javascripts/controls.js
|
|
159
|
+
- test/dummy_app/public/javascripts/dragdrop.js
|
|
160
|
+
- test/dummy_app/public/javascripts/effects.js
|
|
161
|
+
- test/dummy_app/public/javascripts/prototype.js
|
|
162
|
+
- test/dummy_app/public/javascripts/rails.js
|
|
163
|
+
- test/dummy_app/public/robots.txt
|
|
164
|
+
- test/dummy_app/public/stylesheets/.gitkeep
|
|
165
|
+
- test/dummy_app/script/rails
|
|
166
|
+
- test/dummy_app/themes/default/images/logo.png
|
|
167
|
+
- test/dummy_app/themes/default/images/nested/logo.png
|
|
168
|
+
- test/dummy_app/themes/default/javascripts/app.js
|
|
169
|
+
- test/dummy_app/themes/default/javascripts/app.min.js
|
|
170
|
+
- test/dummy_app/themes/default/stylesheets/images/logo.png
|
|
171
|
+
- test/dummy_app/themes/default/stylesheets/style.css
|
|
172
|
+
- test/dummy_app/themes/default/stylesheets/style2.css
|
|
173
|
+
- test/dummy_app/themes/default/views/layouts/default.html.erb
|
|
174
|
+
- test/dummy_app/themes/default/views/products/index.html.erb
|
|
175
|
+
- test/lib/action_controller_test.rb
|
|
176
|
+
- test/lib/action_mailer_test.rb
|
|
177
|
+
- test/lib/action_view_test.rb
|
|
178
|
+
- test/lib/assets_controller_test.rb
|
|
179
|
+
- test/lib/common_methods_test.rb
|
|
180
|
+
- test/lib/config_test.rb
|
|
181
|
+
- test/lib/integration_test.rb
|
|
182
|
+
- test/lib/routes_test.rb
|
|
183
|
+
- test/lib/themes_for_rails_test.rb
|
|
184
|
+
- test/support/extensions.rb
|
|
185
|
+
- test/test_helper.rb
|
|
186
|
+
homepage: https://github.com/daqing/active_theme
|
|
187
|
+
licenses: []
|
|
188
|
+
post_install_message:
|
|
189
|
+
rdoc_options: []
|
|
190
|
+
require_paths:
|
|
191
|
+
- lib
|
|
192
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
193
|
+
none: false
|
|
194
|
+
requirements:
|
|
195
|
+
- - ! '>='
|
|
196
|
+
- !ruby/object:Gem::Version
|
|
197
|
+
version: '0'
|
|
198
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
|
+
none: false
|
|
200
|
+
requirements:
|
|
201
|
+
- - ! '>'
|
|
202
|
+
- !ruby/object:Gem::Version
|
|
203
|
+
version: 1.3.1
|
|
204
|
+
requirements: []
|
|
205
|
+
rubyforge_project:
|
|
206
|
+
rubygems_version: 1.8.15
|
|
207
|
+
signing_key:
|
|
208
|
+
specification_version: 3
|
|
209
|
+
summary: Theme Support for Rails 3
|
|
210
|
+
test_files:
|
|
211
|
+
- test/dummy_app/.gitignore
|
|
212
|
+
- test/dummy_app/Gemfile
|
|
213
|
+
- test/dummy_app/Rakefile
|
|
214
|
+
- test/dummy_app/another_themes/another_default/images/logo.png
|
|
215
|
+
- test/dummy_app/another_themes/another_default/images/nested/logo.png
|
|
216
|
+
- test/dummy_app/another_themes/another_default/javascripts/app.js
|
|
217
|
+
- test/dummy_app/another_themes/another_default/stylesheets/style.css
|
|
218
|
+
- test/dummy_app/another_themes/another_default/stylesheets/style2.css
|
|
219
|
+
- test/dummy_app/another_themes/another_default/views/layouts/default.html.erb
|
|
220
|
+
- test/dummy_app/another_themes/another_default/views/products/index.html.erb
|
|
221
|
+
- test/dummy_app/app/controllers/application_controller.rb
|
|
222
|
+
- test/dummy_app/app/helpers/application_helper.rb
|
|
223
|
+
- test/dummy_app/app/views/layouts/application.html.erb
|
|
224
|
+
- test/dummy_app/config.ru
|
|
225
|
+
- test/dummy_app/config/application.rb
|
|
226
|
+
- test/dummy_app/config/boot.rb
|
|
227
|
+
- test/dummy_app/config/database.yml
|
|
228
|
+
- test/dummy_app/config/environment.rb
|
|
229
|
+
- test/dummy_app/config/environments/development.rb
|
|
230
|
+
- test/dummy_app/config/environments/production.rb
|
|
231
|
+
- test/dummy_app/config/environments/test.rb
|
|
232
|
+
- test/dummy_app/config/initializers/backtrace_silencers.rb
|
|
233
|
+
- test/dummy_app/config/initializers/inflections.rb
|
|
234
|
+
- test/dummy_app/config/initializers/mime_types.rb
|
|
235
|
+
- test/dummy_app/config/initializers/secret_token.rb
|
|
236
|
+
- test/dummy_app/config/initializers/session_store.rb
|
|
237
|
+
- test/dummy_app/config/locales/en.yml
|
|
238
|
+
- test/dummy_app/config/routes.rb
|
|
239
|
+
- test/dummy_app/db/seeds.rb
|
|
240
|
+
- test/dummy_app/empty_themes/.gitkeep
|
|
241
|
+
- test/dummy_app/lib/tasks/.gitkeep
|
|
242
|
+
- test/dummy_app/public/404.html
|
|
243
|
+
- test/dummy_app/public/422.html
|
|
244
|
+
- test/dummy_app/public/500.html
|
|
245
|
+
- test/dummy_app/public/favicon.ico
|
|
246
|
+
- test/dummy_app/public/images/rails.png
|
|
247
|
+
- test/dummy_app/public/index.html
|
|
248
|
+
- test/dummy_app/public/javascripts/application.js
|
|
249
|
+
- test/dummy_app/public/javascripts/controls.js
|
|
250
|
+
- test/dummy_app/public/javascripts/dragdrop.js
|
|
251
|
+
- test/dummy_app/public/javascripts/effects.js
|
|
252
|
+
- test/dummy_app/public/javascripts/prototype.js
|
|
253
|
+
- test/dummy_app/public/javascripts/rails.js
|
|
254
|
+
- test/dummy_app/public/robots.txt
|
|
255
|
+
- test/dummy_app/public/stylesheets/.gitkeep
|
|
256
|
+
- test/dummy_app/script/rails
|
|
257
|
+
- test/dummy_app/themes/default/images/logo.png
|
|
258
|
+
- test/dummy_app/themes/default/images/nested/logo.png
|
|
259
|
+
- test/dummy_app/themes/default/javascripts/app.js
|
|
260
|
+
- test/dummy_app/themes/default/javascripts/app.min.js
|
|
261
|
+
- test/dummy_app/themes/default/stylesheets/images/logo.png
|
|
262
|
+
- test/dummy_app/themes/default/stylesheets/style.css
|
|
263
|
+
- test/dummy_app/themes/default/stylesheets/style2.css
|
|
264
|
+
- test/dummy_app/themes/default/views/layouts/default.html.erb
|
|
265
|
+
- test/dummy_app/themes/default/views/products/index.html.erb
|
|
266
|
+
- test/lib/action_controller_test.rb
|
|
267
|
+
- test/lib/action_mailer_test.rb
|
|
268
|
+
- test/lib/action_view_test.rb
|
|
269
|
+
- test/lib/assets_controller_test.rb
|
|
270
|
+
- test/lib/common_methods_test.rb
|
|
271
|
+
- test/lib/config_test.rb
|
|
272
|
+
- test/lib/integration_test.rb
|
|
273
|
+
- test/lib/routes_test.rb
|
|
274
|
+
- test/lib/themes_for_rails_test.rb
|
|
275
|
+
- test/support/extensions.rb
|
|
276
|
+
- test/test_helper.rb
|