jekyll-ramler 0.0.7 → 0.0.8

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: 0d668fb1022f6cb3700db26e4dd935fa746f63f9
4
- data.tar.gz: 64a617df40cdd668a128867b2846ee32e058e510
3
+ metadata.gz: d88fe73f27e482546009e28c3810e92241f3f4cc
4
+ data.tar.gz: 5ac90aac06f9a6619476b8a93e3b5e5d87058835
5
5
  SHA512:
6
- metadata.gz: fafd7d5467c72fbee707c63b9be5827a9c07d6ab263f4506ee2249552c6f95704a2bdc3a3cf6a7d2380a1e7b8e6b12f7318a9f57950e0693d36a3c3dcb2a8eef
7
- data.tar.gz: b970d476f50ec64b0c15a0c86453ee7b50d1bf6190cafb61cf7581e4400e01edcc5b8cb9e5a59a2901362bcf9997081cffa71afaad42425696a3ac5094b709fd
6
+ metadata.gz: 9c678821956ee4d4a7733c06ca1f8146577e8e31f947a14d77361cfc7c55c4aae8615fc01dfb4409ecf6b2950d32001a308acd1f7063a25f1ca7c9bc7a12a364
7
+ data.tar.gz: d7fe7d672443830ae9c667ec65bde92fbc6280b6e2ac34305ce987cc8b4c1c6c318ab23a49269088fd84404cfc623e287537d458b2ce8140184cf5caf318ad79
data/CHANGELOG CHANGED
@@ -3,6 +3,15 @@ CHANGELOG
3
3
 
4
4
  This project does *not* adhere to Semantic Versioning
5
5
 
6
+ ## 0.0.8 - 2015-02-25
7
+
8
+ ### Fixed
9
+
10
+ - Newlines are no longer removed in descriptions in JSON Schema, maintaining
11
+ ability to transform via Markdown
12
+ - Fixed bug that could cause changes to JSON Schema to also appear in hash of
13
+ x-www-form-urlencoded formParameters
14
+
6
15
  ## 0.0.7 - 2015-02-25
7
16
 
8
17
  ### Added
data/Gemfile CHANGED
@@ -7,5 +7,4 @@ group :test, :development do
7
7
  gem 'pry'
8
8
  gem 'rspec'
9
9
  gem 'rspec-mocks'
10
- gem 'ruby_deep_clone'
11
10
  end
data/Gemfile.lock CHANGED
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-ramler (0.0.7)
4
+ jekyll-ramler (0.0.8)
5
5
  jekyll
6
+ ruby_deep_clone
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
@@ -101,4 +102,3 @@ DEPENDENCIES
101
102
  pry
102
103
  rspec
103
104
  rspec-mocks
104
- ruby_deep_clone
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jekyll-ramler'
3
- s.version = '0.0.7'
3
+ s.version = '0.0.8'
4
4
  s.date = '2015-02-09'
5
5
  s.authors = ['GovDelivery']
6
6
  s.email = 'support@govdelivery.com'
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
11
11
  resource documentation specificed in a RAML file.}
12
12
 
13
13
  s.add_runtime_dependency 'jekyll'
14
+ s.add_runtime_dependency 'ruby_deep_clone'
14
15
 
15
16
  s.files = `git ls-files`.split($\)
16
17
  s.require_paths = ['lib']
data/lib/utils.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'json'
2
+ require 'deep_clone'
2
3
 
3
4
  module Jekyll
4
5
  def self.get_dir(page_type, config)
@@ -6,11 +7,14 @@ module Jekyll
6
7
  end
7
8
 
8
9
  def self.sanatize_json_string(s)
9
- strip_newlines(s)
10
+ # This use to do something. Hopefully someday it will do something again
11
+ # See strip_newlines
12
+ s
10
13
  end
11
14
 
12
15
  def self.strip_newlines(s)
13
16
  # Assuming Markdown, so do NOT remove consecutive newlines
17
+ # TODO Also do not remove newlines at end of list items
14
18
  regex = /([^\n])\n([^\n])/
15
19
  s.gsub(regex, '\1 \2').strip
16
20
  end
@@ -69,7 +73,7 @@ module Jekyll
69
73
  schema_hash['type'] = 'object'
70
74
 
71
75
  required_properties = []
72
- schema_hash['properties'] = obj['body']['application/x-www-form-urlencoded']['formParameters'].dup
76
+ schema_hash['properties'] = DeepClone.clone obj['body']['application/x-www-form-urlencoded']['formParameters']
73
77
  schema_hash['properties'].each do |name, param|
74
78
  if param.include?('required')
75
79
  required_properties << name if param['required'] == true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-ramler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - GovDelivery
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: ruby_deep_clone
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description: "Generates Jekyll pages for overview, security, and \n resource
28
42
  documentation specificed in a RAML file."
29
43
  email: support@govdelivery.com