shopifydev 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -99,6 +99,7 @@ class Switch
99
99
  if @cfg.keys.include?("shop_type")
100
100
  case @cfg["shop_type"].to_sym
101
101
  when :local
102
+ ShopifyAPI::Base.clear_session
102
103
  session = ShopifyAPI::Session.new(@cfg['url'], @cfg['token'])
103
104
  session.valid? # returns true
104
105
  ShopifyAPI::Base.activate_session(session)
@@ -106,6 +107,7 @@ class Switch
106
107
  puts Color.red{ "can't handle heroku yet"}
107
108
  end
108
109
  else
110
+ ShopifyAPI::Base.clear_session
109
111
  set_shop(@cfg[:api_key], @cfg[:password], @cfg[:myshopify_domain])
110
112
  end
111
113
  self.current_shop
@@ -1,3 +1,3 @@
1
1
  module Shopifydev
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopifydev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -250,7 +250,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
250
250
  version: '0'
251
251
  segments:
252
252
  - 0
253
- hash: 2813767697343039389
253
+ hash: 1934802469332501028
254
254
  required_rubygems_version: !ruby/object:Gem::Requirement
255
255
  none: false
256
256
  requirements:
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  version: '0'
260
260
  segments:
261
261
  - 0
262
- hash: 2813767697343039389
262
+ hash: 1934802469332501028
263
263
  requirements: []
264
264
  rubyforge_project:
265
265
  rubygems_version: 1.8.25