quickbooks_web_connector 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,28 +1,27 @@
1
1
  require 'spec_helper'
2
2
  require 'rexml/document'
3
3
 
4
- describe 'quickbooks_web_connector/qwc/qwc' do
4
+ RSpec.describe 'quickbooks_web_connector/qwc/qwc', type: :view do
5
5
 
6
6
  before do
7
- QuickbooksWebConnector.configure do |c|
8
- c.username = 'jsmith'
9
- c.app_name = 'My Connector'
10
- c.app_description = 'Sample description for app'
7
+ QuickbooksWebConnector.configure do |config|
8
+ config.app_name = 'My Connector'
9
+ config.app_description = 'Sample description for app'
11
10
  end
12
11
 
12
+ assign(:user, QuickbooksWebConnector::User.new('jsmith', 'password', '/path/to/company.qbw', '9ee59974-9edd-444a-9954-a68278b9d958', '2f061062-32f9-454c-8d63-58f161fe5277'))
13
+
13
14
  render
14
15
  end
15
16
 
16
- after { QuickbooksWebConnector.configure { |c| c.username = 'web_connector' } }
17
-
18
17
  let(:root) { REXML::Document.new(rendered).root }
19
18
 
20
19
  it 'wraps everything in a QBWCXML element' do
21
20
  expect(root.name).to eq('QBWCXML')
22
21
  end
23
22
 
24
- it 'includes the app name' do
25
- expect(root.text('AppName')).to eq('My Connector')
23
+ it 'includes the app name along with the username' do
24
+ expect(root.text('AppName')).to eq('My Connector (jsmith)')
26
25
  end
27
26
 
28
27
  it 'includes the app ID' do
@@ -46,11 +45,11 @@ describe 'quickbooks_web_connector/qwc/qwc' do
46
45
  end
47
46
 
48
47
  it 'includes the owner id' do
49
- expect(root.text('OwnerID')).to eq('{d69682e6-4436-44bc-bd19-d6bfbd11778d}')
48
+ expect(root.text('OwnerID')).to eq('{9ee59974-9edd-444a-9954-a68278b9d958}')
50
49
  end
51
50
 
52
51
  it 'includes the file id' do
53
- expect(root.text('FileID')).to eq('{916222f3-c574-4c70-8c9d-e3cec2634e49}')
52
+ expect(root.text('FileID')).to eq('{2f061062-32f9-454c-8d63-58f161fe5277}')
54
53
  end
55
54
 
56
55
  it 'sets the type to QBFS' do
metadata CHANGED
@@ -1,96 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickbooks_web_connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
5
- prerelease:
4
+ version: 0.6.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chris Gunther
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-11-05 00:00:00.000000000 Z
11
+ date: 2014-11-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.2.9
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.2.9
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: soap2r
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: 1.5.8
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: 1.5.8
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: redis-namespace
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '1.0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: sqlite3
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rspec-rails
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ~>
73
+ - - "~>"
84
74
  - !ruby/object:Gem::Version
85
- version: '2.14'
75
+ version: '3.1'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ~>
80
+ - - "~>"
92
81
  - !ruby/object:Gem::Version
93
- version: '2.14'
82
+ version: '3.1'
94
83
  description: QuickbooksWebConnector is an engine for sending requests and recieving
95
84
  responses from the Quickbooks Web Connector
96
85
  email:
@@ -99,6 +88,9 @@ executables: []
99
88
  extensions: []
100
89
  extra_rdoc_files: []
101
90
  files:
91
+ - MIT-LICENSE
92
+ - README.md
93
+ - Rakefile
102
94
  - app/controllers/quickbooks_web_connector/quickbooks_web_connector_controller.rb
103
95
  - app/controllers/quickbooks_web_connector/qwc_controller.rb
104
96
  - app/controllers/quickbooks_web_connector/soap_controller.rb
@@ -106,30 +98,31 @@ files:
106
98
  - app/views/layouts/quickbooks_web_connector/application.html.erb
107
99
  - app/views/quickbooks_web_connector/qwc/qwc.xml.builder
108
100
  - config/routes.rb
101
+ - lib/quickbooks_web_connector.rb
109
102
  - lib/quickbooks_web_connector/config.rb
110
103
  - lib/quickbooks_web_connector/engine.rb
111
104
  - lib/quickbooks_web_connector/failure.rb
112
105
  - lib/quickbooks_web_connector/job.rb
113
106
  - lib/quickbooks_web_connector/json_coder.rb
107
+ - lib/quickbooks_web_connector/soap_wrapper.rb
108
+ - lib/quickbooks_web_connector/soap_wrapper/QBWebConnectorSvc.rb
114
109
  - lib/quickbooks_web_connector/soap_wrapper/default.rb
