shopify_app 0.1.0 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,2 +1,2 @@
1
- * Require shopify_api gem
1
+ * Require shopify_api gem via proper railtie setup [willem]
2
2
  * Don't require shopify.yml when using environment variables [cody]
@@ -20,7 +20,6 @@ class ShopifyAppGenerator < Rails::Generators::Base
20
20
  end
21
21
 
22
22
  def add_config_variables
23
-
24
23
  api_key_str = api_key.nil? ? "ENV['SHOPIFY_API_KEY']" : api_key.inspect
25
24
  api_secret_str = secret.nil? ? "ENV['SHOPIFY_API_SECRET']" : secret.inspect
26
25
 
@@ -29,6 +28,7 @@ class ShopifyAppGenerator < Rails::Generators::Base
29
28
  # Shopify API connection credentials:
30
29
  config.shopify.api_key = #{api_key_str}
31
30
  config.shopify.secret = #{api_secret_str}
31
+
32
32
  DATA
33
33
  end
34
34
 
@@ -62,7 +62,7 @@
62
62
  <li>
63
63
  <div class="order box">
64
64
  <div class="wrapper">
65
- <strong><%= link_to order.name, "http://#{current_shop.url}/admin/orders/#{order.id}" %></strong>
65
+ <strong><%= link_to order.name, "https://#{current_shop.url}/admin/orders/#{order.id}" %></strong>
66
66
  <span class="price"><%= order.total_price %> <%= order.currency %></span>
67
67
  <span class="highlight"><%= order.financial_status %></span>
68
68
  by <span class="note"><%= order.billing_address.name %></span>
@@ -89,7 +89,7 @@
89
89
  <div class="wrapper">
90
90
  <%= image_tag product.images.first.small rescue '' %>
91
91
 
92
- <h4><%= link_to product.title, "http://#{current_shop.url}/admin/products/#{product.id}" %></h4>
92
+ <h4><%= link_to product.title, "https://#{current_shop.url}/admin/products/#{product.id}" %></h4>
93
93
 
94
94
  <p class="price"><%= product.price_range %> <%= current_shop.shop.currency %></p>
95
95
  <p style="margin-bottom: 0"><%= product.product_type %> <span class="note">type</span></p>
@@ -13,7 +13,7 @@
13
13
 
14
14
  <p id="login-link">
15
15
  <% if current_shop %>
16
- <span class="note">current shop</span> <%= link_to current_shop.url, "http://#{current_shop.url}", :class => 'shop_name' %> <span class="note">|</span>
16
+ <span class="note">current shop</span> <%= link_to current_shop.url, "https://#{current_shop.url}", :class => 'shop_name' %> <span class="note">|</span>
17
17
  <%= link_to 'logout', :controller => "login", :action => 'logout' %>
18
18
  <% end %>
19
19
  </p>
@@ -1,6 +1,3 @@
1
- class ShopifyApp::Configuration
2
-
3
- attr_accessor :api_key
4
-
5
- attr_accessor :secret
1
+ class ShopifyApp::Configuration
2
+ attr_accessor :api_key, :secret
6
3
  end
@@ -1,5 +1,4 @@
1
1
  module ShopifyApp::LoginProtection
2
-
3
2
  def shopify_session
4
3
  if session[:shopify]
5
4
  begin
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_app
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 19
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
- - 0
9
- version: 0.1.0
9
+ - 4
10
+ version: 0.1.4
10
11
  platform: ruby
11
12
  authors:
12
13
  - Shopify
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-02-26 00:00:00 -05:00
18
+ date: 2011-03-08 00:00:00 -05:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ~>
27
28
  - !ruby/object:Gem::Version
29
+ hash: 5
28
30
  segments:
29
31
  - 3
30
32
  version: "3"
@@ -38,6 +40,7 @@ dependencies:
38
40
  requirements:
39
41
  - - ">="
40
42
  - !ruby/object:Gem::Version
43
+ hash: 3
41
44
  segments:
42
45
  - 0
43
46
  version: "0"
@@ -51,6 +54,7 @@ dependencies:
51
54
  requirements:
52
55
  - - ">="
53
56
  - !ruby/object:Gem::Version
57
+ hash: 3
54
58
  segments:
55
59
  - 0
56
60
  version: "0"
@@ -112,6 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
116
  requirements:
113
117
  - - ">="
114
118
  - !ruby/object:Gem::Version
119
+ hash: 3
115
120
  segments:
116
121
  - 0
117
122
  version: "0"
@@ -120,13 +125,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
125
  requirements:
121
126
  - - ">="
122
127
  - !ruby/object:Gem::Version
128
+ hash: 3
123
129
  segments:
124
130
  - 0
125
131
  version: "0"
126
132
  requirements: []
127
133
 
128
134
  rubyforge_project: shopify-api
129
- rubygems_version: 1.3.7
135
+ rubygems_version: 1.4.1
130
136
  signing_key:
131
137
  specification_version: 3
132
138
  summary: This gem is used to get quickly started with the Shopify API