jekyll-attendease 0.6.19 → 0.6.20.pre

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: 83f1d5b49b049a530c6a11aaf21e679897669068
4
- data.tar.gz: 1a4c061946be832b8180db8603567c6a53e9e367
3
+ metadata.gz: 7077ce21c625283d77c643af1cb4bc9da7c5239b
4
+ data.tar.gz: d6e835a9c71c840fef90b6cde91c6ca51fd218f3
5
5
  SHA512:
6
- metadata.gz: ad035298d9050cadbb90714b4d4edbb456781153fef96100fb482284fa568f8e809a8b6ad8273a250378f026af3235496bbe75910438a8c3535bc006e272c18e
7
- data.tar.gz: 1a08b05016e66b507a3cd3c23dec41cee770a7aabaa102103b61fd56dd4ed241dcfed5149d5bcf297cb374f0aa717ef9586dbe6f427c3f8929c4e9adc8d09270
6
+ metadata.gz: 53875906a7fff83263d683bbe649350a60f908413f2ed3edfb87807f5be848336bd016ed45bbe35b1930e962c4077640762e65f56e2471e3200962cdbca151bd
7
+ data.tar.gz: 806482664bb35044c967d7d54f726db001e93e3fa27e656fe6866e0eeb34e06e4fedb8acb119f0cf56060850beb851d9c384a9898afea671b6e6944b66ae9431
@@ -68,7 +68,7 @@ module Jekyll
68
68
  options.merge!(:headers => {'X-Event-Token' => @attendease_config['access_token']}) if @attendease_config['access_token']
69
69
 
70
70
  request_filename = file_name.gsub(/yml$/, 'yaml')
71
- response = get("#{@attendease_config['api_host']}api/#{request_filename}", options)
71
+ response = get("#{@attendease_config['api_host']}api/#{request_filename}?meta=true", options)
72
72
 
73
73
  #if (file_name.match(/yaml$/) || data.is_a?(Hash) && !data['error']) || data.is_a?(Array)
74
74
  if (!response.nil? && response.response.is_a?(Net::HTTPOK))
@@ -4,9 +4,20 @@ module Jekyll
4
4
  def slugify(string)
5
5
  Helpers.parameterize(string, '_')
6
6
  end
7
+
7
8
  def json(obj)
8
9
  obj.to_json
9
10
  end
11
+
12
+ def safe_json(obj)
13
+ obj = obj.to_json
14
+ obj.gsub!(/[^\x00-\x7F]/,'') # escape non-ascii
15
+ obj.gsub!(/\\[nrt]/,'') # escape multiline
16
+ obj.gsub!('\"','escaped-quotes') # escape content quotes I
17
+ obj.gsub!('"','\"') # escape quoting quotes
18
+ obj.gsub!('escaped-quotes','\\\\\\\\\"') # escape content quotes II
19
+ obj
20
+ end
10
21
  end
11
22
  end
12
23
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AttendeasePlugin
3
- VERSION = '0.6.19'
3
+ VERSION = '0.6.20.pre'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-attendease
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.19
4
+ version: 0.6.20.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Wood
@@ -210,12 +210,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
210
  version: '0'
211
211
  required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ">="
213
+ - - ">"
214
214
  - !ruby/object:Gem::Version
215
- version: '0'
215
+ version: 1.3.1
216
216
  requirements: []
217
217
  rubyforge_project:
218
- rubygems_version: 2.2.3
218
+ rubygems_version: 2.4.8
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: Attendease event helper for Jekyll