jekyll-ramler 0.0.7 → 0.0.8
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/CHANGELOG +9 -0
- data/Gemfile +0 -1
- data/Gemfile.lock +2 -2
- data/jekyll-ramler.gemspec +2 -1
- data/lib/utils.rb +6 -2
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d88fe73f27e482546009e28c3810e92241f3f4cc
|
4
|
+
data.tar.gz: 5ac90aac06f9a6619476b8a93e3b5e5d87058835
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/Gemfile.lock
CHANGED
data/jekyll-ramler.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'jekyll-ramler'
|
3
|
-
s.version = '0.0.
|
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
|
-
|
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']
|
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.
|
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
|