partial_compiler 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +34 -0
  4. data/lib/partial_compiler/compiler.rb +53 -0
  5. data/lib/partial_compiler/file_copier.rb +31 -0
  6. data/lib/partial_compiler/partial_reader.rb +70 -0
  7. data/lib/partial_compiler/plugin.rb +21 -0
  8. data/lib/partial_compiler/railtie.rb +13 -0
  9. data/lib/partial_compiler/version.rb +5 -0
  10. data/lib/partial_compiler.rb +26 -0
  11. data/lib/tasks/partial_compiler_tasks.rake +6 -0
  12. data/spec/dummy/506076a33d1bf2ff3c0cc6f54dd044a6.jpg +0 -0
  13. data/spec/dummy/README.rdoc +28 -0
  14. data/spec/dummy/Rakefile +6 -0
  15. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  16. data/spec/dummy/app/assets/javascripts/items.js +2 -0
  17. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  18. data/spec/dummy/app/assets/stylesheets/items.css +4 -0
  19. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  20. data/spec/dummy/app/controllers/items_controller.rb +5 -0
  21. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  22. data/spec/dummy/app/helpers/items_helper.rb +2 -0
  23. data/spec/dummy/app/views/items/_partial_one.html.erb +7 -0
  24. data/spec/dummy/app/views/items/basic.compiled.html.erb +1 -0
  25. data/spec/dummy/app/views/items/basic.uc.html.erb +1 -0
  26. data/spec/dummy/app/views/items/contains_bad_file_path.compiled.html.erb +1 -0
  27. data/spec/dummy/app/views/items/contains_bad_file_path.uc.html.erb +1 -0
  28. data/spec/dummy/app/views/items/different_file.compiled.html.erb +1 -0
  29. data/spec/dummy/app/views/items/different_file.uc.html.erb +1 -0
  30. data/spec/dummy/app/views/items/dont_compile.html.erb +0 -0
  31. data/spec/dummy/app/views/items/indentation.compiled.html.erb +9 -0
  32. data/spec/dummy/app/views/items/indentation.uc.html.erb +5 -0
  33. data/spec/dummy/app/views/items/index.compiled.html.erb +12 -0
  34. data/spec/dummy/app/views/items/index.uc.html.erb +6 -0
  35. data/spec/dummy/app/views/items/multiple.compiled.html.erb +7 -0
  36. data/spec/dummy/app/views/items/multiple.uc.html.erb +7 -0
  37. data/spec/dummy/app/views/items/partials/_basic_partial.html.erb +1 -0
  38. data/spec/dummy/app/views/items/partials/_indentation_partial.html.erb +5 -0
  39. data/spec/dummy/app/views/items/partials/_multiple_first_partial.html.erb +1 -0
  40. data/spec/dummy/app/views/items/partials/_multiple_second_partial.html.erb +1 -0
  41. data/spec/dummy/app/views/items/partials/_partial_with_locals.html.erb +4 -0
  42. data/spec/dummy/app/views/items/with_locals.compiled.html.erb +7 -0
  43. data/spec/dummy/app/views/items/with_locals.uc.html.erb +3 -0
  44. data/spec/dummy/app/views/layouts/_different_file_partial.html.erb +1 -0
  45. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  46. data/spec/dummy/bin/bundle +3 -0
  47. data/spec/dummy/bin/rails +4 -0
  48. data/spec/dummy/bin/rake +4 -0
  49. data/spec/dummy/bin/setup +29 -0
  50. data/spec/dummy/config/application.rb +26 -0
  51. data/spec/dummy/config/boot.rb +5 -0
  52. data/spec/dummy/config/database.yml +25 -0
  53. data/spec/dummy/config/environment.rb +5 -0
  54. data/spec/dummy/config/environments/development.rb +41 -0
  55. data/spec/dummy/config/environments/production.rb +79 -0
  56. data/spec/dummy/config/environments/test.rb +42 -0
  57. data/spec/dummy/config/initializers/assets.rb +11 -0
  58. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  59. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  60. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  61. data/spec/dummy/config/initializers/inflections.rb +16 -0
  62. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  63. data/spec/dummy/config/initializers/session_store.rb +3 -0
  64. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  65. data/spec/dummy/config/locales/en.yml +23 -0
  66. data/spec/dummy/config/routes.rb +56 -0
  67. data/spec/dummy/config/secrets.yml +22 -0
  68. data/spec/dummy/config.ru +4 -0
  69. data/spec/dummy/db/development.sqlite3 +0 -0
  70. data/spec/dummy/log/development.log +19 -0
  71. data/spec/dummy/log/test.log +0 -0
  72. data/spec/dummy/public/404.html +67 -0
  73. data/spec/dummy/public/422.html +67 -0
  74. data/spec/dummy/public/500.html +66 -0
  75. data/spec/dummy/public/favicon.ico +0 -0
  76. data/spec/dummy/test/controllers/items_controller_test.rb +7 -0
  77. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2T/2TvyB7oCl45DgkqrOmVbcm7yOh9lByBQlhTlAE1aW_4.cache +1 -0
  78. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2Z/2ZLOKOJiwnIinAqhbzRKh1IEETiZREr1YQCFyxYFbN4.cache +0 -0
  79. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4_/4_dJBa_7QKLBIH0jjg65cebTAuY_sLVo_iQQ0fps8js.cache +0 -0
  80. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4e/4e49Lfrtv8PSiOHv2GUFdvcmdkIS4BoTchZLv5i0tio.cache +1 -0
  81. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  82. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DI/DIDMTMwEVtUVb-ITNF4QSqI7XzdufrpRJsaSsXsR6Oo.cache +1 -0
  83. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +2 -0
  84. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Fk/FknohZHEdWUMw4HSUB3lC41QMsEub5BAxzqByuFalTo.cache +1 -0
  85. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Fp/Fp9Oou-zxL8DBeFhErfzZn_n3uuxvXRnbDdfDqTjH2s.cache +3 -0
  86. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Iz/Izw6_7mFleuiGKShX69gMYO9Ycvlf40MiJmOxjzTHmk.cache +0 -0
  87. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lh/Lhz4lqOT-V39qOS7NLUbcm0zro3pI89tjgetnWOy6J8.cache +1 -0
  88. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lp/LpVVHFy8fsU4uEWj6lUrWVys_fZa6GGsAqHetorFs70.cache +1 -0
  89. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ms/MsFgmP1VPAADfJsOCG9kWoNeupnJrCzbQPmDH8uNQ18.cache +1 -0
  90. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/N6/N6MLwUPB6cVIotbqabmrqnSqvR-p2QRv-mbGyuLTP7Q.cache +1 -0
  91. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
  92. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/W3/W3cHMqKo_nr5qJKR0V308_tcplrQSnxUmMDfQglGwWI.cache +0 -0
  93. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wv/WvJk4Iot2igCSrbfApqrmStuSQOffzWBG_RYTqQop70.cache +0 -0
  94. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_C/_CT--lr3faMfLwjijTYy0pr0HzoPHvtHTc6qgI4t8p0.cache +1 -0
  95. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_p/_pmchTL85UhaPBE5s8b54TEwsaoxFVsMb-7moIiCSco.cache +1 -0
  96. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bz/bz9GlwV9YVGmZmMz8QCbkM054HyMw3mKt9QwHu7-rAU.cache +1 -0
  97. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/d_/d__pyZ59nw3OcLIeBQa9I1BICeS1U0TYych01h_EmwQ.cache +1 -0
  98. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +2 -0
  99. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
  100. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kK/kKighvnHFWJvvAkczrnpVfPbGBtzU3Lht7C0_9jTW5A.cache +2 -0
  101. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
  102. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pU/pU5LSxsCI1T-Tm2QnWGrW6j9AO0pUdFUT6rzFgt6gv4.cache +0 -0
  103. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qS/qS5uuVKc-Cov8_EtzIk6lQ3mMZTbaXBG6O2EhNo6PQY.cache +0 -0
  104. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/s_/s_AOM3l5j9AJz822ydKG2I2iyDE-kKBAkGowYlI9Cxs.cache +0 -0
  105. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xb/xbafQVqcZegyme7hswguXLz08ireksM0iHrrg9cM_vs.cache +3 -0
  106. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yi/yiIIWnhCkd_bdi7bbNGLmnOjLZQ2i338IFSWQmx67b8.cache +1 -0
  107. data/spec/expected_file_contents.rb +12 -0
  108. data/spec/spec_helper.rb +14 -0
  109. data/spec/tests/compiler_spec.rb +60 -0
  110. data/spec/tests/plugin_spec.rb +30 -0
  111. metadata +323 -0
