| 更新: | 2015-10-03 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 1.0.0 |
| URL: | http://voluntas.github.io/ |
概要
| # rubocop v0.35.0 から inherit_gem という機能が増えたので gem にしました | |
| # https://github.com/onk/onkcop | |
| inherit_gem: | |
| onkcop: "config/rubocop.yml" |
| 更新: | 2015-10-03 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 1.0.0 |
| URL: | http://voluntas.github.io/ |
概要
| 更新: | 2024-05-20 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2024.1 |
| URL: | https://voluntas.github.io/ |
| # This references the default nodejs container from | |
| # the Docker Hub: https://registry.hub.docker.com/_/node/ | |
| # If you want Nodesource's container you would reference nodesource/node | |
| # Read more about containers on our dev center | |
| # http://devcenter.wercker.com/docs/containers/index.html | |
| box: node:4.2.2 | |
| # This is the build pipeline. Pipelines are the core of wercker | |
| # Read more about pipelines on our dev center | |
| # http://devcenter.wercker.com/docs/pipelines/index.html |
| 日時: | 2017-01-02 |
|---|---|
| 作: | @voluntas |
| バージョン: | 2.1.0 |
| URL: | https://voluntas.githu.io/ |
突っ込みは Twitter @voluntas まで。
| http://stackoverflow.com/questions/22667401/postgres-json-data-type-rails-query | |
| http://stackoverflow.com/questions/40702813/query-on-postgres-json-array-field-in-rails | |
| #payload: [{"kind"=>"person"}] | |
| Segment.where("payload @> ?", [{kind: "person"}].to_json) | |
| #data: {"interest"=>["music", "movies", "programming"]} | |
| Segment.where("data @> ?", {"interest": ["music", "movies", "programming"]}.to_json) | |
| Segment.where("data #>> '{interest, 1}' = 'movies' ") | |
| Segment.where("jsonb_array_length(data->'interest') > 1") |
| ### | |
| # Post coverage rate to Slack | |
| # | |
| # Usage: bash circleci-coverage-slack.sh [simplecov|cobertura|jacoco] | |
| # | |
| # Required environment variables: | |
| # | |
| # - CIRCLE_TOKEN: project-specific readonly API token (need to access build artifacts for others) | |
| # - SLACK_ENDPOINT: Slack endpoint url | |
| # - COVERAGE_FILE: coverage filename (default: .last_run.json) |
| import logging.config | |
| import os | |
| from django.utils.log import DEFAULT_LOGGING | |
| # Disable Django's logging setup | |
| LOGGING_CONFIG = None | |
| LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper() | |
| logging.config.dictConfig({ |