mks_common 1.0.4 → 1.0.5

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
  SHA256:
3
- metadata.gz: beffcddfceb91e0ab499b67a8b01a1758c01ea13d10d11436a744715d43767ca
4
- data.tar.gz: b0b061341f865d85003779a226d07b4a38c32de066f7132ae352030f7c47e4a0
3
+ metadata.gz: 1aba70bdf7f2808518036bab9676cfad18e2debb2dae6d4c3e9ee660dd434cd1
4
+ data.tar.gz: f80732a7506e3faf628a2800f4d372b773c43537ffdf51c0244bc9e49ee2cfa4
5
5
  SHA512:
6
- metadata.gz: cb8e3ca59aebc2fba011ea0e50750ae8eb2c01395c826349624e1853066cdfbca30008147f8d98efd38c52a4641ebebf6bf8f4c02817fe67e2e360c8d5109c49
7
- data.tar.gz: 0e564a343011c9854c90aea2773209ba3dacbb35d0d63418d11b4931c421f213a127ec9d11129f5c344d34d689735d298ca5b369a1a44c9abe15dd11c1ba7e27
6
+ metadata.gz: cf1be9f1d149e6d9733a25f93d8907acaafeb1ee04964157dd8eb6c1cf53e4578389a96bc57da0e7970e38b641fc4fef03e70aac87f484844378d1b8f864f45d
7
+ data.tar.gz: 7c663751a7d18905977c8027894e8003900e843becc9b9e05535c1ceddc7eddcff6efd39b4dd72b28a4225f205173676cf5af6c3aaee3730108ef2105ed9c88b
@@ -15,9 +15,9 @@ module Mks
15
15
 
16
16
  def self.success_response(data, msg = nil)
17
17
  if data.kind_of?(Array) || data.class.name == 'ActiveRecord::Relation'
18
- MethodResponse.new(true, msg, data[0].as_json(data), nil, data.count)
18
+ MethodResponse.new(true, msg, data[0].json(data), nil, data.count)
19
19
  else
20
- MethodResponse.new(true, msg, data.as_json, nil, nil)
20
+ MethodResponse.new(true, msg, data.json, nil, nil)
21
21
  end
22
22
  end
23
23
 
@@ -1,5 +1,5 @@
1
1
  module Mks
2
2
  module Common
3
- VERSION = '1.0.4'.freeze
3
+ VERSION = '1.0.5'.freeze
4
4
  end
5
5
  end
data/mks_common.gemspec CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_development_dependency 'bundler', '>= 1.16.2'
23
- spec.add_development_dependency 'rake', '>= 12.3.1'
24
- spec.add_development_dependency 'rspec', '>= 3.7.0'
25
- spec.add_development_dependency 'json', '>= 2.1.0'
22
+ spec.add_development_dependency 'bundler', '~> 1.16', '>= 1.16.2'
23
+ spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.1'
24
+ spec.add_development_dependency 'rspec', '~> 3.7', '>= 3.7.0'
25
+ spec.add_development_dependency 'json', '~> 2.1', '>= 2.1.0'
26
26
  end
metadata CHANGED
@@ -1,19 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mks_common
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-18 00:00:00.000000000 Z
11
+ date: 2018-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
17
20
  - - ">="
18
21
  - !ruby/object:Gem::Version
19
22
  version: 1.16.2
@@ -21,6 +24,9 @@ dependencies:
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.16'
24
30
  - - ">="
25
31
  - !ruby/object:Gem::Version
26
32
  version: 1.16.2
@@ -28,6 +34,9 @@ dependencies:
28
34
  name: rake
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '12.3'
31
40
  - - ">="
32
41
  - !ruby/object:Gem::Version
33
42
  version: 12.3.1
@@ -35,6 +44,9 @@ dependencies:
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '12.3'
38
50
  - - ">="
39
51
  - !ruby/object:Gem::Version
40
52
  version: 12.3.1
@@ -42,6 +54,9 @@ dependencies:
42
54
  name: rspec
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '3.7'
45
60
  - - ">="
46
61
  - !ruby/object:Gem::Version
47
62
  version: 3.7.0
@@ -49,6 +64,9 @@ dependencies:
49
64
  prerelease: false
50
65
  version_requirements: !ruby/object:Gem::Requirement
51
66
  requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '3.7'
52
70
  - - ">="
53
71
  - !ruby/object:Gem::Version
54
72
  version: 3.7.0
@@ -56,6 +74,9 @@ dependencies:
56
74
  name: json
57
75
  requirement: !ruby/object:Gem::Requirement
58
76
  requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '2.1'
59
80
  - - ">="
60
81
  - !ruby/object:Gem::Version
61
82
  version: 2.1.0
@@ -63,6 +84,9 @@ dependencies:
63
84
  prerelease: false
64
85
  version_requirements: !ruby/object:Gem::Requirement
65
86
  requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.1'
66
90
  - - ">="
67
91
  - !ruby/object:Gem::Version
68
92
  version: 2.1.0