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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cb4a10953e6716bd4d4c287eaba65af7f2c6fa0
4
- data.tar.gz: b3573e660e9013611486ec1a55c082f9e7e3b807
3
+ metadata.gz: a70f6948b217b8573ac833ce2a90a28f46bbabb0
4
+ data.tar.gz: a25f571bd251f74c527734590cea5add2c2f6de9
5
5
  SHA512:
6
- metadata.gz: c0918e3392c0fc7c2725e6623b8a9ebed1b524dda0d9ff8d8b60bf1a6942e071bded45092fc66e368f1f29c2861a0fe598ad8c6257056920340c12999d286807
7
- data.tar.gz: 038c416f2864db801f9b0b4ee6d67dbe8a9bf0d71f094d8e8f011123283c15231e5a1dd3d89c969817e015853b101ce5aeb51b5666870e2ae4b2781fe84fa3a5
6
+ metadata.gz: 7237e607d7abdbbfeb69d2ed7886bc32d210b38343ff804b4cf60ca0f64f7bdd17b5dfb0caa5cc5e8ae2a73b3710da57c9dd7667fd0859f251c37925b7373d92
7
+ data.tar.gz: e8966d7c9bb72ea3b30f1bbdd66dd8e7f82f93b1c6546be19086d8d0567a6c5437a8a9c79f89081c625ea3d49694e1bd0f0597713e805c1eb9749d9e337d0794
@@ -1 +1 @@
1
- 2.1.3
1
+ 2.1.4
@@ -1,23 +1,25 @@
1
- require 'rails_admin/adapters/mongoid'
2
1
  begin
3
- require 'rails_admin/adapters/mongoid/property'
4
- rescue Exception => e
5
- end
6
-
7
- module RailsAdmin
8
- module Adapters
9
- module Mongoid
10
- class Property
11
- alias_method :type_without_russian_phone, :type
12
- def type
13
- if property.type.class.name == "RussianPhone::Field"
14
- :string
15
- else
16
- type_without_russian_phone
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
-
@@ -1,4 +1,4 @@
1
1
  module RussianPhone
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
4
4
 
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.1
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-09-29 00:00:00.000000000 Z
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.2.2
221
+ rubygems_version: 2.4.2
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: "Поле для хранения Российских телефонных номеров в Mongoid"