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
namespace :currency do | |
task :update do | |
uri = URI("http://data.fixer.io/api/latest") | |
params = { :access_key => ENV['FIXERIO_ACCESS_KEY'] } | |
uri.query = URI.encode_www_form(params) | |
res = Net::HTTP.get_response(uri) | |
if res.is_a?(Net::HTTPSuccess) | |
body = JSON.parse(res.body) |
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
version: 2.1 | |
orbs: | |
ruby: circleci/ruby@1.0 | |
node: circleci/node@2 | |
jobs: | |
build: | |
docker: | |
- image: cimg/ruby:3.0.0-node |
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
version: 2.1 | |
orbs: | |
ruby: circleci/ruby@1.0 | |
node: circleci/node@2 | |
jobs: | |
build: | |
docker: | |
- image: cimg/ruby:3.0.0-node # use a tailored CircleCI docker image. | |
steps: |
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
require "rqrcode" | |
qrcode = RQRCode::QRCode.new("http://github.com/") | |
# NOTE: showing with default options specified explicitly | |
svg = qrcode.as_svg( | |
color: "000", | |
shape_rendering: "crispEdges", | |
module_size: 11, | |
standalone: true, |
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
FROM ruby:3.0.0-alpine | |
RUN apk add --update --virtual \ | |
runtime-deps \ | |
postgresql-dev \ | |
postgresql-client \ | |
build-base \ | |
libxml2-dev \ | |
libxslt-dev \ | |
nodejs \ |
NewerOlder