themes_on_rails 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -1
  3. data/lib/themes_on_rails/railtie.rb +8 -0
  4. data/lib/themes_on_rails/version.rb +1 -1
  5. data/spec/dummy/db/test.sqlite3 +0 -0
  6. data/spec/dummy/log/test.log +364 -0
  7. data/spec/dummy/tmp/cache/assets/test/sprockets/0cfcea8e64323f692964ade04baf71bf +0 -0
  8. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  9. data/spec/dummy/tmp/cache/assets/test/sprockets/1b2584b22e1970da0ea00056c0149492 +0 -0
  10. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  11. data/spec/dummy/tmp/cache/assets/test/sprockets/301390a2f715e632e51eaceadc864bd8 +0 -0
  12. data/spec/dummy/tmp/cache/assets/test/sprockets/3059f09ecb35a9d6a17cc629cf142cad +0 -0
  13. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  14. data/spec/dummy/tmp/cache/assets/test/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  15. data/spec/dummy/tmp/cache/assets/test/sprockets/3773504c128301fa4ae43322c265863c +0 -0
  16. data/spec/dummy/tmp/cache/assets/test/sprockets/416150dc3ac35079c94273cc46e90aa6 +0 -0
  17. data/spec/dummy/tmp/cache/assets/test/sprockets/5384ad85f52d3272dbc64d46ef3876a4 +0 -0
  18. data/spec/dummy/tmp/cache/assets/test/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  19. data/spec/dummy/tmp/cache/assets/test/sprockets/8b1b55ee928fcc1ca79651b5a54d12b1 +0 -0
  20. data/spec/dummy/tmp/cache/assets/test/sprockets/97b428fb2be48bdef1c2edc6895007e6 +0 -0
  21. data/spec/dummy/tmp/cache/assets/test/sprockets/a144f874a0fbcfbf57e914e54950b2b8 +0 -0
  22. data/spec/dummy/tmp/cache/assets/test/sprockets/a6505a19f1ef24ad643489939529b237 +0 -0
  23. data/spec/dummy/tmp/cache/assets/test/sprockets/aea240771414d6f51f0eeffa97de34c0 +0 -0
  24. data/spec/dummy/tmp/cache/assets/test/sprockets/c6062fc388a3fcd36f0407b7de58b073 +0 -0
  25. data/spec/dummy/tmp/cache/assets/test/sprockets/c85016e7bbd4f3adbb7635d01f85d39b +0 -0
  26. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  27. data/spec/dummy/tmp/cache/assets/test/sprockets/d066c004d1fd26ae76a61303a7a18145 +0 -0
  28. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  29. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  30. data/spec/dummy/tmp/cache/assets/test/sprockets/fbce05c1fbdc18388ed134c8e4100ac8 +0 -0
  31. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d025d6301cdac27ace8312ce556aaac0e017be31
4
- data.tar.gz: a71f476abd9d2660d7c42f9a29482db576166599
3
+ metadata.gz: aefc651e1f496146d1e2fda6904cd45b6c9503aa
4
+ data.tar.gz: 6f1855c02c262724efa864597b68003e1aabdbdd
5
5
  SHA512:
