erp_inventory 3.0.5 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/app/models/inv_entry_reln.rb +1 -0
  2. data/app/models/inv_entry_reln_type.rb +3 -1
  3. data/app/models/inv_entry_role_type.rb +2 -0
  4. data/app/models/inventory_entry.rb +1 -0
  5. data/app/models/prod_instance_inv_entry.rb +2 -1
  6. data/lib/erp_inventory.rb +2 -0
  7. data/lib/erp_inventory/version.rb +2 -2
  8. data/spec/dummy/config/application.rb +6 -0
  9. data/spec/dummy/config/environments/spec.rb +3 -0
  10. data/spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb +28 -0
  11. data/spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb +16 -0
  12. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +15 -0
  13. data/spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb +24 -0
  14. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +12 -0
  15. data/spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb +27 -0
  16. data/spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb +24 -0
  17. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +19 -0
  18. data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +252 -0
  19. data/spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb +26 -0
  20. data/spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb +26 -0
  21. data/spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb +15 -0
  22. data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +53 -0
  23. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +16 -0
  24. data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +21 -0
  25. data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +32 -0
  26. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +12 -0
  27. data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +23 -0
  28. data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +42 -0
  29. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +22 -0
  30. data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +14 -0
  31. data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +29 -0
  32. data/spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb +29 -0
  33. data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +11 -0
  34. data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +19 -0
  35. data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +23 -0
  36. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +20 -0
  37. data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +16 -0
  38. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +24 -0
  39. data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +23 -0
  40. data/spec/dummy/db/migrate/20121213235616_base_erp_services.erp_base_erp_svcs.rb +461 -0
  41. data/spec/dummy/db/migrate/20121213235617_base_inventory.erp_inventory.rb +91 -0
  42. data/spec/dummy/db/migrate/20121213235618_base_inventory_indexes.erp_inventory.rb +48 -0
  43. data/spec/dummy/db/migrate/20121213235619_base_tech_services.erp_tech_svcs.rb +255 -0
  44. data/spec/dummy/db/migrate/20121213235620_create_has_attribute_tables.erp_tech_svcs.rb +39 -0
  45. data/spec/dummy/db/migrate/20121213235621_base_orders.erp_orders.rb +178 -0
  46. data/spec/dummy/db/migrate/20121213235622_base_products.erp_products.rb +234 -0
  47. data/spec/dummy/db/migrate/20121213235623_base_products_indexes.erp_products.rb +59 -0
  48. data/spec/dummy/db/migrate/20121213235624_base_txns_and_accts.erp_txns_and_accts.rb +364 -0
  49. data/spec/dummy/db/migrate/20121213235625_agreements_services.erp_agreements.rb +160 -0
  50. data/spec/dummy/db/migrate/20121213235626_agreements_services_indexes.erp_agreements.rb +52 -0
  51. data/spec/dummy/db/migrate/20121213235627_base_app_framework.erp_app.rb +276 -0
  52. data/spec/dummy/db/migrate/20121213235628_erp_commerce_base.erp_commerce.rb +442 -0
  53. data/spec/dummy/db/migrate/20130107180714_create_groups.erp_tech_svcs.rb +19 -0
  54. data/spec/dummy/db/migrate/20130107180715_upgrade_security.erp_tech_svcs.rb +54 -0
  55. data/spec/dummy/db/migrate/20130107180716_upgrade_security2.erp_tech_svcs.rb +270 -0
  56. data/spec/dummy/db/schema.rb +1879 -0
  57. data/spec/dummy/db/spec.sqlite3 +0 -0
  58. data/spec/dummy/log/spec.log +9949 -0
  59. data/spec/spec_helper.rb +11 -3
  60. metadata +123 -9
@@ -1,5 +1,6 @@
1
1
  require 'spork'
2
2
  require 'rake'
3
+ require 'factory_girl'
3
4
 
4
5
  Spork.prefork do
5
6
  # Loading more in this block will cause your tests to run faster. However,
@@ -31,6 +32,7 @@ Spork.prefork do
31
32
 
32
33
  RSpec.configure do |config|
33
34
  config.use_transactional_fixtures = true
35
+ config.include FactoryGirl::Syntax::Methods
34
36
  config.include Sorcery::TestHelpers::Rails
