arboreal 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,3 +1,6 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
1
4
  task :default => :spec
2
5
 
3
6
  require "spec/rake/spectask"
@@ -32,7 +32,7 @@ module Arboreal
32
32
  # As a result, this *may* not work for DBMS that aren't explicitly supported.
33
33
  #
34
34
  def ancestry_extension_sql
35
- sql = if connection.adapter_name == "MySQL"
35
+ sql = if connection.adapter_name =~ /mysql/i
36
36
  <<-SQL
37
37
  UPDATE _arboreals_ AS child
38
38
  JOIN _arboreals_ AS parent ON parent.id = child.parent_id
@@ -1,3 +1,3 @@
1
1
  module Arboreal
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arboreal
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
4
+ prerelease:
5
+ version: 0.1.2
11
6
  platform: ruby
12
7
  authors:
13
8
  - Mike Williams
@@ -15,8 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2010-09-14 00:00:00 +10:00
19
- default_executable:
13
+ date: 2011-05-05 00:00:00 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: activerecord
@@ -26,11 +20,6 @@ dependencies:
26
20
  requirements:
27
21
  - - ">="
28
22
  - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 2
32
- - 3
33
- - 0
34
23
  version: 2.3.0
35
24
  type: :runtime
36
25
  version_requirements: *id001
@@ -42,11 +31,6 @@ dependencies:
42
31
  requirements:
43
32
  - - ">="
44
33
  - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 2
48
- - 3
49
- - 0
50
34
  version: 2.3.0
51
35
  type: :runtime
52
36
  version_requirements: *id002
@@ -78,7 +62,6 @@ files:
78
62
  - Rakefile
79
63
  - README.rdoc
80
64
  - LICENSE
81
- has_rdoc: true
82
65
  homepage: http://github.com/mdub/arboreal
83
66
  licenses: []
84
67
 
@@ -95,25 +78,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
78
  requirements:
96
79
  - - ">="
97
80
  - !ruby/object:Gem::Version
98
- hash: 57
99
- segments:
100
- - 1
101
- - 8
102
- - 7
103
81
  version: 1.8.7
104
82
  required_rubygems_version: !ruby/object:Gem::Requirement
105
83
  none: false
106
84
  requirements:
107
85
  - - ">="
108
86
  - !ruby/object:Gem::Version
109
- hash: 3
110
- segments:
111
- - 0
112
87
  version: "0"
113
88
  requirements: []
114
89
 
115
90
  rubyforge_project:
116
- rubygems_version: 1.3.7
91
+ rubygems_version: 1.7.2
117
92
  signing_key:
118
93
  specification_version: 3
119
94
  summary: Efficient tree structures for ActiveRecord