rd_station 0.0.2 → 0.0.3
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 +8 -8
- data/app/controllers/rd_station/leads_controller.rb +19 -16
- data/config/routes.rb +1 -1
- data/lib/rd_station/version.rb +1 -1
- data/test/dummy/log/development.log +85 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MzlmMzYwYjc2MWExYjUxZmIxYmM0Y2M5YTZhMTZjMjUxOWEyMTU4ZA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZWRjYTZhNjAwOTljY2JkOTY3ZmRjNzIwMzY4YjQ2ZGRkNGJkMmUyYQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZTliMjhlYTA1N2UwYTkwZThjNGEzMDBiNzhjOTI3YWIzNGNjNGFhNTE2ODQz
|
|
10
|
+
MWZhMmY5YTc1YTNlNmQ5NGVhOTIxZGIzYjlmYjRjYzljZGJkNTMwMDAyYzkx
|
|
11
|
+
NDRkNjk0NzhiZmZlOGVjZWE3ZGE0MWQ5MTBiZmQ5ODczYmFkOWU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
Njk1Nzg4YjYzMTk2ZjFlOTk1NmU2ZmUyZjgyMjM2ZDlhMmJhNzJkY2RmODIw
|
|
14
|
+
MDg5ODRjZTlhODE1NWZmZjc4MzE5YjExMDExMmExOWFiMGRlM2U0YjBhYzgy
|
|
15
|
+
MGUyYjBjZDczOTgxYjgzM2FjNjViYTI3Y2MwYmM5MWE4ZWNmZmU=
|
|
@@ -53,23 +53,26 @@ module RdStation
|
|
|
53
53
|
def send_to_highrise
|
|
54
54
|
@lead = Lead.find(params[:id])
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Highrise::Base.format = :xml
|
|
59
|
-
|
|
60
|
-
p = Highrise::Person.new( first_name: @lead[:name],
|
|
61
|
-
last_name: @lead[:last_name],
|
|
62
|
-
title: @lead[:job_title],
|
|
63
|
-
company_name: @lead[:company],
|
|
64
|
-
contact_data: { email_addresses: [ { address: @lead[:emial]} ],
|
|
65
|
-
phone: @lead[:phone],
|
|
66
|
-
website: @lead[:website] })
|
|
67
|
-
#p = Highrise::Person.new(name: @lead[:name], contact_data: { email_addresses: [ { address: @lead[:emial], location: 'Work' } ] })
|
|
68
|
-
|
|
69
|
-
if p.save
|
|
70
|
-
redirect_to leads_path, notice: "This contact has ben sended to Highrise"
|
|
56
|
+
if current_user.highrise_site == nill || current_user.highrise_user == nill
|
|
57
|
+
redirect_to root_path, notice: "plese add you setings of Highrise on edit profile page"
|
|
71
58
|
else
|
|
72
|
-
|
|
59
|
+
Highrise::Base.site = current_user.highrise_site
|
|
60
|
+
Highrise::Base.user = current_user.highrise_user
|
|
61
|
+
Highrise::Base.format = :xml
|
|
62
|
+
|
|
63
|
+
p = Highrise::Person.new( first_name: @lead[:name],
|
|
64
|
+
last_name: @lead[:last_name],
|
|
65
|
+
title: @lead[:job_title],
|
|
66
|
+
company_name: @lead[:company],
|
|
67
|
+
contact_data: { email_addresses: [ { address: @lead[:emial]} ],
|
|
68
|
+
phone: @lead[:phone],
|
|
69
|
+
website: @lead[:website] })
|
|
70
|
+
|
|
71
|
+
if p.save
|
|
72
|
+
redirect_to root_path, notice: "This contact has ben sended to Highrise"
|
|
73
|
+
else
|
|
74
|
+
redirect_to root_path
|
|
75
|
+
end
|
|
73
76
|
end
|
|
74
77
|
end
|
|
75
78
|
|
data/config/routes.rb
CHANGED
data/lib/rd_station/version.rb
CHANGED
|
@@ -2366,3 +2366,88 @@ Started GET "/assets/rd_station/leads.css?body=1" for 10.0.2.2 at 2014-04-15 16:
|
|
|
2366
2366
|
|
|
2367
2367
|
|
|
2368
2368
|
Started GET "/assets/rd_station/leads.js?body=1" for 10.0.2.2 at 2014-04-15 16:57:31 +0000
|
|
2369
|
+
|
|
2370
|
+
|
|
2371
|
+
Started GET "/mm" for 10.0.2.2 at 2014-04-15 19:03:23 +0000
|
|
2372
|
+
[1m[36mActiveRecord::SchemaMigration Load (4.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
2373
|
+
|
|
2374
|
+
ActionController::RoutingError (No route matches [GET] "/mm"):
|
|
2375
|
+
actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
|
2376
|
+
actionpack (4.1.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
|
|
2377
|
+
railties (4.1.0) lib/rails/rack/logger.rb:38:in `call_app'
|
|
2378
|
+
railties (4.1.0) lib/rails/rack/logger.rb:20:in `block in call'
|
|
2379
|
+
activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `block in tagged'
|
|
2380
|
+
activesupport (4.1.0) lib/active_support/tagged_logging.rb:26:in `tagged'
|
|
2381
|
+
activesupport (4.1.0) lib/active_support/tagged_logging.rb:68:in `tagged'
|
|
2382
|
+
railties (4.1.0) lib/rails/rack/logger.rb:20:in `call'
|
|
2383
|
+
actionpack (4.1.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
|
|
2384
|
+
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
|
|
2385
|
+
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
|
|
2386
|
+
activesupport (4.1.0) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
|
|
2387
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
|
2388
|
+
actionpack (4.1.0) lib/action_dispatch/middleware/static.rb:64:in `call'
|
|
2389
|
+
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
|
|
2390
|
+
railties (4.1.0) lib/rails/engine.rb:514:in `call'
|
|
2391
|
+
railties (4.1.0) lib/rails/application.rb:144:in `call'
|
|
2392
|
+
rack (1.5.2) lib/rack/lock.rb:17:in `call'
|
|
2393
|
+
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
|
|
2394
|
+
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
|
|
2395
|
+
/home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
|
|
2396
|
+
/home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
|
|
2397
|
+
/home/vagrant/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
|
|
2398
|
+
|
|
2399
|
+
|
|
2400
|
+
Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.0ms)
|
|
2401
|
+
Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (4.0ms)
|
|
2402
|
+
Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (8.0ms)
|
|
2403
|
+
Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (167.9ms)
|
|
2404
|
+
Rendered /home/vagrant/.rvm/gems/ruby-1.9.3-p484/gems/actionpack-4.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (423.8ms)
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
Started GET "/rd_station/leads" for 10.0.2.2 at 2014-04-15 19:03:35 +0000
|
|
2408
|
+
Processing by RdStation::LeadsController#index as HTML
|
|
2409
|
+
[1m[35mRdStation::Lead Load (24.0ms)[0m SELECT "rd_station_leads".* FROM "rd_station_leads"
|
|
2410
|
+
[1m[36mUser Load (8.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2411
|
+
Rendered /vagrant/rd_station/app/views/rd_station/leads/index.html.erb within layouts/rd_station/application (507.8ms)
|
|
2412
|
+
Completed 200 OK in 1631ms (Views: 1459.3ms | ActiveRecord: 64.0ms)
|
|
2413
|
+
|
|
2414
|
+
|
|
2415
|
+
Started GET "/assets/rd_station/leads.css?body=1" for 10.0.2.2 at 2014-04-15 19:03:40 +0000
|
|
2416
|
+
|
|
2417
|
+
|
|
2418
|
+
Started GET "/assets/rd_station/application.css?body=1" for 10.0.2.2 at 2014-04-15 19:03:41 +0000
|
|
2419
|
+
|
|
2420
|
+
|
|
2421
|
+
Started GET "/assets/rd_station/leads.js?body=1" for 10.0.2.2 at 2014-04-15 19:03:41 +0000
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
Started GET "/assets/rd_station/application.js?body=1" for 10.0.2.2 at 2014-04-15 19:03:41 +0000
|
|
2425
|
+
|
|
2426
|
+
|
|
2427
|
+
Started GET "/rd_station/to_highrise/2" for 10.0.2.2 at 2014-04-15 19:03:43 +0000
|
|
2428
|
+
Processing by RdStation::LeadsController#send_to_highrise as HTML
|
|
2429
|
+
Parameters: {"id"=>"2"}
|
|
2430
|
+
[1m[35mRdStation::Lead Load (12.0ms)[0m SELECT "rd_station_leads".* FROM "rd_station_leads" WHERE "rd_station_leads"."id" = ? LIMIT 1 [["id", 2]]
|
|
2431
|
+
[1m[36mUser Load (20.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2432
|
+
Redirected to http://localhost:3000/rd_station/leads
|
|
2433
|
+
Completed 302 Found in 7369ms (ActiveRecord: 32.0ms)
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
Started GET "/rd_station/leads" for 10.0.2.2 at 2014-04-15 19:03:51 +0000
|
|
2437
|
+
Processing by RdStation::LeadsController#index as HTML
|
|
2438
|
+
[1m[35mRdStation::Lead Load (12.0ms)[0m SELECT "rd_station_leads".* FROM "rd_station_leads"
|
|
2439
|
+
[1m[36mUser Load (24.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1[0m
|
|
2440
|
+
Rendered /vagrant/rd_station/app/views/rd_station/leads/index.html.erb within layouts/rd_station/application (76.0ms)
|
|
2441
|
+
Completed 200 OK in 692ms (Views: 651.7ms | ActiveRecord: 36.0ms)
|
|
2442
|
+
|
|
2443
|
+
|
|
2444
|
+
Started GET "/assets/rd_station/leads.css?body=1" for 10.0.2.2 at 2014-04-15 19:03:53 +0000
|
|
2445
|
+
|
|
2446
|
+
|
|
2447
|
+
Started GET "/assets/rd_station/application.css?body=1" for 10.0.2.2 at 2014-04-15 19:03:53 +0000
|
|
2448
|
+
|
|
2449
|
+
|
|
2450
|
+
Started GET "/assets/rd_station/leads.js?body=1" for 10.0.2.2 at 2014-04-15 19:03:53 +0000
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
Started GET "/assets/rd_station/application.js?body=1" for 10.0.2.2 at 2014-04-15 19:03:54 +0000
|