activerecord-mysql-unsigned 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e3b30a816a5a87ec9918c6d663ca68625628704
4
- data.tar.gz: 29b8ba7a2f1c97124db38612aa44db37bf5ad68a
3
+ metadata.gz: 061d647ad2ec959ab0307828d59a7308b9e81764
4
+ data.tar.gz: f435b99ff793d919c6e85e7b113b34fc709b2fdd
5
5
  SHA512:
6
- metadata.gz: bce65b5d5ac3f7058b27954a8faa60513c4feed651922338a01371ee5c029fe8eca3109eaf0badc583c7868e9bd2c9452e7c6ef2d630333e7658a184de8031fa
7
- data.tar.gz: aca9f67ba7b7a3659a2d2fe206e8cbdf424395a8ec58919656b51bd104d101793252a9124c61313f5557f2dc3548608094565861cc192eb680662d1d90a31589
6
+ metadata.gz: 91a074f8ad256f76c633b0d86201fe93c625b84404b36b0bf90ee1326556ea4b5a315aa89e0acc6fd28248f979b6d48144a231862b2a46ba772ae76ecccf346b
7
+ data.tar.gz: 8a056808d164a31538ab172bcaae6e1d9560e800afcb58a1c886bca6e2602a16ca0681c377c90248a875a511c51fb1ea93f8b1718e53ccff8d77d05576a272d5
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency "rspec"
24
24
  spec.add_development_dependency "database_cleaner"
25
- spec.add_runtime_dependency "activesupport", ">= 3.0.0"
26
- spec.add_runtime_dependency "activerecord", ">= 3.0.0"
25
+ spec.add_runtime_dependency "activesupport", "~> 3.2.x"
26
+ spec.add_runtime_dependency "activerecord", "~> 3.2.x"
27
27
  spec.add_runtime_dependency "mysql2"
28
28
  end
@@ -26,7 +26,7 @@ module ActiveRecord
26
26
  'int(10)'
27
27
  end
28
28
  when 5..8
29
- 'bigint' + (unsigned ? ' unsigned' : '')
29
+ 'bigint' + (unsigned ? ' unsigned' : '') + (auto_increment ? ' AUTO_INCREMENT' : '')
30
30
  else raise(ActiveRecordError, "No integer type has byte size #{limit}")
31
31
  end
32
32
  when 'text'
@@ -1,7 +1,7 @@
1
1
  module ActiveRecord
2
2
  module Mysql
3
3
  module Unsigned
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
@@ -31,16 +31,25 @@ class CreateUsersTable < ActiveRecord::Migration
31
31
  t.integer :unsigned_int, unsigned: true
32
32
  t.integer :will_unsigned_int, unsigned: false
33
33
  t.integer :will_signed_int, unsigned: true
34
+ t.integer :will_bigint
34
35
  end
35
36
  end
36
37
  end
37
38
  CreateUsersTable.change
38
39
 
40
+ class ChangePrimaryKeyToGoodsTable < ActiveRecord::Migration
41
+ def self.change
42
+ change_column :goods, :id, :integer, limit: 8, unsigned: true, null: false, auto_increment: true
43
+ end
44
+ end
45
+ ChangePrimaryKeyToGoodsTable.change
46
+
39
47
  class ChangeColumnToUsersTable < ActiveRecord::Migration
40
48
  def self.change
41
- change_column :users, :id, :integer, unsigned: true, null: false, auto_increment: true
49
+ change_column :users, :id, :integer, limit: 8, unsigned: true, null: false, auto_increment: true
42
50
  change_column :users, :will_unsigned_int, :integer, unsigned: true
43
51
  change_column :users, :will_signed_int, :integer, unsigned: false
52
+ change_column :users, :will_bigint, :integer, limit: 8
44
53
  end
45
54
  end
46
55
  ChangeColumnToUsersTable.change
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-mysql-unsigned
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yo_waka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-16 00:00:00.000000000 Z
11
+ date: 2014-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: database_cleaner
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 3.0.0
75
+ version: 3.2.x
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 3.0.0
82
+ version: 3.2.x
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activerecord
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 3.0.0
89
+ version: 3.2.x
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 3.0.0
96
+ version: 3.2.x
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: mysql2
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: Add unsigned option to integer type for ActiveRecord's MySQL2 adapter
@@ -115,8 +115,8 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - .gitignore
119
- - .travis.yml
118
+ - ".gitignore"
119
+ - ".travis.yml"
120
120
  - Gemfile
121
121
  - LICENSE.txt
122
122
  - README.md
@@ -151,17 +151,17 @@ require_paths:
151
151
  - lib
152
152
  required_ruby_version: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - '>='
154
+ - - ">="
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - '>='
159
+ - - ">="
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  requirements: []
163
163
  rubyforge_project:
164
- rubygems_version: 2.0.7
164
+ rubygems_version: 2.2.0
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: Add unsigned option to integer type for ActiveRecord's MySQL2 adapter