This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16:04:41 shakapacker.1 | | |
16:04:41 shakapacker.1 | Error: File '../../resources/tsconfig.base.cjs.json' not found. | |
16:04:41 shakapacker.1 | at Be (/home/myUser/Sites/decidim/development_app/node_modules/get-tsconfig/dist/index.cjs:3:9201) | |
16:04:41 shakapacker.1 | at ie (/home/myUser/Sites/decidim/development_app/node_modules/get-tsconfig/dist/index.cjs:3:10245) | |
16:04:41 shakapacker.1 | at le (/home/myUser/Sites/decidim/development_app/node_modules/get-tsconfig/dist/index.cjs:3:10975) | |
16:04:41 shakapacker.1 | at Object.Le [as getTsconfig] (/home/myUser/Sites/decidim/development_app/node_modules/get-tsconfig/dist/index.cjs:3:11080) | |
16:04:41 shakapacker.1 | at Object.ESBuildLoader (/home/myUser/Sites/decidim/development_app/node_modules/esbuild-loader/dist/index.cjs:65:36) | |
16:04:41 shakapacker.1 | at LOADER_EXECUTION (/home/myUser/Sites/decidim/development_app/node_modules/loader-runner/lib/LoaderRunner.js:132:14) | |
16:04:41 shakapacker.1 | at runSyncOrAsync (/home/myUser/Sites/decidim/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- ".CodeMirror" | |
- ".CodeMirror-activeline-background" | |
- ".CodeMirror-code" | |
- ".CodeMirror-composing" | |
- ".CodeMirror-crosshair" | |
- ".CodeMirror-cursor" | |
- ".CodeMirror-dialog" | |
- ".CodeMirror-dialog-bottom" | |
- ".CodeMirror-dialog-top" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axe from "axe-core" | |
import icon from "src/decidim/icon" | |
const positionIndicators = () => { | |
$(".decidim-accessibility-indicator").each((_i, el) => { | |
const $indicator = $(el); | |
const $target = $indicator.data("accessibility-target"); | |
const offset = $target.offset(); | |
$indicator.css({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module I18n | |
module Registry | |
protected | |
def lookup(locale, key, scope = [], options = {}) | |
@log ||= Logger.new(File.join(Rails.root, 'log', 'i18n_registry.log')) | |
@log.info key | |
super | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'should update rates when subject is accepted' do | |
previous_rate = subject.sale_rate | |
new_rate = rand(1..10).to_f | |
subject.update_attribute(:sale_rate, new_rate) | |
expect { | |
subject.accept | |
}.to change { | |
subject.sale_rate.round(2).to_f | |
}.by((new_rate - previous_rate).round(2).to_f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require("http"), | |
zlib = require("zlib"), | |
parse = require('csv-parse'); | |
module.exports = { | |
getGzipped: function(url, callback) { | |
// buffer to store the streamed decompression | |
var buffer = []; | |
http.get(url, function(res) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -v ; rails -v ; rvm -v 22:25:30 | |
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14] | |
Rails 4.0.9 | |
rvm 1.26.10 (latest) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"users": { | |
"mappings": { | |
"user": { | |
"properties": { | |
"user_forum_daily_stats": { | |
"type": "nested", | |
"include_in_parent": true, | |
"properties": { | |
"forum_id": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EmailExclusionValidator < ActiveModel::EachValidator | |
def validate_each(record, attribute, value) | |
unless value =~ email_regex | |
record.errors[attribute] << (options[:message] || "is not an email") | |
else | |
user_name = value.split('@').first | |
if forbidden_words.include?(user_name) | |
record.errors[attribute] << (options[:message] || "you cannot register with a user name") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aug 2 19:00:18 admin Admin[3685]: [19:00:18.624639 ] [ INFO]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"l91PlwDqzuzVKFNeIBxtM8mQGPC/ZABsQKjECRZ7KZ0=", "file"=>{"label"=>"A", "file"=>#<ActionDispatch::Http::UploadedFile:0x000000082f66d0 @original_filename="a.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"file[file]\"; filename=\"a.jpg\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/tmp/RackMultipart20140802-3685-12k28en>>, "description"=>""}, "commit"=>"Update File", "site_id"=>"2", "id"=>"11"} | |
Aug 2 19:00:18 admin Admin[3685]: [19:00:18.625287 ] [DEBUG]: (0.3ms) BEGIN | |
Aug 2 19:00:18 admin Admin[3685]: [19:00:18.626369 ] [DEBUG]: Cms::Site Load (0.2ms) SELECT `cms_sites`.* FROM `cms_sites` WHERE `cms_sites`.`id` = 2 LIMIT 1 | |
Aug 2 19:00:18 admin Admin[3685]: [19:00:18.627706 ] [DEBUG]: Cms::File Load (0.2ms) SELECT `cms_files`.* FROM `cms_files` WHERE `cms_files`.`site_id` = 2 AND `cms_files`.`id` = 11 LIMIT 1 | |
Aug 2 19:00:18 admin Admin[3685]: [19:0 |
NewerOlder