russian_phone 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/russian_phone/rails_admin.rb +18 -16
- data/lib/russian_phone/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a70f6948b217b8573ac833ce2a90a28f46bbabb0
|
4
|
+
data.tar.gz: a25f571bd251f74c527734590cea5add2c2f6de9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7237e607d7abdbbfeb69d2ed7886bc32d210b38343ff804b4cf60ca0f64f7bdd17b5dfb0caa5cc5e8ae2a73b3710da57c9dd7667fd0859f251c37925b7373d92
|
7
|
+
data.tar.gz: e8966d7c9bb72ea3b30f1bbdd66dd8e7f82f93b1c6546be19086d8d0567a6c5437a8a9c79f89081c625ea3d49694e1bd0f0597713e805c1eb9749d9e337d0794
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.4
|
@@ -1,23 +1,25 @@
|
|
1
|
-
require 'rails_admin/adapters/mongoid'
|
2
1
|
begin
|
3
|
-
require 'rails_admin/adapters/mongoid
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
2
|
+
require 'rails_admin/adapters/mongoid'
|
3
|
+
begin
|
4
|
+
require 'rails_admin/adapters/mongoid/property'
|
5
|
+
rescue Exception => e
|
6
|
+
end
|
7
|
+
|
8
|
+
module RailsAdmin
|
9
|
+
module Adapters
|
10
|
+
module Mongoid
|
11
|
+
class Property
|
12
|
+
alias_method :type_without_russian_phone, :type
|
13
|
+
def type
|
14
|
+
if property.type.class.name == "RussianPhone::Field"
|
15
|
+
:string
|
16
|
+
else
|
17
|
+
type_without_russian_phone
|
18
|
+
end
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
24
|
+
rescue Exception => e
|
22
25
|
end
|
23
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: russian_phone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GlebTv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
version: '0'
|
219
219
|
requirements: []
|
220
220
|
rubyforge_project:
|
221
|
-
rubygems_version: 2.
|
221
|
+
rubygems_version: 2.4.2
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: "Поле для хранения Российских телефонных номеров в Mongoid"
|