IOWA 1.0.2 → 1.0.3
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.
- checksums.yaml +4 -4
- data/components/Content/example/iowa/Content.html +1 -1
- data/components/Content/example/iowa/Content.iwa +1 -1
- data/iowa.gemspec +4 -0
- data/src/iowa.rb +3 -3
- data/src/iowa/AcceptLanguage.rb +1 -1
- data/src/iowa/Application.rb +7 -7
- data/src/iowa/Association.rb +1 -2
- data/src/iowa/CSS.rb +1 -1
- data/src/iowa/ImageSize.rb +1 -2
- data/src/iowa/Lockfile.rb +1 -1
- data/src/iowa/dispatchers/StandardDispatcher.rb +5 -5
- data/src/iowa/version.rb +1 -1
- data/src/mod_iowa.rb +2 -4
- data/test/TC_IOWAFunctions/doc/Ajax1.html +1 -1
- data/test/TC_IOWAFunctions/doc/Ajax1.iwa +1 -1
- metadata +46 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b141f669a481dfeb33ff0df774e7c43785543f89a886a5e5aafb24f92ba0b7c
|
4
|
+
data.tar.gz: e5dbc337aaa57ad14fde1fdb208d34e6bc2772e40e2327b1f7596a7025b2b8a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07ac43222c7f56aa2a6027cc2068eadf5011192056d31977f794fa3b6ca44c944e7b1dba4afaf1fc5c22f9e10859297c0d5568529ea4dc3792a029976b8c5871
|
7
|
+
data.tar.gz: cdef478b9cf1469eb74dc8d6aa1643b15285e57edcbff31178b9071322530a2e8e168815983eacd3716731a01701f251d3fef49f107a8e560da3ff9c955bde28
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
../../Content.html
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
../../Content.iwa
|
data/iowa.gemspec
CHANGED
data/src/iowa.rb
CHANGED
@@ -92,8 +92,8 @@ module Iowa
|
|
92
92
|
new_item = {}
|
93
93
|
next unless item.is_a?(::Hash)
|
94
94
|
item.each do |k,v|
|
95
|
-
k.sub
|
96
|
-
v.sub
|
95
|
+
k = k.sub(/^\s+/,'')
|
96
|
+
v = v.sub(/^\s+/,'')
|
97
97
|
c,m = v.split('.',2)
|
98
98
|
dd = Iowa::DispatchDestination.new(c,m)
|
99
99
|
if m = /^\/(.*)\//.match(k)
|
@@ -110,7 +110,7 @@ module Iowa
|
|
110
110
|
new_item = {}
|
111
111
|
next unless item.is_a?(::Hash)
|
112
112
|
item.each do |k,v|
|
113
|
-
k.sub
|
113
|
+
k = k.sub(/^\s+/,'')
|
114
114
|
if v.is_a?(Array)
|
115
115
|
list = []
|
116
116
|
v.each {|x| list.push(Regexp.new(x.sub(/^\s+/,''),true))}
|
data/src/iowa/AcceptLanguage.rb
CHANGED
data/src/iowa/Application.rb
CHANGED
@@ -711,7 +711,7 @@ module Iowa
|
|
711
711
|
# Given a component name, finds the path to it.
|
712
712
|
|
713
713
|
def pathForName(name)
|
714
|
-
name.gsub
|
714
|
+
name = name.gsub(/Iowa::Application::ContentClasses::/,C_empty)
|
715
715
|
return @pathNameCache[name] if @templateLTimes.has_key?(name) and (@templateLTimes[name] < Time.now)
|
716
716
|
my_docroot = @docroot
|
717
717
|
my_docroot << C_slash unless my_docroot[-1,1] == C_slash
|
@@ -733,7 +733,7 @@ module Iowa
|
|
733
733
|
# Extract the code and bindings from the code data.
|
734
734
|
|
735
735
|
def get_code_and_bindings(codedata)
|
736
|
-
codedata.sub
|
736
|
+
codedata = codedata.sub(/<\?(.*?)\?>/m, C_empty)
|
737
737
|
bindings = ''
|
738
738
|
bindings = $1.gsub(BindingCommentsRegexp,C_empty) if $1
|
739
739
|
if m = /<%(.*?)%>/m.match(codedata)
|
@@ -767,13 +767,13 @@ module Iowa
|
|
767
767
|
codedata = data.gsub(/\cM/,C_empty)
|
768
768
|
unless /<%.*?%>/m.match(codedata)
|
769
769
|
codedata,codefile_path = defaultScript(file)
|
770
|
-
codedata.gsub
|
770
|
+
codedata = codedata.gsub(/\cM/,C_empty)
|
771
771
|
code_text, bindings_text = *get_code_and_bindings(codedata)
|
772
772
|
else
|
773
773
|
codefile_path = file.path
|
774
|
-
codedata.sub
|
774
|
+
codedata = codedata.sub(/<%(.*?)%>/m, C_empty)
|
775
775
|
code_text = $1
|
776
|
-
codedata.sub
|
776
|
+
codedata = codedata.sub(/<\?(.*?)\?>/m, C_empty)
|
777
777
|
bindings_text = $1.gsub(BindingCommentsRegexp,C_empty) if $1
|
778
778
|
data = codedata
|
779
779
|
end
|
@@ -883,7 +883,7 @@ module Iowa
|
|
883
883
|
my_docroot << C_slash unless my_docroot[-1,1] == C_slash
|
884
884
|
my_docroot_minus_slash = my_docroot.sub(/\/$/,C_empty)
|
885
885
|
filepath = file.path
|
886
|
-
filepath.sub
|
886
|
+
filepath = filepath.sub(/#{my_docroot}/,C_empty)
|
887
887
|
|
888
888
|
path_parts = filepath.split(C_slash)
|
889
889
|
# Knock the filename off of the array.
|
@@ -912,7 +912,7 @@ module Iowa
|
|
912
912
|
mylog.info "Used basic scriptfile for #{file.path}"
|
913
913
|
end
|
914
914
|
|
915
|
-
r.gsub
|
915
|
+
r = r.gsub(/\[--CLASSNAME--\]/,name)
|
916
916
|
[r,df_found]
|
917
917
|
end
|
918
918
|
|
data/src/iowa/Association.rb
CHANGED
@@ -56,8 +56,7 @@ module Iowa
|
|
56
56
|
class FlexibleAssociation < Association
|
57
57
|
def FlexibleAssociation.new(association)
|
58
58
|
if association[0] == 123
|
59
|
-
association.sub
|
60
|
-
association.sub!(/\}\s*$/,C_empty)
|
59
|
+
association = association.sub(/^\{/,C_empty).sub(/\}\s*$/,C_empty)
|
61
60
|
LiteralAssociation.new(Proc.new {|*ns| ns = ns[0] || binding ; eval(association,ns)})
|
62
61
|
else
|
63
62
|
PathAssociation.new(association)
|
data/src/iowa/CSS.rb
CHANGED
data/src/iowa/ImageSize.rb
CHANGED
@@ -140,8 +140,7 @@ class ImageSize
|
|
140
140
|
private(:measure_BMP)
|
141
141
|
|
142
142
|
def measure_PPM()
|
143
|
-
header = @img_data.read_o(1024)
|
144
|
-
header.gsub!(/^\#[^\n\r]*/m, "")
|
143
|
+
header = @img_data.read_o(1024).gsub(/^\#[^\n\r]*/m, "")
|
145
144
|
header =~ /^(P[1-6])\s+?(\d+)\s+?(\d+)/m
|
146
145
|
width = $2.to_i; height = $3.to_i
|
147
146
|
case $1
|
data/src/iowa/Lockfile.rb
CHANGED
@@ -337,21 +337,21 @@ module Iowa
|
|
337
337
|
if @subtype
|
338
338
|
if @subsub
|
339
339
|
if @subtype == :sub
|
340
|
-
|
340
|
+
request.uri = request.uri.sub(@match,@subsub)
|
341
341
|
elsif @subtype == :gsub
|
342
|
-
|
342
|
+
request.uri = request.uri.gsub(@match,@subsub)
|
343
343
|
end
|
344
344
|
elsif @subproc
|
345
345
|
if @subtype == :sub
|
346
|
-
|
346
|
+
request.uri = request.uri.sub(@match) {|*args| @subproc.call(request,*args)}
|
347
347
|
elsif @subtype == :gsub
|
348
|
-
|
348
|
+
request.uri = request.uri.gsub(@match) {|*args| @subproc.call(request,*args)}
|
349
349
|
end
|
350
350
|
end
|
351
351
|
elsif @call
|
352
352
|
call_completed = false
|
353
353
|
if @call =~ /(?:::|^[A-Z][\w\d]*\.)/
|
354
|
-
@call.sub
|
354
|
+
@call = @call.sub(/^::/,'')
|
355
355
|
if @call =~ /::/
|
356
356
|
parts = @call.split(/::/).reject {|p| p == ''}
|
357
357
|
else
|
data/src/iowa/version.rb
CHANGED
data/src/mod_iowa.rb
CHANGED
@@ -24,8 +24,7 @@ module Apache
|
|
24
24
|
end
|
25
25
|
|
26
26
|
if @IowaMap and mapfile.to_s != ''
|
27
|
-
upuri = r.unparsed_uri
|
28
|
-
upuri.gsub!('\?.*$','') if upuri =~ /\?/
|
27
|
+
upuri = r.unparsed_uri.gsub('\?.*$','') if upuri =~ /\?/
|
29
28
|
m = URIRegex.match upuri
|
30
29
|
urlRoot = m[1]
|
31
30
|
urlRoot.chop! if m[2] unless urlRoot == '/'
|
@@ -89,8 +88,7 @@ module Apache
|
|
89
88
|
File.open(mapfile,'r') do |fh|
|
90
89
|
fh.each do |line|
|
91
90
|
next if line =~ /^\s*#/
|
92
|
-
line.chomp
|
93
|
-
line.gsub!(/: .*$/,'')
|
91
|
+
line = line.chomp.gsub(/: .*$/,'')
|
94
92
|
map[line] = true
|
95
93
|
end
|
96
94
|
end
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
../iowa/Ajax1.html
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
../iowa/Ajax1.iwa
|
metadata
CHANGED
@@ -1,15 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: IOWA
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirk Haines
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2021-03-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: eventmachine
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mail
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: mime-types
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
13
55
|
description: ''
|
14
56
|
email: wyhaines@gmail.com
|
15
57
|
executables: []
|
@@ -545,8 +587,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
545
587
|
- !ruby/object:Gem::Version
|
546
588
|
version: '0'
|
547
589
|
requirements: []
|
548
|
-
|
549
|
-
rubygems_version: 2.7.6
|
590
|
+
rubygems_version: 3.1.4
|
550
591
|
signing_key:
|
551
592
|
specification_version: 4
|
552
593
|
summary: Internet Objects for Web Applications - A unique and capable framework for
|