wlang 2.3.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,13 +9,13 @@ module WLang
9
9
 
10
10
  it 'compiles [:proc, ...]' do
11
11
  source = [:proc, [:static, "Hello world"]]
12
- expected = %q{Proc.new{|d1,b1| b1 << ("Hello world") }}
12
+ expected = %q{Proc.new{|d1,b1| b1 << ("Hello world".freeze) }}
13
13
  generate(source).should eq(expected)
14
14
  end
15
15
 
16
16
  it 'compiles [:dispatch, ...]' do
17
17
  source = [:dispatch, :_tag_36, [:proc, [:static, "Hello world"]]]
18
- expected = %q{d0._tag_36(b0, Proc.new{|d1,b1| b1 << ("Hello world") })}
18
+ expected = %q{d0._tag_36(b0, Proc.new{|d1,b1| b1 << ("Hello world".freeze) })}
19
19
  generate(source).should eq(expected)
20
20
  end
21
21
 
@@ -10,10 +10,6 @@ module WLang
10
10
  Scope.coerce(lambda{}).should be_a(Scope::ProcScope)
11
11
  end
12
12
 
13
- it 'recognizes Sinatra applications' do
14
- Scope.coerce(sinatra_app).should be_a(Scope::SinatraScope)
15
- end
16
-
17
13
  it 'falls back to ObjectScope on Hash' do
18
14
  Scope.coerce({}).should be_a(Scope::ObjectScope)
19
15
  end
@@ -10,17 +10,17 @@ module WLang
10
10
  end
11
11
 
12
12
  context 'on a Path' do
13
- let(:source){ Path.here }
13
+ let(:source){ Path.file }
14
14
  it{ should eq(source.to_s) }
15
15
  end
16
16
 
17
17
  context 'on a File' do
18
- let(:source){ File.open(Path.here.to_s) }
18
+ let(:source){ File.open(Path.file.to_s) }
19
19
  it{ should eq(__FILE__) }
20
20
  end
21
21
 
22
22
  it 'is aliased as to_path' do
23
- Source.new(Path.here).to_path.should eq(__FILE__)
23
+ Source.new(Path.file).to_path.should eq(__FILE__)
24
24
  end
25
25
 
26
26
  end
@@ -15,7 +15,7 @@ module WLang
15
15
  end
16
16
 
17
17
  context 'on a File' do
18
- let(:source){ File.open(Path.here.to_s) }
18
+ let(:source){ File.open(Path.file.to_s) }
19
19
  it{ should eq(File.read(__FILE__)) }
20
20
  end
21
21
 
@@ -10,7 +10,7 @@ module WLang
10
10
  end
11
11
 
12
12
  context 'when a Path and no option' do
13
- let(:template){ Template.new(Path.here) }
13
+ let(:template){ Template.new(Path.file) }
14
14
  it{ should eq(__FILE__) }
15
15
  end
16
16
 
@@ -20,7 +20,7 @@ module WLang
20
20
  end
21
21
 
22
22
  context 'when a path an an option' do
23
- let(:template){ Template.new(Path.here, :path => __FILE__) }
23
+ let(:template){ Template.new(Path.file, :path => __FILE__) }
24
24
  it{ should eq(__FILE__) }
25
25
  end
26
26
 
@@ -5,7 +5,7 @@ module WLang
5
5
  let(:template){ Template.new("Hello ${who}!") }
6
6
 
7
7
  it 'it returns some ruby code' do
8
- expected = %q{Proc.new{|d1,b1| b1 << ("Hello "); d1._tag_36(b1, "who"); b1 << ("!") }}
8
+ expected = %q{Proc.new{|d1,b1| b1 << ("Hello ".freeze); d1._tag_36(b1, "who"); b1 << ("!".freeze) }}
9
9
  template.to_ruby_code.should eq(expected)
10
10
  end
11
11
 
@@ -22,7 +22,7 @@ describe "ruby assumptions" do
22
22
 
23
23
  it "lambda arity" do
24
24
  lambda{|| }.arity.should eq(0)
25
- (lambda{ }.arity <= 0).should be_true
25
+ (lambda{ }.arity <= 0).should be_truthy
26
26
  lambda{|fn|}.arity.should eq(1)
27
27
  lambda{|fn1,fn2|}.arity.should eq(2)
