quickbooks_web_connector 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ module QuickbooksWebConnector
2
+ class QuickbooksWebConnectorController < QuickbooksWebConnector.config.parent_controller.constantize
3
+ skip_before_filter :verify_authenticity_token
4
+ end
5
+ end
@@ -1,5 +1,5 @@
1
1
  module QuickbooksWebConnector
2
- class QwcController < ApplicationController
2
+ class QwcController < QuickbooksWebConnectorController
3
3
 
4
4
  def download
5
5
  send_data render_to_string(:qwc),
@@ -1,5 +1,5 @@
1
1
  module QuickbooksWebConnector
2
- class SoapController < ApplicationController
2
+ class SoapController < QuickbooksWebConnectorController
3
3
 
4
4
  def endpoint
5
5
  response = SoapWrapper.route(request)
@@ -22,6 +22,8 @@ module QuickbooksWebConnector
22
22
  config_accessor :username
23
23
  config_accessor :password
24
24
  config_accessor :company_file_path
25
+
26
+ config_accessor :parent_controller
25
27
  end
26
28
 
27
29
  configure do |config|
@@ -30,6 +32,8 @@ module QuickbooksWebConnector
30
32
  config.username = 'web_connector'
31
33
  config.password = 'secret'
32
34
  config.company_file_path = ''
35
+
36
+ config.parent_controller = 'ApplicationController'
33
37
  end
34
38
 
35
39
  end
@@ -1,3 +1,3 @@
1
1
  module QuickbooksWebConnector
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -80,4 +80,20 @@ describe QuickbooksWebConnector::Configuration do
80
80
  end
81
81
  end
82
82
 
83
+ describe 'parent_controller' do
84
+
85
+ context 'by default' do
86
+ its(:parent_controller) { should eq 'ApplicationController' }
87
+ end
88
+
89
+ context 'configured via config block' do
90
+ before { QuickbooksWebConnector.configure { |c| c.parent_controller = 'MyController' } }
91
+
92
+ its(:parent_controller) { should eq 'MyController' }
93
+
94
+ after { QuickbooksWebConnector.configure { |c| c.parent_controller = 'ApplicationController' } }
95
+ end
96
+
97
+ end
98
+
83
99
  end
@@ -26007,3 +26007,187 @@ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26007
26007
  Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26008
26008
  Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26009
26009
  Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26010