115
110
  - lib/quickbooks_web_connector/soap_wrapper/defaultMappingRegistry.rb
116
111
  - lib/quickbooks_web_connector/soap_wrapper/defaultServant.rb
117
- - lib/quickbooks_web_connector/soap_wrapper/QBWebConnectorSvc.rb
118
- - lib/quickbooks_web_connector/soap_wrapper.rb
112
+ - lib/quickbooks_web_connector/user.rb
119
113
  - lib/quickbooks_web_connector/version.rb
120
- - lib/quickbooks_web_connector.rb
121
114
  - lib/tasks/quickbooks_web_connector_tasks.rake
122
- - MIT-LICENSE
123
- - Rakefile
124
- - README.md
125
115
  - spec/config/config_spec.rb
126
116
  - spec/controllers/quickbooks_web_connector/qwc_controller_spec.rb
127
117
  - spec/controllers/quickbooks_web_connector/soap_controller_spec.rb
118
+ - spec/dummy/README.rdoc
119
+ - spec/dummy/Rakefile
128
120
  - spec/dummy/app/assets/javascripts/application.js
129
121
  - spec/dummy/app/assets/stylesheets/application.css
130
122
  - spec/dummy/app/controllers/application_controller.rb
131
123
  - spec/dummy/app/helpers/application_helper.rb
132
124
  - spec/dummy/app/views/layouts/application.html.erb
125
+ - spec/dummy/config.ru
133
126
  - spec/dummy/config/application.rb
134
127
  - spec/dummy/config/boot.rb
135
128
  - spec/dummy/config/database.yml
@@ -145,7 +138,6 @@ files:
145
138
  - spec/dummy/config/initializers/wrap_parameters.rb
146
139
  - spec/dummy/config/locales/en.yml
147
140
  - spec/dummy/config/routes.rb
148
- - spec/dummy/config.ru
149
141
  - spec/dummy/db/development.sqlite3
150
142
  - spec/dummy/db/test.sqlite3
151
143
  - spec/dummy/log/development.log
@@ -154,12 +146,11 @@ files:
154
146
  - spec/dummy/public/422.html
155
147
  - spec/dummy/public/500.html
156
148
  - spec/dummy/public/favicon.ico
157
- - spec/dummy/Rakefile
158
- - spec/dummy/README.rdoc
159
149
  - spec/dummy/script/rails
160
150
  - spec/lib/quickbooks_web_connector/failure_spec.rb
161
151
  - spec/lib/quickbooks_web_connector/job_spec.rb
162
152
  - spec/lib/quickbooks_web_connector/soap_wrapper/defaultServant_spec.rb
153
+ - spec/lib/quickbooks_web_connector/user_spec.rb
163
154
  - spec/lib/quickbooks_web_connector_spec.rb
164
155
  - spec/routing/quickbooks_web_connector_spec.rb
165
156
  - spec/spec_helper.rb
@@ -169,27 +160,26 @@ files:
169
160
  - spec/views/quickbooks_web_connector/qwc/qwc.xml.builder_spec.rb
170
161
  homepage: https://github.com/cgunther/quickbooks_web_connector
171
162
  licenses: []
163
+ metadata: {}
172
164
  post_install_message:
173
165
  rdoc_options: []
174
166
  require_paths:
175
167
  - lib
176
168
  required_ruby_version: !ruby/object:Gem::Requirement
177
- none: false
178
169
  requirements:
179
- - - ! '>='
170
+ - - ">="
180
171
  - !ruby/object:Gem::Version
181
172
  version: 1.9.3
182
173
  required_rubygems_version: !ruby/object:Gem::Requirement
183
- none: false
184
174
  requirements:
185
- - - ! '>='
175
+ - - ">="
186
176
  - !ruby/object:Gem::Version
187
177
  version: '0'
188
178
  requirements: []
189
179
  rubyforge_project:
190
- rubygems_version: 1.8.23
180
+ rubygems_version: 2.2.2
191
181
  signing_key:
192
- specification_version: 3
182
+ specification_version: 4
193
183
  summary: Rails engine for interfacing with Quickbooks Web Connector
194
184
  test_files:
195
185
  - spec/config/config_spec.rb
@@ -230,6 +220,7 @@ test_files:
230
220
  - spec/lib/quickbooks_web_connector/failure_spec.rb
231
221
  - spec/lib/quickbooks_web_connector/job_spec.rb
232
222
  - spec/lib/quickbooks_web_connector/soap_wrapper/defaultServant_spec.rb
223
+ - spec/lib/quickbooks_web_connector/user_spec.rb
233
224
  - spec/lib/quickbooks_web_connector_spec.rb
234
225
  - spec/routing/quickbooks_web_connector_spec.rb
235
226
  - spec/spec_helper.rb