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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: faf1e8223d9e541a96375c32036eb988170379f3
4
- data.tar.gz: 50368297ac5f5bedc626b383817bbe27178dfdc5
3
+ metadata.gz: 62213bcc8751ad94bc934548a7b6b228d42aced4
4
+ data.tar.gz: b89d13da9d3d000529c1f79072f8f10127173a4f
5
5
  SHA512:
6
- metadata.gz: bbc628256fa642b395740c25e3925c329f01900355cb547bf25a27a0ed10bc261cd0cd9b8e7285e2e2c28d40c431a4e11100bc3799de875154d2ba0d60fc935e
7
- data.tar.gz: 3bf43d895b5810a04f38900a7f71ad490adad0d2658f1abdffa30e462ca6e22dda7202584725a15a5c91a960125f2105caa05a86889b655a87a81a1b0280871c
6
+ metadata.gz: bd67f44eb4c305fa672e10a1704eff709933137d52c3027552463fc9e953920e4d65650c2f57437b5cd8ce0f0f8a396caf90cd88c94d12f2701060b2b0e79ba1
7
+ data.tar.gz: 2cb38cb40df86b288d57cc729ad35dae19e5dc92cbc7b4f52c5e4497a9704de07b6e983952e36d5db8e063be2f96c39d2477d60d9057a331206085b3f8f0b7f9
data/README.md CHANGED
@@ -15,6 +15,9 @@ Install it yourself as:
15
15
  3. Create marketplace_builder/.builder file
16
16
  ```
17
17
  {
18
+ "localhost": {
19
+ "url": "http://marketplace-name.lvh.me:3000"
20
+ },
18
21
  "staging": {
19
22
  "url": "https://staging-url.near-me.com"
20
23
  },
@@ -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
- config = autogenerated_config.merge({ @endpoint => { token: value } })
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
@@ -1,3 +1,3 @@
1
1
  module MarketplaceKit
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
@@ -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.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-08-10 00:00:00.000000000 Z
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.5.1
223
+ rubygems_version: 2.6.10
225
224
  signing_key:
226
225
  specification_version: 4
227
226
  summary: Marketplace Kit