28
28
  end
@@ -0,0 +1,17 @@
1
+ namespace :test do
2
+ require "rspec/core/rake_task"
3
+
4
+ tests = []
5
+
6
+ desc "Runs unit tests"
7
+ RSpec::Core::RakeTask.new(:unit) do |t|
8
+ t.pattern = "spec/unit/**/test_*.rb"
9
+ t.rspec_opts = ["-Ilib", "-Ispec", "--color", "--backtrace", "--format=progress"]
10
+ end
11
+ tests << :unit
12
+
13
+ task :all => tests
14
+ end
15
+
16
+ desc "Runs all tests"
17
+ task :test => :'test:all'
@@ -1,195 +1,31 @@
1
- # We require your library, mainly to have access to the VERSION number.
2
- # Feel free to set $version manually.
3
1
  $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
4
2
  require "wlang/version"
5
3
  $version = WLang::Version.to_s
6
4
 
7
- #
8
- # This is your Gem specification. Default values are provided so that your library
9
- # should be correctly packaged given what you have described in the .noespec file.
10
- #
11
5
  Gem::Specification.new do |s|
12
-
13
- ################################################################### ABOUT YOUR GEM
14
-
15
- # Gem name (required)
16
6
  s.name = "wlang"
17
-
18
- # Gem version (required)
19
7
  s.version = $version
20
-
21
- # A short summary of this gem
22
- #
23
- # This is displayed in `gem list -d`.
24
8
  s.summary = "WLang is a powerful code generation and templating engine"
25
-
26
- # A long description of this gem (required)
27
- #
28
- # The description should be more detailed than the summary. For example,
29
- # you might wish to copy the entire README into the description.
30
9
  s.description = "WLang is a general-purpose *code generation*/*templating engine*. It's main aim is to\nhelp you generating web pages, sql queries, ruby code (that is, generating text in\ngeneral) without having to worry too much about html entities encoding, sql back\nquoting, string escaping and the like. WLang proposes a generic engine that you can\neasily extend to fit your needs. It also proposes standard instantiations of this\nengine for common tasks such as rendering HTML web pages."
31
-
32
- # The URL of this gem home page (optional)
33
10
  s.homepage = "http://github.com/blambeau/wlang"
34
-
35
- # Gem publication date (required but auto)
36
- #
37
- # Today is automatically used by default, uncomment only if
38
- # you know what you do!
39
- #
40
- # s.date = Time.now.strftime('%Y-%m-%d')
41
-
42
- # The license(s) for the library. Each license must be a short name, no
43
- # more than 64 characters.
44
- #
45
- # s.licences = %w{}
46
-
47
- # The rubyforge project this gem lives under (optional)
48
- #
49
- # s.rubyforge_project = nil
50
-
51
- ################################################################### ABOUT THE AUTHORS
52
-
53
- # The list of author names who wrote this gem.
54
- #
55
- # If you are providing multiple authors and multiple emails they should be
56
- # in the same order.
57
- #
58
11
  s.authors = ["Bernard Lambeau", "Louis Lambeau"]
59
-
60
- # Contact emails for this gem
61
- #
62
- # If you are providing multiple authors and multiple emails they should be
63
- # in the same order.
64
- #
65
- # NOTE: Somewhat strangly this attribute is always singular!
66
- # Don't replace by s.emails = ...
67
12
  s.email = ["blambeau@gmail.com", "llambeau@gmail.com"]
68
-
69
- ################################################################### PATHS, FILES, BINARIES
70
-
71
- # Paths in the gem to add to $LOAD_PATH when this gem is
72
- # activated (required).
73
- #
74
- # The default 'lib' is typically sufficient.
75
13
  s.require_paths = ["lib"]
76
-
77
- # Files included in this gem.
78
- #
79
- # By default, we take all files included in the Manifest.txt file on root
80
- # of the project. Entries of the manifest are interpreted as Dir[...]
81
- # patterns so that lazy people may use wilcards like lib/**/*
82
- #
83
14
  here = File.expand_path(File.dirname(__FILE__))
84
15
  s.files = File.readlines(File.join(here, 'Manifest.txt')).
85
16
  inject([]){|files, pattern| files + Dir[File.join(here, pattern.strip)]}.
86
17
  collect{|x| x[(1+here.size)..-1]}