+ Connecting to database specified by database.yml
26011
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26012
+ Rendered /Users/chrisgunther/Code/quickbooks_web_connector/app/views/quickbooks_web_connector/qwc/qwc.xml.builder (7.4ms)
26013
+ Rendered text template (0.0ms)
26014
+ Sent data qbwc.qwc (2.3ms)
26015
+ Completed 200 OK in 22ms (Views: 2.2ms | ActiveRecord: 0.0ms)
26016
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26017
+ Sent data qbwc.qwc (0.3ms)
26018
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26019
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26020
+ Sent data qbwc.qwc (0.3ms)
26021
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26022
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26023
+ Sent data qbwc.qwc (0.3ms)
26024
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26025
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26026
+ Sent data qbwc.qwc (0.3ms)
26027
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26028
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26029
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26030
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26031
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26032
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26033
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26034
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26035
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26036
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26037
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26038
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26039
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26040
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26041
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26042
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26043
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26044
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26045
+ Completed 200 OK in 29ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26046
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26047
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26048
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26049
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26050
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26051
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26052
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26053
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26054
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26055
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26056
+ Connecting to database specified by database.yml
26057
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26058
+ Rendered /Users/chrisgunther/Code/quickbooks_web_connector/app/views/quickbooks_web_connector/qwc/qwc.xml.builder (7.5ms)
26059
+ Rendered text template (0.0ms)
26060
+ Sent data qbwc.qwc (2.4ms)
26061
+ Completed 200 OK in 24ms (Views: 2.3ms | ActiveRecord: 0.0ms)
26062
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26063
+ Sent data qbwc.qwc (0.3ms)
26064
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26065
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26066
+ Sent data qbwc.qwc (0.3ms)
26067
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26068
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26069
+ Sent data qbwc.qwc (0.3ms)
26070
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26071
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26072
+ Sent data qbwc.qwc (0.3ms)
26073
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26074
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26075
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26076
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26077
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26078
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26079
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26080
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26081
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26082
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26083
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26084
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26085
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26086
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26087
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26088
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26089
+ Completed 200 OK in 29ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26090
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26091
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26092
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26093
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26094
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26095
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26096
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26097
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26098
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26099
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26100
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26101
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26102
+ Connecting to database specified by database.yml
26103
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26104
+ Rendered /Users/chrisgunther/Code/quickbooks_web_connector/app/views/quickbooks_web_connector/qwc/qwc.xml.builder (7.4ms)
26105
+ Rendered text template (0.0ms)
26106
+ Sent data qbwc.qwc (2.3ms)
26107
+ Completed 200 OK in 23ms (Views: 2.2ms | ActiveRecord: 0.0ms)
26108
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26109
+ Sent data qbwc.qwc (0.3ms)
26110
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26111
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26112
+ Sent data qbwc.qwc (0.3ms)
26113
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26114
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26115
+ Sent data qbwc.qwc (0.3ms)
26116
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26117
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26118
+ Sent data qbwc.qwc (0.3ms)
26119
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26120
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26121
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26122
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26123
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26124
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26125
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26126
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26127
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26128
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26129
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26130
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26131
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26132
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26133
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26134
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26135
+ Completed 200 OK in 29ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26136
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26137
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26138
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26139
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26140
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26141
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26142
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26143
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26144
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26145
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26146
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26147
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26148
+ Connecting to database specified by database.yml
26149
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26150
+ Rendered /Users/chrisgunther/Code/quickbooks_web_connector/app/views/quickbooks_web_connector/qwc/qwc.xml.builder (7.4ms)
26151
+ Rendered text template (0.0ms)
26152
+ Sent data qbwc.qwc (2.3ms)
26153
+ Completed 200 OK in 24ms (Views: 2.2ms | ActiveRecord: 0.0ms)
26154
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26155
+ Sent data qbwc.qwc (0.3ms)
26156
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26157
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26158
+ Sent data qbwc.qwc (0.3ms)
26159
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26160
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26161
+ Sent data qbwc.qwc (0.3ms)
26162
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26163
+ Processing by QuickbooksWebConnector::QwcController#download as XML
26164
+ Sent data qbwc.qwc (0.3ms)
26165
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
26166
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26167
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26168
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26169
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26170
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26171
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26172
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26173
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26174
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26175
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26176
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26177
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26178
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26179
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26180
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26181
+ Completed 200 OK in 29ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26182
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26183
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26184
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26185
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26186
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26187
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26188
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26189
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26190
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26191
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
26192
+ Processing by QuickbooksWebConnector::SoapController#endpoint as HTML
26193
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickbooks_web_connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -101,7 +101,7 @@ extra_rdoc_files: []
101
101
  files:
102
102
  - app/assets/javascripts/quickbooks_web_connector/application.js
103
103
  - app/assets/stylesheets/quickbooks_web_connector/application.css
104
- - app/controllers/quickbooks_web_connector/application_controller.rb
104
+ - app/controllers/quickbooks_web_connector/quickbooks_web_connector_controller.rb
105
105
  - app/controllers/quickbooks_web_connector/qwc_controller.rb
106
106
  - app/controllers/quickbooks_web_connector/soap_controller.rb
107
107
  - app/helpers/quickbooks_web_connector/application_helper.rb
@@ -176,12 +176,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
176
  - - ! '>='
177
177
  - !ruby/object:Gem::Version
178
178
  version: '0'
179
+ segments:
180
+ - 0
181
+ hash: -3433426474086836495
179
182
  required_rubygems_version: !ruby/object:Gem::Requirement
180
183
  none: false
181
184
  requirements:
182
185
  - - ! '>='
183
186
  - !ruby/object:Gem::Version
184
187
  version: '0'
188
+ segments:
189
+ - 0
190
+ hash: -3433426474086836495
185
191
  requirements: []
186
192
  rubyforge_project:
187
193
  rubygems_version: 1.8.23
@@ -1,5 +0,0 @@
1
- module QuickbooksWebConnector
2
- class ApplicationController < ActionController::Base
3
- skip_before_filter :verify_authenticity_token
4
- end
5
- end