shopify_app 2.0.0 → 2.1.0

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.
Files changed (34) hide show
  1. data/CHANGELOG +1 -0
  2. data/lib/generators/shopify_app/shopify_app_generator.rb +4 -0
  3. data/lib/generators/shopify_app/templates/app/assets/images/favicon.png +0 -0
  4. data/lib/generators/shopify_app/templates/app/assets/images/grid-18px.png +0 -0
  5. data/lib/generators/shopify_app/templates/app/assets/images/shopify-114.png +0 -0
  6. data/lib/generators/shopify_app/templates/app/assets/images/shopify-57.png +0 -0
  7. data/lib/generators/shopify_app/templates/app/assets/images/shopify-72.png +0 -0
  8. data/lib/generators/shopify_app/templates/app/assets/images/shopify.png +0 -0
  9. data/lib/generators/shopify_app/templates/app/assets/javascripts/application.js +15 -0
  10. data/lib/generators/shopify_app/templates/app/assets/stylesheets/application.css +10 -0
  11. data/lib/generators/shopify_app/templates/app/assets/stylesheets/imports.css.less +5 -0
  12. data/lib/generators/shopify_app/templates/app/assets/stylesheets/shopify_app.scss +150 -0
  13. data/lib/generators/shopify_app/templates/app/assets/stylesheets/shopify_app_buttons.css.less +77 -0
  14. data/lib/generators/shopify_app/templates/app/controllers/home_controller.rb +4 -4
  15. data/lib/generators/shopify_app/templates/app/helpers/tabs_helper.rb +8 -7
  16. data/lib/generators/shopify_app/templates/app/views/home/design.html.erb +3542 -164
  17. data/lib/generators/shopify_app/templates/app/views/home/index.html.erb +161 -96
  18. data/lib/generators/shopify_app/templates/app/views/layouts/application.html.erb +62 -25
  19. data/lib/generators/shopify_app/templates/app/views/login/index.html.erb +18 -12
  20. data/lib/generators/shopify_app/templates/public/404.html +43 -0
  21. data/lib/generators/shopify_app/templates/public/422.html +43 -0
  22. data/lib/generators/shopify_app/templates/public/500.html +43 -0
  23. data/lib/generators/shopify_app/templates/public/favicon.png +0 -0
  24. data/lib/generators/shopify_app/templates/public/shopify-114.png +0 -0
  25. data/lib/generators/shopify_app/templates/public/shopify-57.png +0 -0
  26. data/lib/generators/shopify_app/templates/public/shopify-72.png +0 -0
  27. data/lib/shopify_app/version.rb +1 -1
  28. data/shopify_app.gemspec +1 -1
  29. metadata +21 -32
  30. data/lib/generators/shopify_app/templates/app/assets/stylesheets/shopify_app.css +0 -285
  31. data/lib/generators/shopify_app/templates/public/images/box-bg2.gif +0 -0
  32. data/lib/generators/shopify_app/templates/public/images/info-bg.gif +0 -0
  33. data/lib/generators/shopify_app/templates/public/images/info.gif +0 -0
  34. data/lib/generators/shopify_app/templates/public/images/logo.png +0 -0
@@ -0,0 +1,43 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>500 Error: Something went horribly wrong</title>
5
+ <link rel="stylesheet" type="text/css" href="../assets/bootstrap.css" />
6
+ <link rel="stylesheet" type="text/css" href="../assets/responsive-bootstrap.css" />
7
+ <link rel="stylesheet" type="text/css" href="../assets/shopify_app.scss" />
8
+
9
+ <style>
10
+ .container { text-align:center;}
11
+ .navbar .brand { float:none;}
12
+ </style>
13
+ </head>
14
+
15
+ <body>
16
+ <div class="navbar navbar-fixed-top">
17
+ <div class="navbar-inner">
18
+ <div class="container">
19
+ <a href="/" class="brand">Shopify Demo App</a>
20
+ </div>
21
+ </div>
22
+ </div>
23
+
24
+ <div class="container">
25
+ <div class="content">
26
+
27
+ <div class="page-header">
28
+ <h1>AH! 500 Error!</h1>
29
+ </div>
30
+
31
+ <h3><i class="icon-warning-sign" style="margin-top:6px; opacity:.5;"></i> We're sorry, but something went wrong.</h3>
32
+ <p class="muted">The developer of this app has been notified.</p>
33
+
34
+ <p><button type="button" value ="back" onClick="window.history.back();" class='btn btn-primary'><i class="icon-chevron-left" style="opacity:.25"></i> Back to the app</button></p>
35
+
36
+ </div>
37
+
38
+ <footer>
39
+ <p>A Shopify app by (company name here)</p>
40
+ </footer>
41
+ </div> <!-- /container -->
42
+ </body>
43
+ </html>
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = ShopifyApp::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.author = "Shopify"
10
- s.email = ["edward@shopify.com", "jonathan@shopify.com", "willem@shopify.com"]
10
+ s.email = ["edward@shopify.com", "willem@shopify.com"]
11
11
  s.homepage = "http://www.shopify.com/developers"
