nyara 0.0.1.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/example/design.rb +62 -0
  3. data/example/fib.rb +15 -0
  4. data/example/hello.rb +5 -0
  5. data/example/stream.rb +10 -0
  6. data/ext/accept.c +133 -0
  7. data/ext/event.c +89 -0
  8. data/ext/extconf.rb +34 -0
  9. data/ext/hashes.c +130 -0
  10. data/ext/http-parser/AUTHORS +41 -0
  11. data/ext/http-parser/CONTRIBUTIONS +4 -0
  12. data/ext/http-parser/LICENSE-MIT +23 -0
  13. data/ext/http-parser/contrib/parsertrace.c +156 -0
  14. data/ext/http-parser/contrib/url_parser.c +44 -0
  15. data/ext/http-parser/http_parser.c +2175 -0
  16. data/ext/http-parser/http_parser.h +304 -0
  17. data/ext/http-parser/test.c +3425 -0
  18. data/ext/http_parser.c +1 -0
  19. data/ext/inc/epoll.h +60 -0
  20. data/ext/inc/kqueue.h +77 -0
  21. data/ext/inc/status_codes.inc +64 -0
  22. data/ext/inc/str_intern.h +66 -0
  23. data/ext/inc/version.inc +1 -0
  24. data/ext/mime.c +107 -0
  25. data/ext/multipart-parser-c/README.md +18 -0
  26. data/ext/multipart-parser-c/multipart_parser.c +309 -0
  27. data/ext/multipart-parser-c/multipart_parser.h +48 -0
  28. data/ext/multipart_parser.c +1 -0
  29. data/ext/nyara.c +56 -0
  30. data/ext/nyara.h +59 -0
  31. data/ext/request.c +474 -0
  32. data/ext/route.cc +325 -0
  33. data/ext/url_encoded.c +304 -0
  34. data/hello.rb +5 -0
  35. data/lib/nyara/config.rb +64 -0
  36. data/lib/nyara/config_hash.rb +51 -0
  37. data/lib/nyara/controller.rb +336 -0
  38. data/lib/nyara/cookie.rb +31 -0
  39. data/lib/nyara/cpu_counter.rb +65 -0
  40. data/lib/nyara/header_hash.rb +18 -0
  41. data/lib/nyara/mime_types.rb +612 -0
  42. data/lib/nyara/nyara.rb +82 -0
  43. data/lib/nyara/param_hash.rb +5 -0
  44. data/lib/nyara/request.rb +144 -0
  45. data/lib/nyara/route.rb +138 -0
  46. data/lib/nyara/route_entry.rb +43 -0
  47. data/lib/nyara/session.rb +104 -0
  48. data/lib/nyara/view.rb +317 -0
  49. data/lib/nyara.rb +25 -0
  50. data/nyara.gemspec +20 -0
  51. data/rakefile +91 -0
  52. data/readme.md +35 -0
  53. data/spec/ext_mime_match_spec.rb +27 -0
  54. data/spec/ext_parse_accept_value_spec.rb +29 -0
  55. data/spec/ext_parse_spec.rb +138 -0
  56. data/spec/ext_route_spec.rb +70 -0
  57. data/spec/hashes_spec.rb +71 -0
  58. data/spec/path_helper_spec.rb +77 -0
  59. data/spec/request_delegate_spec.rb +67 -0
  60. data/spec/request_spec.rb +56 -0
  61. data/spec/route_entry_spec.rb +12 -0
  62. data/spec/route_spec.rb +84 -0
  63. data/spec/session_spec.rb +66 -0
  64. data/spec/spec_helper.rb +52 -0
  65. data/spec/view_spec.rb +87 -0
  66. data/tools/bench-cookie.rb +22 -0
  67. metadata +111 -0
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nyara
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.pre
5
+ platform: ruby
6
+ authors:
7
+ - Zete Lui
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-06-19 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Fast, slim and fuzzy ruby web framework + server, based on preforked
14
+ event queue and Fiber. NO rack NOR eventmachine are used.
15
+ email: nobody@example.com
16
+ executables: []
17
+ extensions:
18
+ - ext/extconf.rb
19
+ extra_rdoc_files: []
20
+ files:
21
+ - rakefile
22
+ - nyara.gemspec
23
+ - readme.md
24
+ - example/design.rb
25
+ - example/fib.rb
26
+ - example/hello.rb
27
+ - example/stream.rb
28
+ - ext/extconf.rb
29
+ - hello.rb
30
+ - lib/nyara/config.rb
31
+ - lib/nyara/config_hash.rb
32
+ - lib/nyara/controller.rb
33
+ - lib/nyara/cookie.rb
34
+ - lib/nyara/cpu_counter.rb
35
+ - lib/nyara/header_hash.rb
36
+ - lib/nyara/mime_types.rb
37
+ - lib/nyara/nyara.rb
38
+ - lib/nyara/param_hash.rb
39
+ - lib/nyara/request.rb
40
+ - lib/nyara/route.rb
41
+ - lib/nyara/route_entry.rb
42
+ - lib/nyara/session.rb
43
+ - lib/nyara/view.rb
44
+ - lib/nyara.rb
45
+ - spec/ext_mime_match_spec.rb
46
+ - spec/ext_parse_accept_value_spec.rb
47
+ - spec/ext_parse_spec.rb
48
+ - spec/ext_route_spec.rb
49
+ - spec/hashes_spec.rb
50
+ - spec/path_helper_spec.rb
51
+ - spec/request_delegate_spec.rb
52
+ - spec/request_spec.rb
53
+ - spec/route_entry_spec.rb
54
+ - spec/route_spec.rb
55
+ - spec/session_spec.rb
56
+ - spec/spec_helper.rb
57
+ - spec/view_spec.rb
58
+ - tools/bench-cookie.rb
59
+ - ext/http-parser/http_parser.h
60
+ - ext/inc/epoll.h
61
+ - ext/inc/kqueue.h
62
+ - ext/inc/str_intern.h
63
+ - ext/multipart-parser-c/multipart_parser.h
64
+ - ext/nyara.h
65
+ - ext/accept.c
66
+ - ext/event.c
67
+ - ext/hashes.c
68
+ - ext/http-parser/contrib/parsertrace.c
69
+ - ext/http-parser/contrib/url_parser.c
70
+ - ext/http-parser/http_parser.c
71
+ - ext/http-parser/test.c
72
+ - ext/http_parser.c
73
+ - ext/mime.c
74
+ - ext/multipart-parser-c/multipart_parser.c
75
+ - ext/multipart_parser.c
76
+ - ext/nyara.c
77
+ - ext/request.c
78
+ - ext/url_encoded.c
79
+ - ext/route.cc
80
+ - ext/inc/status_codes.inc
81
+ - ext/inc/version.inc
82
+ - ext/http-parser/AUTHORS
83
+ - ext/http-parser/CONTRIBUTIONS
84
+ - ext/http-parser/LICENSE-MIT
85
+ - ext/multipart-parser-c/README.md
86
+ homepage: https://github.com/luikore/nyara
87
+ licenses:
88
+ - BSD
89
+ metadata: {}
90
+ post_install_message:
91
+ rdoc_options: []
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - '>='
97
+ - !ruby/object:Gem::Version
98
+ version: 2.0.0
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>'
102
+ - !ruby/object:Gem::Version
103
+ version: 1.3.1
104
+ requirements: []
105
+ rubyforge_project:
106
+ rubygems_version: 2.0.3
107
+ signing_key:
108
+ specification_version: 4
109
+ summary: Fast, slim and fuzzy ruby web framework + server
110
+ test_files: []
111
+ has_rdoc: false