snowly 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/snowly +1 -3
- data/lib/snowly/app/views/index.erb +1 -0
- data/lib/snowly/validator.rb +2 -1
- data/lib/snowly/version.rb +1 -1
- data/lib/snowly.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc11176a4d316185bd37a2543f52066ae53ac795
|
|
4
|
+
data.tar.gz: dffd40fb0d396f736e251a78801dfe16ba1ab72d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa321e2d03edd48254b5434231cea90301b00a6e7b700e7fa8be7f681be82aba97f29192244cdb8a78b649850bf4ef8fc82f5967c702a9bc2b2e09156fceb02c
|
|
7
|
+
data.tar.gz: 660c13104bf3e0ec3a9eea2e10e5616336c52d05208de44bada6c5531ffd0f6de942f8172cb51d5b2b81e73d427b7c7af4f340a75492e653db2da7577541ac93
|
data/bin/snowly
CHANGED
data/lib/snowly/validator.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Performs the validation for the root attributes and associated contexts and unstructured events.
|
|
2
2
|
require 'snowly/request'
|
|
3
3
|
require 'snowly/extensions/custom_dependencies'
|
|
4
|
+
|
|
4
5
|
module Snowly
|
|
5
6
|
class Validator
|
|
6
7
|
attr_reader :request, :errors
|
|
@@ -13,7 +14,7 @@ module Snowly
|
|
|
13
14
|
# Loads the protocol schema created to describe snowplow events table attributes
|
|
14
15
|
# @return [Hash] parsed schema
|
|
15
16
|
def protocol_schema
|
|
16
|
-
@protocol_schema ||= JSON.parse File.read("
|
|
17
|
+
@protocol_schema ||= JSON.parse File.read(File.expand_path("../../schemas/snowplow_protocol.json",__FILE__))
|
|
17
18
|
end
|
|
18
19
|
|
|
19
20
|
# @return [Hash] all contexts content and schema definitions
|
data/lib/snowly/version.rb
CHANGED
data/lib/snowly.rb
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
require '
|
|
2
|
-
require 'snowly/validators/self_desc'
|
|
1
|
+
require 'active_support/core_ext'
|
|
3
2
|
require "pry"
|
|
4
|
-
require "snowly/version"
|
|
5
3
|
require 'json'
|
|
6
4
|
require 'rack'
|
|
5
|
+
require 'json-schema'
|
|
6
|
+
require 'snowly/validators/self_desc'
|
|
7
|
+
require "snowly/version"
|
|
7
8
|
require 'snowly/validator'
|
|
8
9
|
require 'snowly/schema_cache'
|
|
9
|
-
require 'active_support'
|
|
10
10
|
|
|
11
11
|
module Snowly
|
|
12
12
|
mattr_accessor :local_iglu_resolver_path, :debug_mode
|