12
12
  s.summary = %q{This gem is used to get quickly started with the Shopify API}
13
13
  s.description = %q{Creates a basic login controller for authenticating with your Shop and also a product controller which lets your edit your products easily.}
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_app
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
4
  prerelease:
6
- segments:
7
- - 2
8
- - 0
9
- - 0
10
- version: 2.0.0
5
+ version: 2.1.0
11
6
  platform: ruby
12
7
  authors:
13
8
  - Shopify
@@ -15,8 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-11-07 00:00:00 -05:00
19
- default_executable:
13
+ date: 2012-02-22 00:00:00 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: rails
@@ -26,10 +20,6 @@ dependencies:
26
20
  requirements:
27
21
  - - ~>
28
22
  - !ruby/object:Gem::Version
29
- hash: 5
30
- segments:
31
- - 3
32
- - 1
33
23
  version: "3.1"
34
24
  type: :runtime
35
25
  version_requirements: *id001
@@ -41,9 +31,6 @@ dependencies:
41
31
  requirements:
42
32
  - - ">="
43
33
  - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
34
  version: "0"
48
35
  type: :runtime
49
36
  version_requirements: *id002
@@ -55,16 +42,12 @@ dependencies:
55
42
  requirements:
56
43
  - - ">="
57
44
  - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 0
61
45
  version: "0"
62
46
  type: :development
63
47
  version_requirements: *id003
64
48
  description: Creates a basic login controller for authenticating with your Shop and also a product controller which lets your edit your products easily.
65
49
  email:
66
50
  - edward@shopify.com
67
- - jonathan@shopify.com
68
51
  - willem@shopify.com
69
52
  executables: []
70
53
 
@@ -82,7 +65,17 @@ files:
82
65
  - lib/generators/shopify_app/README
83
66
  - lib/generators/shopify_app/USAGE
84
67
  - lib/generators/shopify_app/shopify_app_generator.rb
85
- - lib/generators/shopify_app/templates/app/assets/stylesheets/shopify_app.css
68
+ - lib/generators/shopify_app/templates/app/assets/images/favicon.png
69
+ - lib/generators/shopify_app/templates/app/assets/images/grid-18px.png
70
+ - lib/generators/shopify_app/templates/app/assets/images/shopify-114.png
71
+ - lib/generators/shopify_app/templates/app/assets/images/shopify-57.png
72
+ - lib/generators/shopify_app/templates/app/assets/images/shopify-72.png
73
+ - lib/generators/shopify_app/templates/app/assets/images/shopify.png
74
+ - lib/generators/shopify_app/templates/app/assets/javascripts/application.js
75
+ - lib/generators/shopify_app/templates/app/assets/stylesheets/application.css
76
+ - lib/generators/shopify_app/templates/app/assets/stylesheets/imports.css.less
77
+ - lib/generators/shopify_app/templates/app/assets/stylesheets/shopify_app.scss
78
+ - lib/generators/shopify_app/templates/app/assets/stylesheets/shopify_app_buttons.css.less
86
79
  - lib/generators/shopify_app/templates/app/controllers/home_controller.rb
87
80
  - lib/generators/shopify_app/templates/app/controllers/login_controller.rb
88
81
  - lib/generators/shopify_app/templates/app/helpers/home_helper.rb
@@ -93,17 +86,19 @@ files:
93
86
  - lib/generators/shopify_app/templates/app/views/home/welcome.html.erb
94
87
  - lib/generators/shopify_app/templates/app/views/layouts/application.html.erb
95
88
  - lib/generators/shopify_app/templates/app/views/login/index.html.erb
96
- - lib/generators/shopify_app/templates/public/images/box-bg2.gif
97
- - lib/generators/shopify_app/templates/public/images/info-bg.gif
98
- - lib/generators/shopify_app/templates/public/images/info.gif
99
- - lib/generators/shopify_app/templates/public/images/logo.png
89
+ - lib/generators/shopify_app/templates/public/404.html
90
+ - lib/generators/shopify_app/templates/public/422.html
91
+ - lib/generators/shopify_app/templates/public/500.html
92
+ - lib/generators/shopify_app/templates/public/favicon.png
93
+ - lib/generators/shopify_app/templates/public/shopify-114.png
94
+ - lib/generators/shopify_app/templates/public/shopify-57.png
95
+ - lib/generators/shopify_app/templates/public/shopify-72.png
100
96
  - lib/shopify_app.rb
101
97
  - lib/shopify_app/configuration.rb
