genki-dm-is-taggable 0.1.3 → 0.1.4

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/Manifest.txt CHANGED
@@ -6,6 +6,7 @@ Rakefile
6
6
  TODO
7
7
  lib/dm-is-taggable.rb
8
8
  lib/dm-is-taggable/aggregate_patch.rb
9
+ lib/dm-is-taggable/do_adapter_ext.rb
9
10
  lib/dm-is-taggable/tag.rb
10
11
  lib/dm-is-taggable/tagging.rb
11
12
  lib/dm-is-taggable/tag_list.rb
@@ -0,0 +1,18 @@
1
+ module DataMapper
2
+ module Adapters
3
+ class DataObjectsAdapter < AbstractAdapter
4
+ module SQL
5
+ private
6
+ alias :property_to_column_name_org :property_to_column_name
7
+ def property_to_column_name(repository, property, *args)
8
+ result = property_to_column_name_org(repository, property, *args)
9
+ if property.respond_to?(:name) && property.name == :"count(*)"
10
+ result.gsub!(/^"|"$/, '')
11
+ end
12
+ result
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+
@@ -1,7 +1,7 @@
1
1
  module DataMapper
2
2
  module Is
3
3
  module Taggable
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  DEPENDENCY_VERSION = ">= 0.9.6"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genki-dm-is-taggable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Qian, Maxime Guilbot
@@ -62,6 +62,7 @@ files:
62
62
  - TODO
63
63
  - lib/dm-is-taggable.rb
64
64
  - lib/dm-is-taggable/aggregate_patch.rb
65
+ - lib/dm-is-taggable/do_adapter_ext.rb
65
66
  - lib/dm-is-taggable/tag.rb
66
67
  - lib/dm-is-taggable/tagging.rb
67
68
  - lib/dm-is-taggable/tag_list.rb