87
-
88
- # Test files included in this gem.
89
- #
90
18
  s.test_files = Dir["test/**/*"] + Dir["spec/**/*"]
91
-
92
- # The path in the gem for executable scripts (optional)
93
- #
94
19
  s.bindir = "bin"
95
-
96
- # Executables included in the gem.
97
- #
98
20
  s.executables = (Dir["bin/*"]).collect{|f| File.basename(f)}
99
21
 
100
- ################################################################### REQUIREMENTS & INSTALL
101
- # Remember the gem version requirements operators and schemes:
102
- # = Equals version
103
- # != Not equal to version
104
- # > Greater than version
105
- # < Less than version
106
- # >= Greater than or equal to
107
- # <= Less than or equal to
108
- # ~> Approximately greater than
109
- #
110
- # Don't forget to have a look at http://lmgtfy.com/?q=Ruby+Versioning+Policies
111
- # for setting your gem version.
112
- #
113
- # For your requirements to other gems, remember that
114
- # ">= 2.2.0" (optimistic: specify minimal version)
115
- # ">= 2.2.0", "< 3.0" (pessimistic: not greater than the next major)
116
- # "~> 2.2" (shortcut for ">= 2.2.0", "< 3.0")
117
- # "~> 2.2.0" (shortcut for ">= 2.2.0", "< 2.3.0")
118
- #
22
+ s.add_development_dependency("rake", "~> 13.0")
23
+ s.add_development_dependency("rspec", "~> 3.0")
119
24
 
120
- #
121
- # One call to add_dependency('gem_name', 'gem version requirement') for each
122
- # runtime dependency. These gems will be installed with your gem.
123
- # One call to add_development_dependency('gem_name', 'gem version requirement')
124
- # for each development dependency. These gems are required for developers
125
- #
126
- s.add_development_dependency("awesome_print", "~> 1.0.2")
127
- s.add_development_dependency("tilt", "~> 1.3")
128
- s.add_development_dependency("rake", "~> 0.9.2")
129
- s.add_development_dependency("bundler", "~> 1.0")
130
- s.add_development_dependency("rspec", "~> 2.10.0")
131
- s.add_development_dependency("sinatra", ">= 1.4")
132
- s.add_development_dependency("rack-test", "~> 0.6")
133
- s.add_dependency("citrus", ">= 2.4", "< 4.0")
134
- s.add_dependency("temple", "~> 0.6")
25
+ s.add_dependency("citrus", "~> 3.0")
135
26
  s.add_dependency("quickl", "~> 0.4.3")
136
- s.add_dependency("path", "~> 1.3")
137
- s.add_dependency("backports", "~> 2.6")
138
-
139
- # The version of ruby required by this gem
140
- #
141
- # Uncomment and set this if your gem requires specific ruby versions.
142
- #
143
- # s.required_ruby_version = ">= 0"
144
-
145
- # The RubyGems version required by this gem
146
- #
147
- # s.required_rubygems_version = ">= 0"
148
-
149
- # The platform this gem runs on. See Gem::Platform for details.
150
- #
151
- # s.platform = nil
152
-
153
- # Extensions to build when installing the gem.
154
- #
155
- # Valid types of extensions are extconf.rb files, configure scripts
156
- # and rakefiles or mkrf_conf files.
157
- #
158
- s.extensions = []
159
-
160
- # External (to RubyGems) requirements that must be met for this gem to work.
161
- # It’s simply information for the user.
162
- #
163
- s.requirements = nil
164
-
165
- # A message that gets displayed after the gem is installed
166
- #
167
- # Uncomment and set this if you want to say something to the user
168
- # after gem installation
169
- #
170
- s.post_install_message = nil
171
-
172
- ################################################################### SECURITY
173
-
174
- # The key used to sign this gem. See Gem::Security for details.
175
- #
176
- # s.signing_key = nil
177
-
178
- # The certificate chain used to sign this gem. See Gem::Security for
179
- # details.
180
- #
181
- # s.cert_chain = []
182
-
183
- ################################################################### RDOC
184
-
185
- # An ARGV style array of options to RDoc
186
- #
187
- # See 'rdoc --help' about this
188
- #
189
- s.rdoc_options = []
27
+ s.add_dependency("path", "~> 2.0")
28
+ s.add_dependency("temple", "~> 0.6")
190
29
 
