leads_to_highrise 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +8 -8
  2. data/README.rdoc +3 -0
  3. data/app/assets/javascripts/{leads_to_highrise/leads.js → leads.js} +0 -0
  4. data/app/assets/stylesheets/{leads_to_highrise/leads.css → leads.css} +0 -0
  5. data/app/controllers/leads_controller.rb +88 -0
  6. data/app/helpers/leads_helper.rb +2 -0
  7. data/app/models/lead.rb +2 -0
  8. data/app/views/{leads_to_highrise/leads → leads}/_form.html.erb +0 -0
  9. data/app/views/{leads_to_highrise/leads → leads}/edit.html.erb +0 -0
  10. data/{lib/generators/leads_to_highrise/templates/_lead.html.erb → app/views/leads/index.html.erb} +38 -34
  11. data/app/views/{leads_to_highrise/leads → leads}/new.html.erb +0 -0
  12. data/app/views/{leads_to_highrise/leads → leads}/show.html.erb +0 -0
  13. data/config/routes.rb +3 -12
  14. data/{test/dummy/db/migrate/20140416000345_create_leads_to_highrise_leads.rb → db/migrate/20140417073703_create_leads.rb} +2 -2
  15. data/db/migrate/{20140416021234_add_highrise_site_and_highrise_user_to_user.rb → 20140417074432_add_highrise_site_and_highrise_user_to_user.rb} +0 -0
  16. data/lib/generators/leads_to_highrise/install_generator.rb +3 -18
  17. data/lib/generators/leads_to_highrise/templates/{20140416000345_create_leads_to_highrise_leads.rb → 20140417073703_create_leads.rb} +2 -2
  18. data/lib/generators/leads_to_highrise/templates/{20140416021234_add_highrise_site_and_highrise_user_to_user.rb → 20140417074432_add_highrise_site_and_highrise_user_to_user.rb} +0 -0
  19. data/lib/leads_to_highrise/engine.rb +0 -3
  20. data/lib/leads_to_highrise/version.rb +1 -1
  21. data/test/controllers/leads_controller_test.rb +49 -0
  22. data/test/dummy/app/views/layouts/application.html.erb +2 -1
  23. data/test/dummy/config/initializers/devise.rb +2 -2
  24. data/test/dummy/config/routes.rb +55 -2
  25. data/test/dummy/config/secrets.yml +2 -2
  26. data/test/dummy/db/development.sqlite3 +0 -0
  27. data/test/dummy/db/migrate/{20140416014910_devise_create_users.rb → 20140417074003_devise_create_users.rb} +0 -0
  28. data/test/dummy/db/schema.rb +2 -2
  29. data/test/dummy/lib/generators/install/USAGE +8 -0
  30. data/test/dummy/lib/generators/install/install_generator.rb +3 -0
  31. data/test/dummy/log/development.log +282 -3990
  32. data/test/dummy/test/lib/generators/install_generator_test.rb +14 -0
  33. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  34. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  35. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  36. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  37. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  38. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  39. data/test/fixtures/{leads_to_highrise/leads.yml → leads.yml} +0 -0
  40. data/test/helpers/leads_helper_test.rb +4 -0
  41. data/test/lib/generators/install_generator_test.rb +14 -0
  42. data/test/models/lead_test.rb +7 -0
  43. metadata +38 -89
  44. data/app/assets/javascripts/leads_to_highrise/application.js +0 -13
  45. data/app/assets/stylesheets/leads_to_highrise/application.css +0 -15
  46. data/app/controllers/leads_to_highrise/application_controller.rb +0 -4
  47. data/app/controllers/leads_to_highrise/leads_controller.rb +0 -92
  48. data/app/helpers/leads_to_highrise/application_helper.rb +0 -4
  49. data/app/helpers/leads_to_highrise/leads_helper.rb +0 -4
  50. data/app/models/leads_to_highrise/lead.rb +0 -5
  51. data/app/views/layouts/leads_to_highrise/example_application.html.erb +0 -14
  52. data/app/views/leads_to_highrise/leads/_lead.html.erb +0 -34
  53. data/app/views/leads_to_highrise/leads/index.html.erb +0 -34
  54. data/db/migrate/20140416000345_create_leads_to_highrise_leads.rb +0 -15
  55. data/lib/generators/leads_to_highrise/templates/_form.html.erb +0 -45
  56. data/lib/generators/leads_to_highrise/templates/edit.html.erb +0 -6
  57. data/lib/generators/leads_to_highrise/templates/index.html.erb +0 -34
  58. data/lib/generators/leads_to_highrise/templates/new.html.erb +0 -5
  59. data/lib/generators/leads_to_highrise/templates/show.html.erb +0 -39
  60. data/test/controllers/leads_to_highrise/leads_controller_test.rb +0 -51
  61. data/test/dummy/app/views/leads_to_highrise/lead/_form.html.erb +0 -45
  62. data/test/dummy/app/views/leads_to_highrise/lead/_lead.html.erb +0 -34
  63. data/test/dummy/app/views/leads_to_highrise/lead/edit.html.erb +0 -6
  64. data/test/dummy/app/views/leads_to_highrise/lead/index.html.erb +0 -34
  65. data/test/dummy/app/views/leads_to_highrise/lead/new.html.erb +0 -5
  66. data/test/dummy/app/views/leads_to_highrise/lead/show.html.erb +0 -39
  67. data/test/dummy/db/migrate/20140416021234_add_highrise_site_and_highrise_user_to_user.rb +0 -6
  68. data/test/dummy/db/test.sqlite3 +0 -0
  69. data/test/dummy/log/test.log +0 -75
  70. data/test/dummy/tmp/cache/assets/development/sprockets/12ec86eede9697fe92fb83e90b318b88 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/33872968d30189cee4d8e79aab64c3d5 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/9200ac6353eb1662fce665485f7458e6 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/92dd5e2f944ef5e5fa71ed89d9312af1 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/97b9412f869910d55fc738ce7dbd88b8 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/b04e4334658d0126de1cb39dcd8b062f +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/b3081c914d9ca4332c7bc691e46e9e72 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/ca056621a6e70c2cc40341a60d0820b0 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/d6fa42a82a7a232f9bae1108e45726de +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/d8e31b2f676b02dfdf6cef42165373d3 +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/f873bfac381915533ead2a0546e482f4 +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/fe2a43ff0e654e41aac13b53e9087099 +0 -0
  82. data/test/helpers/leads_to_highrise/leads_helper_test.rb +0 -6
  83. data/test/lib/generators/leads_to_highrise/install_generator_test.rb +0 -16
  84. data/test/lib/generators/leads_to_highrise/lth_generator_test.rb +0 -16
  85. data/test/models/leads_to_highrise/lead_test.rb +0 -9
