diaspora_federation-json_schema 0.2.0 → 0.2.1

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: '088ed732f167cfc2a65dbfda5322e02c237a4a68'
4
- data.tar.gz: b1bb8319b52677da78db4d30707e5e631114cada
3
+ metadata.gz: 5bc83ef074cbe72900cdbb8ad90ca2099ccfb9fc
4
+ data.tar.gz: '09cbd3efcdaf9f23b8948c4999193d202af1723c'
5
5
  SHA512:
6
- metadata.gz: a298884b66d9b7638b8694b111a42adeb01fda9179ebd4f381b2f7bc8ed9fca0da17edf2368758cb6d727762640ea829d4bd85572984aca21b46badceec59227
7
- data.tar.gz: c02ba96478af18ad6a9b04d3aec43f10c3b44b847dd9e12f22a83dc43338a2e80c334f2cc12cf0c7f6d74235338d9092d861648bcdabcc2823cde976d2ba1a48
6
+ metadata.gz: 2465284f179e617633d856ff64ce7d4bf8c5023283f9b13c3e9bd381972c88d185765f0b9e935770ecd5b0bddd9518718673aa2a9b4e4c7736e84a118c2df466
7
+ data.tar.gz: 8aecd602e69469d8cc7eae4a3319bb839d6e256e94ae74dae2a8c0d2c68c61abc0490c0fe210c038728280bed8273486a517be98d97eed4e49ec0094933a4c9b
@@ -0,0 +1,17 @@
1
+ require "pathname"
2
+ require "json"
3
+
4
+ module DiasporaFederation
5
+ # A helper class to access the JSON schema.
6
+ module Schemas
7
+ # federation_entities schema uri
8
+ FEDERATION_ENTITIES_URI = "https://diaspora.github.io/diaspora_federation/schemas/federation_entities.json".freeze
9
+
10
+ # Parsed federation_entities schema
11
+ def self.federation_entities
12
+ @federation_entities ||= JSON.parse(
13
+ Pathname.new(__dir__).join("schemas", "federation_entities.json").read
14
+ )
15
+ end
16
+ end
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diaspora_federation-json_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Neff
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-02 00:00:00.000000000 Z
12
+ date: 2017-08-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This gem provides JSON schemas (currently one schema) for validating
15
15
  JSON serialized federation objects.
@@ -20,6 +20,7 @@ executables: []
20
20
  extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
+ - lib/diaspora_federation/schemas.rb
23
24
  - lib/diaspora_federation/schemas/federation_entities.json
24
25
  homepage: https://github.com/diaspora/diaspora_federation
25
26
  licenses: