video_chat_get 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (872) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +5 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +9 -0
  7. data/Gemfile.lock +43 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +63 -0
  10. data/Rakefile +6 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/exe/videochatget +5 -0
  14. data/lib/file_operats/file_operat_chatdata.rb +15 -0
  15. data/lib/progressbars/progressbar.rb +6 -0
  16. data/lib/requests/request.rb +34 -0
  17. data/lib/site_list/mildom_analyze.rb +71 -0
  18. data/lib/site_list/openrec_analyze.rb +105 -0
  19. data/lib/site_list/video_analyze.rb +5 -0
  20. data/lib/site_list/whowatch_analyze.rb +58 -0
  21. data/lib/site_list/youtubelive_analyze.rb +129 -0
  22. data/lib/video_chat_get.rb +55 -0
  23. data/lib/video_chat_get/version.rb +3 -0
  24. data/vendor/bundle/ruby/2.5.0/bin/htmldiff +29 -0
  25. data/vendor/bundle/ruby/2.5.0/bin/httpclient +27 -0
  26. data/vendor/bundle/ruby/2.5.0/bin/ldiff +29 -0
  27. data/vendor/bundle/ruby/2.5.0/bin/nokogiri +27 -0
  28. data/vendor/bundle/ruby/2.5.0/bin/rake +27 -0
  29. data/vendor/bundle/ruby/2.5.0/bin/rspec +27 -0
  30. data/vendor/bundle/ruby/2.5.0/cache/diff-lcs-1.3.gem +0 -0
  31. data/vendor/bundle/ruby/2.5.0/cache/httpclient-2.8.3.gem +0 -0
  32. data/vendor/bundle/ruby/2.5.0/cache/json-2.3.0.gem +0 -0
  33. data/vendor/bundle/ruby/2.5.0/cache/mini_portile2-2.4.0.gem +0 -0
  34. data/vendor/bundle/ruby/2.5.0/cache/nokogiri-1.10.9.gem +0 -0
  35. data/vendor/bundle/ruby/2.5.0/cache/rake-10.5.0.gem +0 -0
  36. data/vendor/bundle/ruby/2.5.0/cache/rspec-3.9.0.gem +0 -0
  37. data/vendor/bundle/ruby/2.5.0/cache/rspec-core-3.9.2.gem +0 -0
  38. data/vendor/bundle/ruby/2.5.0/cache/rspec-expectations-3.9.2.gem +0 -0
  39. data/vendor/bundle/ruby/2.5.0/cache/rspec-mocks-3.9.1.gem +0 -0
  40. data/vendor/bundle/ruby/2.5.0/cache/rspec-support-3.9.3.gem +0 -0
  41. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/json-2.3.0/gem.build_complete +0 -0
  42. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/json-2.3.0/gem_make.out +13 -0
  43. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/json-2.3.0/json/ext/generator.bundle +0 -0
  44. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/json-2.3.0/json/ext/parser.bundle +0 -0
  45. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/json-2.3.0/mkmf.log +60 -0
  46. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/nokogiri-1.10.9/gem.build_complete +0 -0
  47. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/nokogiri-1.10.9/gem_make.out +155 -0
  48. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/nokogiri-1.10.9/mkmf.log +542 -0
  49. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-darwin-16/2.5.0/nokogiri-1.10.9/nokogiri/nokogiri.bundle +0 -0
  50. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/.rspec +1 -0
  51. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Code-of-Conduct.md +74 -0
  52. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Contributing.md +83 -0
  53. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/History.md +220 -0
  54. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/License.md +39 -0
  55. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Manifest.txt +37 -0
  56. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/README.rdoc +84 -0
  57. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/Rakefile +57 -0
  58. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/autotest/discover.rb +1 -0
  59. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/bin/htmldiff +32 -0
  60. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/bin/ldiff +6 -0
  61. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/docs/COPYING.txt +339 -0
  62. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/docs/artistic.txt +127 -0
  63. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff-lcs.rb +3 -0
  64. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs.rb +725 -0
  65. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/array.rb +7 -0
  66. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/block.rb +37 -0
  67. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/callbacks.rb +322 -0
  68. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/change.rb +181 -0
  69. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/htmldiff.rb +149 -0
  70. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/hunk.rb +276 -0
  71. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/internals.rb +307 -0
  72. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/ldiff.rb +167 -0
  73. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/lib/diff/lcs/string.rb +5 -0
  74. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/change_spec.rb +65 -0
  75. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/diff_spec.rb +47 -0
  76. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/fixtures/ds1.csv +50 -0
  77. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/fixtures/ds2.csv +51 -0
  78. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/hunk_spec.rb +72 -0
  79. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/issues_spec.rb +49 -0
  80. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/lcs_spec.rb +56 -0
  81. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/ldiff_spec.rb +47 -0
  82. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/patch_spec.rb +422 -0
  83. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/sdiff_spec.rb +214 -0
  84. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/spec_helper.rb +321 -0
  85. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/traverse_balanced_spec.rb +310 -0
  86. data/vendor/bundle/ruby/2.5.0/gems/diff-lcs-1.3/spec/traverse_sequences_spec.rb +139 -0
  87. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/README.md +85 -0
  88. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/bin/httpclient +77 -0
  89. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/bin/jsonclient +85 -0
  90. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/hexdump.rb +50 -0
  91. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/http-access2.rb +55 -0
  92. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/http-access2/cookie.rb +1 -0
  93. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/http-access2/http.rb +1 -0
  94. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient.rb +1327 -0
  95. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/auth.rb +924 -0
  96. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/cacert.pem +3952 -0
  97. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/cacert1024.pem +3866 -0
  98. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/connection.rb +88 -0
  99. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/cookie.rb +220 -0
  100. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/http.rb +1082 -0
  101. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/include_client.rb +85 -0
  102. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/jruby_ssl_socket.rb +588 -0
  103. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/session.rb +960 -0
  104. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/ssl_config.rb +424 -0
  105. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb +150 -0
  106. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/timeout.rb +140 -0
  107. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/util.rb +222 -0
  108. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/version.rb +3 -0
  109. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/httpclient/webagent-cookie.rb +459 -0
  110. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/jsonclient.rb +63 -0
  111. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/lib/oauthclient.rb +111 -0
  112. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/async.rb +8 -0
  113. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/auth.rb +11 -0
  114. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/cookie.rb +18 -0
  115. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/dav.rb +103 -0
  116. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/howto.rb +49 -0
  117. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/jsonclient.rb +67 -0
  118. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/oauth_buzz.rb +57 -0
  119. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/oauth_friendfeed.rb +59 -0
  120. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/oauth_twitter.rb +61 -0
  121. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/ssl/0cert.pem +22 -0
  122. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/ssl/0key.pem +30 -0
  123. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/ssl/1000cert.pem +19 -0
  124. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/ssl/1000key.pem +18 -0
  125. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/ssl/htdocs/index.html +10 -0
  126. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/ssl/ssl_client.rb +22 -0
  127. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/ssl/webrick_httpsd.rb +29 -0
  128. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/stream.rb +21 -0
  129. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/thread.rb +27 -0
  130. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/sample/wcat.rb +21 -0
  131. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/ca-chain.pem +44 -0
  132. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/ca.cert +23 -0
  133. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/client-pass.key +18 -0
  134. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/client.cert +19 -0
  135. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/client.key +15 -0
  136. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/helper.rb +131 -0
  137. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/htdigest +1 -0
  138. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/htpasswd +2 -0
  139. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/jruby_ssl_socket/test_pemutils.rb +32 -0
  140. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/runner.rb +2 -0
  141. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/server.cert +19 -0
  142. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/server.key +15 -0
  143. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/sslsvr.rb +65 -0
  144. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/subca.cert +21 -0
  145. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/test_auth.rb +492 -0
  146. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/test_cookie.rb +309 -0
  147. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/test_hexdump.rb +14 -0
  148. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/test_http-access2.rb +508 -0
  149. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/test_httpclient.rb +2145 -0
  150. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/test_include_client.rb +52 -0
  151. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/test_jsonclient.rb +80 -0
  152. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/test_ssl.rb +559 -0
  153. data/vendor/bundle/ruby/2.5.0/gems/httpclient-2.8.3/test/test_webagent-cookie.rb +465 -0
  154. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/.gitignore +18 -0
  155. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/.travis.yml +24 -0
  156. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/CHANGES.md +391 -0
  157. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/Gemfile +14 -0
  158. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/LICENSE +56 -0
  159. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/README-json-jruby.md +33 -0
  160. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/README.md +409 -0
  161. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/Rakefile +413 -0
  162. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/VERSION +1 -0
  163. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/diagrams/.keep +0 -0
  164. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/fbuffer/fbuffer.h +187 -0
  165. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/.sitearchdir.-.json.-.ext.time +0 -0
  166. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/depend +1 -0
  167. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/extconf.rb +4 -0
  168. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/generator.c +1499 -0
  169. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/generator/generator.h +171 -0
  170. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/.sitearchdir.-.json.-.ext.time +0 -0
  171. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/depend +1 -0
  172. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/extconf.rb +6 -0
  173. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/parser.c +2136 -0
  174. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/parser.h +91 -0
  175. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/ext/parser/parser.rl +896 -0
  176. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/ext/json/extconf.rb +2 -0
  177. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/install.rb +23 -0
  178. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/ByteListTranscoder.java +166 -0
  179. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Generator.java +466 -0
  180. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/GeneratorMethods.java +231 -0
  181. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/GeneratorService.java +42 -0
  182. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/GeneratorState.java +490 -0
  183. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/OptionsReader.java +113 -0
  184. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Parser.java +2362 -0
  185. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Parser.rl +893 -0
  186. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/ParserService.java +34 -0
  187. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/RuntimeInfo.java +116 -0
  188. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/StringDecoder.java +166 -0
  189. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/StringEncoder.java +111 -0
  190. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/java/src/json/ext/Utils.java +88 -0
  191. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/json-java.gemspec +37 -0
  192. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/json.gemspec +0 -0
  193. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/json_pure.gemspec +38 -0
  194. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json.rb +63 -0
  195. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/bigdecimal.rb +29 -0
  196. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/complex.rb +29 -0
  197. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/core.rb +12 -0
  198. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/date.rb +34 -0
  199. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/date_time.rb +50 -0
  200. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/exception.rb +31 -0
  201. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/ostruct.rb +31 -0
  202. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/range.rb +29 -0
  203. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/rational.rb +28 -0
  204. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/regexp.rb +30 -0
  205. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/set.rb +29 -0
  206. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/struct.rb +30 -0
  207. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/symbol.rb +25 -0
  208. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/add/time.rb +38 -0
  209. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/common.rb +456 -0
  210. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/ext.rb +15 -0
  211. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/ext/.keep +0 -0
  212. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/generic_object.rb +71 -0
  213. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/pure.rb +15 -0
  214. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/pure/generator.rb +459 -0
  215. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/pure/parser.rb +319 -0
  216. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/lib/json/version.rb +9 -0
  217. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/references/rfc7159.txt +899 -0
  218. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail10.json +1 -0
  219. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail11.json +1 -0
  220. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail12.json +1 -0
  221. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail13.json +1 -0
  222. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail14.json +1 -0
  223. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail18.json +1 -0
  224. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail19.json +1 -0
  225. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail2.json +1 -0
  226. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail20.json +1 -0
  227. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail21.json +1 -0
  228. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail22.json +1 -0
  229. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail23.json +1 -0
  230. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail24.json +1 -0
  231. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail25.json +1 -0
  232. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail27.json +2 -0
  233. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail28.json +2 -0
  234. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail3.json +1 -0
  235. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail4.json +1 -0
  236. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail5.json +1 -0
  237. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail6.json +1 -0
  238. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail7.json +1 -0
  239. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail8.json +1 -0
  240. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/fail9.json +1 -0
  241. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/obsolete_fail1.json +1 -0
  242. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass1.json +56 -0
  243. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass15.json +1 -0
  244. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass16.json +1 -0
  245. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass17.json +1 -0
  246. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass2.json +1 -0
  247. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass26.json +1 -0
  248. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/fixtures/pass3.json +6 -0
  249. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_addition_test.rb +203 -0
  250. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_common_interface_test.rb +126 -0
  251. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_encoding_test.rb +107 -0
  252. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_ext_parser_test.rb +15 -0
  253. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_fixtures_test.rb +32 -0
  254. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_generator_test.rb +421 -0
  255. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_generic_object_test.rb +82 -0
  256. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_parser_test.rb +472 -0
  257. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/json_string_matching_test.rb +38 -0
  258. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tests/test_helper.rb +17 -0
  259. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tools/diff.sh +18 -0
  260. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tools/fuzz.rb +131 -0
  261. data/vendor/bundle/ruby/2.5.0/gems/json-2.3.0/tools/server.rb +62 -0
  262. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/.concourse.yml +83 -0
  263. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/.gitignore +7 -0
  264. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/.travis.yml +15 -0
  265. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/CHANGELOG.md +209 -0
  266. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/Gemfile +4 -0
  267. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/LICENSE.txt +20 -0
  268. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/README.md +245 -0
  269. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/Rakefile +29 -0
  270. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/appveyor.yml +25 -0
  271. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/concourse/mini_portile.yml +141 -0
  272. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/concourse/tasks/rake-test/task.ps1 +11 -0
  273. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/concourse/tasks/rake-test/task.sh +13 -0
  274. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/lib/mini_portile2.rb +3 -0
  275. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb +556 -0
  276. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile_cmake.rb +40 -0
  277. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/lib/mini_portile2/version.rb +3 -0
  278. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/mini_portile2.gemspec +42 -0
  279. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/assets/git/config +4 -0
  280. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/assets/gpg-fixtures/data +1 -0
  281. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/assets/gpg-fixtures/data.asc +9 -0
  282. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/assets/gpg-fixtures/data.invalid.asc +9 -0
  283. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/assets/patch 1.diff +7 -0
  284. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/assets/test mini portile-1.0.0/configure +11 -0
  285. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/assets/test-cmake-1.0/CMakeLists.txt +7 -0
  286. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/assets/test-cmake-1.0/hello.c +4 -0
  287. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/assets/test-download-archive.tar.gz +1 -0
  288. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/helper.rb +60 -0
  289. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/test_cmake.rb +64 -0
  290. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/test_cook.rb +115 -0
  291. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/test_digest.rb +215 -0
  292. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/test_download.rb +71 -0
  293. data/vendor/bundle/ruby/2.5.0/gems/mini_portile2-2.4.0/test/test_proxy.rb +121 -0
  294. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/LICENSE-DEPENDENCIES.md +1614 -0
  295. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/LICENSE.md +9 -0
  296. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/README.md +198 -0
  297. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/bin/nokogiri +118 -0
  298. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/dependencies.yml +74 -0
  299. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/.sitearchdir.-.nokogiri.time +0 -0
  300. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/Makefile +626 -0
  301. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/depend +358 -0
  302. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/extconf.rb +686 -0
  303. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_document.c +170 -0
  304. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_document.h +10 -0
  305. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_document.o +0 -0
  306. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_element_description.c +279 -0
  307. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_element_description.h +10 -0
  308. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_element_description.o +0 -0
  309. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_entity_lookup.c +32 -0
  310. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_entity_lookup.h +8 -0
  311. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_entity_lookup.o +0 -0
  312. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_parser_context.c +116 -0
  313. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_parser_context.h +11 -0
  314. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_parser_context.o +0 -0
  315. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_push_parser.c +87 -0
  316. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_push_parser.h +9 -0
  317. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/html_sax_push_parser.o +0 -0
  318. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri.bundle +0 -0
  319. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri.c +141 -0
  320. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri.h +121 -0
  321. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/nokogiri.o +0 -0
  322. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attr.c +103 -0
  323. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attr.h +9 -0
  324. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attr.o +0 -0
  325. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attribute_decl.c +70 -0
  326. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attribute_decl.h +9 -0
  327. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_attribute_decl.o +0 -0
  328. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_cdata.c +62 -0
  329. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_cdata.h +9 -0
  330. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_cdata.o +0 -0
  331. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_comment.c +69 -0
  332. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_comment.h +9 -0
  333. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_comment.o +0 -0
  334. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document.c +608 -0
  335. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document.h +23 -0
  336. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document.o +0 -0
  337. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document_fragment.c +48 -0
  338. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document_fragment.h +10 -0
  339. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_document_fragment.o +0 -0
  340. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_dtd.c +202 -0
  341. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_dtd.h +10 -0
  342. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_dtd.o +0 -0
  343. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_content.c +123 -0
  344. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_content.h +10 -0
  345. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_content.o +0 -0
  346. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_decl.c +69 -0
  347. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_decl.h +9 -0
  348. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_element_decl.o +0 -0
  349. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler.c +79 -0
  350. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler.h +8 -0
  351. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_encoding_handler.o +0 -0
  352. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_decl.c +110 -0
  353. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_decl.h +10 -0
  354. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_decl.o +0 -0
  355. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference.c +52 -0
  356. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference.h +9 -0
  357. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_entity_reference.o +0 -0
  358. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io.c +61 -0
  359. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io.h +11 -0
  360. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_io.o +0 -0
  361. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks.c +112 -0
  362. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks.h +12 -0
  363. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_libxml2_hacks.o +0 -0
  364. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace.c +111 -0
  365. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace.h +14 -0
  366. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_namespace.o +0 -0
  367. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node.c +1753 -0
  368. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node.h +13 -0
  369. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node.o +0 -0
  370. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set.c +486 -0
  371. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set.h +12 -0
  372. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_node_set.o +0 -0
  373. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction.c +56 -0
  374. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction.h +9 -0
  375. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_processing_instruction.o +0 -0
  376. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_reader.c +668 -0
  377. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_reader.h +10 -0
  378. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_reader.o +0 -0
  379. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_relax_ng.c +161 -0
  380. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_relax_ng.h +9 -0
  381. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_relax_ng.o +0 -0
  382. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser.c +310 -0
  383. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser.h +39 -0
  384. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser.o +0 -0
  385. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context.c +262 -0
  386. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context.h +10 -0
  387. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_parser_context.o +0 -0
  388. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_push_parser.c +159 -0
  389. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_push_parser.h +9 -0
  390. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_sax_push_parser.o +0 -0
  391. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema.c +234 -0
  392. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema.h +9 -0
  393. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_schema.o +0 -0
  394. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error.c +64 -0
  395. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error.h +13 -0
  396. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_syntax_error.o +0 -0
  397. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_text.c +52 -0
  398. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_text.h +9 -0
  399. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_text.o +0 -0
  400. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_xpath_context.c +298 -0
  401. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_xpath_context.h +10 -0
  402. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xml_xpath_context.o +0 -0
  403. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet.c +270 -0
  404. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet.h +14 -0
  405. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/ext/nokogiri/xslt_stylesheet.o +0 -0
  406. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri.rb +144 -0
  407. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css.rb +27 -0
  408. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/node.rb +52 -0
  409. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser.rb +750 -0
  410. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser.y +272 -0
  411. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/parser_extras.rb +91 -0
  412. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/syntax_error.rb +7 -0
  413. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/tokenizer.rb +153 -0
  414. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/tokenizer.rex +55 -0
  415. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/css/xpath_visitor.rb +230 -0
  416. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/decorators/slop.rb +42 -0
  417. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html.rb +37 -0
  418. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/builder.rb +35 -0
  419. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/document.rb +335 -0
  420. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/document_fragment.rb +49 -0
  421. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/element_description.rb +23 -0
  422. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/element_description_defaults.rb +671 -0
  423. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/entity_lookup.rb +13 -0
  424. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/parser.rb +62 -0
  425. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/parser_context.rb +16 -0
  426. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/html/sax/push_parser.rb +36 -0
  427. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/nokogiri.bundle +0 -0
  428. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/syntax_error.rb +4 -0
  429. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/version.rb +109 -0
  430. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml.rb +75 -0
  431. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/attr.rb +14 -0
  432. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/attribute_decl.rb +18 -0
  433. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/builder.rb +446 -0
  434. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/cdata.rb +11 -0
  435. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/character_data.rb +7 -0
  436. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/document.rb +285 -0
  437. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/document_fragment.rb +160 -0
  438. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/dtd.rb +32 -0
  439. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/element_content.rb +36 -0
  440. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/element_decl.rb +13 -0
  441. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/entity_decl.rb +19 -0
  442. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/entity_reference.rb +18 -0
  443. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/namespace.rb +13 -0
  444. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node.rb +902 -0
  445. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node/save_options.rb +61 -0
  446. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/node_set.rb +371 -0
  447. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/notation.rb +6 -0
  448. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/parse_options.rb +120 -0
  449. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp.rb +2 -0
  450. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp/character_data.rb +18 -0
  451. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/pp/node.rb +56 -0
  452. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/processing_instruction.rb +8 -0
  453. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/reader.rb +112 -0
  454. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/relax_ng.rb +32 -0
  455. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax.rb +4 -0
  456. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/document.rb +171 -0
  457. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/parser.rb +122 -0
  458. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/parser_context.rb +16 -0
  459. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/sax/push_parser.rb +60 -0
  460. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/schema.rb +63 -0
  461. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/searchable.rb +230 -0
  462. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/syntax_error.rb +70 -0
  463. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/text.rb +9 -0
  464. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath.rb +10 -0
  465. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath/syntax_error.rb +11 -0
  466. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xml/xpath_context.rb +16 -0
  467. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xslt.rb +56 -0
  468. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/nokogiri/xslt/stylesheet.rb +25 -0
  469. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/lib/xsd/xmlparser/nokogiri.rb +102 -0
  470. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes.patch +78 -0
  471. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0002-Remove-script-macro-support.patch +40 -0
  472. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch +44 -0
  473. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0004-libxml2.la-is-in-top_builddir.patch +25 -0
  474. data/vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch +32 -0
  475. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/.autotest +7 -0
  476. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/.rubocop.yml +27 -0
  477. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/.togglerc +7 -0
  478. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +38 -0
  479. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/History.rdoc +659 -0
  480. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/MIT-LICENSE +21 -0
  481. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/Manifest.txt +166 -0
  482. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/README.rdoc +139 -0
  483. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/Rakefile +81 -0
  484. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/bin/rake +33 -0
  485. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/command_line_usage.rdoc +158 -0
  486. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/Rakefile1 +38 -0
  487. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/Rakefile2 +35 -0
  488. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/a.c +6 -0
  489. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/b.c +6 -0
  490. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/example/main.c +11 -0
  491. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/glossary.rdoc +42 -0
  492. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/jamis.rb +591 -0
  493. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/proto_rake.rdoc +127 -0
  494. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/rake.1 +141 -0
  495. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/rakefile.rdoc +624 -0
  496. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/rational.rdoc +151 -0
  497. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.14.rdoc +23 -0
  498. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.15.rdoc +35 -0
  499. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.0.rdoc +53 -0
  500. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.3.rdoc +78 -0
  501. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.4.rdoc +46 -0
  502. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.6.0.rdoc +141 -0
  503. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.0.rdoc +119 -0
  504. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.1.rdoc +59 -0
  505. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.2.rdoc +121 -0
  506. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.3.rdoc +47 -0
  507. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.0.rdoc +114 -0
  508. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.2.rdoc +165 -0
  509. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.3.rdoc +112 -0
  510. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.4.rdoc +147 -0
  511. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.5.rdoc +53 -0
  512. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.6.rdoc +37 -0
  513. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.7.rdoc +55 -0
  514. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.0.rdoc +112 -0
  515. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.1.rdoc +52 -0
  516. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
  517. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.rdoc +49 -0
  518. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.3.rdoc +102 -0
  519. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.4.rdoc +60 -0
  520. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.5.rdoc +55 -0
  521. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.6.rdoc +64 -0
  522. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.0.rdoc +178 -0
  523. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.1.rdoc +58 -0
  524. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.2.rdoc +53 -0
  525. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.3.rdoc +191 -0
  526. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/doc/release_notes/rake-10.1.0.rdoc +61 -0
  527. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake.rb +79 -0
  528. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/alt_system.rb +110 -0
  529. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/application.rb +790 -0
  530. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/backtrace.rb +23 -0
  531. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/clean.rb +76 -0
  532. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/cloneable.rb +16 -0
  533. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/.document +1 -0
  534. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +21 -0
  535. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +137 -0
  536. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +81 -0
  537. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +18 -0
  538. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +61 -0
  539. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +4 -0
  540. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +125 -0
  541. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/default_loader.rb +14 -0
  542. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +201 -0
  543. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/early_time.rb +21 -0
  544. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/core.rb +25 -0
  545. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/module.rb +2 -0
  546. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +25 -0
  547. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/string.rb +175 -0
  548. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ext/time.rb +18 -0
  549. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +24 -0
  550. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_list.rb +428 -0
  551. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_task.rb +46 -0
  552. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_utils.rb +128 -0
  553. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +144 -0
  554. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +4 -0
  555. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +56 -0
  556. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +16 -0
  557. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/late_time.rb +17 -0
  558. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/linked_list.rb +103 -0
  559. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +53 -0
  560. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/multi_task.rb +13 -0
  561. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/name_space.rb +38 -0
  562. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/packagetask.rb +199 -0
  563. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/pathmap.rb +3 -0
  564. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/phony.rb +15 -0
  565. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/private_reader.rb +20 -0
  566. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/promise.rb +99 -0
  567. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +29 -0
  568. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rake_module.rb +38 -0
  569. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +22 -0
  570. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +4 -0
  571. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +29 -0
  572. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
  573. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/runtest.rb +27 -0
  574. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/scope.rb +42 -0
  575. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task.rb +383 -0
  576. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +7 -0
  577. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +98 -0
  578. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/task_manager.rb +307 -0
  579. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/tasklib.rb +24 -0
  580. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/testtask.rb +213 -0
  581. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +48 -0
  582. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +164 -0
  583. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/trace_output.rb +22 -0
  584. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/version.rb +7 -0
  585. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/lib/rake/win32.rb +56 -0
  586. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/rakelib/publish.rake +20 -0
  587. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/rakelib/test_times.rake +25 -0
  588. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/file_creation.rb +34 -0
  589. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/helper.rb +129 -0
  590. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +478 -0
  591. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/support/ruby_runner.rb +34 -0
  592. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_private_reader.rb +42 -0
  593. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake.rb +40 -0
  594. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_application.rb +643 -0
  595. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_application_options.rb +468 -0
  596. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +119 -0
  597. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_clean.rb +61 -0
  598. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +68 -0
  599. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_definitions.rb +84 -0
  600. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +76 -0
  601. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_dsl.rb +40 -0
  602. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_early_time.rb +31 -0
  603. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_extension.rb +59 -0
  604. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +56 -0
  605. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_list.rb +670 -0
  606. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +8 -0
  607. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_task.rb +197 -0
  608. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +314 -0
  609. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +74 -0
  610. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_functional.rb +482 -0
  611. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +64 -0
  612. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_late_time.rb +18 -0
  613. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +84 -0
  614. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +46 -0
  615. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +64 -0
  616. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_name_space.rb +57 -0
  617. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_package_task.rb +79 -0
  618. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_path_map.rb +168 -0
  619. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +34 -0
  620. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +18 -0
  621. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +15 -0
  622. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +21 -0
  623. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +20 -0
  624. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +26 -0
  625. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_require.rb +40 -0
  626. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_rules.rb +388 -0
  627. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_scope.rb +44 -0
  628. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task.rb +393 -0
  629. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +119 -0
  630. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +127 -0
  631. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +9 -0
  632. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +178 -0
  633. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +19 -0
  634. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +172 -0
  635. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_test_task.rb +146 -0
  636. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +145 -0
  637. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +71 -0
  638. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_rake_win32.rb +72 -0
  639. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_thread_history_display.rb +101 -0
  640. data/vendor/bundle/ruby/2.5.0/gems/rake-10.5.0/test/test_trace_output.rb +52 -0
  641. data/vendor/bundle/ruby/2.5.0/gems/rspec-3.9.0/LICENSE.md +27 -0
  642. data/vendor/bundle/ruby/2.5.0/gems/rspec-3.9.0/README.md +43 -0
  643. data/vendor/bundle/ruby/2.5.0/gems/rspec-3.9.0/lib/rspec.rb +3 -0
  644. data/vendor/bundle/ruby/2.5.0/gems/rspec-3.9.0/lib/rspec/version.rb +5 -0
  645. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/.document +5 -0
  646. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/.yardopts +8 -0
  647. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/Changelog.md +2291 -0
  648. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/LICENSE.md +26 -0
  649. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/README.md +384 -0
  650. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/exe/rspec +4 -0
  651. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/autorun.rb +3 -0
  652. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core.rb +186 -0
  653. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/backtrace_formatter.rb +65 -0
  654. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/coordinator.rb +62 -0
  655. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/example_minimizer.rb +173 -0
  656. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/fork_runner.rb +135 -0
  657. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/server.rb +61 -0
  658. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_command.rb +126 -0
  659. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_runner.rb +73 -0
  660. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/utilities.rb +58 -0
  661. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration.rb +2363 -0
  662. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration_options.rb +233 -0
  663. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/did_you_mean.rb +46 -0
  664. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/drb.rb +113 -0
  665. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/dsl.rb +98 -0
  666. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/example.rb +656 -0
  667. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/example_group.rb +900 -0
  668. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/example_status_persister.rb +235 -0
  669. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/filter_manager.rb +231 -0
  670. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/flat_map.rb +20 -0
  671. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters.rb +273 -0
  672. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_bisect_formatter.rb +45 -0
  673. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_formatter.rb +70 -0
  674. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
  675. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_drb_formatter.rb +29 -0
  676. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_progress_formatter.rb +157 -0
  677. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/console_codes.rb +68 -0
  678. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/deprecation_formatter.rb +223 -0
  679. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/documentation_formatter.rb +102 -0
  680. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/exception_presenter.rb +511 -0
  681. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/failure_list_formatter.rb +23 -0
  682. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
  683. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/helpers.rb +110 -0
  684. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_formatter.rb +153 -0
  685. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_printer.rb +414 -0
  686. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
  687. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/json_formatter.rb +102 -0
  688. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/profile_formatter.rb +68 -0
  689. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/progress_formatter.rb +29 -0
  690. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/protocol.rb +182 -0
  691. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
  692. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
  693. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/hooks.rb +641 -0
  694. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/invocations.rb +87 -0
  695. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/memoized_helpers.rb +554 -0
  696. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata.rb +498 -0
  697. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata_filter.rb +255 -0
  698. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
  699. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
  700. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
  701. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/null.rb +14 -0
  702. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rr.rb +31 -0
  703. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
  704. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/notifications.rb +521 -0
  705. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/option_parser.rb +316 -0
  706. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/ordering.rb +158 -0
  707. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/output_wrapper.rb +29 -0
  708. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/pending.rb +165 -0
  709. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/profiler.rb +34 -0
  710. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer.rb +48 -0
  711. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer/.rspec +1 -0
  712. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer/spec/spec_helper.rb +100 -0
  713. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/rake_task.rb +188 -0
  714. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/reporter.rb +265 -0
  715. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/ruby_project.rb +53 -0
  716. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/runner.rb +204 -0
  717. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/sandbox.rb +37 -0
  718. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/set.rb +54 -0
  719. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_context.rb +55 -0
  720. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_example_group.rb +271 -0
  721. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/shell_escape.rb +49 -0
  722. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
  723. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/version.rb +9 -0
  724. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/warnings.rb +40 -0
  725. data/vendor/bundle/ruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/world.rb +276 -0
  726. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/.document +5 -0
  727. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/.yardopts +6 -0
  728. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/Changelog.md +1191 -0
  729. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/LICENSE.md +25 -0
  730. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/README.md +320 -0
  731. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations.rb +82 -0
  732. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/block_snippet_extractor.rb +253 -0
  733. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/configuration.rb +215 -0
  734. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/expectation_target.rb +127 -0
  735. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/fail_with.rb +39 -0
  736. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/failure_aggregator.rb +194 -0
  737. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/handler.rb +170 -0
  738. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/minitest_integration.rb +58 -0
  739. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/syntax.rb +132 -0
  740. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/version.rb +8 -0
  741. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers.rb +1038 -0
  742. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/aliased_matcher.rb +116 -0
  743. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in.rb +52 -0
  744. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/all.rb +86 -0
  745. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/base_matcher.rb +193 -0
  746. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be.rb +288 -0
  747. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_between.rb +77 -0
  748. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_instance_of.rb +26 -0
  749. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb +20 -0
  750. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_within.rb +72 -0
  751. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/change.rb +428 -0
  752. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/compound.rb +276 -0
  753. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/contain_exactly.rb +302 -0
  754. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/cover.rb +24 -0
  755. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eq.rb +40 -0
  756. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eql.rb +34 -0
  757. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/equal.rb +81 -0
  758. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/exist.rb +90 -0
  759. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/has.rb +103 -0
  760. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
  761. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/include.rb +149 -0
  762. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/match.rb +106 -0
  763. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/operators.rb +128 -0
  764. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/output.rb +200 -0
  765. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/raise_error.rb +230 -0
  766. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/respond_to.rb +199 -0
  767. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/satisfy.rb +60 -0
  768. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
  769. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
  770. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/yield.rb +441 -0
  771. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/composable.rb +171 -0
  772. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/dsl.rb +540 -0
  773. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/english_phrasing.rb +58 -0
  774. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +82 -0
  775. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/fail_matchers.rb +42 -0
  776. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/generated_descriptions.rb +41 -0
  777. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_delegator.rb +35 -0
  778. data/vendor/bundle/ruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_protocol.rb +99 -0
  779. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/.document +5 -0
  780. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/.yardopts +6 -0
  781. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/Changelog.md +1133 -0
  782. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/LICENSE.md +25 -0
  783. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/README.md +463 -0
  784. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks.rb +130 -0
  785. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance.rb +11 -0
  786. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/chain.rb +111 -0
  787. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
  788. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb +31 -0
  789. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expectation_chain.rb +50 -0
  790. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
  791. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/proxy.rb +116 -0
  792. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/recorder.rb +294 -0
  793. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain.rb +51 -0
  794. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
  795. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_list_matcher.rb +100 -0
  796. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_matchers.rb +322 -0
  797. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/configuration.rb +212 -0
  798. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/error_generator.rb +369 -0
  799. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/example_methods.rb +434 -0
  800. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/instance_method_stasher.rb +146 -0
  801. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/marshal_extension.rb +41 -0
  802. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
  803. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/have_received.rb +134 -0
  804. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive.rb +132 -0
  805. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
  806. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
  807. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_chain.rb +87 -0
  808. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_expectation.rb +751 -0
  809. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_double.rb +287 -0
  810. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_reference.rb +202 -0
  811. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/minitest_integration.rb +68 -0
  812. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/mutate_const.rb +339 -0
  813. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/object_reference.rb +149 -0
  814. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/order_group.rb +81 -0
  815. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/proxy.rb +503 -0
  816. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/space.rb +238 -0
  817. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/standalone.rb +3 -0
  818. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/syntax.rb +325 -0
  819. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/targets.rb +124 -0
  820. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/test_double.rb +171 -0
  821. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_double.rb +129 -0
  822. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
  823. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_proxy.rb +220 -0
  824. data/vendor/bundle/ruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/version.rb +9 -0
  825. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/Changelog.md +302 -0
  826. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/LICENSE.md +23 -0
  827. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/README.md +40 -0
  828. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support.rb +149 -0
  829. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/caller_filter.rb +83 -0
  830. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/comparable_version.rb +46 -0
  831. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/differ.rb +215 -0
  832. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/directory_maker.rb +63 -0
  833. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/encoded_string.rb +161 -0
  834. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/fuzzy_matcher.rb +48 -0
  835. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/hunk_generator.rb +47 -0
  836. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/matcher_definition.rb +42 -0
  837. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/method_signature_verifier.rb +438 -0
  838. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/mutex.rb +73 -0
  839. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/object_formatter.rb +275 -0
  840. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/recursive_const_methods.rb +76 -0
  841. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/reentrant_mutex.rb +61 -0
  842. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/ruby_features.rb +190 -0
  843. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/source.rb +75 -0
  844. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/source/location.rb +21 -0
  845. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/source/node.rb +110 -0
  846. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/source/token.rb +87 -0
  847. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec.rb +81 -0
  848. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
  849. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/formatting_support.rb +9 -0
  850. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/in_sub_process.rb +69 -0
  851. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/library_wide_checks.rb +150 -0
  852. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/shell_out.rb +89 -0
  853. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/stderr_splitter.rb +75 -0
  854. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/string_matcher.rb +46 -0
  855. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
  856. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
  857. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/version.rb +7 -0
  858. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/warnings.rb +39 -0
  859. data/vendor/bundle/ruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/with_keywords_when_needed.rb +33 -0
  860. data/vendor/bundle/ruby/2.5.0/specifications/diff-lcs-1.3.gemspec +61 -0
  861. data/vendor/bundle/ruby/2.5.0/specifications/httpclient-2.8.3.gemspec +21 -0
  862. data/vendor/bundle/ruby/2.5.0/specifications/json-2.3.0.gemspec +0 -0
  863. data/vendor/bundle/ruby/2.5.0/specifications/mini_portile2-2.4.0.gemspec +48 -0
  864. data/vendor/bundle/ruby/2.5.0/specifications/nokogiri-1.10.9.gemspec +85 -0
  865. data/vendor/bundle/ruby/2.5.0/specifications/rake-10.5.0.gemspec +43 -0
  866. data/vendor/bundle/ruby/2.5.0/specifications/rspec-3.9.0.gemspec +43 -0
  867. data/vendor/bundle/ruby/2.5.0/specifications/rspec-core-3.9.2.gemspec +63 -0
  868. data/vendor/bundle/ruby/2.5.0/specifications/rspec-expectations-3.9.2.gemspec +51 -0
  869. data/vendor/bundle/ruby/2.5.0/specifications/rspec-mocks-3.9.1.gemspec +51 -0
  870. data/vendor/bundle/ruby/2.5.0/specifications/rspec-support-3.9.3.gemspec +39 -0
  871. data/video_chat_get.gemspec +29 -0
  872. metadata +957 -0
