graphql-persisted_documents 0.1.0 → 0.2.0

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.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +9 -114
  4. data/Rakefile +37 -2
  5. data/app/controllers/graphql/persisted_documents/application_controller.rb +6 -0
  6. data/app/controllers/graphql/persisted_documents/persisted_documents_controller.rb +36 -0
  7. data/config/routes.rb +3 -0
  8. data/lib/graphql/persisted_documents/engine.rb +11 -0
  9. data/lib/graphql/persisted_documents/persister.rb +7 -6
  10. data/lib/graphql/persisted_documents/version.rb +1 -1
  11. data/lib/graphql/persisted_documents.rb +1 -4
  12. data/lib/tasks/graphql/persisted_documents_tasks.rake +4 -0
  13. data/spec/controllers/persisted_documents_controller_spec.rb +85 -0
  14. data/spec/dummy/Rakefile +6 -0
  15. data/spec/dummy/app/assets/config/manifest.js +5 -0
  16. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  17. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  18. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  19. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  20. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  21. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  22. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  23. data/spec/dummy/app/jobs/application_job.rb +2 -0
  24. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  25. data/spec/dummy/app/models/application_record.rb +3 -0
  26. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  27. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  28. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  29. data/spec/dummy/bin/bundle +3 -0
  30. data/spec/dummy/bin/rails +4 -0
  31. data/spec/dummy/bin/rake +4 -0
  32. data/spec/dummy/bin/setup +34 -0
  33. data/spec/dummy/bin/update +29 -0
  34. data/spec/dummy/config/application.rb +15 -0
  35. data/spec/dummy/config/boot.rb +5 -0
  36. data/spec/dummy/config/cable.yml +9 -0
  37. data/spec/dummy/config/database.yml +25 -0
  38. data/spec/dummy/config/environment.rb +5 -0
  39. data/spec/dummy/config/environments/development.rb +54 -0
  40. data/spec/dummy/config/environments/production.rb +86 -0
  41. data/spec/dummy/config/environments/test.rb +42 -0
  42. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  43. data/spec/dummy/config/initializers/assets.rb +11 -0
  44. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  45. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  46. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  47. data/spec/dummy/config/initializers/inflections.rb +16 -0
  48. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  49. data/spec/dummy/config/initializers/new_framework_defaults.rb +24 -0
  50. data/spec/dummy/config/initializers/session_store.rb +3 -0
  51. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  52. data/spec/dummy/config/locales/en.yml +23 -0
  53. data/spec/dummy/config/puma.rb +47 -0
  54. data/spec/dummy/config/routes.rb +3 -0
  55. data/spec/dummy/config/secrets.yml +22 -0
  56. data/spec/dummy/config/spring.rb +6 -0
  57. data/spec/dummy/config.ru +5 -0
  58. data/spec/dummy/db/test.sqlite3 +0 -0
  59. data/spec/dummy/log/test.log +203 -0
  60. data/spec/dummy/public/404.html +67 -0
  61. data/spec/dummy/public/422.html +67 -0
  62. data/spec/dummy/public/500.html +66 -0
  63. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  64. data/spec/dummy/public/apple-touch-icon.png +0 -0
  65. data/spec/dummy/public/favicon.ico +0 -0
  66. data/spec/rails_helper.rb +15 -0
  67. data/spec/spec_helper.rb +10 -0
  68. data/spec/support/test_schema.rb +11 -0
  69. metadata +147 -51
  70. data/.gitignore +0 -9
  71. data/CODE_OF_CONDUCT.md +0 -49
  72. data/Gemfile +0 -4
  73. data/LICENSE.txt +0 -21
  74. data/bin/console +0 -14
  75. data/bin/setup +0 -8
  76. data/graphql-persisted_documents.gemspec +0 -28
  77. data/lib/graphql/persisted_documents/rack.rb +0 -47
metadata CHANGED
@@ -1,106 +1,145 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-persisted_documents
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Marc-Andre Giroux
7
+ - xuorig
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-30 00:00:00.000000000 Z
11
+ date: 2016-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: graphql
14
+ name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.17.2
19
+ version: '5.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 5.0.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: 0.17.2
27
- - !ruby/object:Gem::Dependency
28
- name: rspec
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 3.5.0
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
29
+ version: '5.0'
30
+ - - ">="
39
31
  - !ruby/object:Gem::Version
40
- version: 3.5.0
32
+ version: 5.0.0
41
33
  - !ruby/object:Gem::Dependency
42
- name: bundler
34
+ name: graphql
43
35
  requirement: !ruby/object:Gem::Requirement
44
36
  requirements:
45
37
  - - "~>"
46
38
  - !ruby/object:Gem::Version
