marketplace-kit 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/marketplace_kit/services/api_driver.rb +7 -0
- data/lib/marketplace_kit/services/config.rb +1 -9
- data/lib/marketplace_kit/version.rb +1 -1
- data/marketplace_kit.gemspec +0 -2
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62213bcc8751ad94bc934548a7b6b228d42aced4
|
4
|
+
data.tar.gz: b89d13da9d3d000529c1f79072f8f10127173a4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd67f44eb4c305fa672e10a1704eff709933137d52c3027552463fc9e953920e4d65650c2f57437b5cd8ce0f0f8a396caf90cd88c94d12f2701060b2b0e79ba1
|
7
|
+
data.tar.gz: 2cb38cb40df86b288d57cc729ad35dae19e5dc92cbc7b4f52c5e4497a9704de07b6e983952e36d5db8e063be2f96c39d2477d60d9057a331206085b3f8f0b7f9
|
data/README.md
CHANGED
@@ -39,6 +39,7 @@ module MarketplaceKit
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def prepare_body_to_send
|
42
|
+
fix_font_file_encoding
|
42
43
|
return @hash_body if @options[:multipart]
|
43
44
|
|
44
45
|
body_should_be_json? ? @hash_body.to_json : @hash_body
|
@@ -73,6 +74,12 @@ module MarketplaceKit
|
|
73
74
|
}
|
74
75
|
}
|
75
76
|
end
|
77
|
+
|
78
|
+
def fix_font_file_encoding
|
79
|
+
return unless @hash_body[:marketplace_builder_file_body]
|
80
|
+
|
81
|
+
@hash_body[:marketplace_builder_file_body] = @hash_body[:marketplace_builder_file_body].force_encoding('ISO-8859-1').encode('UTF-8')
|
82
|
+
end
|
76
83
|
end
|
77
84
|
end
|
78
85
|
end
|
@@ -36,16 +36,8 @@ module MarketplaceKit
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def save_token(value)
|
39
|
-
|
40
|
-
File.write("#{MarketplaceKit.builder_folder}.builder-autogenerated", config.to_json)
|
39
|
+
File.write("#{MarketplaceKit.builder_folder}.builder-autogenerated", { @endpoint => { token: value } }.to_json)
|
41
40
|
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
|
49
41
|
end
|
50
42
|
end
|
51
43
|
end
|
data/marketplace_kit.gemspec
CHANGED
@@ -13,8 +13,6 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.description = 'Marketplace Kit'
|
14
14
|
spec.homepage = 'https://marketplaceplatform.com'
|
15
15
|
|
16
|
-
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
17
|
-
|
18
16
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
17
|
f.match(%r{^(test|spec|features)/})
|
20
18
|
end
|
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.
|
4
|
+
version: 0.1.2
|
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-
|
11
|
+
date: 2017-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -203,8 +203,7 @@ files:
|
|
203
203
|
- marketplace_kit.gemspec
|
204
204
|
homepage: https://marketplaceplatform.com
|
205
205
|
licenses: []
|
206
|
-
metadata:
|
207
|
-
allowed_push_host: https://rubygems.org
|
206
|
+
metadata: {}
|
208
207
|
post_install_message:
|
209
208
|
rdoc_options: []
|
210
209
|
require_paths:
|
@@ -221,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
220
|
version: '0'
|
222
221
|
requirements: []
|
223
222
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.
|
223
|
+
rubygems_version: 2.6.10
|
225
224
|
signing_key:
|
226
225
|
specification_version: 4
|
227
226
|
summary: Marketplace Kit
|