Implement Liquid::CaptureTag (#565)

* Remove package-lock.json

* Remove phantom schema row

* Add better_errors gem

* Implement Liquid::CaptureTag

* Update .gitignore
This commit is contained in:
Mac Siri 2018-08-31 13:14:00 -04:00 committed by GitHub
parent c888fd6faa
commit 954efd3cab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 19332 deletions

3
.gitignore vendored
View file

@ -43,3 +43,6 @@ latest.dump
# Ignore storybook static site generation
storybook-static/
yarn-error.log
# Ignore package-lock.json because we use yarn
package-lock.json

View file

@ -100,6 +100,8 @@ gem "webpacker", "~> 3.5"
gem "webpush", "~> 0.3"
group :development do
gem "better_errors", "~> 2.5"
gem "binding_of_caller", "~> 0.8"
gem "brakeman", "~> 4.3", require: false
gem "bullet", "~> 5.7"
gem "bundler-audit", "~> 0.6"

View file

@ -154,7 +154,13 @@ GEM
execjs (~> 2.0)
bcrypt (3.1.11)
benchmark-ips (2.7.2)
better_errors (2.5.0)
coderay (>= 1.0.0)
erubi (>= 1.0.0)
rack (>= 0.9.0)
bindex (0.5.0)
binding_of_caller (0.8.0)
debug_inspector (>= 0.0.1)
bourbon (1.4.0)
sass (>= 3.1)
brakeman (4.3.1)
@ -215,6 +221,7 @@ GEM
database_cleaner (1.7.0)
datetime_picker_rails (0.0.7)
momentjs-rails (>= 2.8.1)
debug_inspector (0.0.3)
declarative (0.0.10)
declarative-option (0.1.0)
delayed_job (4.1.4)
@ -928,6 +935,8 @@ DEPENDENCIES
approvals (~> 0.0)
autoprefixer-rails (~> 6.7)
aws-sdk-lambda (~> 1.5)
better_errors (~> 2.5)
binding_of_caller (~> 0.8)
bourbon (~> 1.4)
brakeman (~> 4.3)
buffer!

View file

@ -0,0 +1,7 @@
class CaptureTag < Liquid::Block
def initialize(_tag_name, _markup, _options)
raise StandardError.new("Liquid's Capture tag is disabled")
end
end
Liquid::Template.register_tag("capture".freeze, CaptureTag)

View file

@ -378,10 +378,6 @@ ActiveRecord::Schema.define(version: 20180826174411) do
create_table "messages", force: :cascade do |t|
t.bigint "chat_channel_id", null: false
t.datetime "created_at", null: false
t.text "encrypted_message_html"
t.text "encrypted_message_html_iv"
t.text "encrypted_message_markdown"
t.text "encrypted_message_markdown_iv"
t.string "message_html", null: false
t.string "message_markdown", null: false
t.datetime "updated_at", null: false

19328
package-lock.json generated

File diff suppressed because it is too large Load diff