IOWA 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4dfdb93365ca33a4dfe94d2959def585aced31f0ccc0fac2b6fe05c546fbe381
4
- data.tar.gz: 0d767fb76519ef78f3a9878570e2bb9818546bca09484333deb52936c301f508
3
+ metadata.gz: 0b141f669a481dfeb33ff0df774e7c43785543f89a886a5e5aafb24f92ba0b7c
4
+ data.tar.gz: e5dbc337aaa57ad14fde1fdb208d34e6bc2772e40e2327b1f7596a7025b2b8a1
5
5
  SHA512:
6
- metadata.gz: 8c91c9f21d776cdb9d9b96d35809e6f07f1b71edd10ba5d73d35dd6cc14de2271b6ad146e91e50e5b6e27401f3bec8d2ffd58d1df00f9dfaabb9257662801428
7
- data.tar.gz: 92a70a1d8d4f82d1f3bfbd01b818764f799e675fc98b5d125db49daceac1e8f8e9ea0555af94fb520092c3b315a10b8485411db75f213bdde942760c8c01ef3b
6
+ metadata.gz: 07ac43222c7f56aa2a6027cc2068eadf5011192056d31977f794fa3b6ca44c944e7b1dba4afaf1fc5c22f9e10859297c0d5568529ea4dc3792a029976b8c5871
7
+ data.tar.gz: cdef478b9cf1469eb74dc8d6aa1643b15285e57edcbff31178b9071322530a2e8e168815983eacd3716731a01701f251d3fef49f107a8e560da3ff9c955bde28
@@ -1 +1 @@
1
- components/Content/example/iowa/../../Content.html
1
+ ../../Content.html
@@ -1 +1 @@
1
- components/Content/example/iowa/../../Content.iwa
1
+ ../../Content.iwa
data/iowa.gemspec CHANGED
@@ -42,4 +42,8 @@ spec = Gem::Specification.new do |s|
42
42
  end
43
43
  end
44
44
  s.description = description[1..-1].join(" ")
45
+
46
+ s.add_runtime_dependency "eventmachine"
47
+ s.add_runtime_dependency "mail"
48
+ s.add_runtime_dependency "mime-types"
45
49
  end
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!(/^\s+/,'')
96
- v.sub!(/^\s+/,'')
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!(/^\s+/,'')
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))}
@@ -32,7 +32,7 @@ module Iowa
32
32
  seq = []
33
33
  alstring.split(C_comma).each do |spec|
34
34
  language,qf = spec.split(QFRXP)
35
- qf.sub!(/q=/,C_empty) if qf
35
+ qf = qf.sub(/q=/,C_empty) if qf
36
36
  qf = C_1_0 unless qf.to_s != C_empty
37
37
  seq << [language,qf.to_f]
38
38
  end
@@ -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!(/Iowa::Application::ContentClasses::/,C_empty)
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!(/<\?(.*?)\?>/m, C_empty)
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!(/\cM/,C_empty)
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!(/<%(.*?)%>/m, C_empty)
774
+ codedata = codedata.sub(/<%(.*?)%>/m, C_empty)
775
775
  code_text = $1
776
- codedata.sub!(/<\?(.*?)\?>/m, C_empty)
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!(/#{my_docroot}/,C_empty)
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!(/\[--CLASSNAME--\]/,name)
915
+ r = r.gsub(/\[--CLASSNAME--\]/,name)
916
916
  [r,df_found]
917
917
  end
918
918
 
@@ -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!(/^\{/,C_empty)
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
@@ -478,7 +478,7 @@ module Iowa
478
478
 
479
479
  def self.correct_for_css(t)
480
480
  text = t.to_s
481
- text.gsub!('_','-') unless text =~ /['"`]/
481
+ text = text.gsub('_','-') unless text =~ /['"`]/
482
482
  #if text.index(' ')
483
483
  # text = "\"#{text}\""
484
484
  #end
@@ -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
@@ -362,7 +362,7 @@ unless defined? $__lockfile__
362
362
  else
363
363
  next
364
364
  end
365
- host.gsub!(%r/^\.+|\.+$/,'')
365
+ host = host.gsub(%r/^\.+|\.+$/,'')
366
366
  quad = host.split %r/\./
367
367
  host = quad.first
368
368
  pat = %r/^\s*#{ host }/i
@@ -337,21 +337,21 @@ module Iowa
337
337
  if @subtype
338
338
  if @subsub
339
339
  if @subtype == :sub
340
- request.uri.sub!(@match,@subsub)
340
+ request.uri = request.uri.sub(@match,@subsub)
341
341
  elsif @subtype == :gsub
342
- request.uri.gsub!(@match,@subsub)
342
+ request.uri = request.uri.gsub(@match,@subsub)
343
343
  end
344
344
  elsif @subproc
345
345
  if @subtype == :sub
346
- request.uri.sub!(@match) {|*args| @subproc.call(request,*args)}
346
+ request.uri = request.uri.sub(@match) {|*args| @subproc.call(request,*args)}
347
347
  elsif @subtype == :gsub
348
- request.uri.gsub!(@match) {|*args| @subproc.call(request,*args)}
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
@@ -1,3 +1,3 @@
1
1
  module Iowa
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
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
- test/TC_IOWAFunctions/doc/../iowa/Ajax1.html
1
+ ../iowa/Ajax1.html
@@ -1 +1 @@
1
- test/TC_IOWAFunctions/doc/../iowa/Ajax1.iwa
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.2
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: 2018-10-11 00:00:00.000000000 Z
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
- rubyforge_project: iowa
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