hotcell 0.0.1

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 (50) hide show
  1. data/.gitignore +19 -0
  2. data/.rspec +2 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +15 -0
  5. data/Guardfile +24 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +29 -0
  8. data/Rakefile +17 -0
  9. data/hotcell.gemspec +22 -0
  10. data/lib/hotcell/.DS_Store +0 -0
  11. data/lib/hotcell/config.rb +31 -0
  12. data/lib/hotcell/context.rb +36 -0
  13. data/lib/hotcell/errors.rb +43 -0
  14. data/lib/hotcell/extensions.rb +42 -0
  15. data/lib/hotcell/lexer.rb +783 -0
  16. data/lib/hotcell/lexer.rl +299 -0
  17. data/lib/hotcell/manipulator.rb +31 -0
  18. data/lib/hotcell/node/arrayer.rb +7 -0
  19. data/lib/hotcell/node/assigner.rb +11 -0
  20. data/lib/hotcell/node/block.rb +58 -0
  21. data/lib/hotcell/node/calculator.rb +35 -0
  22. data/lib/hotcell/node/command.rb +41 -0
  23. data/lib/hotcell/node/hasher.rb +7 -0
  24. data/lib/hotcell/node/joiner.rb +7 -0
  25. data/lib/hotcell/node/sequencer.rb +7 -0
  26. data/lib/hotcell/node/summoner.rb +11 -0
  27. data/lib/hotcell/node/tag.rb +26 -0
  28. data/lib/hotcell/node.rb +55 -0
  29. data/lib/hotcell/parser.rb +1186 -0
  30. data/lib/hotcell/parser.y +231 -0
  31. data/lib/hotcell/scope.rb +57 -0
  32. data/lib/hotcell/template.rb +29 -0
  33. data/lib/hotcell/version.rb +3 -0
  34. data/lib/hotcell.rb +19 -0
  35. data/misc/rage.rl +1999 -0
  36. data/misc/unicode2ragel.rb +305 -0
  37. data/spec/data/dstrings +8 -0
  38. data/spec/data/sstrings +6 -0
  39. data/spec/lib/hotcell/config_spec.rb +57 -0
  40. data/spec/lib/hotcell/context_spec.rb +53 -0
  41. data/spec/lib/hotcell/lexer_spec.rb +340 -0
  42. data/spec/lib/hotcell/manipulator_spec.rb +64 -0
  43. data/spec/lib/hotcell/node/block_spec.rb +188 -0
  44. data/spec/lib/hotcell/node/command_spec.rb +71 -0
  45. data/spec/lib/hotcell/parser_spec.rb +382 -0
  46. data/spec/lib/hotcell/scope_spec.rb +160 -0
  47. data/spec/lib/hotcell/template_spec.rb +41 -0
  48. data/spec/lib/hotcell_spec.rb +8 -0
  49. data/spec/spec_helper.rb +44 -0
  50. metadata +139 -0
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hotcell
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - pyromaniac
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-06-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activesupport
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: racc
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: Sandboxed ruby template processor
47
+ email:
48
+ - kinwizard@gmail.com
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - .gitignore
54
+ - .rspec
55
+ - .rvmrc
56
+ - Gemfile
57
+ - Guardfile
58
+ - LICENSE.txt
59
+ - README.md
60
+ - Rakefile
61
+ - hotcell.gemspec
62
+ - lib/hotcell.rb
63
+ - lib/hotcell/.DS_Store
64
+ - lib/hotcell/config.rb
65
+ - lib/hotcell/context.rb
66
+ - lib/hotcell/errors.rb
67
+ - lib/hotcell/extensions.rb
68
+ - lib/hotcell/lexer.rb
69
+ - lib/hotcell/lexer.rl
70
+ - lib/hotcell/manipulator.rb
71
+ - lib/hotcell/node.rb
72
+ - lib/hotcell/node/arrayer.rb
73
+ - lib/hotcell/node/assigner.rb
74
+ - lib/hotcell/node/block.rb
75
+ - lib/hotcell/node/calculator.rb
76
+ - lib/hotcell/node/command.rb
77
+ - lib/hotcell/node/hasher.rb
78
+ - lib/hotcell/node/joiner.rb
79
+ - lib/hotcell/node/sequencer.rb
80
+ - lib/hotcell/node/summoner.rb
81
+ - lib/hotcell/node/tag.rb
82
+ - lib/hotcell/parser.rb
83
+ - lib/hotcell/parser.y
84
+ - lib/hotcell/scope.rb
85
+ - lib/hotcell/template.rb
86
+ - lib/hotcell/version.rb
87
+ - misc/rage.rl
88
+ - misc/unicode2ragel.rb
89
+ - spec/data/dstrings
90
+ - spec/data/sstrings
91
+ - spec/lib/hotcell/config_spec.rb
92
+ - spec/lib/hotcell/context_spec.rb
93
+ - spec/lib/hotcell/lexer_spec.rb
94
+ - spec/lib/hotcell/manipulator_spec.rb
95
+ - spec/lib/hotcell/node/block_spec.rb
96
+ - spec/lib/hotcell/node/command_spec.rb
97
+ - spec/lib/hotcell/parser_spec.rb
98
+ - spec/lib/hotcell/scope_spec.rb
99
+ - spec/lib/hotcell/template_spec.rb
100
+ - spec/lib/hotcell_spec.rb
101
+ - spec/spec_helper.rb
102
+ homepage: ''
103
+ licenses: []
104
+ post_install_message:
105
+ rdoc_options: []
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ! '>='
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ requirements: []
121
+ rubyforge_project:
122
+ rubygems_version: 1.8.25
123
+ signing_key:
124
+ specification_version: 3
125
+ summary: Sandboxed ruby template processor
126
+ test_files:
127
+ - spec/data/dstrings
128
+ - spec/data/sstrings
129
+ - spec/lib/hotcell/config_spec.rb
130
+ - spec/lib/hotcell/context_spec.rb
131
+ - spec/lib/hotcell/lexer_spec.rb
132
+ - spec/lib/hotcell/manipulator_spec.rb
133
+ - spec/lib/hotcell/node/block_spec.rb
134
+ - spec/lib/hotcell/node/command_spec.rb
135
+ - spec/lib/hotcell/parser_spec.rb
136
+ - spec/lib/hotcell/scope_spec.rb
137
+ - spec/lib/hotcell/template_spec.rb
138
+ - spec/lib/hotcell_spec.rb
139
+ - spec/spec_helper.rb