knjrbfw 0.0.99 → 0.0.100

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.99
1
+ 0.0.100
data/knjrbfw.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "knjrbfw"
8
- s.version = "0.0.99"
7
+ s.name = %q{knjrbfw}
8
+ s.version = "0.0.100"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kasper Johansen"]
12
- s.date = "2012-09-30"
13
- s.description = "Including stuff for HTTP, SSH and much more."
14
- s.email = "k@spernj.org"
12
+ s.date = %q{2012-10-10}
13
+ s.description = %q{Including stuff for HTTP, SSH and much more.}
14
+ s.email = %q{k@spernj.org}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.rdoc"
@@ -263,11 +263,11 @@ Gem::Specification.new do |s|
263
263
  "spec/web_spec.rb",
264
264
  "testfiles/image.jpg"
265
265
  ]
266
- s.homepage = "http://github.com/kaspernj/knjrbfw"
266
+ s.homepage = %q{http://github.com/kaspernj/knjrbfw}
267
267
  s.licenses = ["MIT"]
268
268
  s.require_paths = ["lib"]
269
- s.rubygems_version = "1.8.24"
270
- s.summary = "A framework with lots of stuff for Ruby."
269
+ s.rubygems_version = %q{1.6.2}
270
+ s.summary = %q{A framework with lots of stuff for Ruby.}
271
271
 
272
272
  if s.respond_to? :specification_version then
273
273
  s.specification_version = 3
data/lib/knj/datarow.rb CHANGED
@@ -751,8 +751,14 @@ class Knj::Datarow
751
751
  end
752
752
 
753
753
  #Returns the HTML for making a link to the object.
754
- def html
755
- return "<a href=\"#{Knj::Web.ahref_parse(self.url)}\">#{self.name_html}</a>"
754
+ def html(args = nil)
755
+ if args and args[:edit]
756
+ url = self.url_edit
757
+ else
758
+ url = self.url
759
+ end
760
+
761
+ return "<a href=\"#{Knj::Web.ahref_parse(url)}\">#{self.name_html}</a>"
756
762
  end
757
763
 
758
764
  private
@@ -334,6 +334,7 @@ class Knj::Db
334
334
  #===Examples
335
335
  # db.update(:users, {:name => "John"}, {:lastname => "Doe"})
336
336
  def update(tablename, arr_update, arr_terms = {}, args = nil)
337
+ raise "'arr_update' was not a hash." if !arr_update.is_a?(Hash)
337
338
  return false if arr_update.empty?
338
339
 
339
340
  sql = ""
@@ -350,7 +350,7 @@ class Knj::Objects
350
350
  end
351
351
 
352
352
  found = true
353
- elsif args.key?(:cols_num) and match = key.match(/^(.+)_(from|to|above|below)$/) and args[:cols_num].index(match[1]) != nil
353
+ elsif args.key?(:cols_num) and match = key.match(/^(.+)_(from|to|above|below|numeric)$/) and args[:cols_num].index(match[1]) != nil
354
354
  if match[2] == "from"
355
355
  sql_where << " AND #{table}`#{db.esc_col(match[1])}` >= '#{db.esc(val)}'"
356
356
  elsif match[2] == "to"
metadata CHANGED
@@ -1,137 +1,135 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: knjrbfw
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.100
4
5
  prerelease:
5
- version: 0.0.99
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Kasper Johansen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-09-30 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-10-10 00:00:00.000000000 +02:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
16
  name: wref
17
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &22408120 !ruby/object:Gem::Requirement
18
18
  none: false
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
25
+ version_requirements: *22408120
26
+ - !ruby/object:Gem::Dependency
27
27
  name: tsafe
28
- requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirement: &22407480 !ruby/object:Gem::Requirement
29
29
  none: false
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
36
+ version_requirements: *22407480
37
+ - !ruby/object:Gem::Dependency
38
38
  name: datet
39
- requirement: &id003 !ruby/object:Gem::Requirement
39
+ requirement: &22406900 !ruby/object:Gem::Requirement
40
40
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
47
+ version_requirements: *22406900
48
+ - !ruby/object:Gem::Dependency
49
49
  name: http2
50
- requirement: &id004 !ruby/object:Gem::Requirement
50
+ requirement: &22406200 !ruby/object:Gem::Requirement
51
51
  none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
58
+ version_requirements: *22406200
59
+ - !ruby/object:Gem::Dependency
60
60
  name: php4r
61
- requirement: &id005 !ruby/object:Gem::Requirement
61
+ requirement: &22405660 !ruby/object:Gem::Requirement
62
62
  none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
69
+ version_requirements: *22405660
70
+ - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
- requirement: &id006 !ruby/object:Gem::Requirement
72
+ requirement: &22405000 !ruby/object:Gem::Requirement
73
73
  none: false
74
- requirements:
74
+ requirements:
75
75
  - - ~>
76
- - !ruby/object:Gem::Version
76
+ - !ruby/object:Gem::Version
77
77
  version: 2.3.0
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
80
+ version_requirements: *22405000
81
+ - !ruby/object:Gem::Dependency
82
82
  name: bundler
83
- requirement: &id007 !ruby/object:Gem::Requirement
83
+ requirement: &22404200 !ruby/object:Gem::Requirement
84
84
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
88
  version: 1.0.0
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *id007
92
- - !ruby/object:Gem::Dependency
91
+ version_requirements: *22404200
92
+ - !ruby/object:Gem::Dependency
93
93
  name: jeweler
94
- requirement: &id008 !ruby/object:Gem::Requirement
94
+ requirement: &22403280 !ruby/object:Gem::Requirement
95
95
  none: false
96
- requirements:
96
+ requirements:
97
97
  - - ~>
98
- - !ruby/object:Gem::Version
98
+ - !ruby/object:Gem::Version
99
99
  version: 1.6.3
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *id008
103
- - !ruby/object:Gem::Dependency
102
+ version_requirements: *22403280
103
+ - !ruby/object:Gem::Dependency
104
104
  name: sqlite3
105
- requirement: &id009 !ruby/object:Gem::Requirement
105
+ requirement: &22402560 !ruby/object:Gem::Requirement
106
106
  none: false
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: "0"
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *id009
114
- - !ruby/object:Gem::Dependency
113
+ version_requirements: *22402560
114
+ - !ruby/object:Gem::Dependency
115
115
  name: rmagick
116
- requirement: &id010 !ruby/object:Gem::Requirement
116
+ requirement: &22399720 !ruby/object:Gem::Requirement
117
117
  none: false
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- version: "0"
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *id010
124
+ version_requirements: *22399720
125
125
  description: Including stuff for HTTP, SSH and much more.
126
126
  email: k@spernj.org
127
127
  executables: []
128
-
129
128
  extensions: []
130
-
131
- extra_rdoc_files:
129
+ extra_rdoc_files:
132
130
  - LICENSE.txt
133
131
  - README.rdoc
134
- files:
132
+ files:
135
133
  - .document
136
134
  - .rspec
137
135
  - Gemfile
@@ -377,35 +375,33 @@ files:
377
375
  - spec/strings_spec.rb
378
376
  - spec/web_spec.rb
379
377
  - testfiles/image.jpg
378
+ has_rdoc: true
380
379
  homepage: http://github.com/kaspernj/knjrbfw
381
- licenses:
380
+ licenses:
382
381
  - MIT
383
382
  post_install_message:
384
383
  rdoc_options: []
385
-
386
- require_paths:
384
+ require_paths:
387
385
  - lib
388
- required_ruby_version: !ruby/object:Gem::Requirement
386
+ required_ruby_version: !ruby/object:Gem::Requirement
389
387
  none: false
390
- requirements:
391
- - - ">="
392
- - !ruby/object:Gem::Version
393
- hash: 1102043670091375693
394
- segments:
388
+ requirements:
389
+ - - ! '>='
390
+ - !ruby/object:Gem::Version
391
+ version: '0'
392
+ segments:
395
393
  - 0
396
- version: "0"
397
- required_rubygems_version: !ruby/object:Gem::Requirement
394
+ hash: -3820029287983780012
395
+ required_rubygems_version: !ruby/object:Gem::Requirement
398
396
  none: false
399
- requirements:
400
- - - ">="
401
- - !ruby/object:Gem::Version
402
- version: "0"
397
+ requirements:
398
+ - - ! '>='
399
+ - !ruby/object:Gem::Version
400
+ version: '0'
403
401
  requirements: []
404
-
405
402
  rubyforge_project:
406
- rubygems_version: 1.8.24
403
+ rubygems_version: 1.6.2
407
404
  signing_key:
408
405
  specification_version: 3
409
406
  summary: A framework with lots of stuff for Ruby.
410
407
  test_files: []
411
-