35
37
  config.include ErpDevSvcs
36
38
  config.include ErpDevSvcs::ControllerSupport, :type => :controller
@@ -40,12 +42,17 @@ end
40
42
  Spork.each_run do
41
43
  #We have to execute the migrations from dummy app directory
42
44
  Dir.chdir DUMMY_APP_ROOT
43
- `rake db:drop`
45
+ `rake db:drop RAILS_ENV=spec`
44
46
  Dir.chdir ENGINE_RAILS_ROOT
45
47
 
46
- #We have to execute the migrations from dummy app directory
48
+ #We have to execute the migratiapp:compass_ae:install:data_migrationsons from dummy app directory
47
49
  Dir.chdir DUMMY_APP_ROOT
48
- `rake db:migrate`
50
+
51
+
52
+ `rake compass_ae:install:migrations RAILS_ENV=spec`
53
+ `rake compass_ae:install:data_migrations RAILS_ENV=spec`
54
+ `rake db:migrate RAILS_ENV=spec`
55
+ `rake db:migrate_data RAILS_ENV=spec`
49
56
  Dir.chdir ENGINE_RAILS_ROOT
50
57
 
51
58
  ErpDevSvcs::FactorySupport.load_engine_factories
@@ -57,4 +64,5 @@ Spork.each_run do
57
64
  #Need to explictly load the files in lib/ until we figure out how to
58
65
  #get rails to autoload them for spec like it used to...
59
66
  Dir[File.join(ENGINE_RAILS_ROOT, "lib/**/*.rb")].each {|f| load f}
67
+ Dir[File.join(ENGINE_RAILS_ROOT, "app/models/extensions/**/*.rb")].each {|f| load f}
60
68
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,30 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-10 00:00:00.000000000 Z
12
+ date: 2013-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erp_orders
16
- requirement: &70209063604060 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '3.0'
21
+ version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70209063604060
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: erp_dev_svcs
27
- requirement: &70209063603300 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
31
36
  - !ruby/object:Gem::Version
32
- version: '3.0'
37
+ version: '3.1'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70209063603300
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.1'
36
46
  description: The Inventory Engine in CompassAE implements a set of models for storing
37
47
  information about the availability and location of ProductTypes and optionally Product
38
48
  Instances. It is also the root for yield and revenue management requirements to
@@ -88,6 +98,55 @@ files:
88
98
  - spec/dummy/config/locales/en.yml
89
99
  - spec/dummy/config/routes.rb
90
100
  - spec/dummy/config.ru
101
+ - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
102
+ - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
103
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
104
+ - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
105
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
106
+ - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
107
+ - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
108
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
109
+ - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
110
+ - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
111
+ - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
112
+ - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
113
+ - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
114
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
115
+ - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
116
+ - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
117
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
118
+ - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
119
+ - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
120
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
121
+ - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
122
+ - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
123
+ - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
124
+ - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
125
+ - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
126
+ - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
127
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
128
+ - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
129
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
130
+ - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
131
+ - spec/dummy/db/migrate/20121213235616_base_erp_services.erp_base_erp_svcs.rb
132
+ - spec/dummy/db/migrate/20121213235617_base_inventory.erp_inventory.rb
133
+ - spec/dummy/db/migrate/20121213235618_base_inventory_indexes.erp_inventory.rb
134
+ - spec/dummy/db/migrate/20121213235619_base_tech_services.erp_tech_svcs.rb
135
+ - spec/dummy/db/migrate/20121213235620_create_has_attribute_tables.erp_tech_svcs.rb
136
+ - spec/dummy/db/migrate/20121213235621_base_orders.erp_orders.rb
137
+ - spec/dummy/db/migrate/20121213235622_base_products.erp_products.rb
138
+ - spec/dummy/db/migrate/20121213235623_base_products_indexes.erp_products.rb
139
+ - spec/dummy/db/migrate/20121213235624_base_txns_and_accts.erp_txns_and_accts.rb
140
+ - spec/dummy/db/migrate/20121213235625_agreements_services.erp_agreements.rb
141
+ - spec/dummy/db/migrate/20121213235626_agreements_services_indexes.erp_agreements.rb
142
+ - spec/dummy/db/migrate/20121213235627_base_app_framework.erp_app.rb
143
+ - spec/dummy/db/migrate/20121213235628_erp_commerce_base.erp_commerce.rb
144
+ - spec/dummy/db/migrate/20130107180714_create_groups.erp_tech_svcs.rb
145
+ - spec/dummy/db/migrate/20130107180715_upgrade_security.erp_tech_svcs.rb
146
+ - spec/dummy/db/migrate/20130107180716_upgrade_security2.erp_tech_svcs.rb
147
+ - spec/dummy/db/schema.rb
148
+ - spec/dummy/db/spec.sqlite3
149
+ - spec/dummy/log/spec.log
91
150
  - spec/dummy/public/404.html
