leads_to_highrise 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +21 -0
  4. data/Rakefile +34 -0
  5. data/app/assets/javascripts/leads_to_highrise/application.js +13 -0
  6. data/app/assets/javascripts/leads_to_highrise/leads.js +2 -0
  7. data/app/assets/stylesheets/leads_to_highrise/application.css +15 -0
  8. data/app/assets/stylesheets/leads_to_highrise/leads.css +4 -0
  9. data/app/assets/stylesheets/scaffold.css +56 -0
  10. data/app/controllers/leads_to_highrise/application_controller.rb +4 -0
  11. data/app/controllers/leads_to_highrise/leads_controller.rb +89 -0
  12. data/app/helpers/leads_to_highrise/application_helper.rb +4 -0
  13. data/app/helpers/leads_to_highrise/leads_helper.rb +4 -0
  14. data/app/models/leads_to_highrise/lead.rb +5 -0
  15. data/app/views/layouts/leads_to_highrise/application.html.erb +14 -0
  16. data/app/views/leads_to_highrise/leads/_form.html.erb +45 -0
  17. data/app/views/leads_to_highrise/leads/_lead.html.erb +34 -0
  18. data/app/views/leads_to_highrise/leads/edit.html.erb +6 -0
  19. data/app/views/leads_to_highrise/leads/index.html.erb +34 -0
  20. data/app/views/leads_to_highrise/leads/new.html.erb +5 -0
  21. data/app/views/leads_to_highrise/leads/show.html.erb +39 -0
  22. data/config/routes.rb +4 -0
  23. data/db/migrate/20140416000345_create_leads_to_highrise_leads.rb +15 -0
  24. data/db/migrate/20140416021234_add_highrise_site_and_highrise_user_to_user.rb +6 -0
  25. data/lib/leads_to_highrise/engine.rb +8 -0
  26. data/lib/leads_to_highrise/version.rb +3 -0
  27. data/lib/leads_to_highrise.rb +4 -0
  28. data/lib/tasks/leads_to_highrise_tasks.rake +4 -0
  29. data/test/controllers/leads_to_highrise/leads_controller_test.rb +51 -0
  30. data/test/dummy/README.rdoc +28 -0
  31. data/test/dummy/Rakefile +6 -0
  32. data/test/dummy/app/assets/javascripts/application.js +13 -0
  33. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  34. data/test/dummy/app/controllers/application_controller.rb +5 -0
  35. data/test/dummy/app/helpers/application_helper.rb +2 -0
  36. data/test/dummy/app/models/user.rb +6 -0
  37. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  38. data/test/dummy/bin/bundle +3 -0
  39. data/test/dummy/bin/rails +4 -0
  40. data/test/dummy/bin/rake +4 -0
  41. data/test/dummy/config/application.rb +23 -0
  42. data/test/dummy/config/boot.rb +5 -0
  43. data/test/dummy/config/database.yml +25 -0
  44. data/test/dummy/config/environment.rb +5 -0
  45. data/test/dummy/config/environments/development.rb +37 -0
  46. data/test/dummy/config/environments/production.rb +83 -0
  47. data/test/dummy/config/environments/test.rb +39 -0
  48. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  49. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  50. data/test/dummy/config/initializers/devise.rb +256 -0
  51. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  52. data/test/dummy/config/initializers/inflections.rb +16 -0
  53. data/test/dummy/config/initializers/mime_types.rb +4 -0
  54. data/test/dummy/config/initializers/session_store.rb +3 -0
  55. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  56. data/test/dummy/config/locales/devise.en.yml +59 -0
  57. data/test/dummy/config/locales/en.yml +23 -0
  58. data/test/dummy/config/routes.rb +5 -0
  59. data/test/dummy/config/secrets.yml +22 -0
  60. data/test/dummy/config.ru +4 -0
  61. data/test/dummy/db/development.sqlite3 +0 -0
  62. data/test/dummy/db/migrate/20140416014910_devise_create_users.rb +42 -0
  63. data/test/dummy/db/schema.rb +48 -0
  64. data/test/dummy/db/test.sqlite3 +0 -0
  65. data/test/dummy/log/development.log +2418 -0
  66. data/test/dummy/log/test.log +15 -0
  67. data/test/dummy/public/404.html +67 -0
  68. data/test/dummy/public/422.html +67 -0
  69. data/test/dummy/public/500.html +66 -0
  70. data/test/dummy/public/favicon.ico +0 -0
  71. data/test/dummy/test/fixtures/users.yml +11 -0
  72. data/test/dummy/test/models/user_test.rb +7 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/12ec86eede9697fe92fb83e90b318b88 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/33872968d30189cee4d8e79aab64c3d5 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/9200ac6353eb1662fce665485f7458e6 +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/92dd5e2f944ef5e5fa71ed89d9312af1 +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/97b9412f869910d55fc738ce7dbd88b8 +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/b04e4334658d0126de1cb39dcd8b062f +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/b3081c914d9ca4332c7bc691e46e9e72 +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/ca056621a6e70c2cc40341a60d0820b0 +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/d6fa42a82a7a232f9bae1108e45726de +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/d8e31b2f676b02dfdf6cef42165373d3 +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/f873bfac381915533ead2a0546e482f4 +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sprockets/fe2a43ff0e654e41aac13b53e9087099 +0 -0
  91. data/test/fixtures/leads_to_highrise/leads.yml +19 -0
  92. data/test/helpers/leads_to_highrise/leads_helper_test.rb +6 -0
  93. data/test/integration/navigation_test.rb +10 -0
  94. data/test/leads_to_highrise_test.rb +7 -0
  95. data/test/models/leads_to_highrise/lead_test.rb +9 -0
  96. data/test/test_helper.rb +15 -0
  97. metadata +277 -0
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,5 @@
1
+ Rails.application.routes.draw do
2
+ devise_for :users
3
+ mount LeadsToHighrise::Engine => "/leads_to_highrise"
4
+ root "leads_to_highrise/leads#index"
5
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: a9a3e949e6b0fc4dcdb76b60af26dffcd778c23d13f5229baf3677342584670cd0d31d3ae5b21007e99fb8ea1af575242be036e709246ade0c600c5ba00a094d
15
+
16
+ test:
17
+ secret_key_base: 4b993246c309a81f7d6e83a710ab5a3a18f29f5db555cfbe12ec9b96af5d6d588e307f4bd39e5355b2bbc9c0f08c331fae57f0830e2583e34548936a2a234c14
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
Binary file
@@ -0,0 +1,42 @@
1
+ class DeviseCreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table(:users) do |t|
4
+ ## Database authenticatable
5
+ t.string :email, null: false, default: ""
6
+ t.string :encrypted_password, null: false, default: ""
7
+
8
+ ## Recoverable
9
+ t.string :reset_password_token
10
+ t.datetime :reset_password_sent_at
11
+
12
+ ## Rememberable
13
+ t.datetime :remember_created_at
14
+
15
+ ## Trackable
16
+ t.integer :sign_in_count, default: 0, null: false
17
+ t.datetime :current_sign_in_at
18
+ t.datetime :last_sign_in_at
19
+ t.string :current_sign_in_ip
20
+ t.string :last_sign_in_ip
21
+
22
+ ## Confirmable
23
+ # t.string :confirmation_token
24
+ # t.datetime :confirmed_at
25
+ # t.datetime :confirmation_sent_at
26
+ # t.string :unconfirmed_email # Only if using reconfirmable
27
+
28
+ ## Lockable
29
+ # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
30
+ # t.string :unlock_token # Only if unlock strategy is :email or :both
31
+ # t.datetime :locked_at
32
+
33
+
34
+ t.timestamps
35
+ end
36
+
37
+ add_index :users, :email, unique: true
38
+ add_index :users, :reset_password_token, unique: true
39
+ # add_index :users, :confirmation_token, unique: true
40
+ # add_index :users, :unlock_token, unique: true
41
+ end
42
+ end
@@ -0,0 +1,48 @@
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: 20140416021234) do
15
+
16
+ create_table "leads_to_highrise_leads", force: true do |t|
17
+ t.string "name"
18
+ t.string "last_name"
19
+ t.string "email"
20
+ t.string "company"
21
+ t.string "job_title"
22
+ t.string "phone"
23
+ t.string "website"
24
+ t.datetime "created_at"
25
+ t.datetime "updated_at"
26
+ end
27
+
28
+ create_table "users", force: true do |t|
29
+ t.string "email", default: "", null: false
30
+ t.string "encrypted_password", default: "", null: false
31
+ t.string "reset_password_token"
32
+ t.datetime "reset_password_sent_at"
33
+ t.datetime "remember_created_at"
34
+ t.integer "sign_in_count", default: 0, null: false
35
+ t.datetime "current_sign_in_at"
36
+ t.datetime "last_sign_in_at"
37
+ t.string "current_sign_in_ip"
38
+ t.string "last_sign_in_ip"
39
+ t.datetime "created_at"
40
+ t.datetime "updated_at"
41
+ t.string "highrise_site"
42
+ t.string "highrise_user"
43
+ end
44
+
45
+ add_index "users", ["email"], name: "index_users_on_email", unique: true
46
+ add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
47
+
48
+ end
File without changes