Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Better
Builder
Commits
822a8e0e
Verified
Commit
822a8e0e
authored
Sep 19, 2018
by
Aral Balkan
Browse files
Start collating data on rules added/updated/deleted between deploys
parent
7ce4d965
Changes
1
Hide whitespace changes
Inline
Side-by-side
Blockdown.coffee
View file @
822a8e0e
...
...
@@ -809,6 +809,26 @@ Better is a Safari content blocker for <a href='https://itunes.apple.com/us/app/
#
# Prepare metadata
#
rulesAdded
=
[]
rulesUpdated
=
[]
rulesDeleted
=
[]
for
key
,
value
of
@
contentCurrentModifiedTimes
if
(
@
contentPreviousModifiedTimes
[
key
]
==
undefined
)
rulesAdded
.
push
key
else
if
(
@
contentPreviousModifiedTimes
[
key
]
!=
value
)
rulesUpdated
.
push
key
for
key
,
value
of
@
contentPreviousModifiedTimes
if
(
@
contentCurrentModifiedTimes
[
key
]
==
undefined
)
rulesDeleted
.
push
key
console
.
log
(
"Rules added:
#{
rulesAdded
.
length
}
"
)
console
.
log
(
rulesAdded
)
console
.
log
(
"Ruled updated:
#{
rulesUpdated
.
length
}
"
)
console
.
log
(
rulesUpdated
)
console
.
log
(
"Rules deleted:
#{
rulesDeleted
.
length
}
"
)
console
.
log
(
rulesDeleted
)
# Calculate the last update time based on the content cache.
# Since timestamps have lexographical order, we can use a reduce
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment