phony_rails 0.14.9 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -9,7 +9,7 @@ require 'rubygems'
9
9
  require 'bundler/setup'
10
10
 
11
11
  require 'active_record'
12
- require 'mongoid'
12
+ # require 'mongoid'
13
13
  require 'phony_rails'
14
14
 
15
15
  ActiveRecord::Base.establish_connection(
@@ -35,6 +35,7 @@ module SharedModelMethods
35
35
  :country_code, :country_code_attribute, :custom_country_code, :delivery_method,
36
36
  :home_country, :phone_method, :phone1_method, :recipient, :symboled_phone_method
37
37
  )
38
+
38
39
  phony_normalized_method :phone_attribute # adds normalized_phone_attribute method
39
40
  phony_normalized_method :phone_method # adds normalized_phone_method method
40
41
  phony_normalized_method :phone1_method, default_country_code: 'DE' # adds normalized_phone_method method
@@ -80,20 +81,20 @@ end
80
81
  class ActiveModelDummy < ActiveModelModel
81
82
  end
82
83
 
83
- class MongoidModel
84
- include Mongoid::Document
85
- include Mongoid::Phony
86
- field :phone_attribute, type: String
87
- field :phone_number, type: String
88
- field :phone_number_as_normalized, type: String
89
- field :fax_number
90
- field :country_code_attribute, type: String
91
- field :symboled_phone, type: String
92
- include SharedModelMethods
93
- end
84
+ # class MongoidModel
85
+ # include Mongoid::Document
86
+ # include Mongoid::Phony
87
+ # field :phone_attribute, type: String
88
+ # field :phone_number, type: String
89
+ # field :phone_number_as_normalized, type: String
90
+ # field :fax_number
91
+ # field :country_code_attribute, type: String
92
+ # field :symboled_phone, type: String
93
+ # include SharedModelMethods
94
+ # end
94
95
 
95
- class MongoidDummy < MongoidModel
96
- end
96
+ # class MongoidDummy < MongoidModel
97
+ # end
97
98
 
98
99
  I18n.config.enforce_available_locales = true
99
100
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.9
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joost Hietbrink
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-05 00:00:00.000000000 Z
11
+ date: 2021-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: phony
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '2.15'
33
+ version: 2.18.12
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
- version: '2.15'
40
+ version: 2.18.12
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activerecord
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: mongoid
56
+ name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '3.0'
61
+ version: 1.4.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
- version: '3.0'
68
+ version: 1.4.0
69
69
  description: This Gem adds useful methods to your Rails app to validate, display and
70
70
  save phone numbers.
71
71
  email:
@@ -81,7 +81,6 @@ files:
81
81
  - ".travis.yml"
82
82
  - CHANGELOG.md
83
83
  - Gemfile
84
- - Gemfile.lock
85
84
  - Guardfile
86
85
  - LICENSE
87
86
  - README.md
@@ -96,6 +95,7 @@ files:
96
95
  - lib/phony_rails/locales/it.yml
97
96
  - lib/phony_rails/locales/ja.yml
98
97
  - lib/phony_rails/locales/km.yml
98
+ - lib/phony_rails/locales/ko.yml
99
99
  - lib/phony_rails/locales/nl.yml
100
100
  - lib/phony_rails/locales/ru.yml
101
101
  - lib/phony_rails/locales/tr.yml
@@ -111,8 +111,9 @@ homepage: https://github.com/joost/phony_rails
111
111
  licenses:
112
112
  - MIT
113
113
  metadata: {}
114
- post_install_message: It now adds a '+' to the normalized number when it starts with
115
- a country number!
114
+ post_install_message: |-
115
+ PhonyRails v0.10.0 changes the way numbers are stored!
116
+ It now adds a ' + ' to the normalized number when it starts with a country number!
116
117
  rdoc_options: []
117
118
  require_paths:
118
119
  - lib
@@ -120,15 +121,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
121
  requirements:
121
122
  - - ">="
122
123
  - !ruby/object:Gem::Version
123
- version: '0'
124
+ version: '2.4'
124
125
  required_rubygems_version: !ruby/object:Gem::Requirement
125
126
  requirements:
126
127
  - - ">="
127
128
  - !ruby/object:Gem::Version
128
129
  version: '0'
129
130
  requirements: []
