raml_parser 0.2.4 → 0.2.5

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: d074e36aa23c0cfd4d78e459a64d209d436d2f8c
4
- data.tar.gz: 1de255edbdde7d2a9be2db0d878d26ea57f06d6f
3
+ metadata.gz: 8dd5ed4056f108b570112ed8ccc064ccb7815fb7
4
+ data.tar.gz: b712f9f4b00fbb8f7383458f6de7d4e90d0f57aa
5
5
  SHA512:
6
- metadata.gz: cb1fab8fec64fbe91ddc5cec4c817f1a7287e18b664fadb2e695d3297e519eec410902875a8be4c2362e4dad4753923008b8f31982e1c1238979e8221ff16878
7
- data.tar.gz: b540194a6fb42ab39b6e52639d09c460dfd5be4636bf0c2da639adec0c3006258710249bfe05369f44e8707b538384e81896d1249d762a5c535cea309403f310
6
+ metadata.gz: f67fd8783f4d1ed24a1dddaa61c57bfbc397d7fc85c12fbc6de86c16f4944ff44ed256ab309adab41bd87414bbbbebe3054f65ce70ea200ca7f3fd2185cf52b3
7
+ data.tar.gz: 86ccbda6beb3d0f7d9cd5e3571f1db89680676305c2f1fd2268e5bbd8b45ee04e5b6e7b31e2eb0eb31ee48613d96d89d95eede9b754556bee08fc95b383509cd
@@ -22,7 +22,7 @@ module RamlParser
22
22
 
23
23
  query_parameters = map_nonempty(render_query_parameters(method.query_parameters.values)) { |s| '?' + s }
24
24
  js_content_type = map_nonempty(method.bodies.values.first) { |b| "xhr.setRequestHeader('Accept', '#{b.media_type}');\n" } || ''
25
- data = map_nonempty(method.bodies.values.first) { |b| (b.example || '').chop }
25
+ data = map_nonempty(method.bodies.values.first) { |b| (b.example || '').chomp }
26
26
 
27
27
  result = "var xhr = new XMLHttpRequest();\n"
28
28
  result += "xhr.open('#{method.method.upcase}', '#{resource.absolute_uri + query_parameters}', true);\n"
@@ -42,7 +42,7 @@ module RamlParser
42
42
  query_parameters = map_nonempty(render_query_parameters(method.query_parameters.values)) { |s| '?' + s } || ''
43
43
  uri = "#{resource.absolute_uri}#{query_parameters}"
44
44
 
45
- data = map_nonempty(method.bodies.values.first) { |b| b.example.chop }
45
+ data = map_nonempty(method.bodies.values.first) { |b| b.example.chomp }
46
46
  headers = { 'Accept' => map_nonempty(method.bodies.values.first) { |b| b.media_type } }
47
47
  headers = headers.delete_if {|key, value| value.nil? }
48
48
 
@@ -1,3 +1,3 @@
1
1
  module RamlParser
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raml_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Hoffmeister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-13 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.7'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 3.2.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 3.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: activesupport
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 4.0.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 4.0.0
69
69
  description: ''
@@ -73,9 +73,9 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
77
- - .rspec
78
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
79
79
  - Gemfile
80
80
  - LICENSE.txt
81
81
  - README.md
@@ -163,17 +163,17 @@ require_paths:
163
163
  - lib
164
164
  required_ruby_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - '>='
166
+ - - ">="
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.4.6
176
+ rubygems_version: 2.4.8
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: A parser for the RAML API modeling language.