47
- version: '1.11'
48
- type: :development
39
+ version: 0.17.0
40
+ type: :runtime
49
41
  prerelease: false
50
42
  version_requirements: !ruby/object:Gem::Requirement
51
43
  requirements:
52
44
  - - "~>"
53
45
  - !ruby/object:Gem::Version
54
- version: '1.11'
46
+ version: 0.17.0
55
47
  - !ruby/object:Gem::Dependency
56
- name: rack-test
48
+ name: rspec-rails
57
49
  requirement: !ruby/object:Gem::Requirement
58
50
  requirements:
59
51
  - - "~>"
60
52
  - !ruby/object:Gem::Version
61
- version: 0.6.3
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 0.6.3
69
- - !ruby/object:Gem::Dependency
70
- name: rake
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
53
+ version: 3.5.0
54
+ - - ">="
74
55
  - !ruby/object:Gem::Version
75
- version: '10.0'
56
+ version: 3.5.0
76
57
  type: :development
77
58
  prerelease: false
78
59
  version_requirements: !ruby/object:Gem::Requirement
79
60
  requirements:
80
61
  - - "~>"
81
62
  - !ruby/object:Gem::Version
82
- version: '10.0'
83
- description: Rack middleware enabling an endpoint to persist GraphQL documents
63
+ version: 3.5.0
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 3.5.0
67
+ description: Rails Engine enabling an endpoint to persist GraphQL documents and retrieve
68
+ a unique id
84
69
  email:
85
70
  - mgiroux0@gmail.com
86
71
  executables: []
87
72
  extensions: []
88
73
  extra_rdoc_files: []
89
74
  files:
90
- - ".gitignore"
91
- - CODE_OF_CONDUCT.md
92
- - Gemfile
93
- - LICENSE.txt
75
+ - MIT-LICENSE
94
76
  - README.md
95
77
  - Rakefile
96
- - bin/console
97
- - bin/setup
98
- - graphql-persisted_documents.gemspec
78
+ - app/controllers/graphql/persisted_documents/application_controller.rb
79
+ - app/controllers/graphql/persisted_documents/persisted_documents_controller.rb
80
+ - config/routes.rb
99
81
  - lib/graphql/persisted_documents.rb
100
82
  - lib/graphql/persisted_documents/configuration.rb
83
+ - lib/graphql/persisted_documents/engine.rb
101
84
  - lib/graphql/persisted_documents/persister.rb
102
- - lib/graphql/persisted_documents/rack.rb
103
85
  - lib/graphql/persisted_documents/version.rb
86
+ - lib/tasks/graphql/persisted_documents_tasks.rake
87
+ - spec/controllers/persisted_documents_controller_spec.rb
88
+ - spec/dummy/Rakefile
89
+ - spec/dummy/app/assets/config/manifest.js
90
+ - spec/dummy/app/assets/javascripts/application.js
91
+ - spec/dummy/app/assets/javascripts/cable.js
92
+ - spec/dummy/app/assets/stylesheets/application.css
93
+ - spec/dummy/app/channels/application_cable/channel.rb
94
+ - spec/dummy/app/channels/application_cable/connection.rb
95
+ - spec/dummy/app/controllers/application_controller.rb
96
+ - spec/dummy/app/helpers/application_helper.rb
97
+ - spec/dummy/app/jobs/application_job.rb
98
+ - spec/dummy/app/mailers/application_mailer.rb
99
+ - spec/dummy/app/models/application_record.rb
100
+ - spec/dummy/app/views/layouts/application.html.erb
101
+ - spec/dummy/app/views/layouts/mailer.html.erb
102
+ - spec/dummy/app/views/layouts/mailer.text.erb
103
+ - spec/dummy/bin/bundle
104
+ - spec/dummy/bin/rails
105
+ - spec/dummy/bin/rake
106
+ - spec/dummy/bin/setup
107
+ - spec/dummy/bin/update
108
+ - spec/dummy/config.ru
109
+ - spec/dummy/config/application.rb
110
+ - spec/dummy/config/boot.rb
111
+ - spec/dummy/config/cable.yml
112
+ - spec/dummy/config/database.yml
113
+ - spec/dummy/config/environment.rb
114
+ - spec/dummy/config/environments/development.rb
115
+ - spec/dummy/config/environments/production.rb
116
+ - spec/dummy/config/environments/test.rb
117
+ - spec/dummy/config/initializers/application_controller_renderer.rb
118
+ - spec/dummy/config/initializers/assets.rb
119
+ - spec/dummy/config/initializers/backtrace_silencers.rb
120
+ - spec/dummy/config/initializers/cookies_serializer.rb
121
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
122
+ - spec/dummy/config/initializers/inflections.rb
123
+ - spec/dummy/config/initializers/mime_types.rb
124
+ - spec/dummy/config/initializers/new_framework_defaults.rb
125
+ - spec/dummy/config/initializers/session_store.rb
126
+ - spec/dummy/config/initializers/wrap_parameters.rb
127
+ - spec/dummy/config/locales/en.yml
128
+ - spec/dummy/config/puma.rb
129
+ - spec/dummy/config/routes.rb
130
+ - spec/dummy/config/secrets.yml
131
+ - spec/dummy/config/spring.rb
132
+ - spec/dummy/db/test.sqlite3
133
+ - spec/dummy/log/test.log
134
+ - spec/dummy/public/404.html
135
+ - spec/dummy/public/422.html
136
+ - spec/dummy/public/500.html
137
+ - spec/dummy/public/apple-touch-icon-precomposed.png
138
+ - spec/dummy/public/apple-touch-icon.png
139
+ - spec/dummy/public/favicon.ico
140
+ - spec/rails_helper.rb
141
+ - spec/spec_helper.rb
142
+ - spec/support/test_schema.rb
104
143
  homepage: http://mgiroux.me
