shopify-sinatra-app 0.1.0 → 0.1.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: 3b9a33f60a7611ff594af3a9713c7b5ec7c29ded
4
- data.tar.gz: 00f5bec8cb70a33f25294b7784aaa255e5fdd19d
3
+ metadata.gz: 02699e17b15aba4df9ae0e61cd49f5dcdd18b7b4
4
+ data.tar.gz: bc3c3fc83b161eee3ce845390b4b42cfdd2156bc
5
5
  SHA512:
6
- metadata.gz: 0a1e93254976452413f3b5cdc8cdb439ad00aca7689ef5510380651bb92064655ee28432dc73586a9f210db633d7ee4be8c3a111cadfd1c9e236c8dbff220426
7
- data.tar.gz: 2cd4e59123200b2269f288fa73652f8dc6fb0c81f1a5bac808f747b83035be1e4b696818503e4f6a0d821ad85ca433f65c5c427bb20609ebef41776125715cfe
6
+ metadata.gz: 3a558d0e9ecaab44fb744b9a2f113f4ed3a73dc9c4eeb33618aca2a04b52e46f68b7f4590a38ecc11fd0a48c1830b25268799af942af96cd0f8ed20a0383ed8f
7
+ data.tar.gz: 9231c0eebef90683b58926a5e8529c4e32e7c510e182dc9ddc5ef17589f7998979d99d3eea5f61882238d5c2688b9071e403742312650889bb151ab4adb98053
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  *.gem
2
+ *.sqlite3
data/Gemfile CHANGED
@@ -23,6 +23,7 @@ end
23
23
  group :development do
24
24
  gem 'sqlite3'
25
25
  gem 'rack-test'
26
+ gem 'minitest'
26
27
  gem 'fakeweb'
27
28
  gem 'mocha', require: false
28
29
  gem 'byebug'
data/Gemfile.lock CHANGED
@@ -121,7 +121,7 @@ DEPENDENCIES
121
121
  byebug
122
122
  fakeweb
123
123
  foreman
124
- json
124
+ minitest
125
125
  mocha
126
126
  omniauth-shopify-oauth2
127
127
  pg
data/README.md CHANGED
@@ -53,6 +53,7 @@ This will create a new skeleton shopify-sinatra-app. The generator will create s
53
53
 
54
54
  `views/*` --> The other views used by the app. You'll probably make a lot of changes to home.erb and install.erb to customize the experience for your app
55
55
 
56
+ `test/*` --> Test files, fixtures and helpers for testing your app.
56
57
 
57
58
  ### Setting the app to use your Shopify API credentials
58
59
 
@@ -159,6 +160,19 @@ While running the app locally you'll be able to test the install and other route
159
160
 
160
161
  Ngrok will report what address your app is available at, leave Ngrok running and then create your webhook to point to the ngrok url plus your route e.g. `<ngrok url>/webhook_test.json`. Now trigger the webhook you are testing and it will get forwarded through ngrok to your local web application allowing you to use debuggers and repls to complete your code.
161
162
 
163
+ Testing
164
+ -------
165
+
166
+ Some basic tests are included in the generated app. To run them simply run:
167
+
168
+ ```
169
+ bundle exec rake test:prepare
170
+ bundle exec rake test
171
+ ```
172
+
173
+ `test:prepare` will initialize your testing database using the `seeds.rb` file. If you have added additional models you can add them here.
174
+
175
+ Checkout the contents of the `app_test.rb` file and the `test_helper.rb` and modify them as you add functionality to your app. You can also check the tests of other apps using this framework to see more about how to write tests for your own app.
162
176
 
163
177
  Deploying
164
178
  ---------
@@ -216,7 +230,15 @@ Note - if you are not using any background queue for processing webhooks then yo
216
230
 
