mysql2_downcase 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +19 -0
- data/README.rdoc +5 -7
- data/VERSION +1 -1
- data/lib/{connection_adapters → active_record/connection_adapters}/mysql2_downcase_adapter.rb +0 -0
- data/mysql2_downcase.gemspec +66 -0
- data/test/helper.rb +2 -0
- data/test/test_mysql2_downcase.rb +4 -2
- metadata +25 -13
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,20 +1,39 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
+
activemodel (3.1.0.rc5)
|
5
|
+
activesupport (= 3.1.0.rc5)
|
6
|
+
bcrypt-ruby (~> 2.1.4)
|
7
|
+
builder (~> 3.0.0)
|
8
|
+
i18n (~> 0.6)
|
9
|
+
activerecord (3.1.0.rc5)
|
10
|
+
activemodel (= 3.1.0.rc5)
|
11
|
+
activesupport (= 3.1.0.rc5)
|
12
|
+
arel (~> 2.1.4)
|
13
|
+
tzinfo (~> 0.3.29)
|
14
|
+
activesupport (3.1.0.rc5)
|
15
|
+
multi_json (~> 1.0)
|
16
|
+
arel (2.1.4)
|
17
|
+
bcrypt-ruby (2.1.4)
|
18
|
+
builder (3.0.0)
|
4
19
|
git (1.2.5)
|
20
|
+
i18n (0.6.0)
|
5
21
|
jeweler (1.6.4)
|
6
22
|
bundler (~> 1.0)
|
7
23
|
git (>= 1.2.5)
|
8
24
|
rake
|
25
|
+
multi_json (1.0.3)
|
9
26
|
mysql2 (0.3.7)
|
10
27
|
rake (0.9.2)
|
11
28
|
rcov (0.9.9)
|
12
29
|
shoulda (2.11.3)
|
30
|
+
tzinfo (0.3.29)
|
13
31
|
|
14
32
|
PLATFORMS
|
15
33
|
ruby
|
16
34
|
|
17
35
|
DEPENDENCIES
|
36
|
+
activerecord (~> 3.1.0.rc1)
|
18
37
|
bundler (~> 1.0.0)
|
19
38
|
jeweler (~> 1.6.4)
|
20
39
|
mysql2
|
data/README.rdoc
CHANGED
@@ -1,16 +1,14 @@
|
|
1
1
|
= mysql2_downcase
|
2
2
|
|
3
|
-
mysql2 driver that helps you to work with PHP-based databases having uppercased columns. Connect with this driver and use
|
3
|
+
mysql2 driver that helps you to work with PHP-based databases having uppercased columns. Connect with this driver and use <tt>User.first.id</tt> instead of <tt>User.first.ID</tt>
|
4
4
|
|
5
5
|
== Usage
|
6
6
|
|
7
|
-
Set
|
7
|
+
Set <tt>mysql2_downcase</tt> driver in database configuration:
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
...
|
13
|
-
```
|
9
|
+
production:
|
10
|
+
adapter: mysql2_downcase
|
11
|
+
...
|
14
12
|
|
15
13
|
== Contributing to mysql2_downcase
|
16
14
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/{connection_adapters → active_record/connection_adapters}/mysql2_downcase_adapter.rb
RENAMED
File without changes
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{mysql2_downcase}
|
8
|
+
s.version = "0.0.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Danil Pismenny"]
|
12
|
+
s.date = %q{2011-08-30}
|
13
|
+
s.description = %q{mysql2 driver that helps you to work with PHP-based databases having uppercased columns. Connect with this driver and use User.first.id instead of User.first.ID}
|
14
|
+
s.email = %q{danil@orionet.ru}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"lib/active_record/connection_adapters/mysql2_downcase_adapter.rb",
|
28
|
+
"lib/mysql2_downcase.rb",
|
29
|
+
"mysql2_downcase.gemspec",
|
30
|
+
"test/helper.rb",
|
31
|
+
"test/test_mysql2_downcase.rb"
|
32
|
+
]
|
33
|
+
s.homepage = %q{http://github.com/dapi/mysql2_downcase}
|
34
|
+
s.licenses = ["MIT"]
|
35
|
+
s.require_paths = ["lib"]
|
36
|
+
s.rubygems_version = %q{1.6.2}
|
37
|
+
s.summary = %q{mysql2 connection driver that downcase column names}
|
38
|
+
|
39
|
+
if s.respond_to? :specification_version then
|
40
|
+
s.specification_version = 3
|
41
|
+
|
42
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
43
|
+
s.add_runtime_dependency(%q<activerecord>, ["~> 3.1.0.rc1"])
|
44
|
+
s.add_runtime_dependency(%q<mysql2>, [">= 0"])
|
45
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
46
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
47
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
48
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
49
|
+
else
|
50
|
+
s.add_dependency(%q<activerecord>, ["~> 3.1.0.rc1"])
|
51
|
+
s.add_dependency(%q<mysql2>, [">= 0"])
|
52
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
53
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
54
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
55
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
56
|
+
end
|
57
|
+
else
|
58
|
+
s.add_dependency(%q<activerecord>, ["~> 3.1.0.rc1"])
|
59
|
+
s.add_dependency(%q<mysql2>, [">= 0"])
|
60
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
61
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
62
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
63
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
data/test/helper.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
require 'helper'
|
2
|
+
require 'active_record/connection_adapters/mysql2_downcase_adapter'
|
3
|
+
|
2
4
|
|
3
5
|
class TestMysql2Downcase < Test::Unit::TestCase
|
4
|
-
should "
|
5
|
-
|
6
|
+
should "should be mysql2_downcase driver" do
|
7
|
+
assert_respond_to ActiveRecord::Base, :mysql2_downcase_connection
|
6
8
|
end
|
7
9
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql2_downcase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,9 +12,20 @@ cert_chain: []
|
|
12
12
|
date: 2011-08-30 00:00:00.000000000 +04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: activerecord
|
17
|
+
requirement: &2165994040 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.1.0.rc1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *2165994040
|
15
26
|
- !ruby/object:Gem::Dependency
|
16
27
|
name: mysql2
|
17
|
-
requirement: &
|
28
|
+
requirement: &2165991340 !ruby/object:Gem::Requirement
|
18
29
|
none: false
|
19
30
|
requirements:
|
20
31
|
- - ! '>='
|
@@ -22,10 +33,10 @@ dependencies:
|
|
22
33
|
version: '0'
|
23
34
|
type: :runtime
|
24
35
|
prerelease: false
|
25
|
-
version_requirements: *
|
36
|
+
version_requirements: *2165991340
|
26
37
|
- !ruby/object:Gem::Dependency
|
27
38
|
name: shoulda
|
28
|
-
requirement: &
|
39
|
+
requirement: &2165989100 !ruby/object:Gem::Requirement
|
29
40
|
none: false
|
30
41
|
requirements:
|
31
42
|
- - ! '>='
|
@@ -33,10 +44,10 @@ dependencies:
|
|
33
44
|
version: '0'
|
34
45
|
type: :development
|
35
46
|
prerelease: false
|
36
|
-
version_requirements: *
|
47
|
+
version_requirements: *2165989100
|
37
48
|
- !ruby/object:Gem::Dependency
|
38
49
|
name: bundler
|
39
|
-
requirement: &
|
50
|
+
requirement: &2165987900 !ruby/object:Gem::Requirement
|
40
51
|
none: false
|
41
52
|
requirements:
|
42
53
|
- - ~>
|
@@ -44,10 +55,10 @@ dependencies:
|
|
44
55
|
version: 1.0.0
|
45
56
|
type: :development
|
46
57
|
prerelease: false
|
47
|
-
version_requirements: *
|
58
|
+
version_requirements: *2165987900
|
48
59
|
- !ruby/object:Gem::Dependency
|
49
60
|
name: jeweler
|
50
|
-
requirement: &
|
61
|
+
requirement: &2165975640 !ruby/object:Gem::Requirement
|
51
62
|
none: false
|
52
63
|
requirements:
|
53
64
|
- - ~>
|
@@ -55,10 +66,10 @@ dependencies:
|
|
55
66
|
version: 1.6.4
|
56
67
|
type: :development
|
57
68
|
prerelease: false
|
58
|
-
version_requirements: *
|
69
|
+
version_requirements: *2165975640
|
59
70
|
- !ruby/object:Gem::Dependency
|
60
71
|
name: rcov
|
61
|
-
requirement: &
|
72
|
+
requirement: &2165973600 !ruby/object:Gem::Requirement
|
62
73
|
none: false
|
63
74
|
requirements:
|
64
75
|
- - ! '>='
|
@@ -66,7 +77,7 @@ dependencies:
|
|
66
77
|
version: '0'
|
67
78
|
type: :development
|
68
79
|
prerelease: false
|
69
|
-
version_requirements: *
|
80
|
+
version_requirements: *2165973600
|
70
81
|
description: mysql2 driver that helps you to work with PHP-based databases having
|
71
82
|
uppercased columns. Connect with this driver and use User.first.id instead of User.first.ID
|
72
83
|
email: danil@orionet.ru
|
@@ -83,8 +94,9 @@ files:
|
|
83
94
|
- README.rdoc
|
84
95
|
- Rakefile
|
85
96
|
- VERSION
|
86
|
-
- lib/connection_adapters/mysql2_downcase_adapter.rb
|
97
|
+
- lib/active_record/connection_adapters/mysql2_downcase_adapter.rb
|
87
98
|
- lib/mysql2_downcase.rb
|
99
|
+
- mysql2_downcase.gemspec
|
88
100
|
- test/helper.rb
|
89
101
|
- test/test_mysql2_downcase.rb
|
90
102
|
has_rdoc: true
|
@@ -103,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
115
|
version: '0'
|
104
116
|
segments:
|
105
117
|
- 0
|
106
|
-
hash:
|
118
|
+
hash: 3493504115566062693
|
107
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
120
|
none: false
|
109
121
|
requirements:
|