@@ -0,0 +1 @@
1
+ "%q ����Z��p�+m�56�ݏ��1]/*
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"9file-digest://app/assets/stylesheets/application.css;TTI")file-digest://app/assets/stylesheets;TTI"3file-digest://app/assets/stylesheets/items.css;TTF
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=b0ea445ddf3a603397d266fa7e57e7f6c26ba511d096ee77d527439b8e8d598e:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=bfdf0a079c858a0ca8e253f6f27ed60c29faf45d5e9f0ebe2689a2862b0216c0:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/items.js?type=application/javascript&pipeline=self&id=cf75b25f96b070924c6679310c150bbaf9f7165343c52cf77e3890c0ca3b1bbf:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=8116a45773e0595e5bc0d1a82bc08f1c3c40e80b7e5b127f0b9115144c0d4cb5:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"8file-digest://app/assets/javascripts/application.js;TTI")file-digest://app/assets/javascripts;TTI"2file-digest://app/assets/javascripts/items.js;TTF
@@ -0,0 +1,2 @@
1
+ "%����͹mm�
2
+ a�l�|a56���v�6}��(&5
@@ -0,0 +1,3 @@
1
+ [o:Set:
2
+ @hash}
3
+ I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"3file-digest://app/assets/stylesheets/items.css;TTF
@@ -0,0 +1 @@
1
+ "%֧�NTZq�בH�L��#p3��Jg!��)
@@ -0,0 +1,12 @@
1
+ EXPECTED_FILE_CONTENTS = {
2
+ multiple: "<div>\n Hello from file one\n</div>\n\n<div>\n Hello from file two\n</div>",
3
+ contains_bad_file_path: "<%= render partial: \"i_dont_exist\" %>",
4
+ different_file: "I'm in a different directory",
5
+ indentation: "<h1> Welcome to my indented page! </h1> \n\n<div class=\"container\">\n Don't indent me, bro\n Keep me indented\n <div>\n Help! I'm stuck in this pointless div!\n </div>\n</div>",
6
+ basic: "I'm so basic it hurts",
7
+ with_locals: "<div>\n <% header1= \"First Header\";header2= \"Second Header\" %>\n I'm a partial that contains locals\n \n <h1><%= header1 %></h1>\n <h2><%= header2 %></h2>\n</div>"
8
+ }
9
+
10
+ def expected_file_contents_for file_name
11
+ EXPECTED_FILE_CONTENTS[file_name.to_sym] || ""
12
+ end
@@ -0,0 +1,14 @@
1
+ require 'simplecov'
2
+
3
+ SimpleCov.start 'rails'
4
+ require 'rspec'
5
+ require 'rails'
6
+ require 'action_view'
7
+ require 'partial_compiler'
8
+
9
+ PartialCompiler.start
10
+
11
+ require File.expand_path("../dummy/config/environment", __FILE__)
12
+
13
+ RSpec.configure do |config|
14
+ end
@@ -0,0 +1,60 @@
1
+ require "spec_helper"
2
+ require "expected_file_contents"
3
+
4
+ module PartialCompiler
5
+ describe Compiler do
6
+ let(:compiler){ PartialCompiler::Compiler.new }
7
+ let(:base_file_path){Rails.root.join("app", "views", "items")}
8
+
9
+ context "find_partials" do
10
+ it "sets compiled files" do
11
+ expect(compiler.files.include?(base_file_path.join("index.compiled.html.erb").to_s)).to be true
12
+ end
13
+
14
+ # Expected files (one for each test in file compilation context):
15
+ # basic, contains_bad_file_path, different_file, indentation, index, multiple, with_locals
16
+ it "compiles all the required files" do
17
+ expect(compiler.files.count).to eq(7)
18
+ expect(compiler.files.include?(Rails.root.join(
19
+ "app",
20
+ "views",
21
+ "items",
22
+ "dont_compile.compiled.html.erb"
23
+ ).to_s)).to be false
24
+ end
25
+ end
26
+
27
+ # Add expected file contents to hash in spec/expected_file_contents.rb
28
+ context "file compilation" do
29
+ it "performs a basic compilation" do
30
+ file_path = base_file_path.join("basic.compiled.html.erb")
31
+ expect(File.open(file_path, "r").read.chomp).to eq(expected_file_contents_for("basic"))
32
+ end
33
+
34
+ it "handles multiple files" do
35
+ file_path = base_file_path.join("multiple.compiled.html.erb")
36
+ expect(File.open(file_path, "r").read.chomp).to eq(expected_file_contents_for("multiple"))
37
+ end
38
+
39
+ it "handles locals" do
40
+ file_path = base_file_path.join("with_locals.compiled.html.erb")
41
+ expect(File.open(file_path, "r").read.chomp).to eq(expected_file_contents_for("with_locals"))
42
+ end
43
+
44
+ it "handles indentation" do
45
+ file_path = base_file_path.join("indentation.compiled.html.erb")
46
+ expect(File.open(file_path, "r").read.chomp).to eq(expected_file_contents_for("indentation"))
47
+ end
48
+
49
+ it "compiles a file in different directory" do
50
+ file_path = base_file_path.join("different_file.compiled.html.erb")
51
+ expect(File.open(file_path, "r").read.chomp).to eq(expected_file_contents_for("different_file"))
52
+ end
53
+
54
+ it "handles a file not being found" do
55
+ file_path = base_file_path.join("contains_bad_file_path.compiled.html.erb")
56
+ expect(File.open(file_path, "r").read.chomp).to eq(expected_file_contents_for("contains_bad_file_path"))
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,30 @@
1
+ require "spec_helper"
2
+
3
+ module PartialCompiler
4
+ describe Compiler do
5
+ context "development" do
6
+ it "registers uncompiled handlers" do
7
+ PartialCompiler.configure({run_compiled: false})
8
+ PartialCompiler.start
9
+ expected_handlers = ["uncompiled.html.erb", "uc.html.erb"]
10
+ current_handlers = ActionView::Template.template_handler_extensions
11
+ expect(expected_handlers & current_handlers).to match_array(expected_handlers)
12
+ end
13
+ end
14
+
15
+ context "production" do
16
+ it "registers compiled handler in production" do
17
+ PartialCompiler.configure({run_compiled: true})
18
+ PartialCompiler.start
19
+ expected_handlers = ["compiled.html.erb"]
20
+ current_handlers = ActionView::Template.template_handler_extensions
21
+ expect(expected_handlers & current_handlers).to match_array(expected_handlers)
22
+ end
23
+ end
24
+ end
25
+ end
26
+
27
+ module PartialCompiler
28
+ describe Compiler do
29
+ end
30
+ end
metadata ADDED
@@ -0,0 +1,323 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: partial_compiler
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Noah Kochanowicz
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-03-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.1.8
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 4.1.8
27
+ - !ruby/object:Gem::Dependency
28
+ name: safe_ruby
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: ''
84
+ email:
85
+ - noah@getlunchtray.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - MIT-LICENSE
91
+ - Rakefile
92
+ - lib/partial_compiler.rb
93
+ - lib/partial_compiler/compiler.rb
94
+ - lib/partial_compiler/file_copier.rb
95
+ - lib/partial_compiler/partial_reader.rb
96
+ - lib/partial_compiler/plugin.rb
97
+ - lib/partial_compiler/railtie.rb
98
+ - lib/partial_compiler/version.rb
99
+ - lib/tasks/partial_compiler_tasks.rake
100
+ - spec/dummy/506076a33d1bf2ff3c0cc6f54dd044a6.jpg
101
+ - spec/dummy/README.rdoc
102
+ - spec/dummy/Rakefile
103
+ - spec/dummy/app/assets/javascripts/application.js
104
+ - spec/dummy/app/assets/javascripts/items.js
105
+ - spec/dummy/app/assets/stylesheets/application.css
106
+ - spec/dummy/app/assets/stylesheets/items.css
107
+ - spec/dummy/app/controllers/application_controller.rb
108
+ - spec/dummy/app/controllers/items_controller.rb
109
+ - spec/dummy/app/helpers/application_helper.rb
110
+ - spec/dummy/app/helpers/items_helper.rb
111
+ - spec/dummy/app/views/items/_partial_one.html.erb
112
+ - spec/dummy/app/views/items/basic.compiled.html.erb
113
+ - spec/dummy/app/views/items/basic.uc.html.erb
114
+ - spec/dummy/app/views/items/contains_bad_file_path.compiled.html.erb
115
+ - spec/dummy/app/views/items/contains_bad_file_path.uc.html.erb
116
+ - spec/dummy/app/views/items/different_file.compiled.html.erb
117
+ - spec/dummy/app/views/items/different_file.uc.html.erb
118
+ - spec/dummy/app/views/items/dont_compile.html.erb
119
+ - spec/dummy/app/views/items/indentation.compiled.html.erb
120
+ - spec/dummy/app/views/items/indentation.uc.html.erb
121
+ - spec/dummy/app/views/items/index.compiled.html.erb
122
+ - spec/dummy/app/views/items/index.uc.html.erb
123
+ - spec/dummy/app/views/items/multiple.compiled.html.erb
124
+ - spec/dummy/app/views/items/multiple.uc.html.erb
125
+ - spec/dummy/app/views/items/partials/_basic_partial.html.erb
126
+ - spec/dummy/app/views/items/partials/_indentation_partial.html.erb
127
+ - spec/dummy/app/views/items/partials/_multiple_first_partial.html.erb
128
+ - spec/dummy/app/views/items/partials/_multiple_second_partial.html.erb
129
+ - spec/dummy/app/views/items/partials/_partial_with_locals.html.erb
130
+ - spec/dummy/app/views/items/with_locals.compiled.html.erb
131
+ - spec/dummy/app/views/items/with_locals.uc.html.erb
132
+ - spec/dummy/app/views/layouts/_different_file_partial.html.erb
133
+ - spec/dummy/app/views/layouts/application.html.erb
134
+ - spec/dummy/bin/bundle
135
+ - spec/dummy/bin/rails
136
+ - spec/dummy/bin/rake
137
+ - spec/dummy/bin/setup
138
+ - spec/dummy/config.ru
139
+ - spec/dummy/config/application.rb
140
+ - spec/dummy/config/boot.rb
141
+ - spec/dummy/config/database.yml
142
+ - spec/dummy/config/environment.rb
143
+ - spec/dummy/config/environments/development.rb
144
+ - spec/dummy/config/environments/production.rb
145
+ - spec/dummy/config/environments/test.rb
146
+ - spec/dummy/config/initializers/assets.rb
147
+ - spec/dummy/config/initializers/backtrace_silencers.rb
148
+ - spec/dummy/config/initializers/cookies_serializer.rb
149
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
150
+ - spec/dummy/config/initializers/inflections.rb
151
+ - spec/dummy/config/initializers/mime_types.rb
152
+ - spec/dummy/config/initializers/session_store.rb
153
+ - spec/dummy/config/initializers/wrap_parameters.rb
154
+ - spec/dummy/config/locales/en.yml
155
+ - spec/dummy/config/routes.rb
156
+ - spec/dummy/config/secrets.yml
157
+ - spec/dummy/db/development.sqlite3
158
+ - spec/dummy/log/development.log
159
+ - spec/dummy/log/test.log
160
+ - spec/dummy/public/404.html
161
+ - spec/dummy/public/422.html
162
+ - spec/dummy/public/500.html
163
+ - spec/dummy/public/favicon.ico
164
+ - spec/dummy/test/controllers/items_controller_test.rb
165
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/2T/2TvyB7oCl45DgkqrOmVbcm7yOh9lByBQlhTlAE1aW_4.cache
166
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/2Z/2ZLOKOJiwnIinAqhbzRKh1IEETiZREr1YQCFyxYFbN4.cache
167
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/4_/4_dJBa_7QKLBIH0jjg65cebTAuY_sLVo_iQQ0fps8js.cache
168
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/4e/4e49Lfrtv8PSiOHv2GUFdvcmdkIS4BoTchZLv5i0tio.cache
169
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
170
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/DI/DIDMTMwEVtUVb-ITNF4QSqI7XzdufrpRJsaSsXsR6Oo.cache
171
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
172
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Fk/FknohZHEdWUMw4HSUB3lC41QMsEub5BAxzqByuFalTo.cache
173
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Fp/Fp9Oou-zxL8DBeFhErfzZn_n3uuxvXRnbDdfDqTjH2s.cache
174
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Iz/Izw6_7mFleuiGKShX69gMYO9Ycvlf40MiJmOxjzTHmk.cache
175
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Lh/Lhz4lqOT-V39qOS7NLUbcm0zro3pI89tjgetnWOy6J8.cache
176
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Lp/LpVVHFy8fsU4uEWj6lUrWVys_fZa6GGsAqHetorFs70.cache
177
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ms/MsFgmP1VPAADfJsOCG9kWoNeupnJrCzbQPmDH8uNQ18.cache
178
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/N6/N6MLwUPB6cVIotbqabmrqnSqvR-p2QRv-mbGyuLTP7Q.cache
179
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
180
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/W3/W3cHMqKo_nr5qJKR0V308_tcplrQSnxUmMDfQglGwWI.cache
181
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wv/WvJk4Iot2igCSrbfApqrmStuSQOffzWBG_RYTqQop70.cache
182
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/_C/_CT--lr3faMfLwjijTYy0pr0HzoPHvtHTc6qgI4t8p0.cache
183
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/_p/_pmchTL85UhaPBE5s8b54TEwsaoxFVsMb-7moIiCSco.cache
184
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/bz/bz9GlwV9YVGmZmMz8QCbkM054HyMw3mKt9QwHu7-rAU.cache
185
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/d_/d__pyZ59nw3OcLIeBQa9I1BICeS1U0TYych01h_EmwQ.cache
186
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
187
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
188
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/kK/kKighvnHFWJvvAkczrnpVfPbGBtzU3Lht7C0_9jTW5A.cache
189
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
190
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/pU/pU5LSxsCI1T-Tm2QnWGrW6j9AO0pUdFUT6rzFgt6gv4.cache
191
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/qS/qS5uuVKc-Cov8_EtzIk6lQ3mMZTbaXBG6O2EhNo6PQY.cache
192
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/s_/s_AOM3l5j9AJz822ydKG2I2iyDE-kKBAkGowYlI9Cxs.cache
193
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/xb/xbafQVqcZegyme7hswguXLz08ireksM0iHrrg9cM_vs.cache
194
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/yi/yiIIWnhCkd_bdi7bbNGLmnOjLZQ2i338IFSWQmx67b8.cache
195
+ - spec/expected_file_contents.rb
196
+ - spec/spec_helper.rb
197
+ - spec/tests/compiler_spec.rb
198
+ - spec/tests/plugin_spec.rb
199
+ homepage: https://github.com/getlunchtray/partial-compiler
200
+ licenses:
201
+ - MIT
202
+ metadata: {}
203
+ post_install_message:
204
+ rdoc_options: []
205
+ require_paths:
206
+ - lib
207
+ required_ruby_version: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ">="
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
212
+ required_rubygems_version: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ requirements: []
218
+ rubyforge_project:
219
+ rubygems_version: 2.4.8
220
+ signing_key:
221
+ specification_version: 4
222
+ summary: Compiles partials in production for faster load times.
223
+ test_files:
224
+ - spec/dummy/506076a33d1bf2ff3c0cc6f54dd044a6.jpg
225
+ - spec/dummy/app/assets/javascripts/application.js
226
+ - spec/dummy/app/assets/javascripts/items.js
227
+ - spec/dummy/app/assets/stylesheets/application.css
228
+ - spec/dummy/app/assets/stylesheets/items.css
229
+ - spec/dummy/app/controllers/application_controller.rb
230
+ - spec/dummy/app/controllers/items_controller.rb
231
+ - spec/dummy/app/helpers/application_helper.rb
232
+ - spec/dummy/app/helpers/items_helper.rb
233
+ - spec/dummy/app/views/items/_partial_one.html.erb
234
+ - spec/dummy/app/views/items/basic.compiled.html.erb
235
+ - spec/dummy/app/views/items/basic.uc.html.erb
236
+ - spec/dummy/app/views/items/contains_bad_file_path.compiled.html.erb
237
+ - spec/dummy/app/views/items/contains_bad_file_path.uc.html.erb
238
+ - spec/dummy/app/views/items/different_file.compiled.html.erb
239
+ - spec/dummy/app/views/items/different_file.uc.html.erb
240
+ - spec/dummy/app/views/items/dont_compile.html.erb
241
+ - spec/dummy/app/views/items/indentation.compiled.html.erb
242
+ - spec/dummy/app/views/items/indentation.uc.html.erb
243
+ - spec/dummy/app/views/items/index.compiled.html.erb
244
+ - spec/dummy/app/views/items/index.uc.html.erb
245
+ - spec/dummy/app/views/items/multiple.compiled.html.erb
246
+ - spec/dummy/app/views/items/multiple.uc.html.erb
247
+ - spec/dummy/app/views/items/partials/_basic_partial.html.erb
248
+ - spec/dummy/app/views/items/partials/_indentation_partial.html.erb
249
+ - spec/dummy/app/views/items/partials/_multiple_first_partial.html.erb
250
+ - spec/dummy/app/views/items/partials/_multiple_second_partial.html.erb
251
+ - spec/dummy/app/views/items/partials/_partial_with_locals.html.erb
252
+ - spec/dummy/app/views/items/with_locals.compiled.html.erb
253
+ - spec/dummy/app/views/items/with_locals.uc.html.erb
254
+ - spec/dummy/app/views/layouts/_different_file_partial.html.erb
255
+ - spec/dummy/app/views/layouts/application.html.erb
256
+ - spec/dummy/bin/bundle
257
+ - spec/dummy/bin/rails
258
+ - spec/dummy/bin/rake
259
+ - spec/dummy/bin/setup
260
+ - spec/dummy/config/application.rb
261
+ - spec/dummy/config/boot.rb
262
+ - spec/dummy/config/database.yml
263
+ - spec/dummy/config/environment.rb
264
+ - spec/dummy/config/environments/development.rb
265
+ - spec/dummy/config/environments/production.rb
266
+ - spec/dummy/config/environments/test.rb
267
+ - spec/dummy/config/initializers/assets.rb
268
+ - spec/dummy/config/initializers/backtrace_silencers.rb
269
+ - spec/dummy/config/initializers/cookies_serializer.rb
270
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
271
+ - spec/dummy/config/initializers/inflections.rb
272
+ - spec/dummy/config/initializers/mime_types.rb
273
+ - spec/dummy/config/initializers/session_store.rb
274
+ - spec/dummy/config/initializers/wrap_parameters.rb
275
+ - spec/dummy/config/locales/en.yml
276
+ - spec/dummy/config/routes.rb
277
+ - spec/dummy/config/secrets.yml
278
+ - spec/dummy/config.ru
279
+ - spec/dummy/db/development.sqlite3
280
+ - spec/dummy/log/development.log
281
+ - spec/dummy/log/test.log
282
+ - spec/dummy/public/404.html
283
+ - spec/dummy/public/422.html
284
+ - spec/dummy/public/500.html
285
+ - spec/dummy/public/favicon.ico
286
+ - spec/dummy/Rakefile
287
+ - spec/dummy/README.rdoc
288
+ - spec/dummy/test/controllers/items_controller_test.rb
289
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/2T/2TvyB7oCl45DgkqrOmVbcm7yOh9lByBQlhTlAE1aW_4.cache
290
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/2Z/2ZLOKOJiwnIinAqhbzRKh1IEETiZREr1YQCFyxYFbN4.cache
291
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/4_/4_dJBa_7QKLBIH0jjg65cebTAuY_sLVo_iQQ0fps8js.cache
292
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/4e/4e49Lfrtv8PSiOHv2GUFdvcmdkIS4BoTchZLv5i0tio.cache
293
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
294
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/_C/_CT--lr3faMfLwjijTYy0pr0HzoPHvtHTc6qgI4t8p0.cache
295
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/_p/_pmchTL85UhaPBE5s8b54TEwsaoxFVsMb-7moIiCSco.cache
296
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/bz/bz9GlwV9YVGmZmMz8QCbkM054HyMw3mKt9QwHu7-rAU.cache
297
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/d_/d__pyZ59nw3OcLIeBQa9I1BICeS1U0TYych01h_EmwQ.cache
298
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/DI/DIDMTMwEVtUVb-ITNF4QSqI7XzdufrpRJsaSsXsR6Oo.cache
299
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
300
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Fk/FknohZHEdWUMw4HSUB3lC41QMsEub5BAxzqByuFalTo.cache
301
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Fp/Fp9Oou-zxL8DBeFhErfzZn_n3uuxvXRnbDdfDqTjH2s.cache
302
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
303
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
304
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Iz/Izw6_7mFleuiGKShX69gMYO9Ycvlf40MiJmOxjzTHmk.cache
305
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/kK/kKighvnHFWJvvAkczrnpVfPbGBtzU3Lht7C0_9jTW5A.cache
306
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Lh/Lhz4lqOT-V39qOS7NLUbcm0zro3pI89tjgetnWOy6J8.cache
307
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Lp/LpVVHFy8fsU4uEWj6lUrWVys_fZa6GGsAqHetorFs70.cache
308
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ms/MsFgmP1VPAADfJsOCG9kWoNeupnJrCzbQPmDH8uNQ18.cache
309
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/N6/N6MLwUPB6cVIotbqabmrqnSqvR-p2QRv-mbGyuLTP7Q.cache
310
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
311
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
312
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/pU/pU5LSxsCI1T-Tm2QnWGrW6j9AO0pUdFUT6rzFgt6gv4.cache
313
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/qS/qS5uuVKc-Cov8_EtzIk6lQ3mMZTbaXBG6O2EhNo6PQY.cache
314
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/s_/s_AOM3l5j9AJz822ydKG2I2iyDE-kKBAkGowYlI9Cxs.cache
315
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/W3/W3cHMqKo_nr5qJKR0V308_tcplrQSnxUmMDfQglGwWI.cache
316
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wv/WvJk4Iot2igCSrbfApqrmStuSQOffzWBG_RYTqQop70.cache
317
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/xb/xbafQVqcZegyme7hswguXLz08ireksM0iHrrg9cM_vs.cache
318
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/yi/yiIIWnhCkd_bdi7bbNGLmnOjLZQ2i338IFSWQmx67b8.cache
319
+ - spec/expected_file_contents.rb
320
+ - spec/spec_helper.rb
321
+ - spec/tests/compiler_spec.rb
322
+ - spec/tests/plugin_spec.rb
323
+ has_rdoc: