language_server-protocol 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -1
  3. data/README.md +2 -0
  4. data/bin/m +17 -0
  5. data/language_server-protocol.gemspec +1 -0
  6. data/lib/language_server/protocol/interface/apply_workspace_edit_params.rb +5 -1
  7. data/lib/language_server/protocol/interface/apply_workspace_edit_response.rb +5 -1
  8. data/lib/language_server/protocol/interface/cancel_params.rb +5 -1
  9. data/lib/language_server/protocol/interface/client_capabilities.rb +5 -1
  10. data/lib/language_server/protocol/interface/code_action_context.rb +5 -1
  11. data/lib/language_server/protocol/interface/code_action_params.rb +5 -1
  12. data/lib/language_server/protocol/interface/code_lens.rb +5 -1
  13. data/lib/language_server/protocol/interface/code_lens_options.rb +5 -1
  14. data/lib/language_server/protocol/interface/code_lens_params.rb +5 -1
  15. data/lib/language_server/protocol/interface/code_lens_registration_options.rb +5 -1
  16. data/lib/language_server/protocol/interface/command.rb +5 -1
  17. data/lib/language_server/protocol/interface/completion_item.rb +5 -1
  18. data/lib/language_server/protocol/interface/completion_list.rb +5 -1
  19. data/lib/language_server/protocol/interface/completion_options.rb +5 -1
  20. data/lib/language_server/protocol/interface/completion_registration_options.rb +5 -1
  21. data/lib/language_server/protocol/interface/diagnostic.rb +5 -1
  22. data/lib/language_server/protocol/interface/did_change_configuration_params.rb +5 -1
  23. data/lib/language_server/protocol/interface/did_change_text_document_params.rb +5 -1
  24. data/lib/language_server/protocol/interface/did_change_watched_files_params.rb +5 -1
  25. data/lib/language_server/protocol/interface/did_close_text_document_params.rb +5 -1
  26. data/lib/language_server/protocol/interface/did_open_text_document_params.rb +5 -1
  27. data/lib/language_server/protocol/interface/did_save_text_document_params.rb +5 -1
  28. data/lib/language_server/protocol/interface/document_filter.rb +5 -1
  29. data/lib/language_server/protocol/interface/document_formatting_params.rb +5 -1
  30. data/lib/language_server/protocol/interface/document_highlight.rb +5 -1
  31. data/lib/language_server/protocol/interface/document_link.rb +5 -1
  32. data/lib/language_server/protocol/interface/document_link_options.rb +5 -1
  33. data/lib/language_server/protocol/interface/document_link_params.rb +5 -1
  34. data/lib/language_server/protocol/interface/document_link_registration_options.rb +5 -1
  35. data/lib/language_server/protocol/interface/document_on_type_formatting_options.rb +5 -1
  36. data/lib/language_server/protocol/interface/document_on_type_formatting_params.rb +5 -1
  37. data/lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb +5 -1
  38. data/lib/language_server/protocol/interface/document_range_formatting_params.rb +5 -1
  39. data/lib/language_server/protocol/interface/document_symbol_params.rb +5 -1
  40. data/lib/language_server/protocol/interface/execute_command_options.rb +5 -1
  41. data/lib/language_server/protocol/interface/execute_command_params.rb +5 -1
  42. data/lib/language_server/protocol/interface/execute_command_registration_options.rb +5 -1
  43. data/lib/language_server/protocol/interface/file_event.rb +5 -1
  44. data/lib/language_server/protocol/interface/formatting_options.rb +5 -1
  45. data/lib/language_server/protocol/interface/hover.rb +5 -1
  46. data/lib/language_server/protocol/interface/initialize_error.rb +5 -1
  47. data/lib/language_server/protocol/interface/initialize_params.rb +5 -1
  48. data/lib/language_server/protocol/interface/initialize_result.rb +5 -1
  49. data/lib/language_server/protocol/interface/location.rb +5 -1
  50. data/lib/language_server/protocol/interface/log_message_params.rb +5 -1
  51. data/lib/language_server/protocol/interface/message.rb +5 -1
  52. data/lib/language_server/protocol/interface/message_action_item.rb +5 -1
  53. data/lib/language_server/protocol/interface/notification_message.rb +5 -1
  54. data/lib/language_server/protocol/interface/parameter_information.rb +5 -1
  55. data/lib/language_server/protocol/interface/position.rb +5 -1
  56. data/lib/language_server/protocol/interface/publish_diagnostics_params.rb +5 -1
  57. data/lib/language_server/protocol/interface/range.rb +5 -1
  58. data/lib/language_server/protocol/interface/reference_context.rb +5 -1
  59. data/lib/language_server/protocol/interface/reference_params.rb +5 -1
  60. data/lib/language_server/protocol/interface/registration.rb +5 -1
  61. data/lib/language_server/protocol/interface/registration_params.rb +5 -1
  62. data/lib/language_server/protocol/interface/rename_params.rb +5 -1
  63. data/lib/language_server/protocol/interface/request_message.rb +5 -1
  64. data/lib/language_server/protocol/interface/response_error.rb +5 -1
  65. data/lib/language_server/protocol/interface/response_message.rb +5 -1
  66. data/lib/language_server/protocol/interface/save_options.rb +5 -1
  67. data/lib/language_server/protocol/interface/server_capabilities.rb +5 -1
  68. data/lib/language_server/protocol/interface/show_message_params.rb +5 -1
  69. data/lib/language_server/protocol/interface/show_message_request_params.rb +5 -1
  70. data/lib/language_server/protocol/interface/signature_help.rb +5 -1
  71. data/lib/language_server/protocol/interface/signature_help_options.rb +5 -1
  72. data/lib/language_server/protocol/interface/signature_help_registration_options.rb +5 -1
  73. data/lib/language_server/protocol/interface/signature_information.rb +5 -1
  74. data/lib/language_server/protocol/interface/symbol_information.rb +5 -1
  75. data/lib/language_server/protocol/interface/text_document_change_registration_options.rb +5 -1
  76. data/lib/language_server/protocol/interface/text_document_client_capabilities.rb +5 -1
  77. data/lib/language_server/protocol/interface/text_document_content_change_event.rb +5 -1
  78. data/lib/language_server/protocol/interface/text_document_edit.rb +5 -1
  79. data/lib/language_server/protocol/interface/text_document_identifier.rb +5 -1
  80. data/lib/language_server/protocol/interface/text_document_item.rb +5 -1
  81. data/lib/language_server/protocol/interface/text_document_position_params.rb +5 -1
  82. data/lib/language_server/protocol/interface/text_document_registration_options.rb +5 -1
  83. data/lib/language_server/protocol/interface/text_document_save_registration_options.rb +5 -1
  84. data/lib/language_server/protocol/interface/text_document_sync_options.rb +5 -1
  85. data/lib/language_server/protocol/interface/text_edit.rb +5 -1
  86. data/lib/language_server/protocol/interface/unregistration.rb +5 -1
  87. data/lib/language_server/protocol/interface/unregistration_params.rb +5 -1
  88. data/lib/language_server/protocol/interface/versioned_text_document_identifier.rb +5 -1
  89. data/lib/language_server/protocol/interface/will_save_text_document_params.rb +5 -1
  90. data/lib/language_server/protocol/interface/workspace_client_capabilites.rb +5 -1
  91. data/lib/language_server/protocol/interface/workspace_edit.rb +5 -1
  92. data/lib/language_server/protocol/interface/workspace_symbol_params.rb +5 -1
  93. data/lib/language_server/protocol/version.rb +1 -1
  94. data/scripts/generateFiles.ts +5 -1
  95. metadata +17 -2