191
- # Extra files to add to RDoc such as README
192
- #
193
30
  s.extra_rdoc_files = Dir["README.md"] + Dir["CHANGELOG.md"] + Dir["LICENCE.md"]
194
-
195
31
  end
metadata CHANGED
@@ -1,229 +1,107 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wlang
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
5
- prerelease:
4
+ version: 3.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bernard Lambeau
9
8
  - Louis Lambeau
10
- autorequire:
9
+ autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2014-10-23 00:00:00.000000000 Z
12
+ date: 2020-12-29 00:00:00.000000000 Z
14
13
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: awesome_print
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ~>
21
- - !ruby/object:Gem::Version
22
- version: 1.0.2
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ~>
29
- - !ruby/object:Gem::Version
30
- version: 1.0.2
31
- - !ruby/object:Gem::Dependency
32
- name: tilt
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ~>
37
- - !ruby/object:Gem::Version
38
- version: '1.3'
39
- type: :development
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ~>
45
- - !ruby/object:Gem::Version
46
- version: '1.3'
47
14
  - !ruby/object:Gem::Dependency
48
15
  name: rake
49
16
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 0.9.2
55
- type: :development
56
- prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ~>
61
- - !ruby/object:Gem::Version
62
- version: 0.9.2
63
- - !ruby/object:Gem::Dependency
64
- name: bundler
65
- requirement: !ruby/object:Gem::Requirement
66
- none: false
67
17
  requirements:
68
- - - ~>
18
+ - - "~>"
69
19
  - !ruby/object:Gem::Version
70
- version: '1.0'
20
+ version: '13.0'
71
21
  type: :development
72
22
  prerelease: false
73
23
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
24
  requirements:
76
- - - ~>
25
+ - - "~>"
77
26
  - !ruby/object:Gem::Version
78
- version: '1.0'
27
+ version: '13.0'
79
28
  - !ruby/object:Gem::Dependency
80
29
  name: rspec
81
30
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
31
  requirements:
84
- - - ~>
32
+ - - "~>"
85
33
  - !ruby/object:Gem::Version
86
- version: 2.10.0
34
+ version: '3.0'
87
35
  type: :development
88
36
  prerelease: false
89
37
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
38
  requirements:
92
- - - ~>
39
+ - - "~>"
93
40
  - !ruby/object:Gem::Version
94
- version: 2.10.0
95
- - !ruby/object:Gem::Dependency
96
- name: sinatra
97
- requirement: !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
100
- - - ! '>='
101
- - !ruby/object:Gem::Version
102
- version: '1.4'
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '1.4'
111
- - !ruby/object:Gem::Dependency
112
- name: rack-test
113
- requirement: !ruby/object:Gem::Requirement
114
- none: false
115
- requirements:
116
- - - ~>
117
- - !ruby/object:Gem::Version
118
- version: '0.6'
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
- requirements:
124
- - - ~>
125
- - !ruby/object:Gem::Version
126
- version: '0.6'
41
+ version: '3.0'
127
42
  - !ruby/object:Gem::Dependency
128
43
  name: citrus
129
44
  requirement: !ruby/object:Gem::Requirement
130
- none: false
131
45
  requirements:
132
- - - ! '>='
46
+ - - "~>"
133
47
  - !ruby/object:Gem::Version
134
- version: '2.4'
135
- - - <
136
- - !ruby/object:Gem::Version
137
- version: '4.0'
48
+ version: '3.0'
138
49
  type: :runtime
139
50
  prerelease: false
140
51
  version_requirements: !ruby/object:Gem::Requirement
141
- none: false
142
52
  requirements:
143
- - - ! '>='
144
- - !ruby/object:Gem::Version
145
- version: '2.4'
146
- - - <
53
+ - - "~>"
147
54
  - !ruby/object:Gem::Version
148
- version: '4.0'
149
- - !ruby/object:Gem::Dependency
150
- name: temple
151
- requirement: !ruby/object:Gem::Requirement
152
- none: false
153
- requirements:
154
- - - ~>
155
- - !ruby/object:Gem::Version
156
- version: '0.6'
157
- type: :runtime
158
- prerelease: false
159
- version_requirements: !ruby/object:Gem::Requirement
160
- none: false
161
- requirements:
162
- - - ~>
163
- - !ruby/object:Gem::Version
164
- version: '0.6'
55
+ version: '3.0'
165
56
  - !ruby/object:Gem::Dependency
