active_record_schema_scrapper 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +2 -0
- data/active_record_schema_scrapper.gemspec +3 -3
- data/gemfiles/activerecord_4.2.gemfile +1 -0
- data/gemfiles/activerecord_4.2.gemfile.lock +11 -1
- data/gemfiles/activerecord_5.gemfile +1 -0
- data/gemfiles/activerecord_5.gemfile.lock +11 -1
- data/gemfiles/activerecord_6.gemfile.lock +11 -1
- data/lib/active_record_schema_scrapper/attributes.rb +4 -2
- data/lib/active_record_schema_scrapper/version.rb +1 -1
- metadata +25 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17ac99d50ef0c05ddd6ea67e41a4cfdfdca751942dcc3bbb13233edad423ff51
|
4
|
+
data.tar.gz: 4667636b44013f45372f5d6fae09bd71e6cf54feb59b3ac2489eac49afe628d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e80eeb33a89a6659e0ec46dc860aa75dfedb23066c15817c4f61f0926d54744c4d04b9a82df26d3df563dde51b2e2689ef554c0b87f186bd21c7221e6ebb12c
|
7
|
+
data.tar.gz: a268fe2360f81389f05a8cb8b7eb8407eb2d969376ea1cc254e7de21c6c9986182c7735b9dfa6723faace14910c50b669caf8385c2bf327b2ab8488b41da4c6f
|
data/Appraisals
CHANGED
@@ -21,10 +21,10 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.add_runtime_dependency "activerecord", ">= 4.2", "<= 6.9"
|
23
23
|
spec.add_runtime_dependency "virtus", "~> 1.0"
|
24
|
+
spec.add_development_dependency "appraisal", "~> 2.0"
|
24
25
|
spec.add_development_dependency "bundler", "~> 1.9"
|
26
|
+
spec.add_development_dependency "codeclimate-test-reporter", "~> 0.5"
|
27
|
+
spec.add_development_dependency "pry-byebug", "~> 3.7.0"
|
25
28
|
spec.add_development_dependency "rake", ">= 10.0"
|
26
29
|
spec.add_development_dependency "rspec", "~> 3.4"
|
27
|
-
spec.add_development_dependency "appraisal", "~> 2.0"
|
28
|
-
spec.add_development_dependency "codeclimate-test-reporter", "~> 0.5"
|
29
|
-
spec.add_development_dependency "sqlite3", "~> 1.3.13"
|
30
30
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_record_schema_scrapper (0.
|
4
|
+
active_record_schema_scrapper (0.9.0)
|
5
5
|
activerecord (>= 4.2, <= 6.9)
|
6
6
|
virtus (~> 1.0)
|
7
7
|
|
@@ -30,8 +30,10 @@ GEM
|
|
30
30
|
ice_nine (~> 0.11.0)
|
31
31
|
thread_safe (~> 0.3, >= 0.3.1)
|
32
32
|
builder (3.2.3)
|
33
|
+
byebug (11.0.1)
|
33
34
|
codeclimate-test-reporter (0.6.0)
|
34
35
|
simplecov (>= 0.7.1, < 1.0.0)
|
36
|
+
coderay (1.1.2)
|
35
37
|
coercible (1.0.0)
|
36
38
|
descendants_tracker (~> 0.0.1)
|
37
39
|
concurrent-ruby (1.1.5)
|
@@ -44,7 +46,14 @@ GEM
|
|
44
46
|
concurrent-ruby (~> 1.0)
|
45
47
|
ice_nine (0.11.2)
|
46
48
|
json (2.2.0)
|
49
|
+
method_source (0.9.2)
|
47
50
|
minitest (5.11.3)
|
51
|
+
pry (0.12.2)
|
52
|
+
coderay (~> 1.1.0)
|
53
|
+
method_source (~> 0.9.0)
|
54
|
+
pry-byebug (3.7.0)
|
55
|
+
byebug (~> 11.0)
|
56
|
+
pry (~> 0.10)
|
48
57
|
rake (12.3.2)
|
49
58
|
rspec (3.8.0)
|
50
59
|
rspec-core (~> 3.8.0)
|
@@ -84,6 +93,7 @@ DEPENDENCIES
|
|
84
93
|
appraisal (~> 2.0)
|
85
94
|
bundler (~> 1.9)
|
86
95
|
codeclimate-test-reporter (~> 0.5)
|
96
|
+
pry-byebug (~> 3.7.0)
|
87
97
|
rake (>= 10.0)
|
88
98
|
rspec (~> 3.4)
|
89
99
|
sqlite3 (~> 1.3.13)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_record_schema_scrapper (0.
|
4
|
+
active_record_schema_scrapper (0.9.0)
|
5
5
|
activerecord (>= 4.2, <= 6.9)
|
6
6
|
virtus (~> 1.0)
|
7
7
|
|
@@ -28,8 +28,10 @@ GEM
|
|
28
28
|
descendants_tracker (~> 0.0.4)
|
29
29
|
ice_nine (~> 0.11.0)
|
30
30
|
thread_safe (~> 0.3, >= 0.3.1)
|
31
|
+
byebug (11.0.1)
|
31
32
|
codeclimate-test-reporter (0.6.0)
|
32
33
|
simplecov (>= 0.7.1, < 1.0.0)
|
34
|
+
coderay (1.1.2)
|
33
35
|
coercible (1.0.0)
|
34
36
|
descendants_tracker (~> 0.0.1)
|
35
37
|
concurrent-ruby (1.1.5)
|
@@ -42,7 +44,14 @@ GEM
|
|
42
44
|
concurrent-ruby (~> 1.0)
|
43
45
|
ice_nine (0.11.2)
|
44
46
|
json (2.2.0)
|
47
|
+
method_source (0.9.2)
|
45
48
|
minitest (5.11.3)
|
49
|
+
pry (0.12.2)
|
50
|
+
coderay (~> 1.1.0)
|
51
|
+
method_source (~> 0.9.0)
|
52
|
+
pry-byebug (3.7.0)
|
53
|
+
byebug (~> 11.0)
|
54
|
+
pry (~> 0.10)
|
46
55
|
rake (12.3.2)
|
47
56
|
rspec (3.8.0)
|
48
57
|
rspec-core (~> 3.8.0)
|
@@ -83,6 +92,7 @@ DEPENDENCIES
|
|
83
92
|
appraisal (~> 2.0)
|
84
93
|
bundler (~> 1.9)
|
85
94
|
codeclimate-test-reporter (~> 0.5)
|
95
|
+
pry-byebug (~> 3.7.0)
|
86
96
|
rake (>= 10.0)
|
87
97
|
rspec (~> 3.4)
|
88
98
|
sqlite3 (~> 1.3.13)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_record_schema_scrapper (0.
|
4
|
+
active_record_schema_scrapper (0.9.0)
|
5
5
|
activerecord (>= 4.2, <= 6.9)
|
6
6
|
virtus (~> 1.0)
|
7
7
|
|
@@ -27,8 +27,10 @@ GEM
|
|
27
27
|
descendants_tracker (~> 0.0.4)
|
28
28
|
ice_nine (~> 0.11.0)
|
29
29
|
thread_safe (~> 0.3, >= 0.3.1)
|
30
|
+
byebug (11.0.1)
|
30
31
|
codeclimate-test-reporter (0.6.0)
|
31
32
|
simplecov (>= 0.7.1, < 1.0.0)
|
33
|
+
coderay (1.1.2)
|
32
34
|
coercible (1.0.0)
|
33
35
|
descendants_tracker (~> 0.0.1)
|
34
36
|
concurrent-ruby (1.1.5)
|
@@ -41,7 +43,14 @@ GEM
|
|
41
43
|
concurrent-ruby (~> 1.0)
|
42
44
|
ice_nine (0.11.2)
|
43
45
|
json (2.2.0)
|
46
|
+
method_source (0.9.2)
|
44
47
|
minitest (5.11.3)
|
48
|
+
pry (0.12.2)
|
49
|
+
coderay (~> 1.1.0)
|
50
|
+
method_source (~> 0.9.0)
|
51
|
+
pry-byebug (3.7.0)
|
52
|
+
byebug (~> 11.0)
|
53
|
+
pry (~> 0.10)
|
45
54
|
rake (12.3.3)
|
46
55
|
rspec (3.8.0)
|
47
56
|
rspec-core (~> 3.8.0)
|
@@ -83,6 +92,7 @@ DEPENDENCIES
|
|
83
92
|
appraisal (~> 2.0)
|
84
93
|
bundler (~> 1.9)
|
85
94
|
codeclimate-test-reporter (~> 0.5)
|
95
|
+
pry-byebug (~> 3.7.0)
|
86
96
|
rake (>= 10.0)
|
87
97
|
rspec (~> 3.4)
|
88
98
|
sqlite3 (~> 1.4.0)
|
@@ -13,8 +13,10 @@ class ActiveRecordSchemaScrapper
|
|
13
13
|
].freeze
|
14
14
|
|
15
15
|
DEFAULT_REGISTERED_DEFAULTS = [
|
16
|
-
{ default: Proc.new { |d|
|
17
|
-
{ default: Proc.new { |d|
|
16
|
+
{ default: Proc.new { |d| d == 't' }, replacement_default: true, type: :boolean },
|
17
|
+
{ default: Proc.new { |d| d == 'f' }, replacement_default: false, type: :boolean },
|
18
|
+
{ default: Proc.new { |d| d == '1' }, replacement_default: true, type: :boolean },
|
19
|
+
{ default: Proc.new { |d| d == '0' }, replacement_default: false, type: :boolean }
|
18
20
|
].freeze
|
19
21
|
|
20
22
|
class << self
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_schema_scrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Zeisler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -45,89 +45,89 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: appraisal
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '2.0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '2.0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: bundler
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '1.9'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '1.9'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: codeclimate-test-reporter
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '0.5'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
88
|
+
version: '0.5'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
90
|
+
name: pry-byebug
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: 3.7.0
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
102
|
+
version: 3.7.0
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
104
|
+
name: rake
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "
|
107
|
+
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0
|
109
|
+
version: '10.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- - "
|
114
|
+
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '0
|
116
|
+
version: '10.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
118
|
+
name: rspec
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
123
|
+
version: '3.4'
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
130
|
+
version: '3.4'
|
131
131
|
description: A supporting library for active_mocker and wrapper around an active_record
|
132
132
|
model.
|
133
133
|
email:
|
@@ -181,8 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
|
-
|
185
|
-
rubygems_version: 2.7.7
|
184
|
+
rubygems_version: 3.0.3
|
186
185
|
signing_key:
|
187
186
|
specification_version: 4
|
188
187
|
summary: A wrapper around an active_record model.
|