wlang 2.2.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +16 -0
  3. data/Gemfile +1 -21
  4. data/Gemfile.lock +34 -38
  5. data/LICENCE.md +17 -19
  6. data/README.md +26 -64
  7. data/lib/wlang.rb +0 -9
  8. data/lib/wlang/compiler/dialect_enforcer.rb +2 -0
  9. data/lib/wlang/compiler/grammar.citrus +6 -6
  10. data/lib/wlang/compiler/to_ruby_code.rb +2 -0
  11. data/lib/wlang/dialect.rb +1 -1
  12. data/lib/wlang/html.rb +1 -1
  13. data/lib/wlang/loader.rb +0 -1
  14. data/lib/wlang/scope.rb +0 -2
  15. data/lib/wlang/template.rb +14 -13
  16. data/lib/wlang/version.rb +3 -3
  17. data/spec/fixtures/templates/front_matter.wlang +4 -0
  18. data/spec/spec_helper.rb +0 -7
  19. data/spec/unit/compiler/test_to_ruby_code.rb +2 -2
  20. data/spec/unit/scope/test_coerce.rb +0 -4
  21. data/spec/unit/source/test_path.rb +3 -3
  22. data/spec/unit/source/test_template_content.rb +1 -1
  23. data/spec/unit/template/test_path.rb +2 -2
  24. data/spec/unit/template/test_to_ruby_code.rb +1 -1
  25. data/spec/unit/test_assumptions.rb +1 -1
  26. data/tasks/test.rake +17 -0
  27. data/wlang.gemspec +5 -169
  28. metadata +114 -249
  29. data/lib/wlang/scope/sinatra_scope.rb +0 -44
  30. data/lib/wlang/tilt.rb +0 -3
  31. data/lib/wlang/tilt/wlang_template.rb +0 -43
  32. data/spec/integration/sinatra/test_partials.rb +0 -35
  33. data/spec/integration/tilt/test_wlang_template.rb +0 -13
  34. data/spec/unit/scope/sinatra_scope/test_fetch.rb +0 -28
  35. data/spec/unit/tilt/test_wlang_template.rb +0 -65
  36. data/tasks/debug_mail.rake +0 -75
  37. data/tasks/debug_mail.txt +0 -13
  38. data/tasks/spec_test.rake +0 -71
  39. data/tasks/unit_test.rake +0 -76
  40. data/tasks/yard.rake +0 -51
  41. data/wlang.noespec +0 -45
@@ -1,51 +0,0 @@
1
- # Installs a rake task to generate API documentation using yard.
2
- #
3
- # This file installs the 'rake yard' task. It is automatically generated by Noe from
4
- # your .noespec file, and should therefore be configured there, under the
5
- # variables/rake_tasks/yard entry, as illustrated below:
6
- #
7
- # variables:
8
- # rake_tasks:
9
- # yard:
10
- # files: lib/**/*.rb
11
- # options: []
12
- # ...
13
- #
14
- # If you have specific needs requiring manual intervention on this file,
15
- # don't forget to set safe-override to false in your noe specification:
16
- #
17
- # template-info:
18
- # manifest:
19
- # tasks/yard.rake:
20
- # safe-override: false
21
- #
22
- # This file has been written to conform to yard v0.6.4. More information about
23
- # yard and the rake task installed below can be found on http://yardoc.org/
24
- #
25
- begin
26
- require "yard"
27
- desc "Generate yard documentation"
28
- YARD::Rake::YardocTask.new(:yard) do |t|
29
- # Array of options passed to yardoc commandline. See 'yardoc --help' about this
30
- t.options = ["--output-dir", "doc/api", "-", "README.md", "CHANGELOG.md", "LICENCE.md"]
31
-
32
- # Array of ruby source files (and any extra documentation files
33
- # separated by '-')
34
- t.files = ["lib/**/*.rb"]
35
-
36
- # A proc to call before running the task
37
- # t.before = proc{ }
38
-
39
- # A proc to call after running the task
40
- # r.after = proc{ }
41
-
42
- # An optional lambda to run against all objects being generated.
43
- # Any object that the lambda returns false for will be excluded
44
- # from documentation.
45
- # t.verifier = lambda{|obj| true}
46
- end
47
- rescue LoadError
48
- task :yard do
49
- abort 'yard is not available. In order to run yard, you must: gem install yard'
50
- end
51
- end
@@ -1,45 +0,0 @@
1
- template-info:
2
- name: "rubygem.noe"
3
- version: 2.0.0
4
- links:
5
- source: https://github.com/blambeau/noe
6
- manifest:
7
- lib/__lower__/loader.rb:
8
- safe-override: false
9
- variables:
10
- lower:
11
- wlang
12
- upper:
13
- WLang
14
- version:
15
- 2.2.2
16
- summary: |-
17
- WLang is a powerful code generation and templating engine
18
- description: |-
19
- WLang is a general-purpose *code generation*/*templating engine*. It's main aim is to
20
- help you generating web pages, sql queries, ruby code (that is, generating text in
21
- general) without having to worry too much about html entities encoding, sql back
22
- quoting, string escaping and the like. WLang proposes a generic engine that you can
23
- easily extend to fit your needs. It also proposes standard instantiations of this
24
- engine for common tasks such as rendering HTML web pages.
25
- authors:
26
- - {name: Bernard Lambeau, email: blambeau@gmail.com}
27
- - {name: Louis Lambeau, email: llambeau@gmail.com}
28
- links:
29
- - http://github.com/blambeau/wlang
30
- - http://rubygems.org/gems/wlang
31
- - http://blambeau.github.com/wlang
32
- - http://revision-zero.org/wlang
33
- dependencies:
34
- - {name: citrus, version: "~> 2.4.1", groups: [runtime]}
35
- - {name: temple, version: "~> 0.4.0", groups: [runtime]}
36
- - {name: quickl, version: "~> 0.4.3", groups: [runtime]}
37
- - {name: path, version: "~> 1.3", groups: [runtime]}
38
- - {name: backports, version: "~> 2.6", groups: [runtime]}
39
- - {name: awesome_print, version: "~> 1.0.2", groups: [extra]}
40
- - {name: tilt, version: "~> 1.3", groups: [development]}
41
- - {name: rake, version: "~> 0.9.2", groups: [development]}
42
- - {name: bundler, version: "~> 1.0", groups: [development]}
43
- - {name: rspec, version: "~> 2.10.0", groups: [development]}
44
- - {name: sinatra, version: ">= 1.4", groups: [development]}
45
- - {name: rack-test, version: "~> 0.6", groups: [development]}