105
144
  licenses:
106
145
  - MIT
@@ -124,5 +163,62 @@ rubyforge_project:
124
163
  rubygems_version: 2.5.1
125
164
  signing_key:
126
165
  specification_version: 4
127
- summary: Persisted GraphQL documents for Rack applications
128
- test_files: []
166
+ summary: Rails Engine enabling an endpoint to persist GraphQL documents and retrieve
167
+ a unique id
168
+ test_files:
169
+ - spec/controllers/persisted_documents_controller_spec.rb
170
+ - spec/dummy/app/assets/config/manifest.js
171
+ - spec/dummy/app/assets/javascripts/application.js
172
+ - spec/dummy/app/assets/javascripts/cable.js
173
+ - spec/dummy/app/assets/stylesheets/application.css
174
+ - spec/dummy/app/channels/application_cable/channel.rb
175
+ - spec/dummy/app/channels/application_cable/connection.rb
176
+ - spec/dummy/app/controllers/application_controller.rb
177
+ - spec/dummy/app/helpers/application_helper.rb
178
+ - spec/dummy/app/jobs/application_job.rb
179
+ - spec/dummy/app/mailers/application_mailer.rb
180
+ - spec/dummy/app/models/application_record.rb
181
+ - spec/dummy/app/views/layouts/application.html.erb
182
+ - spec/dummy/app/views/layouts/mailer.html.erb
183
+ - spec/dummy/app/views/layouts/mailer.text.erb
184
+ - spec/dummy/bin/bundle
185
+ - spec/dummy/bin/rails
186
+ - spec/dummy/bin/rake
187
+ - spec/dummy/bin/setup
188
+ - spec/dummy/bin/update
189
+ - spec/dummy/config/application.rb
190
+ - spec/dummy/config/boot.rb
191
+ - spec/dummy/config/cable.yml
192
+ - spec/dummy/config/database.yml
193
+ - spec/dummy/config/environment.rb
194
+ - spec/dummy/config/environments/development.rb
195
+ - spec/dummy/config/environments/production.rb
196
+ - spec/dummy/config/environments/test.rb
197
+ - spec/dummy/config/initializers/application_controller_renderer.rb
198
+ - spec/dummy/config/initializers/assets.rb
199
+ - spec/dummy/config/initializers/backtrace_silencers.rb
200
+ - spec/dummy/config/initializers/cookies_serializer.rb
201
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
202
+ - spec/dummy/config/initializers/inflections.rb
203
+ - spec/dummy/config/initializers/mime_types.rb
204
+ - spec/dummy/config/initializers/new_framework_defaults.rb
205
+ - spec/dummy/config/initializers/session_store.rb
206
+ - spec/dummy/config/initializers/wrap_parameters.rb
207
+ - spec/dummy/config/locales/en.yml
208
+ - spec/dummy/config/puma.rb
209
+ - spec/dummy/config/routes.rb
210
+ - spec/dummy/config/secrets.yml
211
+ - spec/dummy/config/spring.rb
212
+ - spec/dummy/config.ru
213
+ - spec/dummy/db/test.sqlite3
214
+ - spec/dummy/log/test.log
215
+ - spec/dummy/public/404.html
216
+ - spec/dummy/public/422.html
217
+ - spec/dummy/public/500.html
218
+ - spec/dummy/public/apple-touch-icon-precomposed.png
219
+ - spec/dummy/public/apple-touch-icon.png
220
+ - spec/dummy/public/favicon.ico
221
+ - spec/dummy/Rakefile
222
+ - spec/rails_helper.rb
223
+ - spec/spec_helper.rb
224
+ - spec/support/test_schema.rb
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
data/CODE_OF_CONDUCT.md DELETED
@@ -1,49 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, and in the interest of
4
- fostering an open and welcoming community, we pledge to respect all people who
5
- contribute through reporting issues, posting feature requests, updating
6
- documentation, submitting pull requests or patches, and other activities.
7
-
8
- We are committed to making participation in this project a harassment-free
9
- experience for everyone, regardless of level of experience, gender, gender
10
- identity and expression, sexual orientation, disability, personal appearance,
11
- body size, race, ethnicity, age, religion, or nationality.
12
-
13
- Examples of unacceptable behavior by participants include:
14
-
15
- * The use of sexualized language or imagery
16
- * Personal attacks
17
- * Trolling or insulting/derogatory comments
18
- * Public or private harassment
19
- * Publishing other's private information, such as physical or electronic
20
- addresses, without explicit permission
21
- * Other unethical or unprofessional conduct
22
-
23
- Project maintainers have the right and responsibility to remove, edit, or
24
- reject comments, commits, code, wiki edits, issues, and other contributions
25
- that are not aligned to this Code of Conduct, or to ban temporarily or
26
- permanently any contributor for other behaviors that they deem inappropriate,
27
- threatening, offensive, or harmful.
28
-
29
- By adopting this Code of Conduct, project maintainers commit themselves to
30
- fairly and consistently applying these principles to every aspect of managing
31
- this project. Project maintainers who do not follow or enforce the Code of
32
- Conduct may be permanently removed from the project team.
33
-
34
- This code of conduct applies both within project spaces and in public spaces
35
- when an individual is representing the project or its community.
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
- reported by contacting a project maintainer at mgiroux0@gmail.com. All
39
- complaints will be reviewed and investigated and will result in a response that
40
- is deemed necessary and appropriate to the circumstances. Maintainers are
41
- obligated to maintain confidentiality with regard to the reporter of an
42
- incident.
43
-
44
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
- version 1.3.0, available at
46
- [http://contributor-covenant.org/version/1/3/0/][version]
47
-
48
- [homepage]: http://contributor-covenant.org
49
- [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in graphql-persisted_documents.gemspec
4
- gemspec
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 TODO: Write your name
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "graphql/persisted_documents"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,28 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'graphql/persisted_documents/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "graphql-persisted_documents"
8
- spec.version = Graphql::PersistedDocuments::VERSION
9
- spec.authors = ["Marc-Andre Giroux"]
10
- spec.email = ["mgiroux0@gmail.com"]
11
-
12
- spec.summary = %q{Persisted GraphQL documents for Rack applications}
13
- spec.description = %q{Rack middleware enabling an endpoint to persist GraphQL documents}
14
- spec.homepage = "http://mgiroux.me"
15
- spec.license = "MIT"
16
-
17
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
- spec.bindir = "exe"
19
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
- spec.require_paths = ["lib"]
21
-
22
- spec.add_runtime_dependency "graphql", "~> 0.17.2"
23
-
24
- spec.add_development_dependency "rspec", "~> 3.5.0"
25
- spec.add_development_dependency "bundler", "~> 1.11"
26
- spec.add_development_dependency "rack-test", "~> 0.6.3"
27
- spec.add_development_dependency "rake", "~> 10.0"
28
- end
@@ -1,47 +0,0 @@
1
- module Graphql
2
- module PersistedDocuments
3
- class Rack
4
- def initialize(app)
5
- @app = app
6
- end
7
-
8
- def call(env)
9
- if env['PATH_INFO'] == PersistedDocuments.configuration.path
10
- request = ::Rack::Request.new(env)
11
- document = request.params['document']
12
-
13
- unless document
14
- return error_response(422, ['Missing required argument document'])
15
- end
16
-
17
- persister = Persister.new(document)
18
- document_id = persister.persist!
19
-
20
- [
21
- '200',
22
- {'Content-Type' => 'application/json'},
23
- [ { document_id: document_id }.to_json ]
24
- ]
25
- else
26
- @app.call(env)
27
- end
28
- rescue Persister::ParseError
29
- error_response(422, ['Unable to parse document'])
30
- rescue Persister::InvalidDocument
31
- error_response(422, persister.errors)
32
- rescue Persister::MissingPersistValidatedDocument
33
- error_response(400, ['persist_validated_document must be defined in config'])
34
- end
35
-
36
- private
37
-
38
- def error_response(code, errors)
39
- [
40
- code,
41
- {'Content-Type' => 'application/json'},
42
- [ { errors: errors }.to_json ]
43
- ]
44
- end
45
- end
46
- end
47
- end