@@ -1,6 +0,0 @@
1
- class AddHighriseSiteAndHighriseUserToUser < ActiveRecord::Migration
2
- def change
3
- add_column :users, :highrise_site, :string
4
- add_column :users, :highrise_user, :string
5
- end
6
- end
Binary file
@@ -1,75 +0,0 @@
1
-  (0.0ms) begin transaction
2
- -------------------------------
3
- LeadsToHighriseTest: test_truth
4
- -------------------------------
5
-  (0.0ms) rollback transaction
6
-  (0.0ms) begin transaction
7
- -------------------------------
8
- LeadsToHighriseTest: test_truth
9
- -------------------------------
10
-  (0.0ms) rollback transaction
11
-  (0.0ms) begin transaction
12
- -------------------------------
13
- LeadsToHighriseTest: test_truth
14
- -------------------------------
15
-  (0.0ms) rollback transaction
16
-  (78.7ms) CREATE TABLE "leads_to_highrise_leads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "last_name" varchar(255), "email" varchar(255), "company" varchar(255), "job_title" varchar(255), "phone" varchar(255), "website" varchar(255), "created_at" datetime, "updated_at" datetime) 
17
-  (32.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0 NOT NULL, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime, "updated_at" datetime, "highrise_site" varchar(255), "highrise_user" varchar(255))
18
-  (0.3ms) select sqlite_version(*)
19
-  (67.3ms) CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
20
-  (16.3ms)  SELECT sql
21
- FROM sqlite_master
22
- WHERE name='index_users_on_email' AND type='index'
23
- UNION ALL
24
- SELECT sql
25
- FROM sqlite_temp_master
26
- WHERE name='index_users_on_email' AND type='index'
27
- 
28
-  (93.2ms) CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
29
-  (95.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
30
-  (55.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
31
-  (17.7ms) SELECT version FROM "schema_migrations"
32
-  (28.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140416021234')
33
-  (61.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140416000345')
34
- ActiveRecord::SchemaMigration Load (8.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
35
- ActiveRecord::SchemaMigration Load (6.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
36
-  (0.2ms) begin transaction
37
- -------------------------------------------------------------
38
- LeadsToHighrise::LeadsControllerTest: test_should_create_lead
39
- -------------------------------------------------------------
40
-  (0.3ms) rollback transaction
41
-  (0.1ms) begin transaction
42
- --------------------------------------------------------------
43
- LeadsToHighrise::LeadsControllerTest: test_should_destroy_lead
44
- --------------------------------------------------------------
45
-  (0.1ms) rollback transaction
46
-  (0.2ms) begin transaction
47
- ----------------------------------------------------------
48
- LeadsToHighrise::LeadsControllerTest: test_should_get_edit
49
- ----------------------------------------------------------
50
-  (0.2ms) rollback transaction
51
-  (0.2ms) begin transaction
52
- -----------------------------------------------------------
53
- LeadsToHighrise::LeadsControllerTest: test_should_get_index
54
- -----------------------------------------------------------
55
-  (0.2ms) rollback transaction
56
-  (0.2ms) begin transaction
57
- ---------------------------------------------------------
58
- LeadsToHighrise::LeadsControllerTest: test_should_get_new
59
- ---------------------------------------------------------
60
-  (0.3ms) rollback transaction
61
-  (0.2ms) begin transaction
62
- -----------------------------------------------------------
63
- LeadsToHighrise::LeadsControllerTest: test_should_show_lead
64
- -----------------------------------------------------------
65
-  (0.2ms) rollback transaction
66
-  (0.6ms) begin transaction
67
- -------------------------------------------------------------
68
- LeadsToHighrise::LeadsControllerTest: test_should_update_lead
69
- -------------------------------------------------------------
70
-  (0.1ms) rollback transaction
71
-  (0.3ms) begin transaction
72
- -------------------------------
73
- LeadsToHighriseTest: test_truth
74
- -------------------------------
75
-  (0.3ms) rollback transaction
@@ -1,6 +0,0 @@
1
- require 'test_helper'
2
-
3
- module LeadsToHighrise
4
- class LeadsHelperTest < ActionView::TestCase
5
- end
6
- end
@@ -1,16 +0,0 @@
1
- require 'test_helper'
2
- require 'generators/install/install_generator'
3
-
4
- module LeadsToHighrise
5
- class InstallGeneratorTest < Rails::Generators::TestCase
6
- tests InstallGenerator
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,16 +0,0 @@
1
- require 'test_helper'
2
- require 'generators/lth/lth_generator'
3
-
4
- module LeadsToHighrise
5
- class LthGeneratorTest < Rails::Generators::TestCase
6
- tests LthGenerator
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,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- module LeadsToHighrise
4
- class LeadTest < ActiveSupport::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
8
- end
9
- end