emp_json 1.3.0 → 1.4.0.pre.g2575975e4

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: 25bc9fd422b25a7c170b13e139529cdb920407263eddfea6090ff8f5db26efcf
4
- data.tar.gz: 06211e95f73424b5223fb48777332369346d6ded8b9b1b2ee91271e013e97c87
3
+ metadata.gz: 42aaaba45f4492719c1b3528f66916835db5953cc0653e8be87480c190b8f406
4
+ data.tar.gz: 98f3f75abd3a9b9132451d82920081b4e5a1700eaccb5267ba2a5f60334895b0
5
5
  SHA512:
6
- metadata.gz: 627063d466d24b937749ef9a86dff810f09da1c3b51ed5160b7db71a8369e1e3e8af393f95dc2a3ec1bfb45b8ad763e341a2aeb27ae6a4e4d19b1939f772f89c
7
- data.tar.gz: 70af1948aaad44518cac9bb2e666aba0462186add2425bfaafe9661878d9ccf691efe7e1fd36d31e8741b0dceb8a743143138edebb0ca4a3d7f8aecfa6986471
6
+ metadata.gz: 298e200bc75c0f5bf8bb4c6e42d3c2f5369ba24a0ab50b9d4cb0ecfa9e245b9b33930f5c2a15ffc00ac1aa2180762eb048507794c53d5a9d76f73b4f1178ba1d
7
+ data.tar.gz: 4fe179db61decfb069f343f64f5f3f4f5aba494ec9f0a88061485ecad5a13d3e36d61fe86b35f7ef6ed05bdd86593444682649f61fd67d6cbc29719006c3dd06
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- emp_json (1.3.0)
4
+ emp_json (1.4.0.pre.g2575975e4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Empathy
4
4
  module EmpJson
5
- VERSION = "1.3.0"
5
+ VERSION = "1.4.0"
6
6
  end
7
7
  end
@@ -10,9 +10,21 @@ require "empathy/emp_json/serializer"
10
10
 
11
11
  module Empathy
12
12
  module EmpJson
13
- SUPPORTS_RDF_RB = Object.const_defined?("RDF")
14
- SUPPORTS_SEQUENCE = Object.const_defined?("LinkedRails")
15
- SUPPORTS_AR = Object.const_defined?("ActiveRecord")
13
+ # Class for checking if certain gems are present
14
+ class SupportChecker
15
+ class << self
16
+ def check(gem)
17
+ require gem
18
+ true
19
+ rescue LoadError
20
+ false
21
+ end
22
+ end
23
+ end
24
+
25
+ SUPPORTS_RDF_RB = SupportChecker.check("rdf")
26
+ SUPPORTS_SEQUENCE = SupportChecker.check("linked_rails")
27
+ SUPPORTS_AR = SupportChecker.check("active_record")
16
28
 
17
29
  class Error < StandardError; end
18
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emp_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0.pre.g2575975e4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom van Kalkeren
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-02 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Serializer for the EmpJson specification.
14
14
  email:
@@ -75,9 +75,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  version: 2.7.0.preview1
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ">="
78
+ - - ">"
79
79
  - !ruby/object:Gem::Version
80
- version: '0'
80
+ version: 1.3.1
81
81
  requirements: []
82
82
  rubygems_version: 3.3.7
83
83
  signing_key: