rroonga 2.0.3-x86-mingw32 → 2.0.4-x86-mingw32
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.
- data/ext/groonga/rb-grn.h +1 -1
- data/lib/groonga/expression-builder.rb +18 -18
- metadata +3 -3
data/ext/groonga/rb-grn.h
CHANGED
@@ -436,7 +436,7 @@ module Groonga
|
|
436
436
|
"for table <#{@table.inspect}>"
|
437
437
|
raise ArgumentError, message
|
438
438
|
end
|
439
|
-
|
439
|
+
column_expression_builder(column, name)
|
440
440
|
end
|
441
441
|
|
442
442
|
def id
|
@@ -482,7 +482,7 @@ module Groonga
|
|
482
482
|
raise ArgumentError,
|
483
483
|
"different index column: <#{name}>: #{object.inspect}"
|
484
484
|
end
|
485
|
-
|
485
|
+
column_expression_builder(object, name)
|
486
486
|
end
|
487
487
|
|
488
488
|
private
|
@@ -493,7 +493,7 @@ module Groonga
|
|
493
493
|
end
|
494
494
|
end
|
495
495
|
|
496
|
-
def
|
496
|
+
def column_expression_builder(column, name)
|
497
497
|
ColumnValueExpressionBuilder.new(column,
|
498
498
|
:table => @table,
|
499
499
|
:column_name => name)
|
@@ -535,59 +535,59 @@ module Groonga
|
|
535
535
|
end
|
536
536
|
|
537
537
|
def ==(other)
|
538
|
-
|
538
|
+
column_expression_builder == other
|
539
539
|
end
|
540
540
|
|
541
541
|
def =~(other)
|
542
|
-
|
542
|
+
column_expression_builder =~ other
|
543
543
|
end
|
544
544
|
|
545
545
|
def <(other)
|
546
|
-
|
546
|
+
column_expression_builder < other
|
547
547
|
end
|
548
548
|
|
549
549
|
def <=(other)
|
550
|
-
|
550
|
+
column_expression_builder <= other
|
551
551
|
end
|
552
552
|
|
553
553
|
def >(other)
|
554
|
-
|
554
|
+
column_expression_builder > other
|
555
555
|
end
|
556
556
|
|
557
557
|
def >=(other)
|
558
|
-
|
558
|
+
column_expression_builder >= other
|
559
559
|
end
|
560
560
|
|
561
561
|
def +(other)
|
562
|
-
|
562
|
+
column_expression_builder + other
|
563
563
|
end
|
564
564
|
|
565
565
|
def -(other)
|
566
|
-
|
566
|
+
column_expression_builder - other
|
567
567
|
end
|
568
568
|
|
569
569
|
def *(other)
|
570
|
-
|
570
|
+
column_expression_builder * other
|
571
571
|
end
|
572
572
|
|
573
573
|
def /(other)
|
574
|
-
|
574
|
+
column_expression_builder / other
|
575
575
|
end
|
576
576
|
|
577
577
|
def %(other)
|
578
|
-
|
578
|
+
column_expression_builder % other
|
579
579
|
end
|
580
580
|
|
581
581
|
def match(query, options={}, &block)
|
582
|
-
|
582
|
+
column_expression_builder.match(query, options, &block)
|
583
583
|
end
|
584
584
|
|
585
585
|
def similar_search(text)
|
586
|
-
|
586
|
+
column_expression_builder.similar_search(text)
|
587
587
|
end
|
588
588
|
|
589
589
|
private
|
590
|
-
def
|
590
|
+
def column_expression_builder
|
591
591
|
ColumnValueExpressionBuilder.new(@default_column,
|
592
592
|
:table => @table,
|
593
593
|
:column_name => @column_name,
|
@@ -598,7 +598,7 @@ module Groonga
|
|
598
598
|
return super if block
|
599
599
|
return super unless args.empty?
|
600
600
|
if VALID_COLUMN_NAME_RE =~ name.to_s
|
601
|
-
|
601
|
+
column_expression_builder.send(name)
|
602
602
|
else
|
603
603
|
super
|
604
604
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rroonga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 4
|
10
|
+
version: 2.0.4
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- Kouhei Sutou
|