Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move testing options from config.ru to .dugway.json
- Loading branch information
1 parent
a259206
commit cf272a9
Showing
8 changed files
with
84 additions
and
43 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,36 @@ | ||
## Version History | ||
|
||
#### 0.10.3 | ||
|
||
* Added `.dugway.json` as a better way to [test your theme](https://github.com/bigcartel/dugway#testing-your-theme) without needing to modify `config.ru` | ||
|
||
#### 0.10.2 | ||
|
||
* Misc bug fixes and improvements | ||
|
||
#### 0.10.1 | ||
|
||
* Misc bug fixes and improvements | ||
|
||
#### 0.10.0 | ||
|
||
* Added support for default images in `settings.json` | ||
|
||
#### 0.9.0 | ||
* Added support for `theme_font_url` liquid filter | ||
* Added fonts directory, serve fonts from there | ||
* `dugway build` will include font files in the zip | ||
|
||
* Added support for `theme_font_url` liquid filter | ||
* Added fonts directory, serve fonts from there | ||
* `dugway build` will include font files in the zip | ||
|
||
#### 0.8.4 | ||
* Support `image_sets` in `settings.json` | ||
* Support the new [constrain](http://help.bigcartel.com/developers/themes/#constrainurl-width-height) filter | ||
|
||
* Support `image_sets` in `settings.json` | ||
* Support the new [constrain](http://help.bigcartel.com/developers/themes/#constrainurl-width-height) filter | ||
|
||
#### 0.7.0 | ||
* Rename `scripts.js` and `styles.css` to `theme.js` and `theme.css` | ||
|
||
* Rename `scripts.js` and `styles.css` to `theme.js` and `theme.css` | ||
|
||
#### Pre-0.7.0 | ||
* Initial launch and bug fixes | ||
|
||
* Initial launch and bug fixes |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
require 'dugway' | ||
|
||
options = {} | ||
|
||
# Use data from any store to make sure your theme looks great with all sorts of products, pages, | ||
# categories, and more. Just give us the subdomain. Default is "dugway" for dugway.bigcartel.com. | ||
# options[:store] = 'mystore' | ||
|
||
# Simulate the customization done by store owners by passing values to different variables. | ||
# Default values are based on the "default" for each setting in your settings.json. | ||
# options[:customization] = { | ||
# :logo => { | ||
# :url => 'http://placehold.it/200x50/000000/ffffff&text=My+Logo', | ||
# :width => 200, | ||
# :height => 50 | ||
# }, | ||
# :background_color => '#CCCCCC', | ||
# :show_search => true, | ||
# :twitter_username => 'mytwitter' | ||
# } | ||
begin | ||
file = File.read('.dugway.json') | ||
json = JSON.parse(file) | ||
options = HashWithIndifferentAccess.new(json) | ||
rescue Exception => e | ||
puts e | ||
options = {} | ||
end | ||
|
||
run Dugway.application(options) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Use this file to test your theme with different stores and customization variations. | ||
// Learn more at: // https://github.com/bigcartel/dugway#testing-your-theme | ||
// DON'T CHECK THIS FILE INTO SOURCE CONTROL | ||
|
||
{ | ||
|
||
// Use data from any store to make sure your theme looks great with all sorts of products, pages, | ||
// categories, and more. Just give us the subdomain. Default is "dugway" for dugway.bigcartel.com. | ||
|
||
// "store": { | ||
// "subdomain": "mystore" | ||
// }, | ||
|
||
// Simulate the customization done by store owners by passing values to different variables. | ||
// Default values are based on the "default" for each setting in your settings.json. | ||
|
||
// "customization": { | ||
// "logo": { | ||
// "url": "http://placehold.it/200x50/000000/ffffff&text=My+Logo", | ||
// "width": 200, | ||
// "height": 50 | ||
// }, | ||
// "background_color": "#CCCCCC", | ||
// "show_search": true, | ||
// "twitter_username": "bigcartel" | ||
// } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.bundle | ||
.DS_Store | ||
.sass-cache | ||
.dugway.json | ||
|
||
build | ||
tmp | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Dugway | ||
VERSION = "0.10.2" | ||
VERSION = "0.10.3" | ||
end |