contact_sync 0.4.5 → 0.4.6

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: 322aae6c4ee241aa3c4642d3e960aecd27c3bafc
4
- data.tar.gz: 95d2a1f54b01c0c4c64bf55050baf59d26893fcf
3
+ metadata.gz: 10c788f01aae59a9f05869c3af16f8c98a8faf5c
4
+ data.tar.gz: 9d0794065fb5c85a2a1c4634d488ae362ae0e221
5
5
  SHA512:
6
- metadata.gz: fb258facfaff58829ba9200cbac22571dfd618aca5223cbf2b27b4bd001cb0efad1044093c95f6a03f41604f243409c3557177e6c81686078ce146f4833e7064
7
- data.tar.gz: dff4e02880081a20e5cf1122af3ebd9730b1afcb51b0736107198686d5b00766e06ef7512c61bdf54fff7599ae3e9eb7408f6c1666c149e59ac6a32c1276c00b
6
+ metadata.gz: 74c96749b4ea9460c9725a429b76bae390bd8f98714f73e10088aa2511e5fe7c852b7e7304f40e12c1a909999abf092d3e2b0d0edf96aa2c5111452c62058cfe
7
+ data.tar.gz: ecdebad90996dbf7300d0180098d01f06ecb425571d8d2fe1d2751da260ce431ebeb80d1159fd4c8823dd7292e9cd8ca6f1f1011ed293b0c587e2f5cfee544b7
@@ -1,3 +1,3 @@
1
1
  module ContactSync
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
data/lib/contact_sync.rb CHANGED
@@ -5,6 +5,7 @@ require 'contact_sync/util/global_phone'
5
5
  require 'contact_sync/acts_as_syncable'
6
6
  require 'contact_sync/syncable'
7
7
  require 'encrypted_strings'
8
+ require 'pry-rails'
8
9
 
9
10
  module ContactSync
10
11
  end
@@ -10,19 +10,16 @@ class InstallContactSyncGenerator < Rails::Generators::Base
10
10
  source_root File.expand_path('../templates', __FILE__)
11
11
 
12
12
  def generate_migration
13
- if self.class.migration_exists?('db/migrate', @migration_file_name)
13
+ binding.pry
14
+ if !self.class.migration_exists?('db/migrate', 'create_contact_sync_schema')
14
15
  migration_template "create_contact_sync_schema.rb", "db/migrate/create_contact_sync_schema.rb"
15
16
  end
16
17
 
17
- if self.class.migration_exists?('db/migrate', @migration_file_name)
18
+ if !self.class.migration_exists?('db/migrate', 'change_emails_schema')
18
19
  migration_template "change_email_encrypted_from_emails.rb", "db/migrate/change_emails_schema.rb"
19
20
  end
20
21
  end
21
22
 
22
- # def generate_global_phone_db
23
- # copy_file "global_phone.json", "db/global_phone.json"
24
- # end
25
-
26
23
  def generate_encrypted_strings_config
27
24
  inject_into_file 'config/environments/development.rb', before: "end\n" do <<-'RUBY'
28
25
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contact_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saad Masood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-19 00:00:00.000000000 Z
11
+ date: 2015-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.3.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: sqlite3
57
71
  requirement: !ruby/object:Gem::Requirement