dugway 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,5 +2,6 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0
5
+ - 2.1
5
6
  notifications:
6
7
  email: false
@@ -1,5 +1,6 @@
1
1
  .bundle
2
2
  .DS_Store
3
+ .sass-cache
3
4
 
4
5
  build
5
6
  tmp
@@ -13,6 +13,18 @@
13
13
  "description": "Adds a repeating background image"
14
14
  }
15
15
  ],
16
+ "image_sets": [
17
+ {
18
+ "variable": "slideshow_images",
19
+ "label": "Slideshow",
20
+ "description": "This is a slideshow"
21
+ },
22
+ {
23
+ "variable": "lookbook_images",
24
+ "label": "Lookbook",
25
+ "description": "This is a lookbook"
26
+ }
27
+ ],
16
28
  "fonts": [
17
29
  {
18
30
  "variable": "header_font",
@@ -2,19 +2,29 @@ module Dugway
2
2
  module Drops
3
3
  class ThemeDrop < BaseDrop
4
4
  def before_method(method_or_key)
5
- if source.respond_to?('has_key?') && source.has_key?(method_or_key) && images.find { |image| image['variable'] == method_or_key.to_s }
5
+ # We should try to get away from this api and use the newer one below
6
+ if source.respond_to?('has_key?') && source.has_key?(method_or_key) && settings_images.find { |image| image['variable'] == method_or_key.to_s }
6
7
  return ImageDrop.new(source[method_or_key].stringify_keys)
7
8
  end
8
-
9
+
9
10
  super
10
11
  end
11
-
12
- private
13
-
12
+
13
+ # Newer API for theme images.
14
+ # theme.images.logo
14
15
  def images
15
- @images ||= settings.has_key?('images') ? settings['images'] : []
16
+ Drops::ThemeImagesDrop.new(source)
17
+ end
18
+
19
+ def image_sets
20
+ Drops::ThemeImageSetsDrop.new(source)
21
+ end
22
+
23
+ private
24
+ def settings_images
25
+ @settings_images ||= settings.has_key?('images') ? settings['images'] : []
16
26
  end
17
-
27
+
18
28
  def settings
19
29
  @settings ||= @context.registers[:settings]
20
30
  end
@@ -0,0 +1,22 @@
1
+ module Dugway
2
+ module Drops
3
+ class ThemeImageSetsDrop < BaseDrop
4
+ def before_method(method_or_key)
5
+ if source.respond_to?('has_key?') && source.has_key?(method_or_key) && settings_image_sets.find { |image| image['variable'] == method_or_key.to_s }
6
+ source[method_or_key].map { |image| ImageDrop.new(image.stringify_keys) }
7
+ else
8
+ []
9
+ end
10
+ end
11
+
12
+ private
13
+ def settings_image_sets
14
+ @settings_image_sets ||= settings.has_key?('image_sets') ? settings['image_sets'] : []
15
+ end
16
+
17
+ def settings
18
+ @settings ||= @context.registers[:settings]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,21 @@
1
+ module Dugway
2
+ module Drops
3
+ class ThemeImagesDrop < BaseDrop
4
+ def before_method(method_or_key)
5
+ if source.respond_to?('has_key?') && source.has_key?(method_or_key) && settings_images.find { |image| image['variable'] == method_or_key.to_s }
6
+ ImageDrop.new(source[method_or_key].stringify_keys)
7
+ end
8
+ end
9
+
10
+ private
11
+ def settings_images
12
+ @settings_images ||= settings.has_key?('images') ? settings['images'] : []
13
+ end
14
+
15
+ def settings
16
+ @settings ||= @context.registers[:settings]
17
+ end
18
+ end
19
+ end
20
+ end
21
+
@@ -121,32 +121,7 @@ module Dugway
121
121
  end
122
122
 
123
123
  def locale
124
- case currency['code']
125
- when 'AUD' then 'en-AU'
126
- when 'BRL' then 'pt-BR'
127
- when 'CAD' then 'en-US'
128
- when 'CZK' then 'cs'
129
- when 'DKK' then 'da'
130
- when 'EUR' then 'eu'
131
- when 'HKD' then 'en-US'
132
- when 'HUF' then 'hu'
133
- when 'ILS' then 'il'
134
- when 'JPY' then 'ja'
135
- when 'MYR' then 'ms-MY'
136
- when 'MXN' then 'es-MX'
137
- when 'TWD' then 'zh-TW'
138
- when 'NZD' then 'en-US'
139
- when 'NOK' then 'nb'
140
- when 'PHP' then 'en-PH'
141
- when 'PLN' then 'pl'
142
- when 'GBP' then 'en-GB'
143
- when 'SGD' then 'en-US'
144
- when 'SEK' then 'sv-SE'
145
- when 'CHF' then 'gsw-CH'
146
- when 'THB' then 'th'
147
- when 'TRY' then 'tr'
148
- else 'en-US'
149
- end
124
+ currency['locale']
150
125
  end
151
126
 
152
127
  private
@@ -1,3 +1,3 @@
1
1
  module Dugway
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
3
3
  end
@@ -1 +1 @@
1
- {"website":"https://github.com/bigcartel/dugway","artists":[{"permalink":"artist-one","name":"Artist One","id":176141,"url":"/artist/artist-one"},{"permalink":"artist-two","name":"Artist Two","id":176144,"url":"/artist/artist-two"},{"permalink":"threezer","name":"Threezer","id":176151,"url":"/artist/threezer"}],"products_count":3,"currency":{"sign":"$","name":"U.S. Dollar","id":1,"code":"USD"},"country":{"name":"United States","id":43,"code":"US"},"categories":[{"permalink":"cds","name":"CDs","id":4615184,"url":"/category/cds"},{"permalink":"hats","name":"Hats","id":4615187,"url":"/category/hats"},{"permalink":"prints","name":"Prints","id":4615190,"url":"/category/prints"},{"permalink":"tees","name":"Tees","id":4615193,"url":"/category/tees"}],"name":"Dugway","pages":[{"permalink":"about-us","name":"About Us"}],"url":"http://dugway.bigcartel.com","description":"A really cool store."}
1
+ {"id":859583,"subdomain":"dugway","website":"https://github.com/bigcartel/dugway","artists":[{"permalink":"artist-one","name":"Artist One","id":176141,"url":"/artist/artist-one"},{"permalink":"artist-two","name":"Artist Two","id":176144,"url":"/artist/artist-two"},{"permalink":"threezer","name":"Threezer","id":176151,"url":"/artist/threezer"}],"products_count":3,"currency":{"sign":"$","name":"U.S. Dollar","id":1,"code":"USD","locale":"en-US"},"country":{"name":"United States","id":43,"code":"US"},"categories":[{"permalink":"cds","name":"CDs","id":4615184,"url":"/category/cds"},{"permalink":"hats","name":"Hats","id":4615187,"url":"/category/hats"},{"permalink":"prints","name":"Prints","id":4615190,"url":"/category/prints"},{"permalink":"tees","name":"Tees","id":4615193,"url":"/category/tees"}],"name":"Dugway","pages":[{"permalink":"about-us","name":"About Us"}],"url":"http://dugway.bigcartel.com","description":"A really cool store."}
@@ -13,6 +13,18 @@
13
13
  "description": "Adds a repeating background image"
14
14
  }
15
15
  ],
