dugway 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9aa3638d231cc60a0153c6ffffdd9d0fa98c4070
4
- data.tar.gz: 65423b0c6da85284e06f2d30f661f02e1cbed49b
3
+ metadata.gz: edbd573f45d273fb7750817bf39cdd458a27f869
4
+ data.tar.gz: 3fa990884467e68bd017b1d4dba5f88a4ebb3c92
5
5
  SHA512:
6
- metadata.gz: 8eac6f6d4081fc518264527fb04136b1c31c53d5063f470cabd2d5fd03b8cc15aac96dfba88244edf8fe1bc03e4cd6de811fe662a2d6280288eef2884639191f
7
- data.tar.gz: b95cb20fd3c37a591665d2b4667ca00f9fd94b26c04bc5e45d913418a779f1b2f84323be4f0ad90dfead0ccfbecaa5b49466cfd97864055d2045e0453eebc51f
6
+ metadata.gz: 34471b9191164aed5bbfef6f2c6b32c09eef14827f63f618b99d65db658a37803052e766157f7b6336d4cb4325465a14223d7f28010f5e312e95381617d88c41
7
+ data.tar.gz: 7df031699ef5ac1d65d5e5972ba7ed434285c55f1d4090e4b7c6ee3c5f10ce3a40e78bdc32c31f60ec899b6682c8e2a5d41c9742550918c8d729650a7ad846ac
data/CHANGELOG.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  #### 0.8.4
9
9
  * Support `image_sets` in `settings.json`
10
- * Support the new [constrain](http://help.bigcartel.com/customer/portal/articles/772749-filters#constrain) filter
10
+ * Support the new [constrain](http://help.bigcartel.com/developers/themes/#constrainurl-width-height) filter
11
11
 
12
12
  #### 0.7.0
13
13
  * Rename `scripts.js` and `styles.css` to `theme.js` and `theme.css`
data/README.md CHANGED
@@ -62,15 +62,15 @@ All of the assets and source code for your theme goes in the **source** director
62
62
 
63
63
  ### HTML
64
64
 
65
- Develop the HTML for your theme using our [Theme API](http://help.bigcartel.com/customer/portal/articles/772788-creating-a-custom-theme). Barebones versions of all of the required HTML pages for your theme are provided by default, so feel free to expand on those or replace them entirely.
65
+ Develop the HTML for your theme using our [Theme API](http://help.bigcartel.com/developers/themes/). Barebones versions of all of the required HTML pages for your theme are provided by default, so feel free to expand on those or replace them entirely.
66
66
 
67
67
  ### CSS & JavaScript
68
68
 
69
- All CSS for your theme is handled by the **theme.css** file, and all JavaScript by **theme.js**. If you don't have much CSS or JavaScript, or you're just a glutton for punishment, you could simply put all of your code in these two files. However, we recommend you use [Sprockets](http://getsprockets.org) to break your code into multiple files in separate directories.
69
+ All CSS for your theme is handled by the **theme.css** file, and all JavaScript by **theme.js**. If you don't have much CSS or JavaScript, or you're just a glutton for punishment, you could simply put all of your code in these two files. However, we recommend you use [Sprockets](#using-sprockets) to break your code into multiple files in separate directories.
70
70
 
71
71
  #### Using Sprockets
72
72
 
73
- [Sprockets](http://getsprockets.org) allows you to bring in CSS and JavaScript from different directories into a single file. We've created **stylesheets** and **javascripts** directories by default that you can put your code in, but you could delete those and put files anywhere you'd like. After that, use [Sprockets directives](https://github.com/sstephenson/sprockets#the-directive-processor) to package them into **theme.css** and **theme.js**.
73
+ [Sprockets](https://github.com/sstephenson/sprockets) allows you to bring in CSS and JavaScript from different directories into a single file. We've created **stylesheets** and **javascripts** directories by default that you can put your code in, but you could delete those and put files anywhere you'd like. After that, use [Sprockets directives](https://github.com/sstephenson/sprockets#the-directive-processor) to package them into **theme.css** and **theme.js**.
74
74
 
75
75
  ##### theme.css
76
76
 
@@ -94,7 +94,7 @@ And finally, for you JavaScript folks, we've baked [CoffeeScript](http://coffees
94
94
 
95
95
  #### Embedding CSS & JavaScript
96
96
 
97
- You can embed the CSS and JavaScript into your theme by passing the theme variable to the [theme_css_url](http://help.bigcartel.com/customer/portal/articles/772749-filters#url) and [theme_js_url](http://help.bigcartel.com/customer/portal/articles/772749-filters#url) filters.
97
+ You can embed the CSS and JavaScript into your theme by passing the theme variable to the [theme_css_url](http://help.bigcartel.com/developers/themes/#themecssurltheme) and [theme_js_url](http://help.bigcartel.com/developers/themes/#themejsurlname) filters.
98
98
 
99
99
  ##### CSS (theme.css)
100
100
 
@@ -106,7 +106,7 @@ You can embed the CSS and JavaScript into your theme by passing the theme variab
106
106
 
107
107
  ### Images
108
108
 
109
- And as you've probably guessed by now, all images for your theme go in the **images** directory. You can reference an image in your code by passing its name to the [theme_image_url](http://help.bigcartel.com/customer/portal/articles/772749-filters#url) filter.
109
+ And as you've probably guessed by now, all images for your theme go in the **images** directory. You can reference an image in your code by passing its name to the [theme_image_url](http://help.bigcartel.com/developers/themes/#themeimageurlname) filter.
110
110
 
111
111
  {{ 'sample.png' | theme_image_url }}
112
112
 
@@ -140,7 +140,7 @@ Part of building a great theme is making sure it works well in a variety of cont
140
140
 
141
141
  ### Store content
142
142
 
143
- The best way to see your theme under a different light is by previewing it with a different store's products, categories, pages, currency, and other content. To do this, simply set the **:store** option to any Big Cartel store's subdomain, and Dugway will bring in their content using the standard [Big Cartel API](http://help.bigcartel.com/customer/portal/articles/772771-api). By default we use **dugway** for [dugway.bigcartel.com](http://dugway.bigcartel.com).
143
+ The best way to see your theme under a different light is by previewing it with a different store's products, categories, pages, currency, and other content. To do this, simply set the **:store** option to any Big Cartel store's subdomain, and Dugway will bring in their content using the standard [Big Cartel API](http://help.bigcartel.com/developers/api/). By default we use **dugway** for [dugway.bigcartel.com](http://dugway.bigcartel.com).
144
144
 
145
145
  options[:store] = 'beeteeth'
146
146
 
data/lib/dugway/store.rb CHANGED
@@ -70,6 +70,7 @@ module Dugway
70
70
 
71
71
  def products
72
72
  @products ||= get('/products.json')
73
+ Marshal.load(Marshal.dump(@products)) # Hack to avoid data munging elsewhere?
73
74
  end
74
75
 
75
76
  def product(permalink)
@@ -131,12 +132,7 @@ module Dugway
131
132
  end
132
133
 
133
134
  def lookup(permalink, array)
134
- if item = array.find { |item| item['permalink'] == permalink }
135
- # Create a deep copy
136
- Marshal.load(Marshal.dump(item))
137
- else
138
- nil
139
- end
135
+ array.find { |item| item['permalink'] == permalink }
140
136
  end
141
137
 
142
138
  def lookup_products(permalink, type)
@@ -1,3 +1,3 @@
1
1
  module Dugway
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dugway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Big Cartel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-03 00:00:00.000000000 Z
11
+ date: 2014-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler