contact_sync 0.4.9 → 1.0.0
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 +4 -4
- data/lib/contact_sync/syncable.rb +1 -1
- data/lib/contact_sync/version.rb +1 -1
- metadata +2 -10
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -4
- data/test/dummy/log/test.log +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fca10e547dcbdc61eb98446899ab823c1f3ea86
|
4
|
+
data.tar.gz: 00796a313348b0b656c837eb5c0d1113d6a62f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fdcc62350ebbea362a642950f7c98ee536c2c1c353e543813a8513ce5e9c5636fc455e5f4b7da5d8c4959658c7896e72d9d85216fff7df987297c9ed967cb38
|
7
|
+
data.tar.gz: fbd6e245d7c53c89f17663c964f7987efb0f8301a2e82195ee6582b167aa7ee76f821689f1c5710d325e955785361259ac86dc4585e222a0f88383b6e0189a8b
|
@@ -97,7 +97,7 @@ module ContactSync
|
|
97
97
|
matched_contacts << u.id unless u.blank?
|
98
98
|
end
|
99
99
|
user_emails.each do |mail|
|
100
|
-
u = User.where(
|
100
|
+
u = User.where(email: mail.email).limit(1).first
|
101
101
|
matched_contacts << u.id unless u.blank?
|
102
102
|
end
|
103
103
|
return matched_contacts
|
data/lib/contact_sync/version.rb
CHANGED
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
|
+
version: 1.0.0
|
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-
|
11
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -154,11 +154,7 @@ files:
|
|
154
154
|
- test/dummy/config/locales/en.yml
|
155
155
|
- test/dummy/config/routes.rb
|
156
156
|
- test/dummy/config/secrets.yml
|
157
|
-
- test/dummy/db/development.sqlite3
|
158
157
|
- test/dummy/db/schema.rb
|
159
|
-
- test/dummy/db/test.sqlite3
|
160
|
-
- test/dummy/log/development.log
|
161
|
-
- test/dummy/log/test.log
|
162
158
|
- test/dummy/public/404.html
|
163
159
|
- test/dummy/public/422.html
|
164
160
|
- test/dummy/public/500.html
|
@@ -219,11 +215,7 @@ test_files:
|
|
219
215
|
- test/dummy/config/routes.rb
|
220
216
|
- test/dummy/config/secrets.yml
|
221
217
|
- test/dummy/config.ru
|
222
|
-
- test/dummy/db/development.sqlite3
|
223
218
|
- test/dummy/db/schema.rb
|
224
|
-
- test/dummy/db/test.sqlite3
|
225
|
-
- test/dummy/log/development.log
|
226
|
-
- test/dummy/log/test.log
|
227
219
|
- test/dummy/public/404.html
|
228
220
|
- test/dummy/public/422.html
|
229
221
|
- test/dummy/public/500.html
|
Binary file
|
data/test/dummy/db/test.sqlite3
DELETED
Binary file
|
@@ -1,4 +0,0 @@
|
|
1
|
-
[1m[36m (4.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
-
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
data/test/dummy/log/test.log
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
[1m[36m (3.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
3
|
-
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
5
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
6
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
7
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8
|
-
[1m[36m (6.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
9
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
10
|
-
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
11
|
-
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
12
|
-
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
13
|
-
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
14
|
-
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
15
|
-
---------------------------
|
16
|
-
ContactSyncTest: test_truth
|
17
|
-
---------------------------
|
18
|
-
[1m[35m (0.1ms)[0m rollback transaction
|