remote_db 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/remote_db/concerns/restricted_columns.rb +2 -2
- data/lib/remote_db/version.rb +1 -1
- metadata +14 -15
- data/Gemfile.lock +0 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a04d319e52193956618290cf2b0f83edf74eb8b
|
4
|
+
data.tar.gz: b5e2640d6bff66264d16cc9f1fb94e5dab11be41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03a856f22e4032eb4a27b250e43e519df732d8956f948e0cd2ea0152f862c4091e82f76d6de34a593922ed3fab43502368abe417ef166302aa2fd84ca5e86e40
|
7
|
+
data.tar.gz: 8f4cb3df65bd76b2327011acfa46397af5133b39b616850d479ffd5917885ed85a56273317736f504c30d55937a733f2bca5693ee3ff64354ad4fc5ba643241e
|
data/CHANGELOG.md
CHANGED
@@ -13,9 +13,9 @@ module RemoteDb
|
|
13
13
|
define_method("#{method}_with_safety") do |name|
|
14
14
|
original_db_column = self.class.original_columns.include?(name.to_sym)
|
15
15
|
visible_db_column = self.class.visible_columns.include? (name.to_sym)
|
16
|
-
|
16
|
+
without_safety_method = "#{method}_without_safety"
|
17
17
|
if (original_db_column && visible_db_column) || !original_db_column
|
18
|
-
|
18
|
+
send(without_safety_method, name)
|
19
19
|
else
|
20
20
|
raise ForbiddenColumnException, "Column #{name} is not allowed for access."
|
21
21
|
end
|
data/lib/remote_db/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Omar Skalli
|
@@ -14,56 +14,56 @@ dependencies:
|
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.0'
|
20
20
|
type: :runtime
|
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: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '3.0'
|
34
34
|
type: :runtime
|
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: '3.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: sqlite3
|
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
|
description: ''
|
@@ -73,11 +73,10 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
-
|
77
|
-
-
|
76
|
+
- .gitignore
|
77
|
+
- .rspec
|
78
78
|
- CHANGELOG.md
|
79
79
|
- Gemfile
|
80
|
-
- Gemfile.lock
|
81
80
|
- README.md
|
82
81
|
- lib/remote_db.rb
|
83
82
|
- lib/remote_db/concerns/configurable.rb
|
@@ -99,17 +98,17 @@ require_paths:
|
|
99
98
|
- lib
|
100
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
101
100
|
requirements:
|
102
|
-
- -
|
101
|
+
- - '>='
|
103
102
|
- !ruby/object:Gem::Version
|
104
103
|
version: '0'
|
105
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
105
|
requirements:
|
107
|
-
- -
|
106
|
+
- - '>='
|
108
107
|
- !ruby/object:Gem::Version
|
109
108
|
version: '0'
|
110
109
|
requirements: []
|
111
110
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
111
|
+
rubygems_version: 2.0.14
|
113
112
|
signing_key:
|
114
113
|
specification_version: 4
|
115
114
|
summary: Easily create a gem for consuming remote database tables/columns.
|
data/Gemfile.lock
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
remote_db (0.0.5)
|
5
|
-
activerecord (>= 3.0)
|
6
|
-
activesupport (>= 3.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
activemodel (4.2.1)
|
12
|
-
activesupport (= 4.2.1)
|
13
|
-
builder (~> 3.1)
|
14
|
-
activerecord (4.2.1)
|
15
|
-
activemodel (= 4.2.1)
|
16
|
-
activesupport (= 4.2.1)
|
17
|
-
arel (~> 6.0)
|
18
|
-
activesupport (4.2.1)
|
19
|
-
i18n (~> 0.7)
|
20
|
-
json (~> 1.7, >= 1.7.7)
|
21
|
-
minitest (~> 5.1)
|
22
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
23
|
-
tzinfo (~> 1.1)
|
24
|
-
arel (6.0.0)
|
25
|
-
builder (3.2.2)
|
26
|
-
diff-lcs (1.2.5)
|
27
|
-
i18n (0.7.0)
|
28
|
-
json (1.8.2)
|
29
|
-
minitest (5.5.1)
|
30
|
-
rspec (3.2.0)
|
31
|
-
rspec-core (~> 3.2.0)
|
32
|
-
rspec-expectations (~> 3.2.0)
|
33
|
-
rspec-mocks (~> 3.2.0)
|
34
|
-
rspec-core (3.2.0)
|
35
|
-
rspec-support (~> 3.2.0)
|
36
|
-
rspec-expectations (3.2.0)
|
37
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
-
rspec-support (~> 3.2.0)
|
39
|
-
rspec-mocks (3.2.0)
|
40
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
-
rspec-support (~> 3.2.0)
|
42
|
-
rspec-support (3.2.1)
|
43
|
-
sqlite3 (1.3.10)
|
44
|
-
thread_safe (0.3.5)
|
45
|
-
tzinfo (1.2.2)
|
46
|
-
thread_safe (~> 0.1)
|
47
|
-
|
48
|
-
PLATFORMS
|
49
|
-
ruby
|
50
|
-
|
51
|
-
DEPENDENCIES
|
52
|
-
remote_db!
|
53
|
-
rspec
|
54
|
-
sqlite3
|