217
231
  Make sure you set your shopify apps url to your Heroku app url (and make sure to use the `https` version or else the Embedded App SDK won't work) in the Shopify Partner area https://app.shopify.com/services/partners/api_clients.
218
232
 
233
+ Apps using this framework
234
+ -------------------------
235
+
236
+ * [shopify-fulfillment-integration](https://github.com/Shopify/shopify-fulfillment-integration)
237
+ * Add yours!
238
+
219
239
  Contributing
220
240
  ------------
221
241
 
222
242
  PRs welcome!
243
+
244
+ Note - this framework does have tests! They are the same tests that get generated for new apps by the generator. You can run them with `./test.sh`
@@ -26,6 +26,7 @@ else
26
26
  FileUtils.cp_r(generator_dir + "/lib", app_dir + "/lib")
27
27
  FileUtils.cp_r(generator_dir + "/public", app_dir + "/public")
28
28
  FileUtils.cp_r(generator_dir + "/views", app_dir + "/views")
29
+ FileUtils.cp_r(generator_dir + "/test", app_dir + "/test")
29
30
 
30
31
  FileUtils.cp(generator_dir + "/.gitignore", app_dir + "/.gitignore")
31
32
  FileUtils.cp(generator_dir + "/config.ru", app_dir + "/config.ru")
@@ -1 +1,2 @@
1
1
  .env
2
+ *.sqlite3
@@ -24,6 +24,7 @@ end
24
24
  group :development do
25
25
  gem 'sqlite3'
26
26
  gem 'rack-test'
27
+ gem 'minitest'
27
28
  gem 'fakeweb'
28
29
  gem 'mocha', require: false
29
30
  gem 'byebug'
@@ -0,0 +1,141 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ activemodel (4.1.2)
5
+ activesupport (= 4.1.2)
6
+ builder (~> 3.1)
7
+ activerecord (4.1.2)
8
+ activemodel (= 4.1.2)
9
+ activesupport (= 4.1.2)
10
+ arel (~> 5.0.0)
11
+ activeresource (4.0.0)
12
+ activemodel (~> 4.0)
13
+ activesupport (~> 4.0)
14
+ rails-observers (~> 0.1.1)
15
+ activesupport (4.1.2)
16
+ i18n (~> 0.6, >= 0.6.9)
17
+ json (~> 1.7, >= 1.7.7)
18
+ minitest (~> 5.1)
19
+ thread_safe (~> 0.1)
20
+ tzinfo (~> 1.1)
21
+ arel (5.0.1.20140414130214)
22
+ attr_encrypted (1.3.2)
23
+ encryptor (>= 1.3.0)
24
+ builder (3.2.2)
25
+ byebug (3.1.2)
26
+ columnize (~> 0.8)
27
+ debugger-linecache (~> 1.2)
28
+ columnize (0.8.9)
29
+ debugger-linecache (1.2.0)
30
+ dotenv (0.7.0)
31
+ encryptor (1.3.0)
32
+ fakeweb (1.3.0)
33
+ faraday (0.9.0)
34
+ multipart-post (>= 1.2, < 3)
35
+ foreman (0.64.0)
36
+ dotenv (~> 0.7.0)
37
+ thor (>= 0.13.6)
38
+ hashie (2.1.2)
39
+ i18n (0.6.11)
40
+ json (1.8.1)
41
+ jwt (1.0.0)
42
+ metaclass (0.0.4)
43
+ minitest (5.4.0)
44
+ mocha (1.1.0)
45
+ metaclass (~> 0.0.1)
46
+ multi_json (1.10.1)
47
+ multi_xml (0.5.5)
48
+ multipart-post (2.0.0)
49
+ oauth2 (0.9.4)
50
+ faraday (>= 0.8, < 0.10)
51
+ jwt (~> 1.0)
52
+ multi_json (~> 1.3)
53
+ multi_xml (~> 0.5)
54
+ rack (~> 1.2)
55
+ omniauth (1.2.1)
56
+ hashie (>= 1.2, < 3)
57
+ rack (~> 1.0)
58
+ omniauth-oauth2 (1.1.2)
59
+ faraday (>= 0.8, < 0.10)
60
+ multi_json (~> 1.3)
61
+ oauth2 (~> 0.9.3)
62
+ omniauth (~> 1.2)
63
+ omniauth-shopify-oauth2 (1.1.7)
64
+ omniauth-oauth2 (~> 1.1.1)
65
+ pg (0.17.1)
66
+ rack (1.5.2)
67
+ rack-flash3 (1.0.5)
68
+ rack
69
+ rack-protection (1.5.3)
70
+ rack
71
+ rack-test (0.6.2)
72
+ rack (>= 1.0)
73
+ rails-observers (0.1.2)
74
+ activemodel (~> 4.0)
75
+ rake (10.3.2)
76
+ redis (3.1.0)
77
+ redis-namespace (1.5.0)
78
+ redis (~> 3.0, >= 3.0.4)
79
+ resque (1.22.0)
80
+ multi_json (~> 1.0)
81
+ redis-namespace (~> 1.0)
82
+ sinatra (>= 0.9.2)
83
+ vegas (~> 0.1.2)
84
+ shopify-sinatra-app (0.1.0)
85
+ activesupport
86
+ attr_encrypted
87
+ omniauth-shopify-oauth2
88
+ rack-flash3
89
+ resque (~> 1.22.0)
90
+ shopify_api
91
+ sinatra
92
+ sinatra-activerecord
93
+ sinatra-redis
94
+ sinatra-twitter-bootstrap
95
+ shopify_api (3.2.1)
96
+ activeresource (>= 3.0.0)
97
+ thor (>= 0.14.4)
98
+ sinatra (1.4.5)
99
+ rack (~> 1.4)
100
+ rack-protection (~> 1.4)
101
+ tilt (~> 1.3, >= 1.3.4)
102
+ sinatra-activerecord (2.0.2)
103
+ activerecord (>= 3.2)
104
+ sinatra (~> 1.0)
105
+ sinatra-redis (0.3.0)
106
+ redis
107
+ sinatra (>= 0.9.4)
108
+ sinatra-twitter-bootstrap (2.3.3)
109
+ sqlite3 (1.3.9)
110
+ thor (0.19.1)
111
+ thread_safe (0.3.4)
112
+ tilt (1.4.1)
113
+ tzinfo (1.2.1)
114
+ thread_safe (~> 0.1)
115
+ vegas (0.1.11)
116
+ rack (>= 1.0.0)
117
+
118
+ PLATFORMS
119
+ ruby
120
+
121
+ DEPENDENCIES
122
+ activesupport
123
+ attr_encrypted
124
+ byebug
125
+ fakeweb
126
+ foreman
127
+ minitest
128
+ mocha
129
+ omniauth-shopify-oauth2
130
+ pg
131
+ rack-flash3
132
+ rack-test
133
+ rake
134
+ resque (~> 1.22.0)
135
+ shopify-sinatra-app
136
+ shopify_api
137
+ sinatra
138
+ sinatra-activerecord
139
+ sinatra-redis
140
+ sinatra-twitter-bootstrap
141
+ sqlite3
@@ -1 +1,2 @@
1
1
  web: bundle exec rackup config.ru -p $PORT
2
+ resque: env TERM_CHILD=1 RESQUE_TERM_TIMEOUT=7 QUEUE=default bundle exec rake resque:work
@@ -20,3 +20,19 @@ task :deploy2heroku do
20
20
  print line
21
21
  end
22
22
  end
23
+
24
+ namespace :test do
25
+ task :prepare do
26
+ `RACK_ENV=test rake db:create`
27
+ `RACK_ENV=test rake db:migrate`
28
+ `RACK_ENV=test SECRET=secret rake db:seed`
29
+ end
30
+ end
31
+
32
+ task :test do
33
+ Rake::TestTask.new do |t|
34
+ t.pattern = 'test/*_test.rb'
35
+ t.libs << 'test'
36
+ t.verbose = true
37
+ end
38
+ end
@@ -0,0 +1,23 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20140414042317) do
15
+
16
+ create_table "shops", force: true do |t|
17
+ t.string "name"
18
+ t.string "token_encrypted"
19
+ end
20
+
21
+ add_index "shops", ["name"], name: "index_shops_on_name"
22
+
23
+ end
@@ -0,0 +1 @@
1
+ shop = Shop.create(name: 'testshop.myshopify.com', token: 'token')
Binary file
@@ -0,0 +1,69 @@
1
+ require "test_helper"
2
+ require "./lib/app"
3
+
4
+ class AppTest < Minitest::Test
5
+
6
+ def app
7
+ SinatraApp
8
+ end
9
+
10
+ def setup
11
+ @shop_name = "testshop.myshopify.com"
12
+ end
13
+
14
+ def test_root_with_session
15
+ set_session
16
+ fake "https://testshop.myshopify.com/admin/products.json?limit=10", :body => "{}"
17
+ get '/'
18
+ assert last_response.ok?
19
+ end
20
+
21
+ def test_root_with_session_activates_api
22
+ set_session
23
+ SinatraApp.any_instance.expects(:activate_shopify_api).with(@shop_name, 'token')
24
+ ShopifyAPI::Product.expects(:find).returns("{}")
25
+ get '/'
26
+ assert last_response.ok?
27
+ end
28
+
29
+ def test_root_without_session_redirects_to_install
30
+ get '/'
31
+ assert_equal 302, last_response.status
32
+ assert_equal 'http://example.org/install', last_response.location
33
+ end
34
+
35
+ def test_root_with_shop_redirects_to_auth
36
+ get '/?shop=othertestshop.myshopify.com'
37
+ assert_match "/auth/shopify?shop=othertestshop.myshopify.com", last_response.body
38
+ end
39
+
40
+ def test_root_with_session_and_new_shop_redirects_to_auth
41
+ set_session
42
+ get '/?shop=othertestshop.myshopify.com'
43
+ assert_match "/auth/shopify?shop=othertestshop.myshopify.com", last_response.body
44
+ end
45
+
46
+ def test_root_rescues_UnauthorizedAccess_clears_session_and_redirects
47
+ set_session
48
+ SinatraApp.any_instance.expects(:activate_shopify_api).with(@shop_name, 'token')
49
+ SinatraApp.any_instance.expects(:clear_session)
50
+ ShopifyAPI::Product.expects(:find).raises(ActiveResource::UnauthorizedAccess.new('UnauthorizedAccess'))
51
+ get '/'
52
+ assert_equal 302, last_response.status
53
+ assert_equal 'http://example.org/', last_response.location
54
+ end
55
+
56
+ def test_uninstall_webhook_endpoint
57
+ SinatraApp.any_instance.expects(:verify_shopify_webhook).returns(true)
58
+ Shop.any_instance.expects(:destroy)
59
+ post '/uninstall', "{}", 'HTTP_X_SHOPIFY_SHOP_DOMAIN' => @shop_name
60
+ assert last_response.ok?
61
+ end
62
+
63
+ private
64
+
65
+ def set_session(shop = "testshop.myshopify.com", token = 'token')
66
+ SinatraApp.any_instance.stubs(:session).returns({shopify: {shop: shop, token: token}})
67
+ end
68
+
69
+ end
@@ -0,0 +1,29 @@
1
+ ENV['RACK_ENV'] = 'test'
2
+ ENV['SECRET'] = 'secret'
3
+
4
+ require 'minitest/autorun'
5
+ require 'rack/test'
6
+ require 'mocha/setup'
7
+ require 'fakeweb'
8
+
9
+ FakeWeb.allow_net_connect = false
10
+
11
+ module Helpers
12
+ include Rack::Test::Methods
13
+
14
+ def load_fixture(name)
15
+ File.read("./test/fixtures/#{name}")
16
+ end
17
+
18
+ def fake(url, options={})
19
+ method = options.delete(:method) || :get
20
+ body = options.delete(:body) || '{}'
21
+ format = options.delete(:format) || :json
22
+
23
+ FakeWeb.register_uri(method, url, {:body => body, :status => 200, :content_type => "application/#{format}"}.merge(options))
24
+ end
25
+ end
26
+
27
+ class Minitest::Test
28
+ include Helpers
29
+ end
@@ -1,9 +1,38 @@
1
- <h1>Shopify Sinatra App</h1>
1
+ <%= bootstrap_assets %>
2
2
 
3
- <h2>Install This App</h2>
4
- <h2><small>This app requires you to login to start using it.</small></h2>
3
+ <style>
4
+ body {
5
+ background: #fff url(<%="#{base_url}/legend.gif"%>) no-repeat fixed right 130px;
6
+ }
5
7
 
6
- <form action="/login" method="post">
7
- <input type="url" name="shop" placeholder="Shop URL">
8
- <input type="submit" value="Install App" />
9
- </form>
8
+ .form-large input {
9
+ font-size: 18px;
10
+ padding: 8px;
11
+ height: auto;
12
+ line-height: normal;
13
+ }
14
+
15
+ .form-wide {
16
+ width: 480px;
17
+ }
18
+ </style>
19
+
20
+ <body>
21
+ <div style="margin-top: 100px"></div>
22
+
23
+ <div class="container">
24
+ <h1>Shopify Sinatra App</h1>
25
+ <h2><small>This app requires you to login to start using it.</small></h2>
26
+ </div>
27
+
28
+ <div style="margin-top: 30px"></div>
29
+
30
+ <div class="container">
31
+ <form role="form" class="form-large" action="/login" method="post">
32
+ <div class="input-append">
33
+ <input class="form-control form-wide" type="url" name="shop" placeholder="Shop URL">
34
+ <input class="btn" type="submit" value="Install App" />
35
+ </div>
36
+ </form>
37
+ </div>
38
+ </body>
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopify-sinatra-app'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.2'
4
4
 
5
5
  s.summary = "A classy shopify app"
6
6
  s.description = "A Sinatra extension for building Shopify Apps. Akin to the shopify_app gem but for Sinatra"
data/test.sh ADDED
@@ -0,0 +1,8 @@
1
+ #!/bin/bash
2
+
3
+ cd lib/generator/test
4
+
5
+ bundle exec rake test:prepare
6
+ bundle exec rake test
7
+
8
+ cd ../../..
metadata CHANGED
@@ -1,223 +1,223 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify-sinatra-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Hughes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-05 00:00:00.000000000 Z
11
+ date: 2014-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '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
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sinatra-redis
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sinatra-activerecord
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sinatra-twitter-bootstrap
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rack-flash3
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activesupport
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: attr_encrypted
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: resque
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.22.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ~>
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.22.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: shopify_api
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ">="
136
+ - - '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: omniauth-shopify-oauth2
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rake
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - '>='
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
164
+ - - '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: sqlite3
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ">="
171
+ - - '>='
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ">="
178
+ - - '>='
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rack-test
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ">="
185
+ - - '>='
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ">="
192
+ - - '>='
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: fakeweb
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ">="
199
+ - - '>='
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ">="
206
+ - - '>='
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: mocha
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ">="
213
+ - - '>='
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ">="
220
+ - - '>='
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  description: A Sinatra extension for building Shopify Apps. Akin to the shopify_app
@@ -228,7 +228,7 @@ executables:
228
228
  extensions: []
229
229
  extra_rdoc_files: []
230
230
  files:
231
- - ".gitignore"
231
+ - .gitignore
232
232
  - Gemfile
233
233
  - Gemfile.lock
234
234
  - LICENSE
@@ -236,6 +236,7 @@ files:
236
236
  - bin/shopify-sinatra-app-generator
237
237
  - lib/generator/.gitignore
238
238
  - lib/generator/Gemfile
239
+ - lib/generator/Gemfile.lock
239
240
  - lib/generator/Procfile
240
241
  - lib/generator/README.md
241
242
  - lib/generator/Rakefile
@@ -244,14 +245,20 @@ files:
244
245
  - lib/generator/db/.keep
245
246
  - lib/generator/db/migrate/20140413221328_create_shops.rb
246
247
  - lib/generator/db/migrate/20140414042317_add_index_to_shops.rb
248
+ - lib/generator/db/schema.rb
249
+ - lib/generator/db/seeds.rb
247
250
  - lib/generator/lib/app.rb
248
251
  - lib/generator/public/icon.png
252
+ - lib/generator/public/legend.gif
253
+ - lib/generator/test/app_test.rb
254
+ - lib/generator/test/test_helper.rb
249
255
  - lib/generator/views/_top_bar.erb
250
256
  - lib/generator/views/home.erb
251
257
  - lib/generator/views/install.erb
252
258
  - lib/generator/views/layouts/application.erb
253
259
  - lib/sinatra/shopify-sinatra-app.rb
254
260
  - shopify-sinatra-app.gemspec
261
+ - test.sh
255
262
  homepage: https://github.com/pickle27/shopify-sinatra-app/
256
263
  licenses:
257
264
  - MIT
@@ -262,12 +269,12 @@ require_paths:
262
269
  - lib
263
270
  required_ruby_version: !ruby/object:Gem::Requirement
264
271
  requirements:
265
- - - ">="
272
+ - - '>='
266
273
  - !ruby/object:Gem::Version
267
274
  version: '0'
268
275
  required_rubygems_version: !ruby/object:Gem::Requirement
269
276
  requirements:
270
- - - ">="
277
+ - - '>='
271
278
  - !ruby/object:Gem::Version
272
279
  version: '0'
273
280
  requirements: []