lazy_render 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ada36d495517aada9d0a562e2c5e6af773546948
4
- data.tar.gz: 6105f03108a229da76c620a3b0eb464ee58e241d
3
+ metadata.gz: dc752da159e2ee5ce5fc94c531888f9f5a939a98
4
+ data.tar.gz: dcd03f9a598bbcc0a02e72ae561d6e41499e02da
5
5
  SHA512:
6
- metadata.gz: 49d4b54a4abac04208e95514c35ce9d24d3af99d9a2e077d04e82cdb8b2bdb63a90e65a6b15faf5cfc78d25a1a6c6a292fffc6054407e905dfbc7b7476b05854
7
- data.tar.gz: d3e9b80a752e786aa694aa03ba6987be6238da8a147128c6bd24794b38a3a81de6f5f4cc3a3d5ee40c79130b2fdd425b1bbc370100cefc19e1994a24dd662306
6
+ metadata.gz: b02798dfe1da09b46bbc96b14664d7e47dc46c83fa37b79693e956ba5f5ff87fa3659c262ada75ec3d40f0b6555c83a27f7ad4cc59537b75f15f38604c252057
7
+ data.tar.gz: f541b3a066fa2f2fad160e7cef969504a0ae6e583fccd0411f64cba3f4af3b3169d0fc9a9263e86490ee05056060d0e4d19970b89967865c600534b601b7307f
@@ -29,6 +29,9 @@ var LazyRender = {
29
29
  lazy_renders : lazy_renders,
30
30
  referrer : document.referrer ? document.referrer : ''
31
31
  },
32
+ beforeSend : function (jqXHR, settings) {
33
+ jqXHR.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'));
34
+ },
32
35
  cache : false,
33
36
  dataType : 'json',
