jeql 0.1.2 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f6883fcb841dfb62585b86c98a77fa5b48ad7b8fe6ae481e43ac421f33c8883
4
- data.tar.gz: 58bc0495a082837c99b26dc5d4b41c2335885feb4cb82930b7597187101a1f33
3
+ metadata.gz: 7a3b053bea3526f9b02948b0bb6f0e0d50a649ab000d0d16b0287694f6869bc8
4
+ data.tar.gz: 5a21d976f24ff9c5acd937639aa249c3ae3969d8a48e17070992710f25ccf80a
5
5
  SHA512:
6
- metadata.gz: 5b3a6e05f3e77609cdf8035a7f47e98cab9b5ffafaecaf6650b1c63ad93ed2ebc35724953a1d249c964d4b20ebc2bb0173d16bf3a1acc1416d7ffd3b095ee0db
7
- data.tar.gz: 7ebc446ad799e0f02bdb72da1ddb4e17f6611b0cc52f226b96f368c2004ff1de73d2f8c8d01c1fc3779396c678acd65e90f5980d24ca8387f9fd59ceb67d1508
6
+ metadata.gz: 719766e04cbd9d41dd4e82f073cf878d8f2897890312e67befc02cd5d37dd70eae92b512b67d4dbb3826f2db6e572067fd4ba69cab413589bf909ec5c52e653f
7
+ data.tar.gz: cd70551d548a2f8ee873051964eb755f88036b100edebba0c3eef1faff8c6bafa615d355c170a45d9907fd0d614133e4b8d978ecc386c2bc65e96dc706b02164
@@ -0,0 +1,8 @@
1
+ ## 0.2.1
2
+
3
+ - fix Gemfile.lock
4
+
5
+ ## 0.2.0
6
+
7
+ - Internal refactorings. See #1, #2, #3. Thanks @ashmaroli!
8
+ - Bump dependencies. See #4, #5
@@ -1,33 +1,33 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jeql (0.1.2)
4
+ jeql (0.2.1)
5
5
  faraday
6
6
  jekyll (~> 3.7)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.5.2)
11
+ addressable (2.6.0)
12
12
  public_suffix (>= 2.0.2, < 4.0)
13
13
  colorator (1.1.0)
14
- concurrent-ruby (1.0.5)
14
+ concurrent-ruby (1.1.5)
15
15
  crack (0.4.3)
16
16
  safe_yaml (~> 1.0.0)
17
17
  diff-lcs (1.3)
18
18
  em-websocket (0.5.1)
19
19
  eventmachine (>= 0.12.9)
20
20
  http_parser.rb (~> 0.6.0)
21
- eventmachine (1.2.5)
22
- faraday (0.14.0)
21
+ eventmachine (1.2.7)
22
+ faraday (0.15.4)
23
23
  multipart-post (>= 1.2, < 3)
24
- ffi (1.9.23)
24
+ ffi (1.11.1)
25
25
  forwardable-extended (2.6.0)
26
26
  hashdiff (0.3.7)
27
27
  http_parser.rb (0.6.0)
28
28
  i18n (0.9.5)
29
29
  concurrent-ruby (~> 1.0)
30
- jekyll (3.7.2)
30
+ jekyll (3.8.5)
31
31
  addressable (~> 2.4)
32
32
  colorator (~> 1.0)
33
33
  em-websocket (~> 0.5)
@@ -42,24 +42,24 @@ GEM
42
42
  safe_yaml (~> 1.0)
43
43
  jekyll-sass-converter (1.5.2)
44
44
  sass (~> 3.4)
45
- jekyll-watch (2.0.0)
45
+ jekyll-watch (2.2.1)
46
46
  listen (~> 3.0)
47
- kramdown (1.16.2)
48
- liquid (4.0.0)
47
+ kramdown (1.17.0)
48
+ liquid (4.0.3)
49
49
  listen (3.1.5)
50
50
  rb-fsevent (~> 0.9, >= 0.9.4)
51
51
  rb-inotify (~> 0.9, >= 0.9.7)
52
52
  ruby_dep (~> 1.2)
53
53
  mercenary (0.3.6)
54
- multipart-post (2.0.0)
55
- pathutil (0.16.1)
54
+ multipart-post (2.1.1)
55
+ pathutil (0.16.2)
56
56
  forwardable-extended (~> 2.6)
57
- public_suffix (3.0.2)
57
+ public_suffix (3.0.3)
58
58
  rake (10.5.0)
59
59
  rb-fsevent (0.10.3)
60
- rb-inotify (0.9.10)
61
- ffi (>= 0.5.0, < 2)
62
- rouge (3.1.1)
60
+ rb-inotify (0.10.0)
61
+ ffi (~> 1.0)
62
+ rouge (3.3.0)
63
63
  rspec (3.7.0)
64
64
  rspec-core (~> 3.7.0)
65
65
  rspec-expectations (~> 3.7.0)
@@ -74,8 +74,8 @@ GEM
74
74
  rspec-support (~> 3.7.0)
75
75
  rspec-support (3.7.0)
76
76
  ruby_dep (1.5.0)
77
- safe_yaml (1.0.4)
78
- sass (3.5.6)
77
+ safe_yaml (1.0.5)
78
+ sass (3.7.4)
79
79
  sass-listen (~> 4.0.0)
80
80
  sass-listen (4.0.0)
81
81
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -96,4 +96,4 @@ DEPENDENCIES
96
96
  webmock
97
97
 
98
98
  BUNDLED WITH
99
- 1.16.1
99
+ 1.17.1
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # jeql [![Build Status](https://travis-ci.org/Crunch09/jeql.svg?branch=master)](https://travis-ci.org/Crunch09/jeql)
1
+ # jeql [![Build Status](https://travis-ci.org/Crunch09/jeql.svg?branch=master)](https://travis-ci.org/Crunch09/jeql) [![Gem Version](https://badge.fury.io/rb/jeql.svg)](https://badge.fury.io/rb/jeql)
2
2
 
3
3
  ## Installation
4
4
 
@@ -1,15 +1,15 @@
1
1
  class Jeql::GraphqlBlock < Liquid::Block
2
2
  GraphQlError = Class.new(Jekyll::Errors::FatalException)
3
+ PARAMS_SYNTAX = /(\w+):\s*['"](\w+)['"],?/
3
4
 
4
5
  def initialize(tag_name, text, tokens)
5
6
  super
6
- @params = text.strip.split(',').map(&:strip).map{|s| s.gsub(%r!['"]!, '').split(':').map(&:strip)}
7
+ @params = text.scan(PARAMS_SYNTAX)
7
8
  @text = text
8
9
  end
9
10
 
10
11
  def render(context)
11
- hash_params = {}
12
- @params.each {|k, v| hash_params[k] = v}
12
+ hash_params = Hash[@params]
13
13
 
14
14
  endpoint_config = context.registers[:site].config["jeql"][hash_params["endpoint"]]
15
15
  query = Jeql::Query.new(hash_params["query"], context.registers[:site].config["source"], endpoint_config)
@@ -1,3 +1,3 @@
1
1
  module Jeql
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Thomas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-03 00:00:00.000000000 Z
11
+ date: 2019-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -104,6 +104,7 @@ files:
104
104
  - ".gitignore"
105
105
  - ".rspec"
106
106
  - ".travis.yml"
107
+ - CHANGELOG.md
107
108
  - CODE_OF_CONDUCT.md
108
109
  - Gemfile
109
110
  - Gemfile.lock