130
- rubyforge_project:
131
- rubygems_version: 2.5.1
131
+ rubygems_version: 3.0.3
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: This Gem adds useful methods to your Rails app to validate, display and save
data/Gemfile.lock DELETED
@@ -1,143 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- phony_rails (0.14.9)
5
- activesupport (>= 3.0)
6
- phony (> 2.15)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- activemodel (5.1.4)
12
- activesupport (= 5.1.4)
13
- activerecord (5.1.4)
14
- activemodel (= 5.1.4)
15
- activesupport (= 5.1.4)
16
- arel (~> 8.0)
17
- activesupport (5.1.4)
18
- concurrent-ruby (~> 1.0, >= 1.0.2)
19
- i18n (~> 0.7)
20
- minitest (~> 5.1)
21
- tzinfo (~> 1.1)
22
- arel (8.0.0)
23
- ast (2.3.0)
24
- bson (4.2.2)
25
- coderay (1.1.2)
26
- concurrent-ruby (1.0.5)
27
- coveralls (0.8.21)
28
- json (>= 1.8, < 3)
29
- simplecov (~> 0.14.1)
30
- term-ansicolor (~> 1.3)
31
- thor (~> 0.19.4)
32
- tins (~> 1.6)
33
- diff-lcs (1.3)
34
- docile (1.1.5)
35
- ffi (1.9.25)
36
- formatador (0.2.5)
37
- guard (2.14.1)
38
- formatador (>= 0.2.4)
39
- listen (>= 2.7, < 4.0)
40
- lumberjack (~> 1.0)
41
- nenv (~> 0.1)
42
- notiffany (~> 0.0)
43
- pry (>= 0.9.12)
44
- shellany (~> 0.0)
45
- thor (>= 0.18.1)
46
- guard-bundler (2.1.0)
47
- bundler (~> 1.0)
48
- guard (~> 2.2)
49
- guard-compat (~> 1.1)
50
- guard-compat (1.2.1)
51
- guard-rspec (4.7.3)
52
- guard (~> 2.1)
53
- guard-compat (~> 1.1)
54
- rspec (>= 2.99.0, < 4.0)
55
- i18n (0.9.1)
56
- concurrent-ruby (~> 1.0)
57
- json (2.1.0)
58
- listen (3.1.5)
59
- rb-fsevent (~> 0.9, >= 0.9.4)
60
- rb-inotify (~> 0.9, >= 0.9.7)
61
- ruby_dep (~> 1.2)
62
- lumberjack (1.0.12)
63
- method_source (0.9.0)
64
- minitest (5.10.3)
65
- mongo (2.4.3)
66
- bson (>= 4.2.1, < 5.0.0)
67
- mongoid (6.2.1)
68
- activemodel (~> 5.1)
69
- mongo (>= 2.4.1, < 3.0.0)
70
- nenv (0.3.0)
71
- notiffany (0.1.1)
72
- nenv (~> 0.1)
73
- shellany (~> 0.0)
74
- parallel (1.12.0)
75
- parser (2.4.0.2)
76
- ast (~> 2.3)
77
- phony (2.16.5)
78
- powerpack (0.1.1)
79
- pry (0.11.3)
80
- coderay (~> 1.1.0)
81
- method_source (~> 0.9.0)
82
- rainbow (2.2.2)
83
- rake
84
- rake (12.3.0)
85
- rb-fsevent (0.10.2)
86
- rb-inotify (0.9.10)
87
- ffi (>= 0.5.0, < 2)
88
- rspec (3.7.0)
89
- rspec-core (~> 3.7.0)
90
- rspec-expectations (~> 3.7.0)
91
- rspec-mocks (~> 3.7.0)
92
- rspec-core (3.7.0)
93
- rspec-support (~> 3.7.0)
94
- rspec-expectations (3.7.0)
95
- diff-lcs (>= 1.2.0, < 2.0)
96
- rspec-support (~> 3.7.0)
97
- rspec-mocks (3.7.0)
98
- diff-lcs (>= 1.2.0, < 2.0)
99
- rspec-support (~> 3.7.0)
100
- rspec-support (3.7.0)
101
- rubocop (0.51.0)
102
- parallel (~> 1.10)
103
- parser (>= 2.3.3.1, < 3.0)
104
- powerpack (~> 0.1)
105
- rainbow (>= 2.2.2, < 3.0)
106
- ruby-progressbar (~> 1.7)
107
- unicode-display_width (~> 1.0, >= 1.0.1)
108
- ruby-progressbar (1.9.0)
109
- ruby_dep (1.5.0)
110
- shellany (0.0.1)
111
- simplecov (0.14.1)
112
- docile (~> 1.1.0)
113
- json (>= 1.8, < 3)
114
- simplecov-html (~> 0.10.0)
115
- simplecov-html (0.10.2)
116
- sqlite3 (1.3.13)
117
- term-ansicolor (1.6.0)
118
- tins (~> 1.0)
119
- thor (0.19.4)
120
- thread_safe (0.3.6)
121
- tins (1.15.1)
122
- tzinfo (1.2.4)
123
- thread_safe (~> 0.1)
124
- unicode-display_width (1.3.0)
125
-
126
- PLATFORMS
127
- ruby
128
-
129
- DEPENDENCIES
130
- activerecord (>= 3.0)
131
- coveralls
132
- guard
133
- guard-bundler
134
- guard-rspec
135
- mongoid (>= 3.0)
136
- phony_rails!
137
- rake
138
- rspec
139
- rubocop
140
- sqlite3
141
-
142
- BUNDLED WITH
143
- 1.16.4