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
source 'https://rubygems.org' | |
gem 'locomotivecms_wagon', '1.5.1' | |
# group :development do | |
# Mac OS X | |
# gem 'rb-fsevent', '~> 0.9.1', require: RUBY_PLATFORM.include?('darwin') && 'rb-fsevent' | |
# Unix | |
# gem 'therubyracer', require: 'v8', platforms: :ruby unless RUBY_PLATFORM.include?('darwin') |
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
# Human readable name of this type | |
name: Videos | |
# Lowercase, underscored handle used to access this type | |
slug: videos | |
# Explanatory text displayed in the back-office | |
description: A description of the content type for the editors | |
# Slug of field used to identify entries by default, such as the title |
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
# Human readable name of this type | |
name: Courses | |
# Lowercase, underscored handle used to access this type | |
slug: courses | |
# Explanatory text displayed in the back-office | |
description: A description of the content type for the editors | |
# Slug of field used to identify entries by default, such as the title |
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
// | |
// DMTrial.h | |
// DevMateActivations | |
// | |
// Copyright (c) 2013-2014 MacPaw Inc. All rights reserved. | |
// | |
#ifndef __DevMateActivations__DMTrial__ | |
#define __DevMateActivations__DMTrial__ |
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
# Use this hook to configure devise mailer, warden hooks and so forth. The first | |
# four configuration values can also be set straight in your models. | |
Devise.setup do |config| | |
# ==> Mailer Configuration | |
# Configure the e-mail address which will be shown in DeviseMailer. | |
config.mailer_sender = Settings.email | |
# Configure the class responsible to send e-mails. | |
config.mailer = 'Locomotive::DeviseMailer' |
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
def refresh_conflicts(dispatch) | |
unavailables = [] | |
# 1. reset the unavailability of all the dispatched faces | |
_instrument 'dispatch_service.refresh_conflicts.reset' do | |
dispatch.faces.update_all(unavailable: false) | |
end | |
# 2. find the dispatched faces in conflict | |
dispatch.faces.each do |face| |
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 'httparty' | |
require 'locomotive/mounter' | |
$api_base_url = "" | |
$api_key = "" | |
Locomotive::Mounter::EngineApi.set_token(uri: "http://#{$api_base_url}/locomotive/api", api_key: api_key) | |
attributes = { | |
title: 'Hello world', | |
description: 'Lorem ipsum' |
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
#!/usr/bin/env ruby | |
# | |
# This file was generated by Bundler. | |
# | |
# The application 'builder' is installed as part of a gem, and | |
# this file is here to facilitate running it. | |
# | |
require 'pathname' | |
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../Gemfile", |
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 'slim' | |
template = %{ | |
doctype html | |
head | |
body | |
{% for product in products %} | |
{{ product.name }} | |
{% endfor %} | |
} |
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 Locomotive | |
module Liquid | |
module Tags | |
# Filter a collection | |
# | |
# Usage: | |
# | |
# {% with_scope main_developer: 'John Doe', active: true %} | |
# {% for project in contents.projects %} |