16
+ "image_sets": [
17
+ {
18
+ "variable": "slideshow_images",
19
+ "label": "Slideshow",
20
+ "description": "This is a slideshow"
21
+ },
22
+ {
23
+ "variable": "lookbook_images",
24
+ "label": "Lookbook",
25
+ "description": "This is a lookbook"
26
+ }
27
+ ],
16
28
  "fonts": [
17
29
  {
18
30
  "variable": "header_font",
@@ -1,14 +1,49 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Dugway::Drops::ThemeDrop do
4
- let(:customization) {{
5
- :logo => { :url => 'http://mysite.com/logo.png', :width => 100, :height => 50 },
6
- :background_image => { :url => 'http://mysite.com/bg.png', :width => 10, :height => 20 }
7
- }}
4
+ let(:customization) {
5
+ {
6
+ :logo => { :url => 'http://mysite.com/logo.png', :width => 100, :height => 50 },
7
+ :background_image => { :url => 'http://mysite.com/bg.png', :width => 10, :height => 20 },
8
+ :slideshow_images => [
9
+ { :url => 'http://mysite.com/slideshow_one.png', :width => 450, :height => 175 },
10
+ { :url => 'http://mysite.com/slideshow_two.png', :width => 450, :height => 175 },
11
+ { :url => 'http://mysite.com/slideshow_three.png', :width => 450, :height => 175 }
12
+ ],
13
+ :lookbook_images => [
14
+ { :url => 'http://mysite.com/lookbook_one.png', :width => 450, :height => 400 },
15
+ { :url => 'http://mysite.com/lookbook_two.png', :width => 450, :height => 400 },
16
+ { :url => 'http://mysite.com/lookbook_three.png', :width => 450, :height => 400 }
17
+ ]
18
+ }
19
+ }
8
20
 
9
- let(:theme) { Dugway::Drops::ThemeDrop.new(Dugway.theme.customization.update(customization.stringify_keys)).tap { |drop|
10
- drop.context = Liquid::Context.new({}, {}, { :settings => Dugway.theme.settings })
11
- }}
21
+ let(:context) {
22
+ Liquid::Context.new({}, {}, { :settings => Dugway.theme.settings })
23
+ }
24
+
25
+ let(:theme) {
26
+ Dugway::Drops::ThemeDrop.new(Dugway.theme.customization.update(customization.stringify_keys)).tap { |drop|
27
+ drop.context = context
28
+ }
29
+ }
30
+
31
+ let(:images) {
32
+ Dugway::Drops::ThemeImagesDrop.new(theme.source).tap { |drop|
33
+ drop.context = context
34
+ }
35
+ }
36
+
37
+ let(:image_sets) {
38
+ Dugway::Drops::ThemeImageSetsDrop.new(theme.source).tap { |drop|
39
+ drop.context = context
40
+ }
41
+ }
42
+
43
+ before do
44
+ theme.stub!(:images).and_return(images)
45
+ theme.stub!(:image_sets).and_return(image_sets)
46
+ end
12
47
 
13
48
  describe "#logo" do
14
49
  it "should return the theme's logo" do
@@ -65,4 +100,25 @@ describe Dugway::Drops::ThemeDrop do
65
100
  theme.fixed_sidebar.should be(true)
66
101
  end
67
102
  end
103
+
104
+ describe "#images" do
105
+ it 'should be chained with an image variable name and return that image' do
106
+ logo = theme.images.logo
107
+ logo.should be_an_instance_of(Dugway::Drops::ImageDrop)
108
+ logo.url.should == 'http://mysite.com/logo.png'
109
+ logo.width.should == 100
110
+ logo.height.should == 50
111
+ end
112
+ end
113
+
114
+ describe "#image_sets" do
115
+ it 'should be chained with an image_set variable name and return an array of those images' do
116
+ slideshow_images = theme.image_sets.slideshow_images
117
+ slideshow_images.should be_a(Array)
118
+ slideshow_images.should_not be_empty
119
+ slideshow_images.each do |slideshow_image|
120
+ slideshow_image.should be_an_instance_of(Dugway::Drops::ImageDrop)
121
+ end
122
+ end
123
+ end
68
124
  end
@@ -0,0 +1,34 @@
1
+ require 'spec_helper'
2
+
3
+ describe Dugway::Drops::ThemeImageSetsDrop do
4
+ let(:customization) {
5
+ {
6
+ :slideshow_images => [
7
+ { :url => 'http://mysite.com/slideshow_one.png', :width => 450, :height => 175 },
8
+ { :url => 'http://mysite.com/slideshow_two.png', :width => 450, :height => 175 },
9
+ { :url => 'http://mysite.com/slideshow_three.png', :width => 450, :height => 175 }
10
+ ]
11
+ }
12
+ }
13
+
14
+ let(:theme_image_sets) {
15
+ Dugway::Drops::ThemeImageSetsDrop.new(Dugway.theme.customization.update(customization.stringify_keys)).tap { |drop|
16
+ drop.context = Liquid::Context.new({}, {}, { :settings => Dugway.theme.settings })
17
+ }
18
+ }
19
+
20
+ describe "when images for a given variable exists" do
21
+ it "should return all images in an array" do
22
+ images = theme_image_sets.slideshow_images
23
+ images.should_not be_empty
24
+ images.size.should == 3
25
+ end
26
+ end
27
+
28
+ describe "when images for a given variable do not exist" do
29
+ it "should return an empty array" do
30
+ theme_image_sets.faker.should == []
31
+ end
32
+ end
33
+ end
34
+
@@ -0,0 +1,31 @@
1
+ require 'spec_helper'
2
+
3
+ describe Dugway::Drops::ThemeImagesDrop do
4
+ let(:customization) {
5
+ {
6
+ :logo => { :url => 'http://mysite.com/logo.png', :width => 100, :height => 50 },
7
+ :background_image => { :url => 'http://mysite.com/bg.png', :width => 10, :height => 20 }
8
+ }
9
+ }
10
+
11
+ let(:theme_images) {
12
+ Dugway::Drops::ThemeImagesDrop.new(Dugway.theme.customization.update(customization.stringify_keys)).tap { |drop|
13
+ drop.context = Liquid::Context.new({}, {}, { :settings => Dugway.theme.settings })
14
+ }
15
+ }
16
+
17
+ describe "when an image for a given variable exists" do
18
+ it "should return the liquified image" do
19
+ logo = theme_images.logo
20
+ logo.should_not be_nil
21
+ logo.should be_an_instance_of(Dugway::Drops::ImageDrop)
22
+ end
23
+ end
24
+
25
+ describe "when an image for a given variable does not exist" do
26
+ it "should return nil" do
27
+ theme_images.faker.should be_nil
28
+ end
29
+ end
30
+ end
31
+
@@ -180,15 +180,13 @@ describe Dugway::Store do
180
180
 
181
181
  describe "#currency" do
182
182
  it "returns the store's currency" do
183
- store.currency.should == { 'sign' => '$', 'name' => 'U.S. Dollar', 'id' => 1, 'code' => 'USD' }
183
+ store.currency.should == { 'sign' => '$', 'name' => 'U.S. Dollar', 'id' => 1, 'code' => 'USD', 'locale' => 'en-US' }
184
184
  end
185
185
  end
186
186
 
187
187
  describe "#locale" do
188
188
  it "returns the store's locale based on their currency" do
189
189
  store.locale.should == 'en-US'
190
- store.stub(:currency) {{ 'code' => 'JPY' }}
191
- store.locale.should == 'ja'
192
190
  end
193
191
  end
194
192
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dugway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Big Cartel
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-11-26 00:00:00.000000000 Z
12
+ date: 2014-02-27 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rack
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: rack-mount
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: activesupport
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: liquid
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ~>
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ~>
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: coffee-script
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ~>
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ~>
95
108
  - !ruby/object:Gem::Version
@@ -97,6 +110,7 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: sass
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ~>
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ~>
109
124
  - !ruby/object:Gem::Version
@@ -111,6 +126,7 @@ dependencies:
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: sprockets
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
131
  - - ~>
116
132
  - !ruby/object:Gem::Version
@@ -118,6 +134,7 @@ dependencies:
118
134
  type: :runtime
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
139
  - - ~>
123
140
  - !ruby/object:Gem::Version
@@ -125,6 +142,7 @@ dependencies:
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: sprockets-sass
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
147
  - - ~>
130
148
  - !ruby/object:Gem::Version
@@ -132,6 +150,7 @@ dependencies:
132
150
  type: :runtime
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
155
  - - ~>
137
156
  - !ruby/object:Gem::Version
@@ -139,6 +158,7 @@ dependencies:
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: compass
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
163
  - - ~>
144
164
  - !ruby/object:Gem::Version
@@ -146,6 +166,7 @@ dependencies:
146
166
  type: :runtime
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
171
  - - ~>
151
172
  - !ruby/object:Gem::Version
@@ -153,6 +174,7 @@ dependencies:
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: httparty
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
179
  - - ~>
158
180
  - !ruby/object:Gem::Version
@@ -160,6 +182,7 @@ dependencies:
160
182
  type: :runtime
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
187
  - - ~>
165
188
  - !ruby/object:Gem::Version
@@ -167,6 +190,7 @@ dependencies:
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: better_errors
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
195
  - - ~>
172
196
  - !ruby/object:Gem::Version
@@ -174,6 +198,7 @@ dependencies:
174
198
  type: :runtime
175
199
  prerelease: false
176
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
177
202
  requirements:
178
203
  - - ~>
179
204
  - !ruby/object:Gem::Version
@@ -181,6 +206,7 @@ dependencies:
181
206
  - !ruby/object:Gem::Dependency
182
207
  name: will_paginate
183
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
184
210
  requirements:
185
211
  - - ~>
186
212
  - !ruby/object:Gem::Version
@@ -188,6 +214,7 @@ dependencies:
188
214
  type: :runtime
189
215
  prerelease: false
190
216
  version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
191
218
  requirements:
192
219
  - - ~>
193
220
  - !ruby/object:Gem::Version
@@ -195,6 +222,7 @@ dependencies:
195
222
  - !ruby/object:Gem::Dependency
196
223
  name: i18n
197
224
  requirement: !ruby/object:Gem::Requirement
225
+ none: false
198
226
  requirements:
199
227
  - - '='
200
228
  - !ruby/object:Gem::Version
@@ -202,6 +230,7 @@ dependencies:
202
230
  type: :runtime
203
231
  prerelease: false
204
232
  version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
205
234
  requirements:
206
235
  - - '='
207
236
  - !ruby/object:Gem::Version
@@ -209,6 +238,7 @@ dependencies:
209
238
  - !ruby/object:Gem::Dependency
210
239
  name: htmlentities
211
240
  requirement: !ruby/object:Gem::Requirement
241
+ none: false
212
242
  requirements:
213
243
  - - ~>
214
244
  - !ruby/object:Gem::Version
@@ -216,6 +246,7 @@ dependencies:
216
246
  type: :runtime
217
247
  prerelease: false
218
248
  version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
219
250
  requirements:
220
251
  - - ~>
221
252
  - !ruby/object:Gem::Version
@@ -223,6 +254,7 @@ dependencies:
223
254
  - !ruby/object:Gem::Dependency
224
255
  name: thor
225
256
  requirement: !ruby/object:Gem::Requirement
257
+ none: false
226
258
  requirements:
227
259
  - - ~>
228
260
  - !ruby/object:Gem::Version
@@ -230,6 +262,7 @@ dependencies:
230
262
  type: :runtime
231
263
  prerelease: false
232
264
  version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
233
266
  requirements:
234
267
  - - ~>
235
268
  - !ruby/object:Gem::Version
@@ -237,6 +270,7 @@ dependencies:
237
270
  - !ruby/object:Gem::Dependency
238
271
  name: rubyzip
239
272
  requirement: !ruby/object:Gem::Requirement
273
+ none: false
240
274
  requirements:
241
275
  - - ~>
242
276
  - !ruby/object:Gem::Version
@@ -244,6 +278,7 @@ dependencies:
244
278
  type: :runtime
245
279
  prerelease: false
246
280
  version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
247
282
  requirements:
248
283
  - - ~>
249
284
  - !ruby/object:Gem::Version
@@ -251,6 +286,7 @@ dependencies:
251
286
  - !ruby/object:Gem::Dependency
252
287
  name: uglifier
253
288
  requirement: !ruby/object:Gem::Requirement
289
+ none: false
254
290
  requirements:
255
291
  - - ~>
256
292
  - !ruby/object:Gem::Version
@@ -258,6 +294,7 @@ dependencies:
258
294
  type: :runtime
259
295
  prerelease: false
260
296
  version_requirements: !ruby/object:Gem::Requirement
297
+ none: false
261
298
  requirements:
262
299
  - - ~>
263
300
  - !ruby/object:Gem::Version
@@ -265,6 +302,7 @@ dependencies:
265
302
  - !ruby/object:Gem::Dependency
266
303
  name: thin
267
304
  requirement: !ruby/object:Gem::Requirement
305
+ none: false
268
306
  requirements:
269
307
  - - ~>
270
308
  - !ruby/object:Gem::Version
@@ -272,6 +310,7 @@ dependencies:
272
310
  type: :runtime
273
311
  prerelease: false
274
312
  version_requirements: !ruby/object:Gem::Requirement
313
+ none: false
275
314
  requirements:
276
315
  - - ~>
277
316
  - !ruby/object:Gem::Version
@@ -279,34 +318,39 @@ dependencies:
279
318
  - !ruby/object:Gem::Dependency
280
319
  name: bigcartel-theme-fonts
281
320
  requirement: !ruby/object:Gem::Requirement
321
+ none: false
282
322
  requirements:
283
- - - '>='
323
+ - - ! '>='
284
324
  - !ruby/object:Gem::Version
285
325
  version: '0'
286
326
  type: :runtime
287
327
  prerelease: false
288
328
  version_requirements: !ruby/object:Gem::Requirement
329
+ none: false
289
330
  requirements:
290
- - - '>='
331
+ - - ! '>='
291
332
  - !ruby/object:Gem::Version
292
333
  version: '0'
293
334
  - !ruby/object:Gem::Dependency
294
335
  name: bigcartel-currency-locales
295
336
  requirement: !ruby/object:Gem::Requirement
337
+ none: false
296
338
  requirements:
297
- - - '>='
339
+ - - ! '>='
298
340
  - !ruby/object:Gem::Version
299
341
  version: '0'
300
342
  type: :runtime
301
343
  prerelease: false
302
344
  version_requirements: !ruby/object:Gem::Requirement
345
+ none: false
303
346
  requirements:
304
- - - '>='
347
+ - - ! '>='
305
348
  - !ruby/object:Gem::Version
306
349
  version: '0'
307
350
  - !ruby/object:Gem::Dependency
308
351
  name: rake
309
352
  requirement: !ruby/object:Gem::Requirement
353
+ none: false
310
354
  requirements:
311
355
  - - ~>
312
356
  - !ruby/object:Gem::Version
@@ -314,6 +358,7 @@ dependencies:
314
358
  type: :development
315
359
  prerelease: false
316
360
  version_requirements: !ruby/object:Gem::Requirement
361
+ none: false
317
362
  requirements:
318
363
  - - ~>
319
364
  - !ruby/object:Gem::Version
@@ -321,6 +366,7 @@ dependencies:
321
366
  - !ruby/object:Gem::Dependency
322
367
  name: rspec
323
368
  requirement: !ruby/object:Gem::Requirement
369
+ none: false
324
370
  requirements:
325
371
  - - ~>
326
372
  - !ruby/object:Gem::Version
@@ -328,6 +374,7 @@ dependencies:
328
374
  type: :development
329
375
  prerelease: false
330
376
  version_requirements: !ruby/object:Gem::Requirement
377
+ none: false
331
378
  requirements:
332
379
  - - ~>
333
380
  - !ruby/object:Gem::Version
@@ -335,6 +382,7 @@ dependencies:
335
382
  - !ruby/object:Gem::Dependency
336
383
  name: webmock
337
384
  requirement: !ruby/object:Gem::Requirement
385
+ none: false
338
386
  requirements:
339
387
  - - ~>
340
388
  - !ruby/object:Gem::Version
@@ -342,6 +390,7 @@ dependencies:
342
390
  type: :development
343
391
  prerelease: false
344
392
  version_requirements: !ruby/object:Gem::Requirement
393
+ none: false
345
394
  requirements:
346
395
  - - ~>
347
396
  - !ruby/object:Gem::Version
@@ -349,6 +398,7 @@ dependencies:
349
398
  - !ruby/object:Gem::Dependency
350
399
  name: json_expressions
351
400
  requirement: !ruby/object:Gem::Requirement
401
+ none: false
352
402
  requirements:
353
403
  - - ~>
354
404
  - !ruby/object:Gem::Version
@@ -356,6 +406,7 @@ dependencies:
356
406
  type: :development
357
407
  prerelease: false
358
408
  version_requirements: !ruby/object:Gem::Requirement
409
+ none: false
359
410
  requirements:
360
411
  - - ~>
361
412
  - !ruby/object:Gem::Version
@@ -363,6 +414,7 @@ dependencies:
363
414
  - !ruby/object:Gem::Dependency
364
415
  name: capybara
365
416
  requirement: !ruby/object:Gem::Requirement
417
+ none: false
366
418
  requirements:
367
419
  - - ~>
368
420
  - !ruby/object:Gem::Version
@@ -370,6 +422,7 @@ dependencies:
370
422
  type: :development
371
423
  prerelease: false
372
424
  version_requirements: !ruby/object:Gem::Requirement
425
+ none: false
373
426
  requirements:
374
427
  - - ~>
375
428
  - !ruby/object:Gem::Version
@@ -377,6 +430,7 @@ dependencies:
377
430
  - !ruby/object:Gem::Dependency
378
431
  name: simplecov
379
432
  requirement: !ruby/object:Gem::Requirement
433
+ none: false
380
434
  requirements:
381
435
  - - ~>
382
436
  - !ruby/object:Gem::Version
@@ -384,6 +438,7 @@ dependencies:
384
438
  type: :development
385
439
  prerelease: false
386
440
  version_requirements: !ruby/object:Gem::Requirement
441
+ none: false
387
442
  requirements:
388
443
  - - ~>
389
444
  - !ruby/object:Gem::Version
@@ -401,7 +456,6 @@ files:
401
456
  - .rspec
402
457
  - .travis.yml
403
458
  - Gemfile
404
- - Gemfile.lock
405
459
  - LICENSE.txt
406
460
  - README.md
407
461
  - Rakefile
@@ -459,6 +513,8 @@ files:
459
513
  - lib/dugway/liquid/drops/products_drop.rb
460
514
  - lib/dugway/liquid/drops/shipping_option_drop.rb
461
515
  - lib/dugway/liquid/drops/theme_drop.rb
516
+ - lib/dugway/liquid/drops/theme_image_sets_drop.rb
517
+ - lib/dugway/liquid/drops/theme_images_drop.rb
462
518
  - lib/dugway/liquid/filters/comparison_filters.rb
463
519
  - lib/dugway/liquid/filters/core_filters.rb
464
520
  - lib/dugway/liquid/filters/default_pagination.rb
@@ -520,6 +576,8 @@ files:
520
576
  - spec/units/dugway/liquid/drops/products_drop_spec.rb
521
577
  - spec/units/dugway/liquid/drops/shipping_option_drop_spec.rb
522
578
  - spec/units/dugway/liquid/drops/theme_drop_spec.rb
579
+ - spec/units/dugway/liquid/drops/theme_image_sets_drop_spec.rb
580
+ - spec/units/dugway/liquid/drops/theme_images_drop_spec.rb
523
581
  - spec/units/dugway/liquid/filters/core_filters_spec.rb
524
582
  - spec/units/dugway/liquid/filters/url_filters_spec.rb
525
583
  - spec/units/dugway/liquid/misc/for_loop_spec.rb
@@ -530,26 +588,27 @@ files:
530
588
  homepage: https://github.com/bigcartel/dugway
531
589
  licenses:
532
590
  - MIT
533
- metadata: {}
534
591
  post_install_message:
535
592
  rdoc_options: []
536
593
  require_paths:
537
594
  - lib
538
595
  required_ruby_version: !ruby/object:Gem::Requirement
596
+ none: false
539
597
  requirements:
540
- - - '>='
598
+ - - ! '>='
541
599
  - !ruby/object:Gem::Version
542
600
  version: '0'
543
601
  required_rubygems_version: !ruby/object:Gem::Requirement
602
+ none: false
544
603
  requirements:
545
- - - '>='
604
+ - - ! '>='
546
605
  - !ruby/object:Gem::Version
547
606
  version: '0'
548
607
  requirements: []
549
608
  rubyforge_project:
550
- rubygems_version: 2.0.14
609
+ rubygems_version: 1.8.23
551
610
  signing_key:
552
- specification_version: 4
611
+ specification_version: 3
553
612
  summary: Easily build and test Big Cartel themes.
554
613
  test_files:
555
614
  - spec/features/contact_form_spec.rb
@@ -597,6 +656,8 @@ test_files:
597
656
  - spec/units/dugway/liquid/drops/products_drop_spec.rb
598
657
  - spec/units/dugway/liquid/drops/shipping_option_drop_spec.rb
599
658
  - spec/units/dugway/liquid/drops/theme_drop_spec.rb
659
+ - spec/units/dugway/liquid/drops/theme_image_sets_drop_spec.rb
660
+ - spec/units/dugway/liquid/drops/theme_images_drop_spec.rb
600
661
  - spec/units/dugway/liquid/filters/core_filters_spec.rb
601
662
  - spec/units/dugway/liquid/filters/url_filters_spec.rb
602
663
  - spec/units/dugway/liquid/misc/for_loop_spec.rb
@@ -604,3 +665,4 @@ test_files:
604
665
  - spec/units/dugway/store_spec.rb
605
666
  - spec/units/dugway/template_spec.rb
606
667
  - spec/units/dugway/theme_spec.rb
668
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: b4beddfe6f0b4f582a5775d255faec1d5f3e3ae2
4
- data.tar.gz: 153860fd8ac0017b83892a3d1ee39b56226d8401
5
- SHA512:
6
- metadata.gz: c21e89110314fa3933bc384ebe490d03765120d445aa9071c20270ffe449bdd44d0babb9ac552f120c96e4a6877813012cce64f197a68f6d047001099b096484
7
- data.tar.gz: 78dd666d4c1e79a4565ab8f1338eec74f99c6461ea7a8960b66e025e3212c67deb3dfa22b185f08fc8aa64a6e25465d55dead264f09ddf13ef0390cd8adefb7d