snowly 0.1.1 → 0.1.2

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
  !binary "U0hBMQ==":
3
- metadata.gz: d41577c932e8b4ba8f150d57bfe887f4be951c6c
4
- data.tar.gz: 84a1422730f60bb6134ff28a6e6310a699fcd9e2
3
+ metadata.gz: dc11176a4d316185bd37a2543f52066ae53ac795
4
+ data.tar.gz: dffd40fb0d396f736e251a78801dfe16ba1ab72d
5
5
  SHA512:
6
- metadata.gz: 749b0bb7137ff4782bece6bde1dfdc8fd5ed18db9002b0f9f28e9c4e5f186da137b91c448b8d3b289e638108da3e7d8117eea96487231abb7583ed940a670bbd
7
- data.tar.gz: 151aff343e3031e30158aebe463fb079b94d2fa05eba04a9f8495659e5d30462417105197a4b17af14d57c9ad9314bf1a9260b395f954b36c66566fde78ab43a
6
+ metadata.gz: aa321e2d03edd48254b5434231cea90301b00a6e7b700e7fa8be7f681be82aba97f29192244cdb8a78b649850bf4ef8fc82f5967c702a9bc2b2e09156fceb02c
7
+ data.tar.gz: 660c13104bf3e0ec3a9eea2e10e5616336c52d05208de44bada6c5531ffd0f6de942f8172cb51d5b2b81e73d427b7c7af4f340a75492e653db2da7577541ac93
data/bin/snowly CHANGED
@@ -1,8 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # /snowly
3
- require 'rubygems'
4
- require 'bundler'
5
- Bundler.setup
3
+ require "bundler/setup"
6
4
  require 'snowly'
7
5
  require 'snowly/app/collector'
8
6
  require 'vegas'
@@ -30,6 +30,7 @@
30
30
  <% unless Snowly.local_iglu_resolver_path %>
31
31
  <div class="alert alert-danger" role="alert">The Local Iglu Resolver Path is missing.</div>
32
32
  <% end %>
33
+ <p>Use <code>snowly -K</code> to stop the collector.</p>
33
34
  </div>
34
35
 
35
36
  <div class="row marketing">
@@ -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("lib/schemas/snowplow_protocol.json")
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
@@ -1,3 +1,3 @@
1
1
  module Snowly
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/snowly.rb CHANGED
@@ -1,12 +1,12 @@
1
- require 'json-schema'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snowly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Angelim