166
57
  name: quickl
167
58
  requirement: !ruby/object:Gem::Requirement
168
- none: false
169
59
  requirements:
170
- - - ~>
60
+ - - "~>"
171
61
  - !ruby/object:Gem::Version
172
62
  version: 0.4.3
173
63
  type: :runtime
174
64
  prerelease: false
175
65
  version_requirements: !ruby/object:Gem::Requirement
176
- none: false
177
66
  requirements:
178
- - - ~>
67
+ - - "~>"
179
68
  - !ruby/object:Gem::Version
180
69
  version: 0.4.3
181
70
  - !ruby/object:Gem::Dependency
182
71
  name: path
183
72
  requirement: !ruby/object:Gem::Requirement
184
- none: false
185
73
  requirements:
186
- - - ~>
74
+ - - "~>"
187
75
  - !ruby/object:Gem::Version
188
- version: '1.3'
76
+ version: '2.0'
189
77
  type: :runtime
190
78
  prerelease: false
191
79
  version_requirements: !ruby/object:Gem::Requirement
192
- none: false
193
80
  requirements:
194
- - - ~>
81
+ - - "~>"
195
82
  - !ruby/object:Gem::Version
196
- version: '1.3'
83
+ version: '2.0'
197
84
  - !ruby/object:Gem::Dependency
198
- name: backports
85
+ name: temple
199
86
  requirement: !ruby/object:Gem::Requirement
200
- none: false
201
87
  requirements:
202
- - - ~>
88
+ - - "~>"
203
89
  - !ruby/object:Gem::Version
204
- version: '2.6'
90
+ version: '0.6'
205
91
  type: :runtime
206
92
  prerelease: false
207
93
  version_requirements: !ruby/object:Gem::Requirement
208
- none: false
209
94
  requirements:
210
- - - ~>
95
+ - - "~>"
211
96
  - !ruby/object:Gem::Version