@@ -31,8 +31,12 @@ module LanguageServer
31
31
 
32
32
  attr_reader :attributes
33
33
 
34
+ def to_hash
35
+ attributes
36
+ end
37
+
34
38
  def to_json(*args)
35
- attributes.to_json(*args)
39
+ to_hash.to_json(*args)
36
40
  end
37
41
  end
38
42
  end
@@ -23,8 +23,12 @@ module LanguageServer
23
23
 
24
24
  attr_reader :attributes
25
25
 
26
+ def to_hash
27
+ attributes
28
+ end
29
+
26
30
  def to_json(*args)
27
- attributes.to_json(*args)
31
+ to_hash.to_json(*args)
28
32
  end
29
33
  end
30
34
  end
@@ -1,5 +1,5 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
@@ -177,8 +177,12 @@ module LanguageServer
177
177
 
178
178
  attr_reader :attributes
179
179
 
180
+ def to_hash
181
+ attributes
182
+ end
183
+
180
184
  def to_json(*args)
181
- attributes.to_json(*args)
185
+ to_hash.to_json(*args)
182
186
  end
183
187
  end
184
188
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: language_server-protocol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fumiaki MATSUSHIMA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-10 00:00:00.000000000 Z
11
+ date: 2017-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: activesupport
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  description: A Language Server Protocol SDK
98
112
  email:
99
113
  - mtsmfm@gmail.com
@@ -113,6 +127,7 @@ files:
113
127
  - Rakefile
114
128
  - bin/console
115
129
  - bin/generate_files
130
+ - bin/m
116
131
  - bin/setup
117
132
  - circle.yml
118
133
  - docker-compose.ci.yml