6
- metadata.gz: 8e7bbbd53e44d4eca576d9fbc0cc3f2bbbec9aae7ab6931cc0e69ee5f265bb09c8a8dd496ba5c496cef2772b11a9953457e043b8b7ce01a52289d6efdd23678b
7
- data.tar.gz: c889fd6896ec5c11be83a59d3a4299eb697266e72d1932cb33be144d8dde06398dcbf4bcb9f3c459fe77ef40392130771abee3343e527ba29bf78691653b61d7
6
+ metadata.gz: f0364d60aa3a93fe407c76db70ffe98f6295e59964d8955d9d31ae65ea09563f3ab4b2bdd1bcea158258a0b5c0db5637defdc97c219b5a4a0faee0d501be0e0e
7
+ data.tar.gz: 0e7186cfd981de0760fea3e0682a68353d7a6f02ed35191e84f86f3e3bd5f45257e780b4b7dea37e427ce09a2eb003bb672231abc857a36eed600433a97451cd
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ThemesOnRails [![Build Status](https://travis-ci.org/yoolk/themes_on_rails.png?branch=master)](https://travis-ci.org/yoolk/themes_on_rails) [![Dependency Status](https://gemnasium.com/yoolk/themes_on_rails.png)](https://gemnasium.com/yoolk/themes_on_rails) [![Code Climate](https://codeclimate.com/github/yoolk/themes_on_rails.png)](https://codeclimate.com/github/yoolk/themes_on_rails) [![Coverage Status](https://coveralls.io/repos/yoolk/themes_on_rails/badge.png?branch=master)](https://coveralls.io/r/yoolk/themes_on_rails?branch=master)
1
+ # ThemesOnRails [![Build Status](https://travis-ci.org/yoolk/themes_on_rails.png?branch=master)](https://travis-ci.org/yoolk/themes_on_rails) [![Dependency Status](https://gemnasium.com/yoolk/themes_on_rails.png)](https://gemnasium.com/yoolk/themes_on_rails) [![Code Climate](https://codeclimate.com/github/yoolk/themes_on_rails.png)](https://codeclimate.com/github/yoolk/themes_on_rails) [![Coverage Status](https://coveralls.io/repos/yoolk/themes_on_rails/badge.png?branch=master)](https://coveralls.io/r/yoolk/themes_on_rails?branch=master) [![Gem Version](https://badge.fury.io/rb/themes_on_rails.png)](http://badge.fury.io/rb/themes_on_rails)
2
2
 
3
3
  ## Installation
4
4
 
@@ -43,6 +43,8 @@ app/
43
43
  [theme_name].html.erb
44
44
  </pre>
45
45
 
46
+ After you invoke the above command, make sure you restart your rails process.
47
+
46
48
  It's best advisable to namespace your assets directory so that it won't conflict with assets in other themes.
47
49
 
48
50
  ```ruby
@@ -51,6 +53,8 @@ javascript_link_tag "professional_blue/all" # => app/themes/professional_bl
51
53
  stylesheet_link_tag "professional_blue/all" # => app/themes/professional_blue/assets/stylesheets/professional_blue/all.css
52
54
  ```
53
55
 
56
+ There is an example app at https://github.com/chamnap/themes_on_rails_example.
57
+
54
58
  ### Controller
55
59
 
56
60
  You can set theme in your controllers by using the `theme` declaration. For example:
@@ -105,6 +109,16 @@ end
105
109
 
106
110
  With this declaration, the **basic** theme would be used for everything but the `rss` index methods.
107
111
 
112
+ ## Asset Pipeline
113
+
114
+ Add this to your staging.rb or production.rb
115
+
116
+ ```ruby
117
+ config.assets.precompile += [ Proc.new { |path, fn| fn =~ /app\/themes/ && !%w(.js .css).include?(File.extname(path)) } ]
118
+ config.assets.precompile += Dir["app/themes/*"].map { |path| "#{path.split('/').last}/all.css" }
119
+ config.assets.precompile += Dir["app/themes/*"].map { |path| "#{path.split('/').last}/all.css" }
120
+ ```
121
+
108
122
  ## Authors
109
123
 
110
124
  * [Chamnap Chhorn](https://github.com/chamnap)
@@ -13,5 +13,13 @@ module ThemesOnRails
13
13
  end
14
14
  end
15
15
 
16
+ if Rails.env.production? || Rails.env.beta? || Rails.env.staging?
17
+ initializer "themes_on_rails.precompile" do |app|
18
+ config.assets.precompile += [ Proc.new { |path, fn| fn =~ /app\/themes/ && !%w(.js .css).include?(File.extname(path)) } ]
19
+ config.assets.precompile += Dir["app/themes/*"].map { |path| "#{path.split('/').last}/all.js" }
20
+ config.assets.precompile += Dir["app/themes/*"].map { |path| "#{path.split('/').last}/all.css" }
21
+ end
22
+ end
23
+
16
24
  end
17
25
  end
@@ -1,3 +1,3 @@
1
1
  module ThemesOnRails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
Binary file
@@ -4040,3 +4040,367 @@ Processing by PostsController#new as HTML
4040
4040
  Parameters: {"theme"=>"basic_blue"}
4041
4041
  Rendered posts/_form.html.erb (2.1ms)
4042
4042
  Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
4043
+  (1.2ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
4044
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4045
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4046
+  (0.1ms) SELECT version FROM "schema_migrations"
4047
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131120082307')
4048
+ Processing by PostsController#index as HTML
4049
+ Parameters: {"theme"=>"professional_blue"}
4050
+ Post Load (1.0ms) SELECT "posts".* FROM "posts"
4051
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (3.6ms)
4052
+ Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 1.0ms)
4053
+ Processing by PostsController#index as HTML
4054
+ Parameters: {"theme"=>"professional_blue"}
4055
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4056
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms)
4057
+ Processing by PostsController#index as HTML
4058
+ Parameters: {"theme"=>"basic_blue"}
4059
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
4060
+ Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.2ms)
4061
+ Processing by PostsController#index as HTML
4062
+ Parameters: {"theme"=>"basic_blue"}
4063
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4064
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms)
4065
+ Processing by PostsController#new as HTML
4066
+ Parameters: {"theme"=>"basic_blue"}
4067
+ Rendered posts/_form.html.erb (17.2ms)
4068
+ Completed 200 OK in 31ms (Views: 29.5ms | ActiveRecord: 0.3ms)
4069
+ Processing by PostsController#new as HTML
4070
+ Parameters: {"theme"=>"basic_blue"}
4071
+ Rendered posts/_form.html.erb (1.7ms)
4072
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
4073
+  (2.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
4074
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4075
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4076
+  (0.1ms) SELECT version FROM "schema_migrations"
4077
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131120082307')
4078
+ Processing by PostsController#index as HTML
4079
+ Parameters: {"theme"=>"professional_blue"}
4080
+ Post Load (0.9ms) SELECT "posts".* FROM "posts"
4081
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (2.9ms)
4082
+ Completed 200 OK in 17ms (Views: 14.8ms | ActiveRecord: 0.9ms)
4083
+ Processing by PostsController#index as HTML
4084
+ Parameters: {"theme"=>"professional_blue"}
4085
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4086
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)
4087
+ Processing by PostsController#index as HTML
4088
+ Parameters: {"theme"=>"basic_blue"}
4089
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4090
+ Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.1ms)
4091
+ Processing by PostsController#index as HTML
4092
+ Parameters: {"theme"=>"basic_blue"}
4093
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4094
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)
4095
+ Processing by PostsController#new as HTML
4096
+ Parameters: {"theme"=>"basic_blue"}
4097
+ Rendered posts/_form.html.erb (11.7ms)
4098
+ Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.2ms)
4099
+ Processing by PostsController#new as HTML
4100
+ Parameters: {"theme"=>"basic_blue"}
4101
+ Rendered posts/_form.html.erb (1.8ms)
4102
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
4103
+  (2.7ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
4104
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4105
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4106
+  (0.1ms) SELECT version FROM "schema_migrations"
4107
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131120082307')
4108
+ Processing by PostsController#index as HTML
4109
+ Parameters: {"theme"=>"professional_blue"}
4110
+ Post Load (1.0ms) SELECT "posts".* FROM "posts"
4111
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (3.2ms)
4112
+ Completed 200 OK in 23ms (Views: 20.3ms | ActiveRecord: 1.0ms)
4113
+ Processing by PostsController#index as HTML
4114
+ Parameters: {"theme"=>"professional_blue"}
4115
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4116
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms)
4117
+ Processing by PostsController#index as HTML
4118
+ Parameters: {"theme"=>"basic_blue"}
4119
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4120
+ Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.1ms)
4121
+ Processing by PostsController#index as HTML
4122
+ Parameters: {"theme"=>"basic_blue"}
4123
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4124
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms)
4125
+ Processing by PostsController#new as HTML
4126
+ Parameters: {"theme"=>"basic_blue"}
4127
+ Rendered posts/_form.html.erb (12.3ms)
4128
+ Completed 200 OK in 39ms (Views: 38.0ms | ActiveRecord: 0.3ms)
4129
+ Processing by PostsController#new as HTML
4130
+ Parameters: {"theme"=>"basic_blue"}
4131
+ Rendered posts/_form.html.erb (1.7ms)
4132
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
4133
+  (2.3ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
4134
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4135
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4136
+  (0.1ms) SELECT version FROM "schema_migrations"
4137
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131120082307')
4138
+ Processing by PostsController#index as HTML
4139
+ Parameters: {"theme"=>"professional_blue"}
4140
+ Post Load (0.9ms) SELECT "posts".* FROM "posts"
4141
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (2.8ms)
4142
+ Completed 200 OK in 24ms (Views: 21.6ms | ActiveRecord: 0.9ms)
4143
+ Processing by PostsController#index as HTML
4144
+ Parameters: {"theme"=>"professional_blue"}
4145
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
4146
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms)
4147
+ Processing by PostsController#index as HTML
4148
+ Parameters: {"theme"=>"basic_blue"}
4149
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4150
+ Completed 200 OK in 14ms (Views: 13.3ms | ActiveRecord: 0.1ms)
4151
+ Processing by PostsController#index as HTML
4152
+ Parameters: {"theme"=>"basic_blue"}
4153
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4154
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)
4155
+ Processing by PostsController#new as HTML
4156
+ Parameters: {"theme"=>"basic_blue"}
4157
+ Rendered posts/_form.html.erb (19.0ms)
4158
+ Completed 200 OK in 39ms (Views: 37.5ms | ActiveRecord: 0.3ms)
4159
+ Processing by PostsController#new as HTML
4160
+ Parameters: {"theme"=>"basic_blue"}
4161
+ Rendered posts/_form.html.erb (1.7ms)
4162
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
4163
+  (2.8ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
4164
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4165
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4166
+  (0.1ms) SELECT version FROM "schema_migrations"
4167
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131120082307')
4168
+ Processing by PostsController#index as HTML
4169
+ Parameters: {"theme"=>"professional_blue"}
4170
+ Post Load (1.0ms) SELECT "posts".* FROM "posts"
4171
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (2.9ms)
4172
+ Completed 200 OK in 24ms (Views: 21.8ms | ActiveRecord: 1.0ms)
4173
+ Processing by PostsController#index as HTML
4174
+ Parameters: {"theme"=>"professional_blue"}
4175
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
4176
+ Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.2ms)
4177
+ Processing by PostsController#index as HTML
4178
+ Parameters: {"theme"=>"basic_blue"}
4179
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4180
+ Completed 200 OK in 14ms (Views: 13.4ms | ActiveRecord: 0.1ms)
4181
+ Processing by PostsController#index as HTML
4182
+ Parameters: {"theme"=>"basic_blue"}
4183
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4184
+ Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.1ms)
4185
+ Processing by PostsController#new as HTML
4186
+ Parameters: {"theme"=>"basic_blue"}
4187
+ Rendered posts/_form.html.erb (12.4ms)
4188
+ Completed 200 OK in 38ms (Views: 37.4ms | ActiveRecord: 0.3ms)
4189
+ Processing by PostsController#new as HTML
4190
+ Parameters: {"theme"=>"basic_blue"}
4191
+ Rendered posts/_form.html.erb (1.8ms)
4192
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
4193
+ Connecting to database specified by database.yml
4194
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
4195
+  (2.1ms) select sqlite_version(*)
4196
+  (2.4ms) DROP TABLE "posts"
4197
+  (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)
4198
+  (0.1ms) SELECT version FROM "schema_migrations"
4199
+ Connecting to database specified by database.yml
4200
+ Processing by PostsController#index as HTML
4201
+ Parameters: {"theme"=>"professional_blue"}
4202
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" 
4203
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (1.6ms)
4204
+ Completed 200 OK in 10.6ms (Views: 9.3ms | ActiveRecord: 0.1ms)
4205
+ Processing by PostsController#index as HTML
4206
+ Parameters: {"theme"=>"professional_blue"}
4207
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4208
+ Completed 200 OK in 4.5ms (Views: 3.8ms | ActiveRecord: 0.1ms)
4209
+ Processing by PostsController#index as HTML
4210
+ Parameters: {"theme"=>"basic_blue"}
4211
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" 
4212
+ Completed 200 OK in 4.9ms (Views: 4.1ms | ActiveRecord: 0.1ms)
4213
+ Processing by PostsController#index as HTML
4214
+ Parameters: {"theme"=>"basic_blue"}
4215
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4216
+ Completed 200 OK in 4.7ms (Views: 4.0ms | ActiveRecord: 0.1ms)
4217
+ Processing by PostsController#new as HTML
4218
+ Parameters: {"theme"=>"basic_blue"}
4219
+ Rendered posts/_form.html.erb (9.5ms)
4220
+ Completed 200 OK in 18.8ms (Views: 14.8ms | ActiveRecord: 0.0ms)
4221
+ Processing by PostsController#new as HTML
4222
+ Parameters: {"theme"=>"basic_blue"}
4223
+ Rendered posts/_form.html.erb (1.5ms)
4224
+ Completed 200 OK in 2.8ms (Views: 2.6ms | ActiveRecord: 0.0ms)
4225
+  (1.1ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
4226
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4227
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4228
+  (0.1ms) SELECT version FROM "schema_migrations"
4229
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131120082307')
4230
+ Processing by PostsController#index as HTML
4231
+ Parameters: {"theme"=>"professional_blue"}
4232
+ Post Load (1.1ms) SELECT "posts".* FROM "posts"
4233
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (3.8ms)
4234
+ Completed 200 OK in 24ms (Views: 21.4ms | ActiveRecord: 1.1ms)
4235
+ Processing by PostsController#index as HTML
4236
+ Parameters: {"theme"=>"professional_blue"}
4237
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4238
+ Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.1ms)
4239
+ Processing by PostsController#index as HTML
4240
+ Parameters: {"theme"=>"basic_blue"}
4241
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4242
+ Completed 200 OK in 13ms (Views: 12.7ms | ActiveRecord: 0.1ms)
4243
+ Processing by PostsController#index as HTML
4244
+ Parameters: {"theme"=>"basic_blue"}
4245
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4246
+ Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.1ms)
4247
+ Processing by PostsController#new as HTML
4248
+ Parameters: {"theme"=>"basic_blue"}
4249
+ Rendered posts/_form.html.erb (16.4ms)
4250
+ Completed 200 OK in 38ms (Views: 37.0ms | ActiveRecord: 0.3ms)
4251
+ Processing by PostsController#new as HTML
4252
+ Parameters: {"theme"=>"basic_blue"}
4253
+ Rendered posts/_form.html.erb (1.6ms)
4254
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
4255
+  (1.0ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
4256
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4257
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4258
+  (0.1ms) SELECT version FROM "schema_migrations"
4259
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131120082307')
4260
+ Processing by PostsController#index as HTML
4261
+ Parameters: {"theme"=>"professional_blue"}
4262
+ Post Load (0.9ms) SELECT "posts".* FROM "posts"
4263
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (3.0ms)
4264
+ Completed 200 OK in 25ms (Views: 22.1ms | ActiveRecord: 0.9ms)
4265
+ Processing by PostsController#index as HTML
4266
+ Parameters: {"theme"=>"professional_blue"}
4267
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4268
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms)
4269
+ Processing by PostsController#index as HTML
4270
+ Parameters: {"theme"=>"basic_blue"}
4271
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4272
+ Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.1ms)
4273
+ Processing by PostsController#index as HTML
4274
+ Parameters: {"theme"=>"basic_blue"}
4275
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4276
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)
4277
+ Processing by PostsController#new as HTML
4278
+ Parameters: {"theme"=>"basic_blue"}
4279
+ Rendered posts/_form.html.erb (16.9ms)
4280
+ Completed 200 OK in 30ms (Views: 29.1ms | ActiveRecord: 0.2ms)
4281
+ Processing by PostsController#new as HTML
4282
+ Parameters: {"theme"=>"basic_blue"}
4283
+ Rendered posts/_form.html.erb (1.6ms)
4284
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
4285
+  (1.1ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
4286
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4287
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4288
+  (0.1ms) SELECT version FROM "schema_migrations"
4289
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131120082307')
4290
+ Processing by PostsController#index as HTML
4291
+ Parameters: {"theme"=>"professional_blue"}
4292
+ Post Load (8.2ms) SELECT "posts".* FROM "posts"
4293
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (11.3ms)
4294
+ Completed 200 OK in 34ms (Views: 24.2ms | ActiveRecord: 8.2ms)
4295
+ Processing by PostsController#index as HTML
4296
+ Parameters: {"theme"=>"professional_blue"}
4297
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4298
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms)
4299
+ Processing by PostsController#index as HTML
4300
+ Parameters: {"theme"=>"basic_blue"}
4301
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4302
+ Completed 200 OK in 13ms (Views: 12.3ms | ActiveRecord: 0.1ms)
4303
+ Processing by PostsController#index as HTML
4304
+ Parameters: {"theme"=>"basic_blue"}
4305
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4306
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)
4307
+ Processing by PostsController#new as HTML
4308
+ Parameters: {"theme"=>"basic_blue"}
4309
+ Rendered posts/_form.html.erb (16.6ms)
4310
+ Completed 200 OK in 40ms (Views: 38.9ms | ActiveRecord: 0.2ms)
4311
+ Processing by PostsController#new as HTML
4312
+ Parameters: {"theme"=>"basic_blue"}
4313
+ Rendered posts/_form.html.erb (1.7ms)
4314
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
4315
+  (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
4316
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4317
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4318
+  (0.1ms) SELECT version FROM "schema_migrations"
4319
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131120082307')
4320
+ Processing by PostsController#index as HTML
4321
+ Parameters: {"theme"=>"professional_blue"}
4322
+ Post Load (1.1ms) SELECT "posts".* FROM "posts"
4323
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (4.1ms)
4324
+ Completed 200 OK in 29ms (Views: 25.6ms | ActiveRecord: 1.1ms)
4325
+ Processing by PostsController#index as HTML
4326
+ Parameters: {"theme"=>"professional_blue"}
4327
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4328
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms)
4329
+ Processing by PostsController#index as HTML
4330
+ Parameters: {"theme"=>"basic_blue"}
4331
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4332
+ Completed 200 OK in 23ms (Views: 22.2ms | ActiveRecord: 0.1ms)
4333
+ Processing by PostsController#index as HTML
4334
+ Parameters: {"theme"=>"basic_blue"}
4335
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
4336
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.2ms)
4337
+ Processing by PostsController#new as HTML
4338
+ Parameters: {"theme"=>"basic_blue"}
4339
+ Rendered posts/_form.html.erb (16.9ms)
4340
+ Completed 200 OK in 56ms (Views: 54.6ms | ActiveRecord: 0.3ms)
4341
+ Processing by PostsController#new as HTML
4342
+ Parameters: {"theme"=>"basic_blue"}
4343
+ Rendered posts/_form.html.erb (3.6ms)
4344
+ Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
4345
+  (1.2ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime) 
4346
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4347
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4348
+  (0.1ms) SELECT version FROM "schema_migrations"
4349
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131120082307')
4350
+ Processing by PostsController#index as HTML
4351
+ Parameters: {"theme"=>"professional_blue"}
4352
+ Post Load (1.0ms) SELECT "posts".* FROM "posts"
4353
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (3.7ms)
4354
+ Completed 200 OK in 28ms (Views: 25.8ms | ActiveRecord: 1.0ms)
4355
+ Processing by PostsController#index as HTML
4356
+ Parameters: {"theme"=>"professional_blue"}
4357
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4358
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms)
4359
+ Processing by PostsController#index as HTML
4360
+ Parameters: {"theme"=>"basic_blue"}
4361
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4362
+ Completed 200 OK in 22ms (Views: 21.8ms | ActiveRecord: 0.1ms)
4363
+ Processing by PostsController#index as HTML
4364
+ Parameters: {"theme"=>"basic_blue"}
4365
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4366
+ Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms)
4367
+ Processing by PostsController#new as HTML
4368
+ Parameters: {"theme"=>"basic_blue"}
4369
+ Rendered posts/_form.html.erb (15.2ms)
4370
+ Completed 200 OK in 40ms (Views: 38.9ms | ActiveRecord: 0.3ms)
4371
+ Processing by PostsController#new as HTML
4372
+ Parameters: {"theme"=>"basic_blue"}
4373
+ Rendered posts/_form.html.erb (1.8ms)
4374
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
4375
+ Connecting to database specified by database.yml
4376
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
4377
+  (0.6ms) select sqlite_version(*)
4378
+  (2.4ms) DROP TABLE "posts"
4379
+  (0.6ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)
4380
+  (0.1ms) SELECT version FROM "schema_migrations"
4381
+ Connecting to database specified by database.yml
4382
+ Processing by PostsController#index as HTML
4383
+ Parameters: {"theme"=>"professional_blue"}
4384
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" 
4385
+ Rendered app/themes/professional_blue/views/posts/index.html.erb within layouts/professional_blue (2.0ms)
4386
+ Completed 200 OK in 15.1ms (Views: 13.7ms | ActiveRecord: 0.1ms)
4387
+ Processing by PostsController#index as HTML
4388
+ Parameters: {"theme"=>"professional_blue"}
4389
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4390
+ Completed 200 OK in 5.2ms (Views: 4.1ms | ActiveRecord: 0.1ms)
4391
+ Processing by PostsController#index as HTML
4392
+ Parameters: {"theme"=>"basic_blue"}
4393
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" 
4394
+ Completed 200 OK in 11.3ms (Views: 10.5ms | ActiveRecord: 0.1ms)
4395
+ Processing by PostsController#index as HTML
4396
+ Parameters: {"theme"=>"basic_blue"}
4397
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
4398
+ Completed 200 OK in 4.9ms (Views: 4.1ms | ActiveRecord: 0.1ms)
4399
+ Processing by PostsController#new as HTML
4400
+ Parameters: {"theme"=>"basic_blue"}
4401
+ Rendered posts/_form.html.erb (11.9ms)
4402
+ Completed 200 OK in 21.7ms (Views: 17.8ms | ActiveRecord: 0.0ms)
4403
+ Processing by PostsController#new as HTML
4404
+ Parameters: {"theme"=>"basic_blue"}
4405
+ Rendered posts/_form.html.erb (1.7ms)
4406
+ Completed 200 OK in 3.2ms (Views: 3.0ms | ActiveRecord: 0.0ms)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: themes_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chamnap Chhorn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-29 00:00:00.000000000 Z
11
+ date: 2014-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  version: 1.8.11
202
202
  requirements: []
203
203
  rubyforge_project:
204
- rubygems_version: 2.2.0
204
+ rubygems_version: 2.2.2
205
205
  signing_key:
206
206
  specification_version: 4
207
207
  summary: Adds multi themes support to your Rails 3/4 application