92
151
  - spec/dummy/public/422.html
93
152
  - spec/dummy/public/500.html
@@ -112,15 +171,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
171
  - - ! '>='
113
172
  - !ruby/object:Gem::Version
114
173
  version: '0'
174
+ segments:
175
+ - 0
176
+ hash: -2746667245867171753
115
177
  required_rubygems_version: !ruby/object:Gem::Requirement
116
178
  none: false
117
179
  requirements:
118
180
  - - ! '>='
119
181
  - !ruby/object:Gem::Version
120
182
  version: '0'
183
+ segments:
184
+ - 0
185
+ hash: -2746667245867171753
121
186
  requirements: []
122
187
  rubyforge_project:
123
- rubygems_version: 1.8.11
188
+ rubygems_version: 1.8.24
124
189
  signing_key:
125
190
  specification_version: 3
126
191
  summary: The Inventory Engine in CompassAE implements a set of models for storing
@@ -146,6 +211,55 @@ test_files:
146
211
  - spec/dummy/config/locales/en.yml
147
212
  - spec/dummy/config/routes.rb
148
213
  - spec/dummy/config.ru
214
+ - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
215
+ - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
216
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
217
+ - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
218
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
219
+ - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
220
+ - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
221
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
222
+ - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
223
+ - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
224
+ - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
225
+ - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
226
+ - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
227
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
228
+ - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
229
+ - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
230
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
231
+ - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
232
+ - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
233
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
234
+ - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
235
+ - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
236
+ - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
237
+ - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
238
+ - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
239
+ - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
240
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
241
+ - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
242
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
243
+ - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
244
+ - spec/dummy/db/migrate/20121213235616_base_erp_services.erp_base_erp_svcs.rb
245
+ - spec/dummy/db/migrate/20121213235617_base_inventory.erp_inventory.rb
246
+ - spec/dummy/db/migrate/20121213235618_base_inventory_indexes.erp_inventory.rb
247
+ - spec/dummy/db/migrate/20121213235619_base_tech_services.erp_tech_svcs.rb
248
+ - spec/dummy/db/migrate/20121213235620_create_has_attribute_tables.erp_tech_svcs.rb
249
+ - spec/dummy/db/migrate/20121213235621_base_orders.erp_orders.rb
250
+ - spec/dummy/db/migrate/20121213235622_base_products.erp_products.rb
251
+ - spec/dummy/db/migrate/20121213235623_base_products_indexes.erp_products.rb
252
+ - spec/dummy/db/migrate/20121213235624_base_txns_and_accts.erp_txns_and_accts.rb
253
+ - spec/dummy/db/migrate/20121213235625_agreements_services.erp_agreements.rb
254
+ - spec/dummy/db/migrate/20121213235626_agreements_services_indexes.erp_agreements.rb
255
+ - spec/dummy/db/migrate/20121213235627_base_app_framework.erp_app.rb
256
+ - spec/dummy/db/migrate/20121213235628_erp_commerce_base.erp_commerce.rb
257
+ - spec/dummy/db/migrate/20130107180714_create_groups.erp_tech_svcs.rb
258
+ - spec/dummy/db/migrate/20130107180715_upgrade_security.erp_tech_svcs.rb
259
+ - spec/dummy/db/migrate/20130107180716_upgrade_security2.erp_tech_svcs.rb
260
+ - spec/dummy/db/schema.rb
261
+ - spec/dummy/db/spec.sqlite3
262
+ - spec/dummy/log/spec.log
149
263
  - spec/dummy/public/404.html
150
264
  - spec/dummy/public/422.html
151
265
  - spec/dummy/public/500.html