@@ -0,0 +1 @@
1
+ generator.o: generator.c generator.h $(srcdir)/../fbuffer/fbuffer.h
@@ -0,0 +1,4 @@
1
+ require 'mkmf'
2
+
3
+ $defs << "-DJSON_GENERATOR"
4
+ create_makefile 'json/ext/generator'
@@ -0,0 +1,1499 @@
1
+ #include "../fbuffer/fbuffer.h"
2
+ #include "generator.h"
3
+
4
+ #ifdef HAVE_RUBY_ENCODING_H
5
+ static VALUE CEncoding_UTF_8;
6
+ static ID i_encoding, i_encode;
7
+ #endif
8
+
9
+ static VALUE mJSON, mExt, mGenerator, cState, mGeneratorMethods, mObject,
10
+ mHash, mArray,
11
+ #ifdef RUBY_INTEGER_UNIFICATION
12
+ mInteger,
13
+ #else
14
+ mFixnum, mBignum,
15
+ #endif
16
+ mFloat, mString, mString_Extend,
17
+ mTrueClass, mFalseClass, mNilClass, eGeneratorError,
18
+ eNestingError,
19
+ i_SAFE_STATE_PROTOTYPE;
20
+
21
+ static ID i_to_s, i_to_json, i_new, i_indent, i_space, i_space_before,
22
+ i_object_nl, i_array_nl, i_max_nesting, i_allow_nan, i_ascii_only,
23
+ i_pack, i_unpack, i_create_id, i_extend, i_key_p,
24
+ i_aref, i_send, i_respond_to_p, i_match, i_keys, i_depth,
25
+ i_buffer_initial_length, i_dup;
26
+
27
+ /*
28
+ * Copyright 2001-2004 Unicode, Inc.
29
+ *
30
+ * Disclaimer
31
+ *
32
+ * This source code is provided as is by Unicode, Inc. No claims are
33
+ * made as to fitness for any particular purpose. No warranties of any
34
+ * kind are expressed or implied. The recipient agrees to determine
35
+ * applicability of information provided. If this file has been
36
+ * purchased on magnetic or optical media from Unicode, Inc., the
37
+ * sole remedy for any claim will be exchange of defective media
38
+ * within 90 days of receipt.
39
+ *
40
+ * Limitations on Rights to Redistribute This Code
41
+ *
42
+ * Unicode, Inc. hereby grants the right to freely use the information
43
+ * supplied in this file in the creation of products supporting the
44
+ * Unicode Standard, and to make copies of this file in any form
45
+ * for internal or external distribution as long as this notice
46
+ * remains attached.
47
+ */
48
+
49
+ /*
50
+ * Index into the table below with the first byte of a UTF-8 sequence to
51
+ * get the number of trailing bytes that are supposed to follow it.
52
+ * Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
53
+ * left as-is for anyone who may want to do such conversion, which was
54
+ * allowed in earlier algorithms.
55
+ */
56
+ static const char trailingBytesForUTF8[256] = {
57
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
58
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
59
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
60
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
61
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
62
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
63
+ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
64
+ 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
65
+ };
66
+
67
+ /*
68
+ * Magic values subtracted from a buffer value during UTF8 conversion.
69
+ * This table contains as many values as there might be trailing bytes
70
+ * in a UTF-8 sequence.
71
+ */
72
+ static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
73
+ 0x03C82080UL, 0xFA082080UL, 0x82082080UL };
74
+
75
+ /*
76
+ * Utility routine to tell whether a sequence of bytes is legal UTF-8.
77
+ * This must be called with the length pre-determined by the first byte.
78
+ * If not calling this from ConvertUTF8to*, then the length can be set by:
79
+ * length = trailingBytesForUTF8[*source]+1;
80
+ * and the sequence is illegal right away if there aren't that many bytes
81
+ * available.
82
+ * If presented with a length > 4, this returns 0. The Unicode
83
+ * definition of UTF-8 goes up to 4-byte sequences.
84
+ */
85
+ static unsigned char isLegalUTF8(const UTF8 *source, unsigned long length)
86
+ {
87
+ UTF8 a;
88
+ const UTF8 *srcptr = source+length;
89
+ switch (length) {
90
+ default: return 0;
91
+ /* Everything else falls through when "1"... */
92
+ case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
93
+ case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
94
+ case 2: if ((a = (*--srcptr)) > 0xBF) return 0;
95
+
96
+ switch (*source) {
97
+ /* no fall-through in this inner switch */
98
+ case 0xE0: if (a < 0xA0) return 0; break;
99
+ case 0xED: if (a > 0x9F) return 0; break;
100
+ case 0xF0: if (a < 0x90) return 0; break;
101
+ case 0xF4: if (a > 0x8F) return 0; break;
102
+ default: if (a < 0x80) return 0;
103
+ }
104
+
105
+ case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
106
+ }
107
+ if (*source > 0xF4) return 0;
108
+ return 1;
109
+ }
110
+
111
+ /* Escapes the UTF16 character and stores the result in the buffer buf. */
112
+ static void unicode_escape(char *buf, UTF16 character)
113
+ {
114
+ const char *digits = "0123456789abcdef";
115
+
116
+ buf[2] = digits[character >> 12];
117
+ buf[3] = digits[(character >> 8) & 0xf];
118
+ buf[4] = digits[(character >> 4) & 0xf];
119
+ buf[5] = digits[character & 0xf];
120
+ }
121
+
122
+ /* Escapes the UTF16 character and stores the result in the buffer buf, then
123
+ * the buffer buf is appended to the FBuffer buffer. */
124
+ static void unicode_escape_to_buffer(FBuffer *buffer, char buf[6], UTF16
125
+ character)
126
+ {
127
+ unicode_escape(buf, character);
128
+ fbuffer_append(buffer, buf, 6);
129
+ }
130
+
131
+ /* Converts string to a JSON string in FBuffer buffer, where all but the ASCII
132
+ * and control characters are JSON escaped. */
133
+ static void convert_UTF8_to_JSON_ASCII(FBuffer *buffer, VALUE string)
134
+ {
135
+ const UTF8 *source = (UTF8 *) RSTRING_PTR(string);
136
+ const UTF8 *sourceEnd = source + RSTRING_LEN(string);
137
+ char buf[6] = { '\\', 'u' };
138
+
139
+ while (source < sourceEnd) {
140
+ UTF32 ch = 0;
141
+ unsigned short extraBytesToRead = trailingBytesForUTF8[*source];
142
+ if (source + extraBytesToRead >= sourceEnd) {
143
+ rb_raise(rb_path2class("JSON::GeneratorError"),
144
+ "partial character in source, but hit end");
145
+ }
146
+ if (!isLegalUTF8(source, extraBytesToRead+1)) {
147
+ rb_raise(rb_path2class("JSON::GeneratorError"),
148
+ "source sequence is illegal/malformed utf-8");
149
+ }
150
+ /*
151
+ * The cases all fall through. See "Note A" below.
152
+ */
153
+ switch (extraBytesToRead) {
154
+ case 5: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
155
+ case 4: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
156
+ case 3: ch += *source++; ch <<= 6;
157
+ case 2: ch += *source++; ch <<= 6;
158
+ case 1: ch += *source++; ch <<= 6;
159
+ case 0: ch += *source++;
160
+ }
161
+ ch -= offsetsFromUTF8[extraBytesToRead];
162
+
163
+ if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */
164
+ /* UTF-16 surrogate values are illegal in UTF-32 */
165
+ if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) {
166
+ #if UNI_STRICT_CONVERSION
167
+ source -= (extraBytesToRead+1); /* return to the illegal value itself */
168
+ rb_raise(rb_path2class("JSON::GeneratorError"),
169
+ "source sequence is illegal/malformed utf-8");
170
+ #else
171
+ unicode_escape_to_buffer(buffer, buf, UNI_REPLACEMENT_CHAR);
172
+ #endif
173
+ } else {
174
+ /* normal case */
175
+ if (ch >= 0x20 && ch <= 0x7f) {
176
+ switch (ch) {
177
+ case '\\':
178
+ fbuffer_append(buffer, "\\\\", 2);
179
+ break;
180
+ case '"':
181
+ fbuffer_append(buffer, "\\\"", 2);
182
+ break;
183
+ default:
184
+ fbuffer_append_char(buffer, (char)ch);
185
+ break;
186
+ }
187
+ } else {
188
+ switch (ch) {
189
+ case '\n':
190
+ fbuffer_append(buffer, "\\n", 2);
191
+ break;
192
+ case '\r':
193
+ fbuffer_append(buffer, "\\r", 2);
194
+ break;
195
+ case '\t':
196
+ fbuffer_append(buffer, "\\t", 2);
197
+ break;
198
+ case '\f':
199
+ fbuffer_append(buffer, "\\f", 2);
200
+ break;
201
+ case '\b':
202
+ fbuffer_append(buffer, "\\b", 2);
203
+ break;
204
+ default:
205
+ unicode_escape_to_buffer(buffer, buf, (UTF16) ch);
206
+ break;
207
+ }
208
+ }
209
+ }
210
+ } else if (ch > UNI_MAX_UTF16) {
211
+ #if UNI_STRICT_CONVERSION
212
+ source -= (extraBytesToRead+1); /* return to the start */
213
+ rb_raise(rb_path2class("JSON::GeneratorError"),
214
+ "source sequence is illegal/malformed utf8");
215
+ #else
216
+ unicode_escape_to_buffer(buffer, buf, UNI_REPLACEMENT_CHAR);
217
+ #endif
218
+ } else {
219
+ /* target is a character in range 0xFFFF - 0x10FFFF. */
220
+ ch -= halfBase;
221
+ unicode_escape_to_buffer(buffer, buf, (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START));
222
+ unicode_escape_to_buffer(buffer, buf, (UTF16)((ch & halfMask) + UNI_SUR_LOW_START));
223
+ }
224
+ }
225
+ RB_GC_GUARD(string);
226
+ }
227
+
228
+ /* Converts string to a JSON string in FBuffer buffer, where only the
229
+ * characters required by the JSON standard are JSON escaped. The remaining
230
+ * characters (should be UTF8) are just passed through and appended to the
231
+ * result. */
232
+ static void convert_UTF8_to_JSON(FBuffer *buffer, VALUE string)
233
+ {
234
+ const char *ptr = RSTRING_PTR(string), *p;
235
+ unsigned long len = RSTRING_LEN(string), start = 0, end = 0;
236
+ const char *escape = NULL;
237
+ int escape_len;
238
+ unsigned char c;
239
+ char buf[6] = { '\\', 'u' };
240
+ int ascii_only = rb_enc_str_asciionly_p(string);
241
+
242
+ for (start = 0, end = 0; end < len;) {
243
+ p = ptr + end;
244
+ c = (unsigned char) *p;
245
+ if (c < 0x20) {
246
+ switch (c) {
247
+ case '\n':
248
+ escape = "\\n";
249
+ escape_len = 2;
250
+ break;
251
+ case '\r':
252
+ escape = "\\r";
253
+ escape_len = 2;
254
+ break;
255
+ case '\t':
256
+ escape = "\\t";
257
+ escape_len = 2;
258
+ break;
259
+ case '\f':
260
+ escape = "\\f";
261
+ escape_len = 2;
262
+ break;
263
+ case '\b':
264
+ escape = "\\b";
265
+ escape_len = 2;
266
+ break;
267
+ default:
268
+ unicode_escape(buf, (UTF16) *p);
269
+ escape = buf;
270
+ escape_len = 6;
271
+ break;
272
+ }
273
+ } else {
274
+ switch (c) {
275
+ case '\\':
276
+ escape = "\\\\";
277
+ escape_len = 2;
278
+ break;
279
+ case '"':
280
+ escape = "\\\"";
281
+ escape_len = 2;
282
+ break;
283
+ default:
284
+ {
285
+ unsigned short clen = 1;
286
+ if (!ascii_only) {
287
+ clen += trailingBytesForUTF8[c];
288
+ if (end + clen > len) {
289
+ rb_raise(rb_path2class("JSON::GeneratorError"),
290
+ "partial character in source, but hit end");
291
+ }
292
+ if (!isLegalUTF8((UTF8 *) p, clen)) {
293
+ rb_raise(rb_path2class("JSON::GeneratorError"),
294
+ "source sequence is illegal/malformed utf-8");
295
+ }
296
+ }
297
+ end += clen;
298
+ }
299
+ continue;
300
+ break;
301
+ }
302
+ }
303
+ fbuffer_append(buffer, ptr + start, end - start);
304
+ fbuffer_append(buffer, escape, escape_len);
305
+ start = ++end;
306
+ escape = NULL;
307
+ }
308
+ fbuffer_append(buffer, ptr + start, end - start);
309
+ }
310
+
311
+ static char *fstrndup(const char *ptr, unsigned long len) {
312
+ char *result;
313
+ if (len <= 0) return NULL;
314
+ result = ALLOC_N(char, len);
315
+ memcpy(result, ptr, len);
316
+ return result;
317
+ }
318
+
319
+ /*
320
+ * Document-module: JSON::Ext::Generator
321
+ *
322
+ * This is the JSON generator implemented as a C extension. It can be
323
+ * configured to be used by setting
324
+ *
325
+ * JSON.generator = JSON::Ext::Generator
326
+ *
327
+ * with the method generator= in JSON.
328
+ *
329
+ */
330
+
331
+ /*
332
+ * call-seq: to_json(state = nil)
333
+ *
334
+ * Returns a JSON string containing a JSON object, that is generated from
335
+ * this Hash instance.
336
+ * _state_ is a JSON::State object, that can also be used to configure the
337
+ * produced JSON string output further.
338
+ */
339
+ static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self)
340
+ {
341
+ GENERATE_JSON(object);
342
+ }
343
+
344
+ /*
345
+ * call-seq: to_json(state = nil)
346
+ *
347
+ * Returns a JSON string containing a JSON array, that is generated from
348
+ * this Array instance.
349
+ * _state_ is a JSON::State object, that can also be used to configure the
350
+ * produced JSON string output further.
351
+ */
352
+ static VALUE mArray_to_json(int argc, VALUE *argv, VALUE self) {
353
+ GENERATE_JSON(array);
354
+ }
355
+
356
+ #ifdef RUBY_INTEGER_UNIFICATION
357
+ /*
358
+ * call-seq: to_json(*)
359
+ *
360
+ * Returns a JSON string representation for this Integer number.
361
+ */
362
+ static VALUE mInteger_to_json(int argc, VALUE *argv, VALUE self)
363
+ {
364
+ GENERATE_JSON(integer);
365
+ }
366
+
367
+ #else
368
+ /*
369
+ * call-seq: to_json(*)
370
+ *
371
+ * Returns a JSON string representation for this Integer number.
372
+ */
373
+ static VALUE mFixnum_to_json(int argc, VALUE *argv, VALUE self)
374
+ {
375
+ GENERATE_JSON(fixnum);
376
+ }
377
+
378
+ /*
379
+ * call-seq: to_json(*)
380
+ *
381
+ * Returns a JSON string representation for this Integer number.
382
+ */
383
+ static VALUE mBignum_to_json(int argc, VALUE *argv, VALUE self)
384
+ {
385
+ GENERATE_JSON(bignum);
386
+ }
387
+ #endif
388
+
389
+ /*
390
+ * call-seq: to_json(*)
391
+ *
392
+ * Returns a JSON string representation for this Float number.
393
+ */
394
+ static VALUE mFloat_to_json(int argc, VALUE *argv, VALUE self)
395
+ {
396
+ GENERATE_JSON(float);
397
+ }
398
+
399
+ /*
400
+ * call-seq: String.included(modul)
401
+ *
402
+ * Extends _modul_ with the String::Extend module.
403
+ */
404
+ static VALUE mString_included_s(VALUE self, VALUE modul) {
405
+ VALUE result = rb_funcall(modul, i_extend, 1, mString_Extend);
406
+ return result;
407
+ }
408
+
409
+ /*
410
+ * call-seq: to_json(*)
411
+ *
412
+ * This string should be encoded with UTF-8 A call to this method
413
+ * returns a JSON string encoded with UTF16 big endian characters as
414
+ * \u????.
415
+ */
416
+ static VALUE mString_to_json(int argc, VALUE *argv, VALUE self)
417
+ {
418
+ GENERATE_JSON(string);
419
+ }
420
+
421
+ /*
422
+ * call-seq: to_json_raw_object()
423
+ *
424
+ * This method creates a raw object hash, that can be nested into
425
+ * other data structures and will be generated as a raw string. This
426
+ * method should be used, if you want to convert raw strings to JSON
427
+ * instead of UTF-8 strings, e. g. binary data.
428
+ */
429
+ static VALUE mString_to_json_raw_object(VALUE self)
430
+ {
431
+ VALUE ary;
432
+ VALUE result = rb_hash_new();
433
+ rb_hash_aset(result, rb_funcall(mJSON, i_create_id, 0), rb_class_name(rb_obj_class(self)));
434
+ ary = rb_funcall(self, i_unpack, 1, rb_str_new2("C*"));
435
+ rb_hash_aset(result, rb_str_new2("raw"), ary);
436
+ return result;
437
+ }
438
+
439
+ /*
440
+ * call-seq: to_json_raw(*args)
441
+ *
442
+ * This method creates a JSON text from the result of a call to
443
+ * to_json_raw_object of this String.
444
+ */
445
+ static VALUE mString_to_json_raw(int argc, VALUE *argv, VALUE self)
446
+ {
447
+ VALUE obj = mString_to_json_raw_object(self);
448
+ Check_Type(obj, T_HASH);
449
+ return mHash_to_json(argc, argv, obj);
450
+ }
451
+
452
+ /*
453
+ * call-seq: json_create(o)
454
+ *
455
+ * Raw Strings are JSON Objects (the raw bytes are stored in an array for the
456
+ * key "raw"). The Ruby String can be created by this module method.
457
+ */
458
+ static VALUE mString_Extend_json_create(VALUE self, VALUE o)
459
+ {
460
+ VALUE ary;
461
+ Check_Type(o, T_HASH);
462
+ ary = rb_hash_aref(o, rb_str_new2("raw"));
463
+ return rb_funcall(ary, i_pack, 1, rb_str_new2("C*"));
464
+ }
465
+
466
+ /*
467
+ * call-seq: to_json(*)
468
+ *
469
+ * Returns a JSON string for true: 'true'.
470
+ */
471
+ static VALUE mTrueClass_to_json(int argc, VALUE *argv, VALUE self)
472
+ {
473
+ GENERATE_JSON(true);
474
+ }
475
+
476
+ /*
477
+ * call-seq: to_json(*)
478
+ *
479
+ * Returns a JSON string for false: 'false'.
480
+ */
481
+ static VALUE mFalseClass_to_json(int argc, VALUE *argv, VALUE self)
482
+ {
483
+ GENERATE_JSON(false);
484
+ }
485
+
486
+ /*
487
+ * call-seq: to_json(*)
488
+ *
489
+ * Returns a JSON string for nil: 'null'.
490
+ */
491
+ static VALUE mNilClass_to_json(int argc, VALUE *argv, VALUE self)
492
+ {
493
+ GENERATE_JSON(null);
494
+ }
495
+
496
+ /*
497
+ * call-seq: to_json(*)
498
+ *
499
+ * Converts this object to a string (calling #to_s), converts
500
+ * it to a JSON string, and returns the result. This is a fallback, if no
501
+ * special method #to_json was defined for some object.
502
+ */
503
+ static VALUE mObject_to_json(int argc, VALUE *argv, VALUE self)
504
+ {
505
+ VALUE state;
506
+ VALUE string = rb_funcall(self, i_to_s, 0);
507
+ rb_scan_args(argc, argv, "01", &state);
508
+ Check_Type(string, T_STRING);
509
+ state = cState_from_state_s(cState, state);
510
+ return cState_partial_generate(state, string);
511
+ }
512
+
513
+ static void State_free(void *ptr)
514
+ {
515
+ JSON_Generator_State *state = ptr;
516
+ if (state->indent) ruby_xfree(state->indent);
517
+ if (state->space) ruby_xfree(state->space);
518
+ if (state->space_before) ruby_xfree(state->space_before);
519
+ if (state->object_nl) ruby_xfree(state->object_nl);
520
+ if (state->array_nl) ruby_xfree(state->array_nl);
521
+ if (state->array_delim) fbuffer_free(state->array_delim);
522
+ if (state->object_delim) fbuffer_free(state->object_delim);
523
+ if (state->object_delim2) fbuffer_free(state->object_delim2);
524
+ ruby_xfree(state);
525
+ }
526
+
527
+ static size_t State_memsize(const void *ptr)
528
+ {
529
+ const JSON_Generator_State *state = ptr;
530
+ size_t size = sizeof(*state);
531
+ if (state->indent) size += state->indent_len + 1;
532
+ if (state->space) size += state->space_len + 1;
533
+ if (state->space_before) size += state->space_before_len + 1;
534
+ if (state->object_nl) size += state->object_nl_len + 1;
535
+ if (state->array_nl) size += state->array_nl_len + 1;
536
+ if (state->array_delim) size += FBUFFER_CAPA(state->array_delim);
537
+ if (state->object_delim) size += FBUFFER_CAPA(state->object_delim);
538
+ if (state->object_delim2) size += FBUFFER_CAPA(state->object_delim2);
539
+ return size;
540
+ }
541
+
542
+ #ifdef NEW_TYPEDDATA_WRAPPER
543
+ static const rb_data_type_t JSON_Generator_State_type = {
544
+ "JSON/Generator/State",
545
+ {NULL, State_free, State_memsize,},
546
+ #ifdef RUBY_TYPED_FREE_IMMEDIATELY
547
+ 0, 0,
548
+ RUBY_TYPED_FREE_IMMEDIATELY,
549
+ #endif
550
+ };
551
+ #endif
552
+
553
+ static VALUE cState_s_allocate(VALUE klass)
554
+ {
555
+ JSON_Generator_State *state;
556
+ return TypedData_Make_Struct(klass, JSON_Generator_State,
557
+ &JSON_Generator_State_type, state);
558
+ }
559
+
560
+ /*
561
+ * call-seq: configure(opts)
562
+ *
563
+ * Configure this State instance with the Hash _opts_, and return
564
+ * itself.
565
+ */
566
+ static VALUE cState_configure(VALUE self, VALUE opts)
567
+ {
568
+ VALUE tmp;
569
+ GET_STATE(self);
570
+ tmp = rb_check_convert_type(opts, T_HASH, "Hash", "to_hash");
571
+ if (NIL_P(tmp)) tmp = rb_convert_type(opts, T_HASH, "Hash", "to_h");
572
+ opts = tmp;
573
+ tmp = rb_hash_aref(opts, ID2SYM(i_indent));
574
+ if (RTEST(tmp)) {
575
+ unsigned long len;
576
+ Check_Type(tmp, T_STRING);
577
+ len = RSTRING_LEN(tmp);
578
+ state->indent = fstrndup(RSTRING_PTR(tmp), len + 1);
579
+ state->indent_len = len;
580
+ }
581
+ tmp = rb_hash_aref(opts, ID2SYM(i_space));
582
+ if (RTEST(tmp)) {
583
+ unsigned long len;
584
+ Check_Type(tmp, T_STRING);
585
+ len = RSTRING_LEN(tmp);
586
+ state->space = fstrndup(RSTRING_PTR(tmp), len + 1);
587
+ state->space_len = len;
588
+ }
589
+ tmp = rb_hash_aref(opts, ID2SYM(i_space_before));
590
+ if (RTEST(tmp)) {
591
+ unsigned long len;
592
+ Check_Type(tmp, T_STRING);
593
+ len = RSTRING_LEN(tmp);
594
+ state->space_before = fstrndup(RSTRING_PTR(tmp), len + 1);
595
+ state->space_before_len = len;
596
+ }
597
+ tmp = rb_hash_aref(opts, ID2SYM(i_array_nl));
598
+ if (RTEST(tmp)) {
599
+ unsigned long len;
600
+ Check_Type(tmp, T_STRING);
601
+ len = RSTRING_LEN(tmp);
602
+ state->array_nl = fstrndup(RSTRING_PTR(tmp), len + 1);
603
+ state->array_nl_len = len;
604
+ }
605
+ tmp = rb_hash_aref(opts, ID2SYM(i_object_nl));
606
+ if (RTEST(tmp)) {
607
+ unsigned long len;
608
+ Check_Type(tmp, T_STRING);
609
+ len = RSTRING_LEN(tmp);
610
+ state->object_nl = fstrndup(RSTRING_PTR(tmp), len + 1);
611
+ state->object_nl_len = len;
612
+ }
613
+ tmp = ID2SYM(i_max_nesting);
614
+ state->max_nesting = 100;
615
+ if (option_given_p(opts, tmp)) {
616
+ VALUE max_nesting = rb_hash_aref(opts, tmp);
617
+ if (RTEST(max_nesting)) {
618
+ Check_Type(max_nesting, T_FIXNUM);
619
+ state->max_nesting = FIX2LONG(max_nesting);
620
+ } else {
621
+ state->max_nesting = 0;
622
+ }
623
+ }
624
+ tmp = ID2SYM(i_depth);
625
+ state->depth = 0;
626
+ if (option_given_p(opts, tmp)) {
627
+ VALUE depth = rb_hash_aref(opts, tmp);
628
+ if (RTEST(depth)) {
629
+ Check_Type(depth, T_FIXNUM);
630
+ state->depth = FIX2LONG(depth);
631
+ } else {
632
+ state->depth = 0;
633
+ }
634
+ }
635
+ tmp = ID2SYM(i_buffer_initial_length);
636
+ if (option_given_p(opts, tmp)) {
637
+ VALUE buffer_initial_length = rb_hash_aref(opts, tmp);
638
+ if (RTEST(buffer_initial_length)) {
639
+ long initial_length;
640
+ Check_Type(buffer_initial_length, T_FIXNUM);
641
+ initial_length = FIX2LONG(buffer_initial_length);
642
+ if (initial_length > 0) state->buffer_initial_length = initial_length;
643
+ }
644
+ }
645
+ tmp = rb_hash_aref(opts, ID2SYM(i_allow_nan));
646
+ state->allow_nan = RTEST(tmp);
647
+ tmp = rb_hash_aref(opts, ID2SYM(i_ascii_only));
648
+ state->ascii_only = RTEST(tmp);
649
+ return self;
650
+ }
651
+
652
+ static void set_state_ivars(VALUE hash, VALUE state)
653
+ {
654
+ VALUE ivars = rb_obj_instance_variables(state);
655
+ int i = 0;
656
+ for (i = 0; i < RARRAY_LEN(ivars); i++) {
657
+ VALUE key = rb_funcall(rb_ary_entry(ivars, i), i_to_s, 0);
658
+ long key_len = RSTRING_LEN(key);
659
+ VALUE value = rb_iv_get(state, StringValueCStr(key));
660
+ rb_hash_aset(hash, rb_str_intern(rb_str_substr(key, 1, key_len - 1)), value);
661
+ }
662
+ }
663
+
664
+ /*
665
+ * call-seq: to_h
666
+ *
667
+ * Returns the configuration instance variables as a hash, that can be
668
+ * passed to the configure method.
669
+ */
670
+ static VALUE cState_to_h(VALUE self)
671
+ {
672
+ VALUE result = rb_hash_new();
673
+ GET_STATE(self);
674
+ set_state_ivars(result, self);
675
+ rb_hash_aset(result, ID2SYM(i_indent), rb_str_new(state->indent, state->indent_len));
676
+ rb_hash_aset(result, ID2SYM(i_space), rb_str_new(state->space, state->space_len));
677
+ rb_hash_aset(result, ID2SYM(i_space_before), rb_str_new(state->space_before, state->space_before_len));
678
+ rb_hash_aset(result, ID2SYM(i_object_nl), rb_str_new(state->object_nl, state->object_nl_len));
679
+ rb_hash_aset(result, ID2SYM(i_array_nl), rb_str_new(state->array_nl, state->array_nl_len));
680
+ rb_hash_aset(result, ID2SYM(i_allow_nan), state->allow_nan ? Qtrue : Qfalse);
681
+ rb_hash_aset(result, ID2SYM(i_ascii_only), state->ascii_only ? Qtrue : Qfalse);
682
+ rb_hash_aset(result, ID2SYM(i_max_nesting), LONG2FIX(state->max_nesting));
683
+ rb_hash_aset(result, ID2SYM(i_depth), LONG2FIX(state->depth));
684
+ rb_hash_aset(result, ID2SYM(i_buffer_initial_length), LONG2FIX(state->buffer_initial_length));
685
+ return result;
686
+ }
687
+
688
+ /*
689
+ * call-seq: [](name)
690
+ *
691
+ * Returns the value returned by method +name+.
692
+ */
693
+ static VALUE cState_aref(VALUE self, VALUE name)
694
+ {
695
+ name = rb_funcall(name, i_to_s, 0);
696
+ if (RTEST(rb_funcall(self, i_respond_to_p, 1, name))) {
697
+ return rb_funcall(self, i_send, 1, name);
698
+ } else {
699
+ return rb_attr_get(self, rb_intern_str(rb_str_concat(rb_str_new2("@"), name)));
700
+ }
701
+ }
702
+
703
+ /*
704
+ * call-seq: []=(name, value)
705
+ *
706
+ * Sets the attribute name to value.
707
+ */
708
+ static VALUE cState_aset(VALUE self, VALUE name, VALUE value)
709
+ {
710
+ VALUE name_writer;
711
+
712
+ name = rb_funcall(name, i_to_s, 0);
713
+ name_writer = rb_str_cat2(rb_str_dup(name), "=");
714
+ if (RTEST(rb_funcall(self, i_respond_to_p, 1, name_writer))) {
715
+ return rb_funcall(self, i_send, 2, name_writer, value);
716
+ } else {
717
+ rb_ivar_set(self, rb_intern_str(rb_str_concat(rb_str_new2("@"), name)), value);
718
+ }
719
+ return Qnil;
720
+ }
721
+
722
+ struct hash_foreach_arg {
723
+ FBuffer *buffer;
724
+ JSON_Generator_State *state;
725
+ VALUE Vstate;
726
+ int iter;
727
+ };
728
+
729
+ static int
730
+ json_object_i(VALUE key, VALUE val, VALUE _arg)
731
+ {
732
+ struct hash_foreach_arg *arg = (struct hash_foreach_arg *)_arg;
733
+ FBuffer *buffer = arg->buffer;
734
+ JSON_Generator_State *state = arg->state;
735
+ VALUE Vstate = arg->Vstate;
736
+
737
+ char *object_nl = state->object_nl;
738
+ long object_nl_len = state->object_nl_len;
739
+ char *indent = state->indent;
740
+ long indent_len = state->indent_len;
741
+ char *delim = FBUFFER_PTR(state->object_delim);
742
+ long delim_len = FBUFFER_LEN(state->object_delim);
743
+ char *delim2 = FBUFFER_PTR(state->object_delim2);
744
+ long delim2_len = FBUFFER_LEN(state->object_delim2);
745
+ long depth = state->depth;
746
+ int j;
747
+ VALUE klass, key_to_s;
748
+
749
+ if (arg->iter > 0) fbuffer_append(buffer, delim, delim_len);
750
+ if (object_nl) {
751
+ fbuffer_append(buffer, object_nl, object_nl_len);
752
+ }
753
+ if (indent) {
754
+ for (j = 0; j < depth; j++) {
755
+ fbuffer_append(buffer, indent, indent_len);
756
+ }
757
+ }
758
+
759
+ klass = CLASS_OF(key);
760
+ if (klass == rb_cString) {
761
+ key_to_s = key;
762
+ } else if (klass == rb_cSymbol) {
763
+ key_to_s = rb_id2str(SYM2ID(key));
764
+ } else {
765
+ key_to_s = rb_funcall(key, i_to_s, 0);
766
+ }
767
+ Check_Type(key_to_s, T_STRING);
768
+ generate_json(buffer, Vstate, state, key_to_s);
769
+ fbuffer_append(buffer, delim2, delim2_len);
770
+ generate_json(buffer, Vstate, state, val);
771
+
772
+ arg->iter++;
773
+ return ST_CONTINUE;
774
+ }
775
+
776
+ static void generate_json_object(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
777
+ {
778
+ char *object_nl = state->object_nl;
779
+ long object_nl_len = state->object_nl_len;
780
+ char *indent = state->indent;
781
+ long indent_len = state->indent_len;
782
+ long max_nesting = state->max_nesting;
783
+ long depth = ++state->depth;
784
+ int j;
785
+ struct hash_foreach_arg arg;
786
+
787
+ if (max_nesting != 0 && depth > max_nesting) {
788
+ fbuffer_free(buffer);
789
+ rb_raise(eNestingError, "nesting of %ld is too deep", --state->depth);
790
+ }
791
+ fbuffer_append_char(buffer, '{');
792
+
793
+ arg.buffer = buffer;
794
+ arg.state = state;
795
+ arg.Vstate = Vstate;
796
+ arg.iter = 0;
797
+ rb_hash_foreach(obj, json_object_i, (VALUE)&arg);
798
+
799
+ depth = --state->depth;
800
+ if (object_nl) {
801
+ fbuffer_append(buffer, object_nl, object_nl_len);
802
+ if (indent) {
803
+ for (j = 0; j < depth; j++) {
804
+ fbuffer_append(buffer, indent, indent_len);
805
+ }
806
+ }
807
+ }
808
+ fbuffer_append_char(buffer, '}');
809
+ }
810
+
811
+ static void generate_json_array(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
812
+ {
813
+ char *array_nl = state->array_nl;
814
+ long array_nl_len = state->array_nl_len;
815
+ char *indent = state->indent;
816
+ long indent_len = state->indent_len;
817
+ long max_nesting = state->max_nesting;
818
+ char *delim = FBUFFER_PTR(state->array_delim);
819
+ long delim_len = FBUFFER_LEN(state->array_delim);
820
+ long depth = ++state->depth;
821
+ int i, j;
822
+ if (max_nesting != 0 && depth > max_nesting) {
823
+ fbuffer_free(buffer);
824
+ rb_raise(eNestingError, "nesting of %ld is too deep", --state->depth);
825
+ }
826
+ fbuffer_append_char(buffer, '[');
827
+ if (array_nl) fbuffer_append(buffer, array_nl, array_nl_len);
828
+ for(i = 0; i < RARRAY_LEN(obj); i++) {
829
+ if (i > 0) fbuffer_append(buffer, delim, delim_len);
830
+ if (indent) {
831
+ for (j = 0; j < depth; j++) {
832
+ fbuffer_append(buffer, indent, indent_len);
833
+ }
834
+ }
835
+ generate_json(buffer, Vstate, state, rb_ary_entry(obj, i));
836
+ }
837
+ state->depth = --depth;
838
+ if (array_nl) {
839
+ fbuffer_append(buffer, array_nl, array_nl_len);
840
+ if (indent) {
841
+ for (j = 0; j < depth; j++) {
842
+ fbuffer_append(buffer, indent, indent_len);
843
+ }
844
+ }
845
+ }
846
+ fbuffer_append_char(buffer, ']');
847
+ }
848
+
849
+ #ifdef HAVE_RUBY_ENCODING_H
850
+ static int enc_utf8_compatible_p(rb_encoding *enc)
851
+ {
852
+ if (enc == rb_usascii_encoding()) return 1;
853
+ if (enc == rb_utf8_encoding()) return 1;
854
+ return 0;
855
+ }
856
+ #endif
857
+
858
+ static void generate_json_string(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
859
+ {
860
+ fbuffer_append_char(buffer, '"');
861
+ #ifdef HAVE_RUBY_ENCODING_H
862
+ if (!enc_utf8_compatible_p(rb_enc_get(obj))) {
863
+ obj = rb_str_encode(obj, CEncoding_UTF_8, 0, Qnil);
864
+ }
865
+ #endif
866
+ if (state->ascii_only) {
867
+ convert_UTF8_to_JSON_ASCII(buffer, obj);
868
+ } else {
869
+ convert_UTF8_to_JSON(buffer, obj);
870
+ }
871
+ fbuffer_append_char(buffer, '"');
872
+ }
873
+
874
+ static void generate_json_null(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
875
+ {
876
+ fbuffer_append(buffer, "null", 4);
877
+ }
878
+
879
+ static void generate_json_false(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
880
+ {
881
+ fbuffer_append(buffer, "false", 5);
882
+ }
883
+
884
+ static void generate_json_true(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
885
+ {
886
+ fbuffer_append(buffer, "true", 4);
887
+ }
888
+
889
+ static void generate_json_fixnum(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
890
+ {
891
+ fbuffer_append_long(buffer, FIX2LONG(obj));
892
+ }
893
+
894
+ static void generate_json_bignum(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
895
+ {
896
+ VALUE tmp = rb_funcall(obj, i_to_s, 0);
897
+ fbuffer_append_str(buffer, tmp);
898
+ }
899
+
900
+ #ifdef RUBY_INTEGER_UNIFICATION
901
+ static void generate_json_integer(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
902
+ {
903
+ if (FIXNUM_P(obj))
904
+ generate_json_fixnum(buffer, Vstate, state, obj);
905
+ else
906
+ generate_json_bignum(buffer, Vstate, state, obj);
907
+ }
908
+ #endif
909
+ static void generate_json_float(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
910
+ {
911
+ double value = RFLOAT_VALUE(obj);
912
+ char allow_nan = state->allow_nan;
913
+ VALUE tmp = rb_funcall(obj, i_to_s, 0);
914
+ if (!allow_nan) {
915
+ if (isinf(value)) {
916
+ fbuffer_free(buffer);
917
+ rb_raise(eGeneratorError, "%u: %"PRIsVALUE" not allowed in JSON", __LINE__, RB_OBJ_STRING(tmp));
918
+ } else if (isnan(value)) {
919
+ fbuffer_free(buffer);
920
+ rb_raise(eGeneratorError, "%u: %"PRIsVALUE" not allowed in JSON", __LINE__, RB_OBJ_STRING(tmp));
921
+ }
922
+ }
923
+ fbuffer_append_str(buffer, tmp);
924
+ }
925
+
926
+ static void generate_json(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
927
+ {
928
+ VALUE tmp;
929
+ VALUE klass = CLASS_OF(obj);
930
+ if (klass == rb_cHash) {
931
+ generate_json_object(buffer, Vstate, state, obj);
932
+ } else if (klass == rb_cArray) {
933
+ generate_json_array(buffer, Vstate, state, obj);
934
+ } else if (klass == rb_cString) {
935
+ generate_json_string(buffer, Vstate, state, obj);
936
+ } else if (obj == Qnil) {
937
+ generate_json_null(buffer, Vstate, state, obj);
938
+ } else if (obj == Qfalse) {
939
+ generate_json_false(buffer, Vstate, state, obj);
940
+ } else if (obj == Qtrue) {
941
+ generate_json_true(buffer, Vstate, state, obj);
942
+ } else if (FIXNUM_P(obj)) {
943
+ generate_json_fixnum(buffer, Vstate, state, obj);
944
+ } else if (RB_TYPE_P(obj, T_BIGNUM)) {
945
+ generate_json_bignum(buffer, Vstate, state, obj);
946
+ } else if (klass == rb_cFloat) {
947
+ generate_json_float(buffer, Vstate, state, obj);
948
+ } else if (rb_respond_to(obj, i_to_json)) {
949
+ tmp = rb_funcall(obj, i_to_json, 1, Vstate);
950
+ Check_Type(tmp, T_STRING);
951
+ fbuffer_append_str(buffer, tmp);
952
+ } else {
953
+ tmp = rb_funcall(obj, i_to_s, 0);
954
+ Check_Type(tmp, T_STRING);
955
+ generate_json_string(buffer, Vstate, state, tmp);
956
+ }
957
+ }
958
+
959
+ static FBuffer *cState_prepare_buffer(VALUE self)
960
+ {
961
+ FBuffer *buffer;
962
+ GET_STATE(self);
963
+ buffer = fbuffer_alloc(state->buffer_initial_length);
964
+
965
+ if (state->object_delim) {
966
+ fbuffer_clear(state->object_delim);
967
+ } else {
968
+ state->object_delim = fbuffer_alloc(16);
969
+ }
970
+ fbuffer_append_char(state->object_delim, ',');
971
+ if (state->object_delim2) {
972
+ fbuffer_clear(state->object_delim2);
973
+ } else {
974
+ state->object_delim2 = fbuffer_alloc(16);
975
+ }
976
+ if (state->space_before) fbuffer_append(state->object_delim2, state->space_before, state->space_before_len);
977
+ fbuffer_append_char(state->object_delim2, ':');
978
+ if (state->space) fbuffer_append(state->object_delim2, state->space, state->space_len);
979
+
980
+ if (state->array_delim) {
981
+ fbuffer_clear(state->array_delim);
982
+ } else {
983
+ state->array_delim = fbuffer_alloc(16);
984
+ }
985
+ fbuffer_append_char(state->array_delim, ',');
986
+ if (state->array_nl) fbuffer_append(state->array_delim, state->array_nl, state->array_nl_len);
987
+ return buffer;
988
+ }
989
+
990
+ static VALUE cState_partial_generate(VALUE self, VALUE obj)
991
+ {
992
+ FBuffer *buffer = cState_prepare_buffer(self);
993
+ GET_STATE(self);
994
+ generate_json(buffer, self, state, obj);
995
+ return fbuffer_to_s(buffer);
996
+ }
997
+
998
+ /*
999
+ * call-seq: generate(obj)
1000
+ *
1001
+ * Generates a valid JSON document from object +obj+ and returns the
1002
+ * result. If no valid JSON document can be created this method raises a
1003
+ * GeneratorError exception.
1004
+ */
1005
+ static VALUE cState_generate(VALUE self, VALUE obj)
1006
+ {
1007
+ VALUE result = cState_partial_generate(self, obj);
1008
+ GET_STATE(self);
1009
+ (void)state;
1010
+ return result;
1011
+ }
1012
+
1013
+ /*
1014
+ * call-seq: new(opts = {})
1015
+ *
1016
+ * Instantiates a new State object, configured by _opts_.
1017
+ *
1018
+ * _opts_ can have the following keys:
1019
+ *
1020
+ * * *indent*: a string used to indent levels (default: ''),
1021
+ * * *space*: a string that is put after, a : or , delimiter (default: ''),
1022
+ * * *space_before*: a string that is put before a : pair delimiter (default: ''),
1023
+ * * *object_nl*: a string that is put at the end of a JSON object (default: ''),
1024
+ * * *array_nl*: a string that is put at the end of a JSON array (default: ''),
1025
+ * * *allow_nan*: true if NaN, Infinity, and -Infinity should be
1026
+ * generated, otherwise an exception is thrown, if these values are
1027
+ * encountered. This options defaults to false.
1028
+ * * *ascii_only*: true if only ASCII characters should be generated. This
1029
+ * ontions defaults to false.
1030
+ * * *buffer_initial_length*: sets the initial length of the generator's
1031
+ * internal buffer.
1032
+ */
1033
+ static VALUE cState_initialize(int argc, VALUE *argv, VALUE self)
1034
+ {
1035
+ VALUE opts;
1036
+ GET_STATE(self);
1037
+ state->max_nesting = 100;
1038
+ state->buffer_initial_length = FBUFFER_INITIAL_LENGTH_DEFAULT;
1039
+ rb_scan_args(argc, argv, "01", &opts);
1040
+ if (!NIL_P(opts)) cState_configure(self, opts);
1041
+ return self;
1042
+ }
1043
+
1044
+ /*
1045
+ * call-seq: initialize_copy(orig)
1046
+ *
1047
+ * Initializes this object from orig if it can be duplicated/cloned and returns
1048
+ * it.
1049
+ */
1050
+ static VALUE cState_init_copy(VALUE obj, VALUE orig)
1051
+ {
1052
+ JSON_Generator_State *objState, *origState;
1053
+
1054
+ if (obj == orig) return obj;
1055
+ GET_STATE_TO(obj, objState);
1056
+ GET_STATE_TO(orig, origState);
1057
+ if (!objState) rb_raise(rb_eArgError, "unallocated JSON::State");
1058
+
1059
+ MEMCPY(objState, origState, JSON_Generator_State, 1);
1060
+ objState->indent = fstrndup(origState->indent, origState->indent_len);
1061
+ objState->space = fstrndup(origState->space, origState->space_len);
1062
+ objState->space_before = fstrndup(origState->space_before, origState->space_before_len);
1063
+ objState->object_nl = fstrndup(origState->object_nl, origState->object_nl_len);
1064
+ objState->array_nl = fstrndup(origState->array_nl, origState->array_nl_len);
1065
+ if (origState->array_delim) objState->array_delim = fbuffer_dup(origState->array_delim);
1066
+ if (origState->object_delim) objState->object_delim = fbuffer_dup(origState->object_delim);
1067
+ if (origState->object_delim2) objState->object_delim2 = fbuffer_dup(origState->object_delim2);
1068
+ return obj;
1069
+ }
1070
+
1071
+ /*
1072
+ * call-seq: from_state(opts)
1073
+ *
1074
+ * Creates a State object from _opts_, which ought to be Hash to create a
1075
+ * new State instance configured by _opts_, something else to create an
1076
+ * unconfigured instance. If _opts_ is a State object, it is just returned.
1077
+ */
1078
+ static VALUE cState_from_state_s(VALUE self, VALUE opts)
1079
+ {
1080
+ if (rb_obj_is_kind_of(opts, self)) {
1081
+ return opts;
1082
+ } else if (rb_obj_is_kind_of(opts, rb_cHash)) {
1083
+ return rb_funcall(self, i_new, 1, opts);
1084
+ } else {
1085
+ VALUE prototype = rb_const_get(mJSON, i_SAFE_STATE_PROTOTYPE);
1086
+ return rb_funcall(prototype, i_dup, 0);
1087
+ }
1088
+ }
1089
+
1090
+ /*
1091
+ * call-seq: indent()
1092
+ *
1093
+ * Returns the string that is used to indent levels in the JSON text.
1094
+ */
1095
+ static VALUE cState_indent(VALUE self)
1096
+ {
1097
+ GET_STATE(self);
1098
+ return state->indent ? rb_str_new(state->indent, state->indent_len) : rb_str_new2("");
1099
+ }
1100
+
1101
+ /*
1102
+ * call-seq: indent=(indent)
1103
+ *
1104
+ * Sets the string that is used to indent levels in the JSON text.
1105
+ */
1106
+ static VALUE cState_indent_set(VALUE self, VALUE indent)
1107
+ {
1108
+ unsigned long len;
1109
+ GET_STATE(self);
1110
+ Check_Type(indent, T_STRING);
1111
+ len = RSTRING_LEN(indent);
1112
+ if (len == 0) {
1113
+ if (state->indent) {
1114
+ ruby_xfree(state->indent);
1115
+ state->indent = NULL;
1116
+ state->indent_len = 0;
1117
+ }
1118
+ } else {
1119
+ if (state->indent) ruby_xfree(state->indent);
1120
+ state->indent = fstrndup(RSTRING_PTR(indent), len);
1121
+ state->indent_len = len;
1122
+ }
1123
+ return Qnil;
1124
+ }
1125
+
1126
+ /*
1127
+ * call-seq: space()
1128
+ *
1129
+ * Returns the string that is used to insert a space between the tokens in a JSON
1130
+ * string.
1131
+ */
1132
+ static VALUE cState_space(VALUE self)
1133
+ {
1134
+ GET_STATE(self);
1135
+ return state->space ? rb_str_new(state->space, state->space_len) : rb_str_new2("");
1136
+ }
1137
+
1138
+ /*
1139
+ * call-seq: space=(space)
1140
+ *
1141
+ * Sets _space_ to the string that is used to insert a space between the tokens in a JSON
1142
+ * string.
1143
+ */
1144
+ static VALUE cState_space_set(VALUE self, VALUE space)
1145
+ {
1146
+ unsigned long len;
1147
+ GET_STATE(self);
1148
+ Check_Type(space, T_STRING);
1149
+ len = RSTRING_LEN(space);
1150
+ if (len == 0) {
1151
+ if (state->space) {
1152
+ ruby_xfree(state->space);
1153
+ state->space = NULL;
1154
+ state->space_len = 0;
1155
+ }
1156
+ } else {
1157
+ if (state->space) ruby_xfree(state->space);
1158
+ state->space = fstrndup(RSTRING_PTR(space), len);
1159
+ state->space_len = len;
1160
+ }
1161
+ return Qnil;
1162
+ }
1163
+
1164
+ /*
1165
+ * call-seq: space_before()
1166
+ *
1167
+ * Returns the string that is used to insert a space before the ':' in JSON objects.
1168
+ */
1169
+ static VALUE cState_space_before(VALUE self)
1170
+ {
1171
+ GET_STATE(self);
1172
+ return state->space_before ? rb_str_new(state->space_before, state->space_before_len) : rb_str_new2("");
1173
+ }
1174
+
1175
+ /*
1176
+ * call-seq: space_before=(space_before)
1177
+ *
1178
+ * Sets the string that is used to insert a space before the ':' in JSON objects.
1179
+ */
1180
+ static VALUE cState_space_before_set(VALUE self, VALUE space_before)
1181
+ {
1182
+ unsigned long len;
1183
+ GET_STATE(self);
1184
+ Check_Type(space_before, T_STRING);
1185
+ len = RSTRING_LEN(space_before);
1186
+ if (len == 0) {
1187
+ if (state->space_before) {
1188
+ ruby_xfree(state->space_before);
1189
+ state->space_before = NULL;
1190
+ state->space_before_len = 0;
1191
+ }
1192
+ } else {
1193
+ if (state->space_before) ruby_xfree(state->space_before);
1194
+ state->space_before = fstrndup(RSTRING_PTR(space_before), len);
1195
+ state->space_before_len = len;
1196
+ }
1197
+ return Qnil;
1198
+ }
1199
+
1200
+ /*
1201
+ * call-seq: object_nl()
1202
+ *
1203
+ * This string is put at the end of a line that holds a JSON object (or
1204
+ * Hash).
1205
+ */
1206
+ static VALUE cState_object_nl(VALUE self)
1207
+ {
1208
+ GET_STATE(self);
1209
+ return state->object_nl ? rb_str_new(state->object_nl, state->object_nl_len) : rb_str_new2("");
1210
+ }
1211
+
1212
+ /*
1213
+ * call-seq: object_nl=(object_nl)
1214
+ *
1215
+ * This string is put at the end of a line that holds a JSON object (or
1216
+ * Hash).
1217
+ */
1218
+ static VALUE cState_object_nl_set(VALUE self, VALUE object_nl)
1219
+ {
1220
+ unsigned long len;
1221
+ GET_STATE(self);
1222
+ Check_Type(object_nl, T_STRING);
1223
+ len = RSTRING_LEN(object_nl);
1224
+ if (len == 0) {
1225
+ if (state->object_nl) {
1226
+ ruby_xfree(state->object_nl);
1227
+ state->object_nl = NULL;
1228
+ }
1229
+ } else {
1230
+ if (state->object_nl) ruby_xfree(state->object_nl);
1231
+ state->object_nl = fstrndup(RSTRING_PTR(object_nl), len);
1232
+ state->object_nl_len = len;
1233
+ }
1234
+ return Qnil;
1235
+ }
1236
+
1237
+ /*
1238
+ * call-seq: array_nl()
1239
+ *
1240
+ * This string is put at the end of a line that holds a JSON array.
1241
+ */
1242
+ static VALUE cState_array_nl(VALUE self)
1243
+ {
1244
+ GET_STATE(self);
1245
+ return state->array_nl ? rb_str_new(state->array_nl, state->array_nl_len) : rb_str_new2("");
1246
+ }
1247
+
1248
+ /*
1249
+ * call-seq: array_nl=(array_nl)
1250
+ *
1251
+ * This string is put at the end of a line that holds a JSON array.
1252
+ */
1253
+ static VALUE cState_array_nl_set(VALUE self, VALUE array_nl)
1254
+ {
1255
+ unsigned long len;
1256
+ GET_STATE(self);
1257
+ Check_Type(array_nl, T_STRING);
1258
+ len = RSTRING_LEN(array_nl);
1259
+ if (len == 0) {
1260
+ if (state->array_nl) {
1261
+ ruby_xfree(state->array_nl);
1262
+ state->array_nl = NULL;
1263
+ }
1264
+ } else {
1265
+ if (state->array_nl) ruby_xfree(state->array_nl);
1266
+ state->array_nl = fstrndup(RSTRING_PTR(array_nl), len);
1267
+ state->array_nl_len = len;
1268
+ }
1269
+ return Qnil;
1270
+ }
1271
+
1272
+
1273
+ /*
1274
+ * call-seq: check_circular?
1275
+ *
1276
+ * Returns true, if circular data structures should be checked,
1277
+ * otherwise returns false.
1278
+ */
1279
+ static VALUE cState_check_circular_p(VALUE self)
1280
+ {
1281
+ GET_STATE(self);
1282
+ return state->max_nesting ? Qtrue : Qfalse;
1283
+ }
1284
+
1285
+ /*
1286
+ * call-seq: max_nesting
1287
+ *
1288
+ * This integer returns the maximum level of data structure nesting in
1289
+ * the generated JSON, max_nesting = 0 if no maximum is checked.
1290
+ */
1291
+ static VALUE cState_max_nesting(VALUE self)
1292
+ {
1293
+ GET_STATE(self);
1294
+ return LONG2FIX(state->max_nesting);
1295
+ }
1296
+
1297
+ /*
1298
+ * call-seq: max_nesting=(depth)
1299
+ *
1300
+ * This sets the maximum level of data structure nesting in the generated JSON
1301
+ * to the integer depth, max_nesting = 0 if no maximum should be checked.
1302
+ */
1303
+ static VALUE cState_max_nesting_set(VALUE self, VALUE depth)
1304
+ {
1305
+ GET_STATE(self);
1306
+ Check_Type(depth, T_FIXNUM);
1307
+ return state->max_nesting = FIX2LONG(depth);
1308
+ }
1309
+
1310
+ /*
1311
+ * call-seq: allow_nan?
1312
+ *
1313
+ * Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise
1314
+ * returns false.
1315
+ */
1316
+ static VALUE cState_allow_nan_p(VALUE self)
1317
+ {
1318
+ GET_STATE(self);
1319
+ return state->allow_nan ? Qtrue : Qfalse;
1320
+ }
1321
+
1322
+ /*
1323
+ * call-seq: ascii_only?
1324
+ *
1325
+ * Returns true, if only ASCII characters should be generated. Otherwise
1326
+ * returns false.
1327
+ */
1328
+ static VALUE cState_ascii_only_p(VALUE self)
1329
+ {
1330
+ GET_STATE(self);
1331
+ return state->ascii_only ? Qtrue : Qfalse;
1332
+ }
1333
+
1334
+ /*
1335
+ * call-seq: depth
1336
+ *
1337
+ * This integer returns the current depth of data structure nesting.
1338
+ */
1339
+ static VALUE cState_depth(VALUE self)
1340
+ {
1341
+ GET_STATE(self);
1342
+ return LONG2FIX(state->depth);
1343
+ }
1344
+
1345
+ /*
1346
+ * call-seq: depth=(depth)
1347
+ *
1348
+ * This sets the maximum level of data structure nesting in the generated JSON
1349
+ * to the integer depth, max_nesting = 0 if no maximum should be checked.
1350
+ */
1351
+ static VALUE cState_depth_set(VALUE self, VALUE depth)
1352
+ {
1353
+ GET_STATE(self);
1354
+ Check_Type(depth, T_FIXNUM);
1355
+ state->depth = FIX2LONG(depth);
1356
+ return Qnil;
1357
+ }
1358
+
1359
+ /*
1360
+ * call-seq: buffer_initial_length
1361
+ *
1362
+ * This integer returns the current initial length of the buffer.
1363
+ */
1364
+ static VALUE cState_buffer_initial_length(VALUE self)
1365
+ {
1366
+ GET_STATE(self);
1367
+ return LONG2FIX(state->buffer_initial_length);
1368
+ }
1369
+
1370
+ /*
1371
+ * call-seq: buffer_initial_length=(length)
1372
+ *
1373
+ * This sets the initial length of the buffer to +length+, if +length+ > 0,
1374
+ * otherwise its value isn't changed.
1375
+ */
1376
+ static VALUE cState_buffer_initial_length_set(VALUE self, VALUE buffer_initial_length)
1377
+ {
1378
+ long initial_length;
1379
+ GET_STATE(self);
1380
+ Check_Type(buffer_initial_length, T_FIXNUM);
1381
+ initial_length = FIX2LONG(buffer_initial_length);
1382
+ if (initial_length > 0) {
1383
+ state->buffer_initial_length = initial_length;
1384
+ }
1385
+ return Qnil;
1386
+ }
1387
+
1388
+ /*
1389
+ *
1390
+ */
1391
+ void Init_generator(void)
1392
+ {
1393
+ #undef rb_intern
1394
+ rb_require("json/common");
1395
+
1396
+ mJSON = rb_define_module("JSON");
1397
+ mExt = rb_define_module_under(mJSON, "Ext");
1398
+ mGenerator = rb_define_module_under(mExt, "Generator");
1399
+
1400
+ eGeneratorError = rb_path2class("JSON::GeneratorError");
1401
+ eNestingError = rb_path2class("JSON::NestingError");
1402
+ rb_gc_register_mark_object(eGeneratorError);
1403
+ rb_gc_register_mark_object(eNestingError);
1404
+
1405
+ cState = rb_define_class_under(mGenerator, "State", rb_cObject);
1406
+ rb_define_alloc_func(cState, cState_s_allocate);
1407
+ rb_define_singleton_method(cState, "from_state", cState_from_state_s, 1);
1408
+ rb_define_method(cState, "initialize", cState_initialize, -1);
1409
+ rb_define_method(cState, "initialize_copy", cState_init_copy, 1);
1410
+ rb_define_method(cState, "indent", cState_indent, 0);
1411
+ rb_define_method(cState, "indent=", cState_indent_set, 1);
1412
+ rb_define_method(cState, "space", cState_space, 0);
1413
+ rb_define_method(cState, "space=", cState_space_set, 1);
1414
+ rb_define_method(cState, "space_before", cState_space_before, 0);
1415
+ rb_define_method(cState, "space_before=", cState_space_before_set, 1);
1416
+ rb_define_method(cState, "object_nl", cState_object_nl, 0);
1417
+ rb_define_method(cState, "object_nl=", cState_object_nl_set, 1);
1418
+ rb_define_method(cState, "array_nl", cState_array_nl, 0);
1419
+ rb_define_method(cState, "array_nl=", cState_array_nl_set, 1);
1420
+ rb_define_method(cState, "max_nesting", cState_max_nesting, 0);
1421
+ rb_define_method(cState, "max_nesting=", cState_max_nesting_set, 1);
1422
+ rb_define_method(cState, "check_circular?", cState_check_circular_p, 0);
1423
+ rb_define_method(cState, "allow_nan?", cState_allow_nan_p, 0);
1424
+ rb_define_method(cState, "ascii_only?", cState_ascii_only_p, 0);
1425
+ rb_define_method(cState, "depth", cState_depth, 0);
1426
+ rb_define_method(cState, "depth=", cState_depth_set, 1);
1427
+ rb_define_method(cState, "buffer_initial_length", cState_buffer_initial_length, 0);
1428
+ rb_define_method(cState, "buffer_initial_length=", cState_buffer_initial_length_set, 1);
1429
+ rb_define_method(cState, "configure", cState_configure, 1);
1430
+ rb_define_alias(cState, "merge", "configure");
1431
+ rb_define_method(cState, "to_h", cState_to_h, 0);
1432
+ rb_define_alias(cState, "to_hash", "to_h");
1433
+ rb_define_method(cState, "[]", cState_aref, 1);
1434
+ rb_define_method(cState, "[]=", cState_aset, 2);
1435
+ rb_define_method(cState, "generate", cState_generate, 1);
1436
+
1437
+ mGeneratorMethods = rb_define_module_under(mGenerator, "GeneratorMethods");
1438
+ mObject = rb_define_module_under(mGeneratorMethods, "Object");
1439
+ rb_define_method(mObject, "to_json", mObject_to_json, -1);
1440
+ mHash = rb_define_module_under(mGeneratorMethods, "Hash");
1441
+ rb_define_method(mHash, "to_json", mHash_to_json, -1);
1442
+ mArray = rb_define_module_under(mGeneratorMethods, "Array");
1443
+ rb_define_method(mArray, "to_json", mArray_to_json, -1);
1444
+ #ifdef RUBY_INTEGER_UNIFICATION
1445
+ mInteger = rb_define_module_under(mGeneratorMethods, "Integer");
1446
+ rb_define_method(mInteger, "to_json", mInteger_to_json, -1);
1447
+ #else
1448
+ mFixnum = rb_define_module_under(mGeneratorMethods, "Fixnum");
1449
+ rb_define_method(mFixnum, "to_json", mFixnum_to_json, -1);
1450
+ mBignum = rb_define_module_under(mGeneratorMethods, "Bignum");
1451
+ rb_define_method(mBignum, "to_json", mBignum_to_json, -1);
1452
+ #endif
1453
+ mFloat = rb_define_module_under(mGeneratorMethods, "Float");
1454
+ rb_define_method(mFloat, "to_json", mFloat_to_json, -1);
1455
+ mString = rb_define_module_under(mGeneratorMethods, "String");
1456
+ rb_define_singleton_method(mString, "included", mString_included_s, 1);
1457
+ rb_define_method(mString, "to_json", mString_to_json, -1);
1458
+ rb_define_method(mString, "to_json_raw", mString_to_json_raw, -1);
1459
+ rb_define_method(mString, "to_json_raw_object", mString_to_json_raw_object, 0);
1460
+ mString_Extend = rb_define_module_under(mString, "Extend");
1461
+ rb_define_method(mString_Extend, "json_create", mString_Extend_json_create, 1);
1462
+ mTrueClass = rb_define_module_under(mGeneratorMethods, "TrueClass");
1463
+ rb_define_method(mTrueClass, "to_json", mTrueClass_to_json, -1);
1464
+ mFalseClass = rb_define_module_under(mGeneratorMethods, "FalseClass");
1465
+ rb_define_method(mFalseClass, "to_json", mFalseClass_to_json, -1);
1466
+ mNilClass = rb_define_module_under(mGeneratorMethods, "NilClass");
1467
+ rb_define_method(mNilClass, "to_json", mNilClass_to_json, -1);
1468
+
1469
+ i_to_s = rb_intern("to_s");
1470
+ i_to_json = rb_intern("to_json");
1471
+ i_new = rb_intern("new");
1472
+ i_indent = rb_intern("indent");
1473
+ i_space = rb_intern("space");
1474
+ i_space_before = rb_intern("space_before");
1475
+ i_object_nl = rb_intern("object_nl");
1476
+ i_array_nl = rb_intern("array_nl");
1477
+ i_max_nesting = rb_intern("max_nesting");
1478
+ i_allow_nan = rb_intern("allow_nan");
1479
+ i_ascii_only = rb_intern("ascii_only");
1480
+ i_depth = rb_intern("depth");
1481
+ i_buffer_initial_length = rb_intern("buffer_initial_length");
1482
+ i_pack = rb_intern("pack");
1483
+ i_unpack = rb_intern("unpack");
1484
+ i_create_id = rb_intern("create_id");
1485
+ i_extend = rb_intern("extend");
1486
+ i_key_p = rb_intern("key?");
1487
+ i_aref = rb_intern("[]");
1488
+ i_send = rb_intern("__send__");
1489
+ i_respond_to_p = rb_intern("respond_to?");
1490
+ i_match = rb_intern("match");
1491
+ i_keys = rb_intern("keys");
1492
+ i_dup = rb_intern("dup");
1493
+ #ifdef HAVE_RUBY_ENCODING_H
1494
+ CEncoding_UTF_8 = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-8"));
1495
+ i_encoding = rb_intern("encoding");
1496
+ i_encode = rb_intern("encode");
1497
+ #endif
1498
+ i_SAFE_STATE_PROTOTYPE = rb_intern("SAFE_STATE_PROTOTYPE");
1499
+ }