marketplace-kit 0.1.3 → 0.1.4

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: 9c1f450f4ce123a752d6b9f78aece3be56c157ef
4
- data.tar.gz: da019af5fae620dcba53223e61ff23d6873ccd95
3
+ metadata.gz: 14be8b29844b60d5be3f94fa6619599e0a2ac0bc
4
+ data.tar.gz: 647598d7ec8a66a5f1d103aada297534c6fa2f11
5
5
  SHA512:
6
- metadata.gz: 8aeef32d27aef3d949569bb74948bd7eb2b689ff7245460e64cf04b0d66df27ae88b7c27ac8de7eaabaaf5925c126e8da4188fc294ba807cdfbbdfa5e80f7483
7
- data.tar.gz: ac69d0d0a5ca5a178982b1ed80939dcac833bb4b0750169e23228fcc1ef08abc4b3dc5d1248aea9f25c53032fb4b6615763945bcb66928e8dc10f4c6a713e14c
6
+ metadata.gz: 52ecc290e1efbf67389c2bda3999c2228e681f841fc6eaef60c33d04848a638661b2d10fb1ea28193cbefd15dbaea6fe76a88e443e3bb73c2e4adbce0053fdff
7
+ data.tar.gz: cf7ca768ea907ac894dabf65a642c0367e6a46aa383d8653ff32056ac89353b61012ab926f04389e3548eb465be49be1fa3b131ede89b6c53d1c1482e681dd99
@@ -36,8 +36,16 @@ module MarketplaceKit
36
36
  end
37
37
 
38
38
  def save_token(value)
39
- File.write("#{MarketplaceKit.builder_folder}.builder-autogenerated", { @endpoint => { token: value } }.to_json)
39
+ config = autogenerated_config.merge({ @endpoint => { token: value } })
40
+ File.write("#{MarketplaceKit.builder_folder}.builder-autogenerated", config.to_json)
40
41
  end
42
+
43
+ def autogenerated_config
44
+ return {} unless File.exist?("#{MarketplaceKit.builder_folder}.builder-autogenerated")
45
+
46
+ raw_config = File.read("#{MarketplaceKit.builder_folder}.builder-autogenerated")
47
+ JSON.parse raw_config
48
+ end
41
49
  end
42
50
  end
43
51
  end
@@ -1,3 +1,3 @@
1
1
  module MarketplaceKit
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'marketplace_kit/version'
@@ -13,6 +14,15 @@ Gem::Specification.new do |spec|
13
14
  spec.description = 'Marketplace Kit'
14
15
  spec.homepage = 'https://marketplaceplatform.com'
15
16
 
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
+ else
22
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
23
+ 'public gem pushes.'
24
+ end
25
+
16
26
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
27
  f.match(%r{^(test|spec|features)/})
18
28
  end
@@ -28,6 +38,7 @@ Gem::Specification.new do |spec|
28
38
  spec.add_development_dependency 'webmock'
29
39
  spec.add_development_dependency 'simplecov'
30
40
  spec.add_development_dependency 'coveralls'
41
+ spec.add_development_dependency 'pry'
31
42
 
32
43
  spec.add_dependency 'listen'
33
44
  spec.add_dependency 'faraday'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marketplace-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Janeczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-09 00:00:00.000000000 Z
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: listen
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -203,7 +217,8 @@ files:
203
217
  - marketplace_kit.gemspec
204
218
  homepage: https://marketplaceplatform.com
205
219
  licenses: []
206
- metadata: {}
220
+ metadata:
221
+ allowed_push_host: https://rubygems.org
207
222
  post_install_message:
208
223
  rdoc_options: []
209
224
  require_paths: