msfl 0.0.1.pre.rc5 → 0.0.1.pre.rc6
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/lib/msfl.rb +6 -6
- data/lib/msfl/sinatra.rb +3 -1
- data/msfl.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 975cf7b663789b19cef5bc4e18b6a37a3bd8e0be
|
|
4
|
+
data.tar.gz: 78d4ea6445374a96668a9f253b9bc5664717cfe9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28f698beffc57c2446b18f3c23fcee03c9547289815c64b9b9ebe0b9319e653b1342c6324874ab4cc46885e0f90c3f7cf6e91414bf52e0c2a61b096586ebf43d
|
|
7
|
+
data.tar.gz: eba7d807dd1e6a22a9636a594bc4e142716dc251752570cd88009100f09f3ecb3dbb6ba5ce07b8dc397bf6128db67c4c536920f0c7677117f8606ccb7469167b
|
data/lib/msfl.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
require_relative 'msfl/parsers'
|
|
2
|
+
require_relative 'msfl/types'
|
|
3
|
+
require_relative 'msfl/validators'
|
|
4
|
+
require_relative 'msfl/configuration'
|
|
5
|
+
require_relative 'msfl/datasets'
|
|
6
|
+
require_relative 'msfl/sinatra'
|
|
7
7
|
|
|
8
8
|
module MSFL
|
|
9
9
|
class << self
|
data/lib/msfl/sinatra.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
require 'json'
|
|
1
2
|
module MSFL
|
|
2
3
|
module Sinatra
|
|
3
4
|
class << self
|
|
@@ -14,7 +15,8 @@ module MSFL
|
|
|
14
15
|
# @return [Object] the Ruby-ified MSFL filter
|
|
15
16
|
def parse_filter_from(params)
|
|
16
17
|
filter = params[:filter] || params["filter"]
|
|
17
|
-
|
|
18
|
+
filter = filter.to_json if filter.is_a?(Hash) #normally it's a string
|
|
19
|
+
MSFL::Parsers::JSON.parse filter
|
|
18
20
|
end
|
|
19
21
|
|
|
20
22
|
# Extracts the dataset name from the Sinatra params. It then returns a new instance of the specified
|
data/msfl.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'msfl'
|
|
3
|
-
s.version = '0.0.1-
|
|
3
|
+
s.version = '0.0.1-rc6'
|
|
4
4
|
s.date = '2015-03-05'
|
|
5
5
|
s.summary = "MSFL in Ruby"
|
|
6
6
|
s.description = "Serializers, validators, and other tasty goodness for the Mattermark Semantic Filter Language in Ruby."
|