contact_sync 1.4.6 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +24 -22
  3. data/lib/contact_sync.rb +0 -1
  4. data/lib/contact_sync/engine.rb +7 -0
  5. data/lib/contact_sync/syncable.rb +10 -0
  6. data/lib/contact_sync/version.rb +1 -1
  7. data/lib/generators/install_contact_sync/templates/contact.rb +0 -64
  8. data/lib/generators/install_contact_sync/templates/phone.rb +18 -8
  9. data/{test → spec}/dummy/README.rdoc +0 -0
  10. data/{test → spec}/dummy/Rakefile +0 -0
  11. data/{test → spec}/dummy/app/assets/javascripts/application.js +0 -0
  12. data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
  13. data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
  14. data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
  15. data/spec/dummy/app/models/address.rb +5 -0
  16. data/spec/dummy/app/models/contact.rb +10 -0
  17. data/spec/dummy/app/models/email.rb +14 -0
  18. data/spec/dummy/app/models/phone.rb +41 -0
  19. data/spec/dummy/app/models/routes.rb +9 -0
  20. data/spec/dummy/app/models/user.rb +4 -0
  21. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  22. data/{test → spec}/dummy/bin/bundle +0 -0
  23. data/{test → spec}/dummy/bin/rails +0 -0
  24. data/{test → spec}/dummy/bin/rake +0 -0
  25. data/{test → spec}/dummy/bin/setup +0 -0
  26. data/{test → spec}/dummy/config.ru +0 -0
  27. data/{test → spec}/dummy/config/application.rb +13 -3
  28. data/{test → spec}/dummy/config/boot.rb +0 -0
  29. data/{test → spec}/dummy/config/database.yml +0 -0
  30. data/{test → spec}/dummy/config/environment.rb +0 -0
  31. data/{test → spec}/dummy/config/environments/development.rb +0 -0
  32. data/{test → spec}/dummy/config/environments/production.rb +0 -0
  33. data/{test → spec}/dummy/config/environments/test.rb +0 -0
  34. data/{test → spec}/dummy/config/initializers/assets.rb +0 -0
  35. data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
  36. data/{test → spec}/dummy/config/initializers/cookies_serializer.rb +0 -0
  37. data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  38. data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
  39. data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
  40. data/spec/dummy/config/initializers/session_store.rb +3 -0
  41. data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
  42. data/{test → spec}/dummy/config/locales/en.yml +0 -0
  43. data/{test → spec}/dummy/config/routes.rb +0 -0
  44. data/{test → spec}/dummy/config/secrets.yml +3 -3
  45. data/spec/dummy/db/development.sqlite3 +0 -0
  46. data/spec/dummy/db/migrate/20150520065844_create_contact_sync_schema.rb +70 -0
  47. data/spec/dummy/db/migrate/20150529072537_remove_device_id_from_contacts.rb +7 -0
  48. data/spec/dummy/db/schema.rb +74 -0
  49. data/spec/dummy/db/test.sqlite3 +0 -0
  50. data/spec/dummy/log/development.log +186 -0
  51. data/spec/dummy/log/test.log +386 -0
  52. data/{test → spec}/dummy/public/404.html +0 -0
  53. data/{test → spec}/dummy/public/422.html +0 -0
  54. data/{test → spec}/dummy/public/500.html +0 -0
  55. data/{test → spec}/dummy/public/favicon.ico +0 -0
  56. data/spec/factories/contact_factory.rb +18 -0
  57. data/spec/factories/user_factory.rb +7 -0
  58. data/spec/rails_helper.rb +82 -0
  59. data/spec/spec_helper.rb +92 -0
  60. data/spec/string_phone_spec.rb +15 -0
  61. metadata +152 -82
  62. data/test/con_sync_test.rb +0 -7
  63. data/test/dummy/config/initializers/session_store.rb +0 -3
  64. data/test/dummy/db/schema.rb +0 -17
  65. data/test/integration/navigation_test.rb +0 -10
  66. data/test/lib/generators/con_sync/install_con_sync_generator_test.rb +0 -16
  67. data/test/test_helper.rb +0 -20
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class ContactSyncTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, ContactSync
6
- end
7
- end
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,17 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 0) do
15
-
16
-
17
- end
@@ -1,10 +0,0 @@
1
- require 'test_helper'
2
-
3
- class NavigationTest < ActionDispatch::IntegrationTest
4
- fixtures :all
5
-
6
- # test "the truth" do
7
- # assert true
8
- # end
9
- end
10
-
@@ -1,16 +0,0 @@
1
- require 'test_helper'
2
- require 'generators/install_contact_sync/install_contact_sync_generator'
3
-
4
- module ContactSync
5
- class InstallContactSyncGeneratorTest < Rails::Generators::TestCase
6
- tests InstallContactSyncGenerator
7
- destination Rails.root.join('tmp/generators')
8
- setup :prepare_destination
9
-
10
- # test "generator runs without errors" do
11
- # assert_nothing_raised do
12
- # run_generator ["arguments"]
13
- # end
14
- # end
15
- end
16
- end
@@ -1,20 +0,0 @@
1
- # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
3
-
4
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
- ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
- ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
7
- require "rails/test_help"
8
-
9
- # Filter out Minitest backtrace while allowing backtrace from other libraries
10
- # to be shown.
11
- Minitest.backtrace_filter = Minitest::BacktraceFilter.new
12
-
13
- # Load support files
14
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
15
-
16
- # Load fixtures from the engine
17
- if ActiveSupport::TestCase.respond_to?(:fixture_path=)
18
- ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
19
- ActiveSupport::TestCase.fixtures :all
20
- end