shopify_app 3.0.4 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
1
  * re-styled with Twitter Bootstrap css framework and updated docs [warren]
2
2
  * Require shopify_api gem via proper railtie setup [willem]
3
3
  * Don't require shopify.yml when using environment variables [cody]
4
+ * Renamed instances of current_shop to shop_session to maintain logic
@@ -0,0 +1,16 @@
1
+ Releasing ShopifyApp
2
+
3
+ 1. Check the Semantic Versioning page for info on how to version the new release: http://semver.org
4
+ 2. Update the version of ShopifyApp in lib/shopify_app/version.rb
5
+ 3. Add a CHANGELOG entry for the new release with the date
6
+ 4. Commit the changes with a commit message like "Packaging for release X.Y.Z"
7
+ 5. Tag the release with the version (Leave REV blank for HEAD or provide a SHA)
8
+ $ git tag vX.Y.Z REV
9
+ 6. Push out the changes
10
+ $ git push
11
+ 7. Push out the tags
12
+ $ git push --tags
13
+ 8. Build the new .gem from the updated .gemspec
14
+ $ gem build shopify_app.gemspec
15
+ 9. Publish the Gem to gemcutter
16
+ $ gem push shopify_app-X.Y.Z.gem
@@ -82,7 +82,7 @@
82
82
  </thead>
83
83
  <% @orders.each do |order| %>
84
84
  <tr>
85
- <td><%= link_to order.name, "https://#{current_shop.url}/admin/orders/#{order.id}", :target => 'blank' %></td>
85
+ <td><%= link_to order.name, "https://#{shop_session.url}/admin/orders/#{order.id}", :target => 'blank' %></td>
86
86
  <td><%= order.billing_address.name %></td>
87
87
  <td>
88
88
  <span class="label <% if order.financial_status == 'paid' %>label-success<% end %> <% if order.financial_status == 'pending' %>label-warning<% end %> <% if order.financial_status == 'refunded' %>label-important<% end %>"><%= order.financial_status %>
@@ -123,7 +123,7 @@
123
123
  <div class="accordion-heading">
124
124
 
125
125
  <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#<%= product.id %>">
126
- <%= product.title %> <span class="pull-right muted"><%= product.price_range %> <%= current_shop.shop.currency %></span>
126
+ <%= product.title %> <span class="pull-right muted"><%= product.price_range %> <%= shop_session.shop.currency %></span>
127
127
  </a>
128
128
  </div>
129
129
 
@@ -142,7 +142,7 @@
142
142
  <% if product.published_at != nil %>
143
143
  <p class="muted">Published at <%= Time.parse(product.published_at).strftime("%H:%M on %m/%d/%Y") %></p>
144
144
  <% end %>
145
- <p><%= link_to raw('View in your Shopify Admin <i class="icon-chevron-right" style="opacity:.25"></i>'), "https://#{current_shop.url}/admin/products/#{product.id}", :target => 'blank', :class => 'btn btn-primary' %></p>
145
+ <p><%= link_to raw('View in your Shopify Admin <i class="icon-chevron-right" style="opacity:.25"></i>'), "https://#{shop_session.url}/admin/products/#{product.id}", :target => 'blank', :class => 'btn btn-primary' %></p>
146
146
  </div>
147
147
 
148
148
  </div>
@@ -35,7 +35,7 @@
35
35
 
36
36
  <%= link_to 'Shopify Demo App', '/', :class => 'brand' %>
37
37
 
38
- <% if current_shop %>
38
+ <% if shop_session %>
39
39
  <div class="nav-collapse">
40
40
  <ul class="nav">
41
41
  <li class='<%= active_nav_class('home', 'index') %>'><%= link_to 'Where to Start', '/' %></li>
@@ -45,10 +45,10 @@
45
45
 
46
46
  <ul class="nav pull-right">
47
47
  <li class="dropdown">
48
- <%= link_to raw(current_shop.url+' <b class="caret"></b>'), "https://#{current_shop.url}", :class => 'shop_name dropdown-toggle', :'data-toggle' => 'dropdown' %>
48
+ <%= link_to raw(shop_session.url+' <b class="caret"></b>'), "https://#{shop_session.url}", :class => 'shop_name dropdown-toggle', :'data-toggle' => 'dropdown' %>
49
49
  <ul class="dropdown-menu">
50
- <li><%= link_to raw('<i class="icon-home"></i> Storefront'), "http://"+current_shop.url, :target => 'blank' %></li>
51
- <li><%= link_to raw('<i class="icon-cog"></i> Shopify Admin'), "http://"+current_shop.url+"/admin", :target => 'blank' %></li>
50
+ <li><%= link_to raw('<i class="icon-home"></i> Storefront'), "http://"+shop_session.url, :target => 'blank' %></li>
51
+ <li><%= link_to raw('<i class="icon-cog"></i> Shopify Admin'), "http://"+shop_session.url+"/admin", :target => 'blank' %></li>
52
52
  <li class="divider"></li>
53
53
  <li><%= link_to raw('<i class="icon-off"></i> logout'), logout_path %></li>
54
54
  </ul>
@@ -14,7 +14,7 @@ module ShopifyApp::LoginProtection
14
14
  end
15
15
  end
16
16
 
17
- def current_shop
17
+ def shop_session
18
18
  session[:shopify]
19
19
  end
20
20
  end
@@ -8,7 +8,7 @@ class ShopifyApp::Railtie < ::Rails::Railtie
8
8
 
9
9
  initializer "shopify_app.action_controller_integration" do
10
10
  ActionController::Base.send :include, ShopifyApp::LoginProtection
11
- ActionController::Base.send :helper_method, :current_shop
11
+ ActionController::Base.send :helper_method, :shop_session
12
12
  end
13
13
 
14
14
  initializer "shopify_app.setup_session" do
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = "3.0.4"
2
+ VERSION = "4.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 4.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-19 00:00:00.000000000 Z
12
+ date: 2012-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70223159670160 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70223159670160
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: shopify_api
27
- requirement: &70223159669660 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,21 +37,31 @@ dependencies:
32
37
  version: 3.0.0
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70223159669660
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 3.0.0
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: omniauth-shopify-oauth2
38
- requirement: &70223159669160 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
- - - =
51
+ - - '='
42
52
  - !ruby/object:Gem::Version
43
53
  version: 1.0.0
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *70223159669160
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.0
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: rake
49
- requirement: &70223159668780 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,7 +69,12 @@ dependencies:
54
69
  version: '0'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70223159668780
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  description: Creates a basic login controller for authenticating with your Shop and
59
79
  also a product controller which lets your edit your products easily.
60
80
  email:
@@ -69,6 +89,7 @@ files:
69
89
  - CHANGELOG
70
90
  - Gemfile
71
91
  - README.rdoc
92
+ - RELEASING
72
93
  - Rakefile
73
94
  - install.rb
74
95
  - lib/generators/shopify_app/README
@@ -129,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
150
  version: '0'
130
151
  requirements: []
131
152
  rubyforge_project: shopify-api
132
- rubygems_version: 1.8.11
153
+ rubygems_version: 1.8.23
133
154
  signing_key:
134
155
  specification_version: 3
135
156
  summary: This gem is used to get quickly started with the Shopify API