212
- version: '2.6'
213
- description: ! 'WLang is a general-purpose *code generation*/*templating engine*.
214
- It''s main aim is to
215
-
216
- help you generating web pages, sql queries, ruby code (that is, generating text
217
- in
218
-
97
+ version: '0.6'
98
+ description: |-
99
+ WLang is a general-purpose *code generation*/*templating engine*. It's main aim is to
100
+ help you generating web pages, sql queries, ruby code (that is, generating text in
219
101
  general) without having to worry too much about html entities encoding, sql back
220
-
221
- quoting, string escaping and the like. WLang proposes a generic engine that you
222
- can
223
-
102
+ quoting, string escaping and the like. WLang proposes a generic engine that you can
224
103
  easily extend to fit your needs. It also proposes standard instantiations of this
225
-
226
- engine for common tasks such as rendering HTML web pages.'
104
+ engine for common tasks such as rendering HTML web pages.
227
105
  email:
228
106
  - blambeau@gmail.com
229
107
  - llambeau@gmail.com
@@ -235,13 +113,17 @@ extra_rdoc_files:
235
113
  - CHANGELOG.md
236
114
  - LICENCE.md
237
115
  files:
238
- - wlang.gemspec
239
- - wlang.noespec
240
116
  - CHANGELOG.md
241
117
  - Gemfile
242
118
  - Gemfile.lock
119
+ - LICENCE.md
120
+ - Manifest.txt
121
+ - README.md
122
+ - Rakefile
243
123
  - bin/wlang
124
+ - lib/wlang.rb
244
125
  - lib/wlang/command.rb
126
+ - lib/wlang/compiler.rb
245
127
  - lib/wlang/compiler/autospacing.rb
246
128
  - lib/wlang/compiler/dialect_enforcer.rb
247
129
  - lib/wlang/compiler/filter.rb
@@ -252,31 +134,23 @@ files:
252
134
  - lib/wlang/compiler/strconcat_flattener.rb
253
135
  - lib/wlang/compiler/to_ruby_abstraction.rb
254
136
  - lib/wlang/compiler/to_ruby_code.rb
255
- - lib/wlang/compiler.rb
256
137
  - lib/wlang/dialect.rb
257
138
  - lib/wlang/dummy.rb
258
139
  - lib/wlang/html.rb
259
140
  - lib/wlang/loader.rb
141
+ - lib/wlang/scope.rb
260
142
  - lib/wlang/scope/binding_scope.rb
261
143
  - lib/wlang/scope/null_scope.rb
262
144
  - lib/wlang/scope/object_scope.rb
263
145
  - lib/wlang/scope/proc_scope.rb
264
- - lib/wlang/scope/sinatra_scope.rb
265
- - lib/wlang/scope.rb
266
- - lib/wlang/source/front_matter.rb
267
146
  - lib/wlang/source.rb
147
+ - lib/wlang/source/front_matter.rb
268
148
  - lib/wlang/template.rb
269
- - lib/wlang/tilt/wlang_template.rb
270
- - lib/wlang/tilt.rb
271
149
  - lib/wlang/version.rb
272
- - lib/wlang.rb
273
- - LICENCE.md
274
- - Manifest.txt
275
- - Rakefile
276
- - README.md
277
150
  - spec/assumptions/test_core.rb
278
151
  - spec/fixtures/dialect/foobar.rb
279
152
  - spec/fixtures/dialect/upcasing.rb
153
+ - spec/fixtures/templates/front_matter.wlang
280
154
  - spec/fixtures/templates/hello.wlang
281
155
  - spec/fixtures/templates/hello_from_sinatra.wlang
282
156
  - spec/fixtures/templates/hello_with_data.wlang
@@ -298,12 +172,10 @@ files:
298
172
  - spec/integration/html/test_sharp.rb
299
173
  - spec/integration/html/test_slash.rb
300
174
  - spec/integration/html/test_star.rb
301
- - spec/integration/sinatra/test_partials.rb
302
175
  - spec/integration/test_dummy.rb
303
176
  - spec/integration/test_examples.rb
304
177
  - spec/integration/test_readme.rb
305
178
  - spec/integration/test_upcasing.rb
306
- - spec/integration/tilt/test_wlang_template.rb
307
179
  - spec/spec_helper.rb
308
180
  - spec/test_wlang.rb
309
181
  - spec/unit/command/test_install.rb
@@ -326,7 +198,6 @@ files:
326
198
  - spec/unit/dialect/test_tag.rb
327
199
  - spec/unit/dialect/test_tag_dispatching_name.rb
328
200
  - spec/unit/dialect/test_with_scope.rb
329
- - spec/unit/scope/sinatra_scope/test_fetch.rb
330
201
  - spec/unit/scope/test_binding_scope.rb
331
202
  - spec/unit/scope/test_chain.rb
332
203
  - spec/unit/scope/test_coerce.rb
@@ -351,116 +222,104 @@ files:
351
222
  - spec/unit/template/test_yaml_front_matter.rb
352
223
  - spec/unit/test_assumptions.rb
353
224
  - spec/unit/test_scope.rb
354
- - spec/unit/tilt/test_wlang_template.rb
355
- - tasks/debug_mail.rake
356
- - tasks/debug_mail.txt
357
225
  - tasks/gem.rake
358
- - tasks/spec_test.rake
359
- - tasks/unit_test.rake
360
- - tasks/yard.rake
226
+ - tasks/test.rake
227
+ - wlang.gemspec
361
228
  homepage: http://github.com/blambeau/wlang
362
229
  licenses: []
363
- post_install_message:
230
+ metadata: {}
231
+ post_install_message:
364
232
  rdoc_options: []
365
233
  require_paths:
366
234
  - lib
367
235
  required_ruby_version: !ruby/object:Gem::Requirement
368
- none: false
369
236
  requirements:
370
- - - ! '>='
237
+ - - ">="
371
238
  - !ruby/object:Gem::Version
372
239
  version: '0'
373
- segments:
374
- - 0
375
- hash: -3753041427578485044
376
240
  required_rubygems_version: !ruby/object:Gem::Requirement
377
- none: false
378
241
  requirements:
379
- - - ! '>='
242
+ - - ">="
380
243
  - !ruby/object:Gem::Version
381
244
  version: '0'
382
245
  requirements: []
383
- rubyforge_project:
384
- rubygems_version: 1.8.25
385
- signing_key:
386
- specification_version: 3
246
+ rubygems_version: 3.1.4
247
+ signing_key:
248
+ specification_version: 4
387
249
  summary: WLang is a powerful code generation and templating engine
388
250
  test_files:
389
- - spec/assumptions/test_core.rb
390
- - spec/fixtures/dialect/foobar.rb
391
- - spec/fixtures/dialect/upcasing.rb
392
- - spec/fixtures/templates/hello.wlang
393
- - spec/fixtures/templates/hello_from_sinatra.wlang
394
- - spec/fixtures/templates/hello_with_data.wlang
395
- - spec/fixtures/templates/hello_with_explicit_locals.wlang
396
- - spec/fixtures/templates/hello_with_partials.wlang
397
- - spec/integration/examples/1-html-intro/1-basics.md
398
- - spec/integration/examples/1-html-intro/2-imperative.md
399
- - spec/integration/examples/1-html-intro/3-partials.md
400
- - spec/integration/examples/1-html-intro/4-recursion.md
401
- - spec/integration/examples/1-html-intro/5-polymorphism.md
402
- - spec/integration/html/test_ampersand.rb
403
- - spec/integration/html/test_bang.rb
404
- - spec/integration/html/test_caret.rb
405
- - spec/integration/html/test_dollar.rb
406
- - spec/integration/html/test_greater.rb
407
- - spec/integration/html/test_modulo.rb
408
- - spec/integration/html/test_plus.rb
409
- - spec/integration/html/test_question.rb
410
- - spec/integration/html/test_sharp.rb
411
- - spec/integration/html/test_slash.rb
412
- - spec/integration/html/test_star.rb
413
- - spec/integration/sinatra/test_partials.rb
414
- - spec/integration/test_dummy.rb
415
- - spec/integration/test_examples.rb
416
- - spec/integration/test_readme.rb
417
- - spec/integration/test_upcasing.rb
418
- - spec/integration/tilt/test_wlang_template.rb
419
251
  - spec/spec_helper.rb
420
- - spec/test_wlang.rb
421
- - spec/unit/command/test_install.rb
422
- - spec/unit/compiler/autospacing/test_right_strip.rb
423
- - spec/unit/compiler/autospacing/test_unindent.rb
424
- - spec/unit/compiler/test_dialect_enforcer.rb
425
- - spec/unit/compiler/test_grammar.rb
426
- - spec/unit/compiler/test_parser.rb
427
- - spec/unit/compiler/test_proc_call_removal.rb
428
- - spec/unit/compiler/test_static_merger.rb
429
- - spec/unit/compiler/test_strconcat_flattener.rb
430
- - spec/unit/compiler/test_to_ruby_abstraction.rb
431
- - spec/unit/compiler/test_to_ruby_code.rb
432
- - spec/unit/compiler/test_to_ruby_proc.rb
433
- - spec/unit/dialect/test_compile.rb
434
- - spec/unit/dialect/test_context.rb
435
- - spec/unit/dialect/test_evaluate.rb
436
- - spec/unit/dialect/test_new.rb
437
- - spec/unit/dialect/test_render.rb
438
- - spec/unit/dialect/test_tag.rb
439
- - spec/unit/dialect/test_tag_dispatching_name.rb
440
- - spec/unit/dialect/test_with_scope.rb
441
- - spec/unit/scope/sinatra_scope/test_fetch.rb
442
- - spec/unit/scope/test_binding_scope.rb
443
- - spec/unit/scope/test_chain.rb
444
- - spec/unit/scope/test_coerce.rb
445
- - spec/unit/scope/test_null_scope.rb
446
- - spec/unit/scope/test_object_scope.rb
447
- - spec/unit/scope/test_proc_scope.rb
448
- - spec/unit/scope/test_push.rb
449
- - spec/unit/source/front_matter/test_locals.rb
450
252
  - spec/unit/source/front_matter/test_template_content.rb
451
- - spec/unit/source/test_locals.rb
452
- - spec/unit/source/test_path.rb
253
+ - spec/unit/source/front_matter/test_locals.rb
453
254
  - spec/unit/source/test_template_content.rb
255
+ - spec/unit/source/test_path.rb
454
256
  - spec/unit/source/test_with_front_matter.rb
257
+ - spec/unit/source/test_locals.rb
258
+ - spec/unit/test_assumptions.rb
455
259
  - spec/unit/template/test_call.rb
456
- - spec/unit/template/test_call_args_conventions.rb
457
- - spec/unit/template/test_new.rb
458
- - spec/unit/template/test_path.rb
459
- - spec/unit/template/test_render.rb
460
260
  - spec/unit/template/test_to_ast.rb
461
261
  - spec/unit/template/test_to_ruby_code.rb
262
+ - spec/unit/template/test_new.rb
263
+ - spec/unit/template/test_path.rb
462
264
  - spec/unit/template/test_to_ruby_proc.rb
265
+ - spec/unit/template/test_render.rb
463
266
  - spec/unit/template/test_yaml_front_matter.rb
464
- - spec/unit/test_assumptions.rb
267
+ - spec/unit/template/test_call_args_conventions.rb
268
+ - spec/unit/scope/test_chain.rb
269
+ - spec/unit/scope/test_push.rb
270
+ - spec/unit/scope/test_object_scope.rb
271
+ - spec/unit/scope/test_binding_scope.rb
272
+ - spec/unit/scope/test_proc_scope.rb
273
+ - spec/unit/scope/test_null_scope.rb
274
+ - spec/unit/scope/test_coerce.rb
465
275
  - spec/unit/test_scope.rb
466
- - spec/unit/tilt/test_wlang_template.rb
276
+ - spec/unit/command/test_install.rb
277
+ - spec/unit/dialect/test_new.rb
278
+ - spec/unit/dialect/test_render.rb
279
+ - spec/unit/dialect/test_context.rb
280
+ - spec/unit/dialect/test_tag.rb
281
+ - spec/unit/dialect/test_evaluate.rb
282
+ - spec/unit/dialect/test_compile.rb
283
+ - spec/unit/dialect/test_with_scope.rb
284
+ - spec/unit/dialect/test_tag_dispatching_name.rb
285
+ - spec/unit/compiler/test_to_ruby_code.rb
286
+ - spec/unit/compiler/test_proc_call_removal.rb
287
+ - spec/unit/compiler/test_to_ruby_proc.rb
288
+ - spec/unit/compiler/test_strconcat_flattener.rb
289
+ - spec/unit/compiler/test_dialect_enforcer.rb
290
+ - spec/unit/compiler/test_to_ruby_abstraction.rb
291
+ - spec/unit/compiler/test_grammar.rb
292
+ - spec/unit/compiler/test_parser.rb
293
+ - spec/unit/compiler/autospacing/test_right_strip.rb
294
+ - spec/unit/compiler/autospacing/test_unindent.rb
295
+ - spec/unit/compiler/test_static_merger.rb
296
+ - spec/integration/test_examples.rb
297
+ - spec/integration/test_readme.rb
298
+ - spec/integration/html/test_greater.rb
299
+ - spec/integration/html/test_ampersand.rb
300
+ - spec/integration/html/test_bang.rb
301
+ - spec/integration/html/test_slash.rb
302
+ - spec/integration/html/test_sharp.rb
303
+ - spec/integration/html/test_star.rb
304
+ - spec/integration/html/test_caret.rb
305
+ - spec/integration/html/test_question.rb
306
+ - spec/integration/html/test_modulo.rb
307
+ - spec/integration/html/test_dollar.rb
308
+ - spec/integration/html/test_plus.rb
309
+ - spec/integration/test_dummy.rb
310
+ - spec/integration/test_upcasing.rb
311
+ - spec/integration/examples/1-html-intro/5-polymorphism.md
312
+ - spec/integration/examples/1-html-intro/2-imperative.md
313
+ - spec/integration/examples/1-html-intro/1-basics.md
314
+ - spec/integration/examples/1-html-intro/3-partials.md
315
+ - spec/integration/examples/1-html-intro/4-recursion.md
316
+ - spec/assumptions/test_core.rb
317
+ - spec/test_wlang.rb
318
+ - spec/fixtures/templates/hello_with_explicit_locals.wlang
319
+ - spec/fixtures/templates/hello_from_sinatra.wlang
320
+ - spec/fixtures/templates/front_matter.wlang
321
+ - spec/fixtures/templates/hello.wlang
322
+ - spec/fixtures/templates/hello_with_partials.wlang
323
+ - spec/fixtures/templates/hello_with_data.wlang
324
+ - spec/fixtures/dialect/foobar.rb
325
+ - spec/fixtures/dialect/upcasing.rb