devise_phone 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18772974aa67b6d2f06e9dad79f59afcb25273b2
4
- data.tar.gz: fd2b249d3856867fb6c68eef017b5f1f762396d6
3
+ metadata.gz: c0f34161c84cc826347fcdbee8e8f29142304cf8
4
+ data.tar.gz: 5480ceb69168e8b3d594c6099e871b67ee73e8c7
5
5
  SHA512:
6
- metadata.gz: f8df3b0d3258a5376bc808ba724276a1bb28a4c83ae533cef6949f32c097d0415284d96d48903b2dc57dbf0048b7fe9f9858140212ccd96e092108ed478d45e7
7
- data.tar.gz: cc3a5c2df0add337a561ae6b77383bef0a87d954443928e3694aa8bfb9a11f59a61b5682e3b2efea190408a048df9b342bc071d3b652406c7067f78f9f3ea794
6
+ metadata.gz: 91a59a528fab2becadd85d339622cf2de1d77bf0cc32f2f5bdc2c565c314f1721e150912fc1f9fea6470ae9e99482174cc309b1f7c83ea7647186c1c3b250c7c
7
+ data.tar.gz: e4ee82682794bb292ab5475e94b491a006550a0e1456fae6d60aa8f4de1b161e374ef01ae9a74d7f29b786e8b6b8bd3c0b7ced62029b4d4066989b1f3e76dba1
@@ -1,3 +1,3 @@
1
1
  module DevisePhone
2
- VERSION = "0.0.14".freeze
2
+ VERSION = "0.0.15".freeze
3
3
  end
@@ -3,7 +3,7 @@ module DevisePhone
3
3
  class DevisePhoneGenerator < Rails::Generators::NamedBase
4
4
  namespace "devise_phone"
5
5
 
6
- desc "Add :phone_number directive in the given model. Also generate migration for ActiveRecord"
6
+ desc "Add :phone directive in the given model. Also generate migration for ActiveRecord"
7
7
 
8
8
  # def devise_generate_model
9
9
  # invoke "devise", [name]
@@ -11,7 +11,7 @@ module DevisePhone
11
11
 
12
12
  def inject_devise_phone_content
13
13
  path = File.join("app", "models", "#{file_path}.rb")
14
- inject_into_file(path, "phone_number, :", :after => "devise :") if File.exists?(path)
14
+ inject_into_file(path, "phone, :", :after => "devise :") if File.exists?(path)
15
15
  end
16
16
 
17
17
  hook_for :orm
@@ -15,34 +15,34 @@ module DevisePhone
15
15
 
16
16
  if old_content.match(Regexp.new(/^\s# ==> Configuration for :phone\n/))
17
17
  false
18
- else
19
- inject_into_file(devise_initializer_path, :before => " # ==> Configuration for :confirmable\n") do
20
- <<-CONTENT
21
- # ==> Configuration for :sms_activable
22
- # The period the generated sms token is valid, after
23
- # this period, the user won't be able to activate.
24
- # config.sms_confirm_within = 0.days
18
+ # else
19
+ # inject_into_file(devise_initializer_path, :before => " # ==> Configuration for :confirmable\n") do
20
+ # <<-CONTENT
21
+ # # ==> Configuration for :phone
22
+ # # The period the generated sms token is valid, after
23
+ # # this period, the user won't be able to activate.
24
+ # # config.sms_confirm_within = 0.days
25
25
 
26
- # The keys searched for confirmation values.
27
- # config.sms_confirmation_keys = [:email]
26
+ # # The keys searched for confirmation values.
27
+ # # config.sms_confirmation_keys = [:email]
28
28
 
29
- # Your SmsSender class. The provided one uses
30
- # moonshado-sms gem so install it and configure
31
- # if you want to use it.
32
- # A simple instance of the class has been copied in your lib folder
33
- # For further informations on using and configuring moonshado-sms gem check
34
- # https://github.com/moonshado/moonshado-sms
35
- # config.sms_sender = "Devise::SmsSender"
29
+ # # Your SmsSender class. The provided one uses
30
+ # # moonshado-sms gem so install it and configure
31
+ # # if you want to use it.
32
+ # # A simple instance of the class has been copied in your lib folder
33
+ # # For further informations on using and configuring moonshado-sms gem check
34
+ # # https://github.com/moonshado/moonshado-sms
35
+ # # config.sms_sender = "Devise::SmsSender"
36
36
 
37
- CONTENT
37
+ # CONTENT
38
38
  end
39
39
  end
40
40
  end
41
41
  end
42
42
 
43
- def copy_locale
44
- copy_file "../../../config/locales/en.yml", "config/locales/devise_phone.en.yml"
45
- end
43
+ # def copy_locale
44
+ # copy_file "../../../config/locales/en.yml", "config/locales/devise_phone.en.yml"
45
+ # end
46
46
 
47
47
  def copy_default_smser
48
48
  copy_file "lib/sms_sender.rb", "lib/devise_sms_sender.rb"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_phone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hubert Theodore