102
98
  - lib/shopify_app/login_protection.rb
103
99
  - lib/shopify_app/railtie.rb
104
100
  - lib/shopify_app/version.rb
105
101
  - shopify_app.gemspec
106
- has_rdoc: true
107
102
  homepage: http://www.shopify.com/developers
108
103
  licenses: []
109
104
 
@@ -117,23 +112,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
112
  requirements:
118
113
  - - ">="
119
114
  - !ruby/object:Gem::Version
120
- hash: 3
121
- segments:
122
- - 0
123
115
  version: "0"
124
116
  required_rubygems_version: !ruby/object:Gem::Requirement
125
117
  none: false
126
118
  requirements:
127
119
  - - ">="
128
120
  - !ruby/object:Gem::Version
129
- hash: 3
130
- segments:
131
- - 0
132
121
  version: "0"
133
122
  requirements: []
134
123
 
135
124
  rubyforge_project: shopify-api
136
- rubygems_version: 1.6.2
125
+ rubygems_version: 1.8.16
137
126
  signing_key:
138
127
  specification_version: 3
139
128
  summary: This gem is used to get quickly started with the Shopify API
@@ -1,285 +0,0 @@
1
- body {
2
- margin: 0;
3
- font: 0.8em/1.3em "Lucida Grande", Arial, Arial, sans-serif;
4
- background: #ededed;
5
- }
6
-
7
- h1 { font-weight: normal; font-size: 24px; }
8
- h1 a { color: #FFFAD5; text-decoration: none; }
9
- h2 { font-weight: normal; margin-top: 24px; }
10
- h3 { margin-top: 24px; }
11
-
12
- #header {
13
- background: #2d3337 url('../images/logo.png') 20px 50% no-repeat;
14
- padding: 25px 25px 25px 70px;
15
- border-top: 5px solid #1f2326;
16
- border-bottom: 1px solid #252a2e;
17
- }
18
-
19
- #header h1 { color: #fffad5; }
20
-
21
- #login-link {
22
- float: right;
23
- position: relative;
24
- bottom: 43px;
25
- right: 15px;
26
- color: #ededed;
27
- }
28
-
29
- #login-link a { color: #ebff7c; }
30
- #login-link a:hover { text-decoration: underline; }
31
- #login-link a.shop_name { color: inherit; text-decoration: none; }
32
- #login-link a.shop_name:hover { text-decoration: underline; }
33
-
34
- #container {
35
- width: 90%;
36
- min-width: 800px;
37
- margin: 40px auto;
38
- background: #fff;
39
- border-right: 1px solid #e5e5e5;
40
- border-bottom: 1px solid #e5e5e5;
41
- }
42
-
43
- #container h1 { margin: 18px 0 27px 0; }
44
-
45
- #main { padding: 18px; }
46
-
47
- #tabs {
48
- margin: 0;
49
- padding: 0;
50
- height: 20px;
51
- position: absolute;
52
- top: 123px;
53
- }
54
-
55
- #tabs li {
56
- margin: 0;
57
- padding: 0;
58
- display: inline;
59
- list-style-type: none;
60
- }
61
-
62
- #tabs a:link, #tabs a:visited {
63
- float: left;
64
- padding: 3px 8px ;
65
- margin: 0 10px 4px 0px;
66
- text-decoration: none;
67
- color: #888;
68
- background: #ddd;
69
- }
70
-
71
- #tabs a:link#current, #tabs a:visited#current, #tabs a:hover { color: #000 !important; }
72
- #tabs a:link#current, #tabs a:visited#current { font-weight: bold; background: #fff; }
73
-
74
- a { color: #22658b; }
75
- a:hover { color: #359cd7; }
76
-
77
- dl { margin: 10px 15px; }
78
- dt { margin: 10px 0; }
79
- dd { margin: 5px 0 15px 0; }
80
- dl input { margin: 0 !important; }
81
-
82
- code { font-size: 140%; }
83
-
84
- /* UTILITY CLASSES */
85
-
86
- .clearfix:after {
87
- content: ".";
88
- display: block;
89
- height: 0;
90
- clear: both;
91
- visibility: hidden;
92
- }
93
-
94
- .clearfix {display: inline-table;}
95
-
96
- /* Hides from IE-mac \*/
97
- * html .clearfix {height: 1%;}
98
- .clearfix {display: block;}
99
- /* End hide from IE-mac */
100
-
101
- .ta-left { text-align: left; }
102
- .ta-right { text-align: right; }
103
- .ta-center { text-align: center; }
104
- .pl { padding-left: 10px !important; }
105
- .note { color: #777; font-size: 85%; }
106
- .highlight { background: #ffc; }
107
-
108
- /*
109
- * LOGIN / WELCOME
110
- */
111
-
112
- #left, #right {
113
- width: 40%;
114
- float: left;
115
- margin: 0 2% 30px 2%;
116
- }
117
-
118
- #left { min-width: 390px; }
119
-
120
- #logout { float: right; margin: 10px; }
121
- #logout a { color: #330; }
122
-
123
- /*
124
- * DASHBOARD
125
- */
126
-
127
- .order, .product { width: 55%; }
128
- .product { margin: 10px; }
129
-
130
- .product img {
131
- margin: 0 10px 0 0;
132
- float: left;
133
- }
134
-
135
- .product h4 {
136
- margin: 0 0 12px 0;
137
- font-size: 14px;
138
- }
139
-
140
- .price {
141
- color: #666;
142
- font-size: 15px;
143
- font-family: Times, "Times New Roman";
144
- font-style: italic;
145
- }
146
-
147
- #orders ul {
148
- list-style-type: none;
149
- padding: 0 0 0 7px;
150
- }
151
-
152
- #orders li { padding: 3px; }
153
-
154
- #sidebar {
155
- float: right;
156
- width: 280px;
157
- background: #f5fbfe;
158
- border-left: 1px solid #D7E4EA;
159
- color: #003366;
160
- padding: 0 20px 20px 20px;
161
- margin-bottom: 18px;
162
- }
163
-
164
- #sidebar ul {
165
- padding-left: 20px;
166
- list-style-type: square;
167
- }
168
-
169
- #sidebar li { margin: 8px 0; }
170
-
171
- /* STYLE OVERVIEW */
172
-
173
- #style-table { margin: 20px 0; }
174
- #style-table td * { margin: 0; }
175
- #style-table td { padding: 10px; border-bottom: 1px dotted #e5e5e5; }
176
- #style-table td:first-child {
177
- background:#Fefefe url('../images/box-bg2.gif') repeat-x scroll left bottom;
178
- }
179
- /* Flash */
180
-
181
- #flasherrors, #flashnotices {
182
- background: #faf7ea;
183
- border-bottom: 1px solid #e8e6d9;
184
- padding: 10px;
185
- font-weight: bold;
186
- text-align:center;
187
- }
188
-
189
- #flasherrors { color: #6e290b; }
190
- #flashnotices { color: #549d19; }
191
-
192
- /* CLASSES */
193
-
194
- .description {
195
- margin: 0px 0px 0px 4px;
196
- font-weight: normal;
197
- }
198
-
199
- .box {
200
- padding: 0;
201
- background:#FAFAFA url('../images/box-bg2.gif') repeat-x scroll left top;
202
- border:1px solid #CCCCCC;
203
- }
204
-
205
- .wrapper {
206
- border:1px solid #FFFFFF;
207
- padding: 10px;
208
- }
209
-
210
- .info {
211
- padding: 0;
212
- margin: 8px auto;
213
- background: #009ad6 url('../images/info-bg.gif') top left repeat-x;
214
- border: 1px solid #61abda;
215
- font: 1.2em/1.7em "Comic Sans MS";
216
- color: #fff;
217
- height: 85px;
218
- }
219
-
220
- .info code {
221
- font-size: 14px;
222
- background: none;
223
- }
224
-
225
- .info a { color: #fff; }
226
- .info a:hover { color: #dcfaff; }
227
-
228
- .grey {
229
- background: #eee;
230
- border: 1px solid #ccc;
231
- }
232
-
233
- .green, .orange, .blue { padding: 10px; }
234
- h1.green, h2.green, h3.green, h1.orange, h2.orange, h3.orange, h1.blue, h2.blue, h3.blue { padding: 0; }
235
-
236
- .green {
237
- background: #61b41e;
238
- border: 1px solid #60b31d;
239
- color: #ddecd0;
240
- }
241
-
242
- h1.green, h2.green, h3.green {
243
- color: #6ece21;
244
- background: none;
245
- border: none;
246
- }
247
-
248
- .orange {
249
- background: #ce6e21;
250
- border: 1px solid #bc641e;
251
- color: #fce0ca;
252
- padding: 10px;
253
- }
254
-
255
- h1.orange, h2.orange, h3.orange {
256
- color: #ce6e21;
257
- background: none;
258
- border: none;
259
- }
260
-
261
- .blue {
262
- background: #218bce;
263
- border: 1px solid #1e80be;
264
- color: #d9ecf8;
265
- padding: 10px;
266
- }
267
-
268
- h1.blue, h2.blue, h3.blue {
269
- color: #218bce;
270
- background: none;
271
- border: none;
272
- }
273
-
274
- .light {
275
- background: #faf7ea;
276
- border: 1px solid #e8e6d9;
277
- padding: 18px;
278
- }
279
-
280
- .dark {
281
- background: #333;
282
- border: 1px solid #000;
283
- color: #fff;
284
- padding: 10px;
285
- }