dugway 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +21 -0
- data/.gitignore +2 -0
- data/CHANGELOG.md +8 -0
- data/README.md +20 -18
- data/dugway.gemspec +7 -5
- data/lib/dugway/cli/templates/source/layout.html +1 -1
- data/lib/dugway/cli/templates/source/stylesheets/layout.css.sass +17 -10
- data/lib/dugway/liquifier.rb +11 -1
- data/lib/dugway/version.rb +1 -1
- data/spec/features/page_rendering_spec.rb +0 -1
- data/spec/fixtures/theme/layout.html +12 -12
- data/spec/fixtures/theme/stylesheets/two.css.sass +1 -4
- data/spec/units/dugway/liquid/drops/theme_drop_spec.rb +2 -2
- data/spec/units/dugway/theme_spec.rb +5 -5
- metadata +35 -19
- data/.travis.yml +0 -13
- data/spec/fixtures/theme/images/bc_badge.png +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6ca983943ee8afe7ba688da15820a8523976fd12a11d2e21bea7ae4ce894e60
|
|
4
|
+
data.tar.gz: d38a64fa74907af55c4e65e3b66e4549be39ceaf242bd9c64d5908ff7e0f0a62
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 31f99a38d7c4334838c1c5d294dab362cbdbe224668c32dbcb205492441bd25165e3ad1c816947feaa244f9a2d1e4346b2df89c454d0de07c59933ed6217c5ad
|
|
7
|
+
data.tar.gz: 3ba085450d4fb399e6c10c15a4ea433188b8f228e67013d334f0b7216fd9d8a7a0d3fb54dfdf1b43223a50563421db5e7ae8f3875817de7955db5b77695c67dc
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Ruby
|
|
2
|
+
|
|
3
|
+
on: [push,pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
test:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
|
|
9
|
+
strategy:
|
|
10
|
+
matrix:
|
|
11
|
+
ruby-version: [2.7.5, 2.6.7, 2.5.9, 2.4.10, 2.3.8]
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v2
|
|
15
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
16
|
+
uses: ruby/setup-ruby@v1
|
|
17
|
+
with:
|
|
18
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
19
|
+
bundler-cache: true
|
|
20
|
+
- name: Run the default task
|
|
21
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# Dugway
|
|
1
|
+
# Dugway
|
|
2
2
|
|
|
3
3
|
**_The easy way to build Big Cartel themes._**
|
|
4
4
|
|
|
5
5
|
Dugway allows you to run your Big Cartel theme on your computer, test it in any
|
|
6
|
-
browser, write code in your favorite editor, and use
|
|
7
|
-
CoffeeScript, Sass, and LESS.
|
|
6
|
+
browser, write code in your favorite editor, and use tools like
|
|
7
|
+
CoffeeScript, Sass, and LESS.
|
|
8
8
|
|
|
9
|
-
[
|
|
9
|
+
[View Dugway on RubyGems.org](https://rubygems.org/gems/dugway)
|
|
10
10
|
|
|
11
11
|
## Disclaimer
|
|
12
12
|
|
|
@@ -20,10 +20,23 @@ individually in the Big Cartel admin._
|
|
|
20
20
|
|
|
21
21
|
## Install
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
### Install Ruby
|
|
24
|
+
|
|
25
|
+
Dugway is Ruby gem so you'll need to have Ruby installed. Ruby is
|
|
24
26
|
usually pre-installed on Mac OS X and Linux, and Windows users can install it
|
|
25
|
-
using [RubyInstaller](http://rubyinstaller.org).
|
|
26
|
-
|
|
27
|
+
using [RubyInstaller](http://rubyinstaller.org).
|
|
28
|
+
|
|
29
|
+
Supported Ruby versions:
|
|
30
|
+
|
|
31
|
+
- 2.3
|
|
32
|
+
- 2.4
|
|
33
|
+
- 2.5
|
|
34
|
+
- 2.6
|
|
35
|
+
- 2.7
|
|
36
|
+
|
|
37
|
+
### Install Dugway
|
|
38
|
+
|
|
39
|
+
From there, simply install the **dugway** gem from the terminal.
|
|
27
40
|
|
|
28
41
|
```
|
|
29
42
|
gem install dugway
|
|
@@ -118,11 +131,6 @@ even use [Compass](http://compass-style.org/) right out of the box to help
|
|
|
118
131
|
author your stylesheets by utilizing its mixins for CSS3, typography, and its
|
|
119
132
|
utilities.
|
|
120
133
|
|
|
121
|
-
Prefer [LESS](http://lesscss.org)? No problem, you'll just need to create a
|
|
122
|
-
[Gemfile like this one](https://gist.github.com/mattwigham/5569898) in the
|
|
123
|
-
root directory of your theme, run `bundle install`, and append the
|
|
124
|
-
**.less** extension to your CSS files.
|
|
125
|
-
|
|
126
134
|
And finally, for you JavaScript folks, we've baked
|
|
127
135
|
[CoffeeScript](http://coffeescript.org) support right in. Just append the
|
|
128
136
|
**.coffee** extension after **.js** to your separate JS files.
|
|
@@ -185,12 +193,6 @@ dugway server
|
|
|
185
193
|
By default this will serve your theme at http://127.0.0.1:9292/. You can then stop
|
|
186
194
|
the server by hitting CTRL+C.
|
|
187
195
|
|
|
188
|
-
### Pow
|
|
189
|
-
|
|
190
|
-
Tired of all the manual starting and stopping? Good news, Dugway is built on
|
|
191
|
-
top of Rack, which means you can use [Pow](http://pow.cx) on Mac. This also
|
|
192
|
-
allows you to access your theme at a pretty URL like _mytheme.dev_.
|
|
193
|
-
|
|
194
196
|
## Testing your theme
|
|
195
197
|
|
|
196
198
|
Part of building a great theme is making sure it works well in a variety of
|
data/dugway.gemspec
CHANGED
|
@@ -16,13 +16,15 @@ Gem::Specification.new do |s|
|
|
|
16
16
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
17
17
|
s.platform = Gem::Platform::RUBY
|
|
18
18
|
s.require_path = 'lib'
|
|
19
|
+
s.required_ruby_version = '>= 2.3', '< 3'
|
|
19
20
|
s.executables << 'dugway'
|
|
20
21
|
|
|
21
|
-
s.add_dependency('bundler', '
|
|
22
|
+
s.add_dependency('bundler', '>= 1.0.0')
|
|
22
23
|
s.add_dependency('rack', '~> 1.4.1')
|
|
23
24
|
s.add_dependency('rack-mount', '~> 0.8.3')
|
|
24
25
|
s.add_dependency('activesupport', '~> 5.2')
|
|
25
26
|
s.add_dependency('liquid', '~> 3.0.6')
|
|
27
|
+
s.add_dependency('bigdecimal', '~> 1.4.4')
|
|
26
28
|
s.add_dependency('coffee-script', '~> 2.4.1')
|
|
27
29
|
s.add_dependency('sass', '~> 3.4.25')
|
|
28
30
|
s.add_dependency('sprockets', '~> 2.0')
|
|
@@ -37,13 +39,13 @@ Gem::Specification.new do |s|
|
|
|
37
39
|
s.add_dependency('rubyzip', '~> 0.9.9')
|
|
38
40
|
s.add_dependency('uglifier', '~> 4.1')
|
|
39
41
|
s.add_dependency('thin', '~> 1.8.0')
|
|
40
|
-
s.add_dependency('bigcartel-theme-fonts')
|
|
41
|
-
s.add_dependency('bigcartel-currency-locales')
|
|
42
|
+
s.add_dependency('bigcartel-theme-fonts', '>= 1.0.0')
|
|
43
|
+
s.add_dependency('bigcartel-currency-locales', '>= 1.0.0')
|
|
42
44
|
|
|
43
45
|
s.add_development_dependency('rake', '~> 10.0.3')
|
|
44
|
-
s.add_development_dependency('rspec', '~> 2.
|
|
46
|
+
s.add_development_dependency('rspec', '~> 2.14.1')
|
|
45
47
|
s.add_development_dependency('webmock', '~> 1.9.3')
|
|
46
48
|
s.add_development_dependency('json_expressions', '~> 0.9.0')
|
|
47
|
-
s.add_development_dependency('capybara', '~> 2.0
|
|
49
|
+
s.add_development_dependency('capybara', '~> 2.18.0')
|
|
48
50
|
s.add_development_dependency('simplecov', '~> 0.16.1')
|
|
49
51
|
end
|
|
@@ -72,16 +72,6 @@ aside
|
|
|
72
72
|
&:hover
|
|
73
73
|
color: #333
|
|
74
74
|
|
|
75
|
-
cite a
|
|
76
|
-
background: url(#{"{{ 'badge.png' | theme_image_url }}"}) no-repeat
|
|
77
|
-
border: none
|
|
78
|
-
display: block
|
|
79
|
-
height: 23px
|
|
80
|
-
overflow: hidden
|
|
81
|
-
text-indent: 100%
|
|
82
|
-
width: 79px
|
|
83
|
-
white-space: nowrap
|
|
84
|
-
|
|
85
75
|
section.content
|
|
86
76
|
display: table-cell
|
|
87
77
|
padding-left: $marginSize
|
|
@@ -111,3 +101,20 @@ form
|
|
|
111
101
|
border-bottom: 1px soldi #A65A5A
|
|
112
102
|
color: #fff
|
|
113
103
|
padding: 3px 10px
|
|
104
|
+
|
|
105
|
+
.bigcartel-credit
|
|
106
|
+
font-size: 14px
|
|
107
|
+
line-height: 1em
|
|
108
|
+
display: inline-flex
|
|
109
|
+
justify-content: center
|
|
110
|
+
gap: 10px
|
|
111
|
+
outline-offset: 4px
|
|
112
|
+
|
|
113
|
+
&__text
|
|
114
|
+
font-weight: bold
|
|
115
|
+
position: relative
|
|
116
|
+
|
|
117
|
+
&__lockup
|
|
118
|
+
display: block
|
|
119
|
+
fill: currentColor
|
|
120
|
+
width: 85px
|
data/lib/dugway/liquifier.rb
CHANGED
|
@@ -73,7 +73,8 @@ module Dugway
|
|
|
73
73
|
'products' => Drops::ProductsDrop.new(store.products.map { |p| Drops::ProductDrop.new(p) }),
|
|
74
74
|
'contact' => Drops::ContactDrop.new,
|
|
75
75
|
'head_content' => head_content,
|
|
76
|
-
'bigcartel_credit' => bigcartel_credit
|
|
76
|
+
'bigcartel_credit' => bigcartel_credit,
|
|
77
|
+
'powered_by_big_cartel' => powered_by_big_cartel,
|
|
77
78
|
}
|
|
78
79
|
end
|
|
79
80
|
|
|
@@ -100,5 +101,14 @@ module Dugway
|
|
|
100
101
|
def bigcartel_credit
|
|
101
102
|
'<a href="http://bigcartel.com/" title="Start your own store at Big Cartel now">Online Store by Big Cartel</a>'
|
|
102
103
|
end
|
|
104
|
+
|
|
105
|
+
def powered_by_big_cartel
|
|
106
|
+
%(<a class="bigcartel-credit" href="https://www.bigcartel.com/?utm_source=bigcartel&utm_medium=storefront&utm_campaign=123" title="Powered by Big Cartel">
|
|
107
|
+
<span class="bigcartel-credit__text" aria-hidden="true">Powered by</span>
|
|
108
|
+
<svg aria-hidden="true" class="bigcartel-credit__lockup" xmlns="http://www.w3.org/2000/svg" viewBox="1.99 2.05 124.96 24.95">
|
|
109
|
+
<path d="M46.18 4A1.91 1.91 0 1 1 50 4a1.91 1.91 0 1 1-3.81 0Zm78.76 14.35a.81.81 0 0 1-.25-.69V2.23h-4.52v2.68h1.58V18c0 2.14 1.11 3.28 3.2 3.28a6.56 6.56 0 0 0 2-.42v-2.78c-1.28.51-1.8.38-2.01.23Zm-75.27.05h1.43V21h-5.79v-2.64h1.43v-8h-1.61V7.7h4.54Zm-11.09-11a5.81 5.81 0 0 0-4.36 1.87V2.23H29.7v2.68h1.62v12.71a.81.81 0 0 1-.25.69c-.43.33-1.5 0-2.06-.23v2.76a6.59 6.59 0 0 0 2.05.42 2.92 2.92 0 0 0 2.74-1.32 6.86 6.86 0 0 0 4.27 1.34 6.66 6.66 0 0 0 6.86-7c-.01-4.06-2.68-6.97-6.35-6.97ZM38 18.57c-2.15 0-3.72-1.75-3.72-4.17s1.55-4.32 3.78-4.32a3.75 3.75 0 0 1 3.75 4.1c.02 2.55-1.58 4.39-3.81 4.39Zm68.86-.49v2.76a7.52 7.52 0 0 1-2 .42c-2.09 0-3.2-1.14-3.2-3.28V5.36l2.93-1.92V7.7h3.81l-1.91 2.68h-1.9v7.24a.77.77 0 0 0 .26.69c.53.4 2.03-.23 2.03-.23ZM58 7.31c-3.88 0-6.69 3-6.69 7.11s2.66 6.87 6.33 6.87A6.14 6.14 0 0 0 62 19.45v1.42c0 2.72-2.4 3.45-3.83 3.45a5.22 5.22 0 0 1-3.12-1.06l-2.36 1.83A7.78 7.78 0 0 0 58 27c3.21 0 6.95-1.63 6.95-6.21v-6.38A6.84 6.84 0 0 0 58 7.31Zm.12 11.29c-2.19 0-3.72-1.74-3.72-4.23s1.6-4.21 3.8-4.21a3.94 3.94 0 0 1 3.8 4.21 4 4 0 0 1-3.85 4.23ZM120.6 15c0-5.05-3.45-7.69-6.85-7.69a6.76 6.76 0 0 0-6.58 7.06 7.13 7.13 0 0 0 12.69 4.39l-2.22-1.71a4.24 4.24 0 0 1-3.44 1.69 3.86 3.86 0 0 1-3.94-3.11h10.28a3.09 3.09 0 0 0 .06-.63Zm-10.35-2.08a3.65 3.65 0 0 1 3.56-3.11 3.77 3.77 0 0 1 3.77 3.11ZM94.92 10V7.7h-4v2.68h1.62v8h-2.35a.83.83 0 0 1-.61-.19.91.91 0 0 1-.19-.64v-5.77c0-1.31-.65-4.47-5.52-4.47a7.85 7.85 0 0 0-4.14 1.18l1.17 2.23a5 5 0 0 1 3-.78 3.26 3.26 0 0 1 1.76.49 2.08 2.08 0 0 1 .81 1.78v1.25a6.58 6.58 0 0 0-3.21-.92c-2.58 0-3.91 1.62-5.19 3.2s-2.51 3-5 2.92c-2.27-.11-3.63-1.86-3.63-4.43 0-2.39 1.45-4 3.54-4a3.75 3.75 0 0 1 3.7 3.18l2.45-1.9a6.3 6.3 0 0 0-6.3-4.18 6.72 6.72 0 0 0-6.48 7c0 3.43 2.1 7.16 6.62 7.16a7.45 7.45 0 0 0 5.87-2.73 4.38 4.38 0 0 0 4.08 2.57 5.91 5.91 0 0 0 3.93-1.66 2.87 2.87 0 0 0 2.8 1.33h7.42v-2.64h-1.61v-3.21c0-3.3 1.09-4.77 3.56-4.77a3.68 3.68 0 0 1 1.45.31V8a4.81 4.81 0 0 0-1.74-.25A4.21 4.21 0 0 0 94.92 10Zm-8.47 7.48a4.93 4.93 0 0 1-3.16 1.41 1.9 1.9 0 0 1-2.05-1.91 2 2 0 0 1 2.18-2 5 5 0 0 1 3 1.18ZM11 14.52v-.89a1.78 1.78 0 0 1 .83-1.51l7.35-4.7A1.79 1.79 0 0 0 20 5.91V2.05L11 7.8 2 2.05V14.2a8.69 8.69 0 0 0 3.88 7.58L11 25.05l5.12-3.27A8.69 8.69 0 0 0 20 14.2V8.77Z" class="a"></path>
|
|
110
|
+
</svg>
|
|
111
|
+
</a>)
|
|
112
|
+
end
|
|
103
113
|
end
|
|
104
114
|
end
|
data/lib/dugway/version.rb
CHANGED
|
@@ -69,7 +69,6 @@ feature 'Page rendering' do
|
|
|
69
69
|
visit '/theme.css'
|
|
70
70
|
expect(page).to have_content('height: 100%;') # one.css
|
|
71
71
|
expect(page).to have_content('color: red;') # two.css.sass
|
|
72
|
-
expect(page).to have_content('url(/images/bc_badge.png)') # two.css.sass
|
|
73
72
|
end
|
|
74
73
|
|
|
75
74
|
scenario 'theme.js' do
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
|
-
<head>
|
|
3
|
-
<title>{{ store.name }} — {{ page.name }}</title>
|
|
2
|
+
<head>
|
|
3
|
+
<title>{{ store.name }} — {{ page.name }}</title>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="description" content="{{ page.meta_description }}">
|
|
6
6
|
<meta name="keywords" content="{{ page.meta_keywords }}">
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
<script src="{{ theme | theme_js_url }}" type="text/javascript"></script>
|
|
11
11
|
{{ head_content }}
|
|
12
12
|
</head>
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
<body id="{{ page.permalink }}" class="{{ page.category }}">
|
|
15
15
|
<header>
|
|
16
16
|
<a href="/" title="{{ store.name | escape }}">{{ store.name }}</a>
|
|
17
17
|
</header>
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
<aside>
|
|
20
20
|
<section>
|
|
21
21
|
<a href="/cart">Cart ({{ cart.total | money_with_sign }})</a>
|
|
22
22
|
</section>
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
{% if theme.show_search %}
|
|
25
25
|
<section>
|
|
26
26
|
<form action="/products" method="get">
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
</form>
|
|
29
29
|
</section>
|
|
30
30
|
{% endif %}
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
<nav>
|
|
33
|
-
<h3>Products</h3>
|
|
33
|
+
<h3>Products</h3>
|
|
34
34
|
<ul>
|
|
35
35
|
<li><a href="/products">All</a></li>
|
|
36
36
|
{% for category in categories.active %}
|
|
37
37
|
<li>{{ category | link_to }}</li>
|
|
38
38
|
{% endfor %}
|
|
39
39
|
</ul>
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
{% if artists.active != blank %}
|
|
42
42
|
<h3>Artists</h3>
|
|
43
43
|
<ul>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
{% endfor %}
|
|
48
48
|
</ul>
|
|
49
49
|
{% endif %}
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
<h3>Info</h3>
|
|
52
52
|
<ul>
|
|
53
53
|
{% for page in pages.all %}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
{% endfor %}
|
|
69
69
|
</ul>
|
|
70
70
|
{% endif %}
|
|
71
|
-
|
|
71
|
+
|
|
72
72
|
<section>
|
|
73
73
|
{% if page.category == 'custom' %}
|
|
74
74
|
<h1>{{ page.name }}</h1>
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
{{ page_content }}
|
|
78
78
|
{% endif %}
|
|
79
79
|
</section>
|
|
80
|
-
|
|
80
|
+
|
|
81
81
|
<footer>
|
|
82
|
-
<
|
|
82
|
+
<div>{{ powered_by_big_cartel }}</div>
|
|
83
83
|
</footer>
|
|
84
84
|
</body>
|
|
85
85
|
</html>
|
|
@@ -41,8 +41,8 @@ describe Dugway::Drops::ThemeDrop do
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
before do
|
|
44
|
-
theme.stub
|
|
45
|
-
theme.stub
|
|
44
|
+
theme.stub(:images).and_return(images)
|
|
45
|
+
theme.stub(:image_sets).and_return(image_sets)
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
describe "#logo" do
|
|
@@ -118,7 +118,7 @@ describe Dugway::Theme do
|
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
it "should sprocketize and liquify theme.css" do
|
|
121
|
-
theme.file_content('theme.css').gsub(/\s+/, '').should == %{html,body{height:100%;}a{background:#0f0;color:red;}
|
|
121
|
+
theme.file_content('theme.css').gsub(/\s+/, '').should == %{html,body{height:100%;}a{background:#0f0;color:red;}/**/}
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
124
|
|
|
@@ -134,19 +134,19 @@ describe Dugway::Theme do
|
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
it "should sprocketize and not liquify theme.css" do
|
|
137
|
-
theme.build_file('theme.css').gsub(/\s+/, '').should == %{html,body{height:100%;}a{background:#0f0;color:{{theme.link_color}};}
|
|
137
|
+
theme.build_file('theme.css').gsub(/\s+/, '').should == %{html,body{height:100%;}a{background:#0f0;color:{{theme.link_color}};}/**/}
|
|
138
138
|
end
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
describe "#files" do
|
|
142
142
|
it "should return an array of all files" do
|
|
143
|
-
theme.files.should =~ ["cart.html", "contact.html", "home.html", "layout.html", "maintenance.html", "product.html", "products.html", "screenshot.jpg", "settings.json", "theme.css", "theme.js", "images/
|
|
143
|
+
theme.files.should =~ ["cart.html", "contact.html", "home.html", "layout.html", "maintenance.html", "product.html", "products.html", "screenshot.jpg", "settings.json", "theme.css", "theme.js", "images/logo_bc.png", "images/slideshow/1.gif", "images/slideshow/2.gif", "images/slideshow/3.gif", "images/slideshow/4.gif", "images/slideshow/5.gif", "images/small.svg", "fonts/icons.ttf", "fonts/icons.woff"]
|
|
144
144
|
end
|
|
145
145
|
end
|
|
146
146
|
|
|
147
147
|
describe "#image_files" do
|
|
148
148
|
it "should return an array of all image files" do
|
|
149
|
-
theme.image_files.should =~ ["images/
|
|
149
|
+
theme.image_files.should =~ ["images/logo_bc.png", "images/slideshow/1.gif", "images/slideshow/2.gif", "images/slideshow/3.gif", "images/slideshow/4.gif", "images/slideshow/5.gif", "images/small.svg"]
|
|
150
150
|
end
|
|
151
151
|
end
|
|
152
152
|
|
|
@@ -164,7 +164,7 @@ describe Dugway::Theme do
|
|
|
164
164
|
|
|
165
165
|
describe "when missing a required file" do
|
|
166
166
|
before(:each) do
|
|
167
|
-
theme.stub(:read_source_file).with('cart.html') { theme.unstub
|
|
167
|
+
theme.stub(:read_source_file).with('cart.html') { theme.unstub(:read_source_file); nil }
|
|
168
168
|
end
|
|
169
169
|
|
|
170
170
|
it "should not be valid" do
|
metadata
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dugway
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Big Cartel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 1.0.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - "
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
26
|
+
version: 1.0.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rack
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -80,6 +80,20 @@ dependencies:
|
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: 3.0.6
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: bigdecimal
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: 1.4.4
|
|
90
|
+
type: :runtime
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: 1.4.4
|
|
83
97
|
- !ruby/object:Gem::Dependency
|
|
84
98
|
name: coffee-script
|
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -282,28 +296,28 @@ dependencies:
|
|
|
282
296
|
requirements:
|
|
283
297
|
- - ">="
|
|
284
298
|
- !ruby/object:Gem::Version
|
|
285
|
-
version:
|
|
299
|
+
version: 1.0.0
|
|
286
300
|
type: :runtime
|
|
287
301
|
prerelease: false
|
|
288
302
|
version_requirements: !ruby/object:Gem::Requirement
|
|
289
303
|
requirements:
|
|
290
304
|
- - ">="
|
|
291
305
|
- !ruby/object:Gem::Version
|
|
292
|
-
version:
|
|
306
|
+
version: 1.0.0
|
|
293
307
|
- !ruby/object:Gem::Dependency
|
|
294
308
|
name: bigcartel-currency-locales
|
|
295
309
|
requirement: !ruby/object:Gem::Requirement
|
|
296
310
|
requirements:
|
|
297
311
|
- - ">="
|
|
298
312
|
- !ruby/object:Gem::Version
|
|
299
|
-
version:
|
|
313
|
+
version: 1.0.0
|
|
300
314
|
type: :runtime
|
|
301
315
|
prerelease: false
|
|
302
316
|
version_requirements: !ruby/object:Gem::Requirement
|
|
303
317
|
requirements:
|
|
304
318
|
- - ">="
|
|
305
319
|
- !ruby/object:Gem::Version
|
|
306
|
-
version:
|
|
320
|
+
version: 1.0.0
|
|
307
321
|
- !ruby/object:Gem::Dependency
|
|
308
322
|
name: rake
|
|
309
323
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -324,14 +338,14 @@ dependencies:
|
|
|
324
338
|
requirements:
|
|
325
339
|
- - "~>"
|
|
326
340
|
- !ruby/object:Gem::Version
|
|
327
|
-
version: 2.
|
|
341
|
+
version: 2.14.1
|
|
328
342
|
type: :development
|
|
329
343
|
prerelease: false
|
|
330
344
|
version_requirements: !ruby/object:Gem::Requirement
|
|
331
345
|
requirements:
|
|
332
346
|
- - "~>"
|
|
333
347
|
- !ruby/object:Gem::Version
|
|
334
|
-
version: 2.
|
|
348
|
+
version: 2.14.1
|
|
335
349
|
- !ruby/object:Gem::Dependency
|
|
336
350
|
name: webmock
|
|
337
351
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -366,14 +380,14 @@ dependencies:
|
|
|
366
380
|
requirements:
|
|
367
381
|
- - "~>"
|
|
368
382
|
- !ruby/object:Gem::Version
|
|
369
|
-
version: 2.0
|
|
383
|
+
version: 2.18.0
|
|
370
384
|
type: :development
|
|
371
385
|
prerelease: false
|
|
372
386
|
version_requirements: !ruby/object:Gem::Requirement
|
|
373
387
|
requirements:
|
|
374
388
|
- - "~>"
|
|
375
389
|
- !ruby/object:Gem::Version
|
|
376
|
-
version: 2.0
|
|
390
|
+
version: 2.18.0
|
|
377
391
|
- !ruby/object:Gem::Dependency
|
|
378
392
|
name: simplecov
|
|
379
393
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -397,9 +411,10 @@ executables:
|
|
|
397
411
|
extensions: []
|
|
398
412
|
extra_rdoc_files: []
|
|
399
413
|
files:
|
|
414
|
+
- ".github/workflows/main.yml"
|
|
400
415
|
- ".gitignore"
|
|
401
416
|
- ".rspec"
|
|
402
|
-
-
|
|
417
|
+
- CHANGELOG.md
|
|
403
418
|
- Gemfile
|
|
404
419
|
- LICENSE.txt
|
|
405
420
|
- README.md
|
|
@@ -490,7 +505,6 @@ files:
|
|
|
490
505
|
- spec/fixtures/theme/fonts/icons.ttf
|
|
491
506
|
- spec/fixtures/theme/fonts/icons.woff
|
|
492
507
|
- spec/fixtures/theme/home.html
|
|
493
|
-
- spec/fixtures/theme/images/bc_badge.png
|
|
494
508
|
- spec/fixtures/theme/images/logo_bc.png
|
|
495
509
|
- spec/fixtures/theme/images/slideshow/1.gif
|
|
496
510
|
- spec/fixtures/theme/images/slideshow/2.gif
|
|
@@ -553,14 +567,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
553
567
|
requirements:
|
|
554
568
|
- - ">="
|
|
555
569
|
- !ruby/object:Gem::Version
|
|
556
|
-
version: '
|
|
570
|
+
version: '2.3'
|
|
571
|
+
- - "<"
|
|
572
|
+
- !ruby/object:Gem::Version
|
|
573
|
+
version: '3'
|
|
557
574
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
558
575
|
requirements:
|
|
559
576
|
- - ">="
|
|
560
577
|
- !ruby/object:Gem::Version
|
|
561
578
|
version: '0'
|
|
562
579
|
requirements: []
|
|
563
|
-
rubygems_version: 3.0.
|
|
580
|
+
rubygems_version: 3.0.8
|
|
564
581
|
signing_key:
|
|
565
582
|
specification_version: 4
|
|
566
583
|
summary: Easily build and test Big Cartel themes.
|
|
@@ -576,7 +593,6 @@ test_files:
|
|
|
576
593
|
- spec/fixtures/theme/fonts/icons.ttf
|
|
577
594
|
- spec/fixtures/theme/fonts/icons.woff
|
|
578
595
|
- spec/fixtures/theme/home.html
|
|
579
|
-
- spec/fixtures/theme/images/bc_badge.png
|
|
580
596
|
- spec/fixtures/theme/images/logo_bc.png
|
|
581
597
|
- spec/fixtures/theme/images/slideshow/1.gif
|
|
582
598
|
- spec/fixtures/theme/images/slideshow/2.gif
|
data/.travis.yml
DELETED
|
Binary file
|