mrpin-sdk 1.0.37 → 1.0.38

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: 281761b8bf6ac3240209c590e4750d92de17b9ef
4
- data.tar.gz: ba3383f2548de45c251913558a4c7261027ec138
3
+ metadata.gz: 22d1be31abb6cfc0c6278f5351acbe90deff2839
4
+ data.tar.gz: ca4d0c521039fdb13164ddbc81a111d1f0bffbc6
5
5
  SHA512:
6
- metadata.gz: e2074eeecc5670443c067f2fa04b76b30bef68aac23a1a5fe47668e8ea78c6ceae1cce2c905f5bf6aca230d223e479ee4b64b4b9255e15b2b7f719eb8e69d87c
7
- data.tar.gz: f8c7abda44e5452b12487dcb54568c837e964aa3a9454e084dea3019a22abb3e455cb804f5e1e6b2bd01982ad30c8ef5841811b0e25d4b58cc758577091b1e70
6
+ metadata.gz: bf2065641b8edbfb354359230d9b13dc2ba49be15c0cd0d4f2ed4bc5a00542ddba69eb0205af61a7bbe300f9f4defff446c885f7ebba20693e5c1b07d1265eb4
7
+ data.tar.gz: b96224d5a9a7a364e3774f0a5cf698ce7abf9e00193b04f12821bea9b4f20b712bc21bd644100d92bbd59b3812317b8a0ae8f70fe257ea548ed36e26572d6e8f
@@ -128,7 +128,7 @@ class BundleBase < ModelBase
128
128
 
129
129
  protected
130
130
  def get_path_for_uploader_relative(field_name)
131
- "bundles/#{self.build_type}/#{self.name}"
131
+ "#{Constants::DIR_ASSETS_DYNAMIC}/bundles/#{self.build_type}/#{self.name}"
132
132
  end
133
133
 
134
134
  protected
@@ -11,9 +11,11 @@ class Constants
11
11
 
12
12
  THREADS_HANDLERS_COUNT = Rails.env.production? ? 10 : 2
13
13
 
14
+ DIR_ASSETS_DYNAMIC = 'assets_dynamic'
15
+
14
16
  public
15
- def self.get_dir_assets_dynamic
16
- result = '/data/assets_dynamic'
17
+ def self.get_dir_assets
18
+ result = '/data'
17
19
 
18
20
  if Rails.env.development?
19
21
  result = File.join(Rails.root.to_s, 'public', result)
@@ -6,7 +6,7 @@ module UtilsIO
6
6
  return ''
7
7
  end
8
8
 
9
- root_dir = Constants.get_dir_assets_dynamic
9
+ root_dir = Constants.get_dir_assets
10
10
 
11
11
  path_absolute.gsub(root_dir, '')
12
12
  end
@@ -18,7 +18,7 @@ module UtilsIO
18
18
  return ''
19
19
  end
20
20
 
21
- root_dir = Constants.get_dir_assets_dynamic
21
+ root_dir = Constants.get_dir_assets
22
22
 
23
23
  File.join(root_dir, path_relative)
24
24
  end
data/mrpin-sdk.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'mrpin-sdk'
7
- spec.version = '1.0.37'
7
+ spec.version = '1.0.38'
8
8
  spec.authors = %w(Gregory Tkach Yakupov Dmitrij)
9
9
  spec.email = %w(gregory.tkach@gmail.com yakupov.dmitrij@gmail.com)
10
10
  spec.description = %q{Mrpin sdk for backend development.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mrpin-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.37
4
+ version: 1.0.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory