- fix remaining broken translations
- re-sync the i18n locales in spree_i18n (remove defunct keys, add new ones, etc.)
- upgrade guide
- updated release notes
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
javascript:(function(){ | |
var enc=encodeURIComponent, | |
w=window, | |
frames=w.frames, | |
d=document, | |
tn=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0), | |
pu=w.location.href, | |
isGMail=w.location.host.match(/mail\.google\.com/), | |
tt=pt=d.title, | |
subjSpans=d.getElementsByClassName("hP"),i,url; |
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
#!/bin/bash | |
# A simple script to backup an organization's GitHub repositories. | |
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files | |
GHBU_ORG=$GHBU_ORG # the GitHub organization whose repos will be backed up | |
GHBU_API=${GHBU_API-"https://api.github.com"} # base URI for the GitHub API | |
GHBU_GITHOST="github.com" # the GitHub hostname (see comments) | |
# I recommend using an API token so it is easily trackable and removable. | |
# Note that you MUST have SSH keys for a user with the access to all repos set up |
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
# Current time in hex (saves a few chars) | |
n = Time.now.to_i.to_s(16) | |
# Add some more random digits and convert to base24 (more entropy w/minimal chars) | |
n += rand(9999).to_s(24) | |
# Make sure the whole thing is exactly 10 chars | |
n.ljust(10).gsub(" ", "0") | |
# Convert to upcase |
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
"line_items": [ | |
{ | |
"product_id": "0300385BLK00M", | |
"name": "eve dress", | |
"quantity": 1, | |
"price": 198, | |
"image_url": "https://thereformation.com/rcms/media/3964/resize?size=60x60&tags=clp", | |
"properties": { | |
"color": "Black", | |
"size": "XS" |
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
{"request_id":"52f367367575e449c3000001","summary":"Order created in ShipStation: 90833246","order":{"id":"R154085346","shipstation_id":90833246}} |
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
{ | |
"message": "order:new", | |
"payload": { | |
"order": { | |
"channel": "Amazon", | |
"email": "[email protected]", | |
"currency": "USD", | |
"line_items": [ | |
{ | |
"price": 19.99, |
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
Spree::Admin::ProductsController.class_eval do | |
# don't try and load data before import action either | |
before_filter :load_data, :except => [:index, :import] | |
def import | |
# do stuff | |
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
class CreateSubscriptions < ActiveRecord::Migration | |
def self.up | |
create_table :subscriptions do |t| | |
t.date :start_date | |
t.date :end_date | |
t.integer :duration | |
t.string :interval | |
t.string :state | |
t.references :user | |
t.references :variant |
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 'rails', '3.2.8' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'mysql2' | |
NewerOlder