34
37
  success : function (result) {
@@ -1,3 +1,3 @@
1
1
  module LazyRender
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
Binary file
@@ -7676,3 +7676,35 @@ Completed 200 OK in 39ms (Views: 1.4ms | ActiveRecord: 0.0ms)
7676
7676
   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7677
7677
   (0.1ms) SELECT version FROM "schema_migrations"
7678
7678
   (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
7679
+
7680
+
7681
+ Started GET "/" for 127.0.0.1 at 2014-11-13 16:04:32 +0900
7682
+ Processing by TopController#index as HTML
7683
+ Rendered top/index.html.erb within layouts/application (3.7ms)
7684
+ Completed 200 OK in 245ms (Views: 242.1ms | ActiveRecord: 0.0ms)
7685
+
7686
+
7687
+ Started GET "/assets/application-2fef23a35c2770e715547d6b12583148.css?body=1" for 127.0.0.1 at 2014-11-13 16:04:33 +0900
7688
+
7689
+
7690
+ Started GET "/assets/top-a391da254112ab8559747045c7f49956.css?body=1" for 127.0.0.1 at 2014-11-13 16:04:33 +0900
7691
+
7692
+
7693
+ Started GET "/assets/jquery-dfb1e594c3e61a04cc388702c3feec1f.js?body=1" for 127.0.0.1 at 2014-11-13 16:04:33 +0900
7694
+
7695
+
7696
+ Started GET "/assets/lazy_render-32a8f69b70b1a231182abac370d15e9e.js?body=1" for 127.0.0.1 at 2014-11-13 16:04:33 +0900
7697
+
7698
+
7699
+ Started GET "/assets/application-6c08482cab87a107bfd2eefa82709531.js?body=1" for 127.0.0.1 at 2014-11-13 16:04:33 +0900
7700
+
7701
+
7702
+ Started POST "/lazy_render/load" for 127.0.0.1 at 2014-11-13 16:04:33 +0900
7703
+ Processing by LazyRenderController#load as JSON
7704
+ Parameters: {"lazy_renders"=>{"0"=>{"name"=>"lazy_render_message"}, "1"=>{"name"=>"pass_variables", "locals"=>{"v"=>"sample text"}}, "2"=>{"name"=>"directory__separator"}, "3"=>{"name"=>"with_cache", "cache"=>"300"}}, "referrer"=>""}
7705
+ Can't verify CSRF token authenticity
7706
+ Rendered lazy_render/lazy_render_message.erb (0.8ms)
7707
+ Rendered lazy_render/pass_variables.html.erb (0.6ms)
7708
+ Rendered lazy_render/directory/separator.html.erb (1.1ms)
7709
+ Rendered lazy_render/with_cache.html.erb (0.7ms)
7710
+ Completed 200 OK in 69ms (Views: 4.3ms | ActiveRecord: 0.0ms)
@@ -1293,3 +1293,60 @@ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1293
1293
   (0.7ms) rollback transaction
1294
1294
   (0.6ms) begin transaction
1295
1295
   (0.1ms) rollback transaction
1296
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1297
+  (0.1ms) begin transaction
1298
+  (0.1ms) rollback transaction
1299
+  (0.0ms) begin transaction
1300
+  (0.0ms) rollback transaction
1301
+  (0.1ms) begin transaction
1302
+  (0.1ms) rollback transaction
1303
+  (0.1ms) begin transaction
1304
+  (0.0ms) rollback transaction
1305
+  (0.1ms) begin transaction
1306
+ Started GET "/" for 127.0.0.1 at 2014-11-28 11:57:51 +0900
1307
+ Processing by TopController#index as HTML
1308
+ Completed 200 OK in 81ms (Views: 80.4ms | ActiveRecord: 0.0ms)
1309
+ Started GET "/assets/application.css" for 127.0.0.1 at 2014-11-28 11:57:51 +0900
1310
+ Started GET "/assets/application.js" for 127.0.0.1 at 2014-11-28 11:57:51 +0900
1311
+ Started POST "/lazy_render/load" for 127.0.0.1 at 2014-11-28 11:57:51 +0900
1312
+ Processing by LazyRenderController#load as JSON
1313
+ Parameters: {"lazy_renders"=>{"0"=>{"name"=>"lazy_render_message"}, "1"=>{"name"=>"pass_variables", "locals"=>{"v"=>"sample text"}}, "2"=>{"name"=>"directory__separator"}, "3"=>{"name"=>"with_cache", "cache"=>"300"}}, "referrer"=>""}
1314
+ Completed 200 OK in 16ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1315
+  (0.1ms) rollback transaction
1316
+  (0.2ms) begin transaction
1317
+ Started GET "/" for 127.0.0.1 at 2014-11-28 11:57:52 +0900
1318
+ Processing by TopController#index as HTML
1319
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1320
+ Started POST "/lazy_render/load" for 127.0.0.1 at 2014-11-28 11:57:52 +0900
1321
+ Processing by LazyRenderController#load as JSON
1322
+ Parameters: {"lazy_renders"=>{"0"=>{"name"=>"lazy_render_message"}, "1"=>{"name"=>"pass_variables", "locals"=>{"v"=>"sample text"}}, "2"=>{"name"=>"directory__separator"}, "3"=>{"name"=>"with_cache", "cache"=>"300"}}, "referrer"=>""}
1323
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
1324
+  (0.1ms) rollback transaction
1325
+  (0.1ms) begin transaction
1326
+ Started GET "/" for 127.0.0.1 at 2014-11-28 11:57:53 +0900
1327
+ Processing by TopController#index as HTML
1328
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
1329
+ Started POST "/lazy_render/load" for 127.0.0.1 at 2014-11-28 11:57:53 +0900
1330
+ Processing by LazyRenderController#load as JSON
1331
+ Parameters: {"lazy_renders"=>{"0"=>{"name"=>"lazy_render_message"}, "1"=>{"name"=>"pass_variables", "locals"=>{"v"=>"sample text"}}, "2"=>{"name"=>"directory__separator"}, "3"=>{"name"=>"with_cache", "cache"=>"300"}}, "referrer"=>""}
1332
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1333
+  (0.1ms) rollback transaction
1334
+  (0.1ms) begin transaction
1335
+ Started GET "/" for 127.0.0.1 at 2014-11-28 11:57:54 +0900
1336
+ Processing by TopController#index as HTML
1337
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
1338
+ Started POST "/lazy_render/load" for 127.0.0.1 at 2014-11-28 11:57:54 +0900
1339
+ Processing by LazyRenderController#load as JSON
1340
+ Parameters: {"lazy_renders"=>{"0"=>{"name"=>"lazy_render_message"}, "1"=>{"name"=>"pass_variables", "locals"=>{"v"=>"sample text"}}, "2"=>{"name"=>"directory__separator"}, "3"=>{"name"=>"with_cache", "cache"=>"300"}}, "referrer"=>""}
1341
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1342
+  (0.1ms) rollback transaction
1343
+  (0.1ms) begin transaction
1344
+ Started GET "/" for 127.0.0.1 at 2014-11-28 11:57:55 +0900
1345
+ Processing by TopController#index as HTML
1346
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1347
+ Started GET "/assets/application.js" for 127.0.0.1 at 2014-11-28 11:57:55 +0900
1348
+ Started POST "/lazy_render/load" for 127.0.0.1 at 2014-11-28 11:57:55 +0900
1349
+ Processing by LazyRenderController#load as JSON
1350
+ Parameters: {"lazy_renders"=>{"0"=>{"name"=>"lazy_render_message"}, "1"=>{"name"=>"pass_variables", "locals"=>{"v"=>"sample text"}}, "2"=>{"name"=>"directory__separator"}, "3"=>{"name"=>"with_cache", "cache"=>"300"}}, "referrer"=>""}
1351
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
1352
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy_render
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vexus2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-13 00:00:00.000000000 Z
11
+ date: 2014-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -128,6 +128,7 @@ files:
128
128
  - lib/lazy_render/rails/routes.rb
129
129
  - lib/lazy_render/version.rb
130
130
  - lib/tasks/lazy_render_tasks.rake
131
+ - spec/assets/images/lazy-render.png
131
132
  - spec/controllers/lazy_render/lazy_render_controller_spec.rb
132
133
  - spec/features/lazy_render_spec.rb
133
134
  - spec/helpers/lazy_render/lazy_render_helper_spec.rb
@@ -218,7 +219,6 @@ files:
218
219
  - spec/test_app/tmp/capybara/capybara-201411121831185043376786.html
219
220
  - spec/test_app/tmp/capybara/capybara-201411121833083203391609.html
220
221
  - spec/test_app/tmp/capybara/capybara-20141112183344242334446.html
221
- - spec/test_app/tmp/pids/server.pid
222
222
  homepage: http://github.com/vexus2
223
223
  licenses:
224
224
  - MIT
@@ -244,6 +244,7 @@ signing_key:
244
244
  specification_version: 4
245
245
  summary: Delay load your actions
246
246
  test_files:
247
+ - spec/assets/images/lazy-render.png
247
248
  - spec/controllers/lazy_render/lazy_render_controller_spec.rb
248
249
  - spec/features/lazy_render_spec.rb
249
250
  - spec/helpers/lazy_render/lazy_render_helper_spec.rb
@@ -334,4 +335,3 @@ test_files:
334
335
  - spec/test_app/tmp/capybara/capybara-201411121831185043376786.html
335
336
  - spec/test_app/tmp/capybara/capybara-201411121833083203391609.html
336
337
  - spec/test_app/tmp/capybara/capybara-20141112183344242334446.html
337
- - spec/test_app/tmp/pids/server.pid
@@ -1 +0,0 @@
1
- 34709