erp_products 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 (66) hide show
  1. data/app/models/prod_availability_status_type.rb +2 -0
  2. data/app/models/prod_instance_reln.rb +1 -0
  3. data/app/models/prod_instance_reln_type.rb +2 -0
  4. data/app/models/prod_instance_role_type.rb +2 -0
  5. data/app/models/prod_type_reln.rb +1 -0
  6. data/app/models/prod_type_reln_type.rb +2 -0
  7. data/app/models/prod_type_role_type.rb +2 -0
  8. data/app/models/product_instance.rb +2 -0
  9. data/app/models/product_offer.rb +1 -0
  10. data/app/models/product_type.rb +2 -0
  11. data/app/models/simple_product_offer.rb +2 -0
  12. data/db/migrate/20080805000040_base_products.rb +1 -0
  13. data/lib/erp_products.rb +2 -0
  14. data/lib/erp_products/version.rb +2 -2
  15. data/spec/dummy/config/application.rb +6 -0
  16. data/spec/dummy/config/environments/spec.rb +3 -0
  17. data/spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb +28 -0
  18. data/spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb +16 -0
  19. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +15 -0
  20. data/spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb +24 -0
  21. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +12 -0
  22. data/spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb +27 -0
  23. data/spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb +24 -0
  24. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +19 -0
  25. data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +252 -0
  26. data/spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb +26 -0
  27. data/spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb +26 -0
  28. data/spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb +15 -0
  29. data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +53 -0
  30. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +16 -0
  31. data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +21 -0
  32. data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +32 -0
  33. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +12 -0
  34. data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +23 -0
  35. data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +42 -0
  36. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +22 -0
  37. data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +14 -0
  38. data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +29 -0
  39. data/spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb +29 -0
  40. data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +11 -0
  41. data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +19 -0
  42. data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +23 -0
  43. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +20 -0
  44. data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +16 -0
  45. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +24 -0
  46. data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +23 -0
  47. data/spec/dummy/db/migrate/20130107214711_base_erp_services.erp_base_erp_svcs.rb +461 -0
  48. data/spec/dummy/db/migrate/20130107214712_base_products.erp_products.rb +234 -0
  49. data/spec/dummy/db/migrate/20130107214713_base_products_indexes.erp_products.rb +59 -0
  50. data/spec/dummy/db/migrate/20130107214714_base_tech_services.erp_tech_svcs.rb +271 -0
  51. data/spec/dummy/db/migrate/20130107214715_create_has_attribute_tables.erp_tech_svcs.rb +39 -0
  52. data/spec/dummy/db/migrate/20130107214716_create_groups.erp_tech_svcs.rb +19 -0
  53. data/spec/dummy/db/migrate/20130107214717_upgrade_security.erp_tech_svcs.rb +54 -0
  54. data/spec/dummy/db/migrate/20130107214718_upgrade_security2.erp_tech_svcs.rb +270 -0
  55. data/spec/dummy/db/migrate/20130107214719_base_orders.erp_orders.rb +178 -0
  56. data/spec/dummy/db/migrate/20130107214720_base_txns_and_accts.erp_txns_and_accts.rb +364 -0
  57. data/spec/dummy/db/migrate/20130107214721_agreements_services.erp_agreements.rb +160 -0
  58. data/spec/dummy/db/migrate/20130107214722_agreements_services_indexes.erp_agreements.rb +52 -0
  59. data/spec/dummy/db/migrate/20130107214723_base_app_framework.erp_app.rb +276 -0
  60. data/spec/dummy/db/migrate/20130107214724_erp_commerce_base.erp_commerce.rb +442 -0
  61. data/spec/dummy/db/schema.rb +1821 -0
  62. data/spec/dummy/db/spec.sqlite3 +0 -0
  63. data/spec/dummy/log/spec.log +12388 -0
  64. data/spec/spec_helper.rb +11 -3
  65. metadata +119 -10
  66. data/db/migrate/20120612195842_add_internal_identifier_to_product_type.rb +0 -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_products
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_app
16
- requirement: &70205959615240 !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: *70205959615240
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: &70205959614400 !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: *70205959614400
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 Products Engine implements ProductType and ProductInstance, as
37
47
  well as a number of classes to support product catalog-type functions and search/shopping
38
48
  scenarios. '
@@ -67,7 +77,6 @@ files:
67
77
  - db/data_migrations/20110728201730_create_desktop_app_product_manager.rb
68
78
  - db/migrate/20080805000040_base_products.rb
69
79
  - db/migrate/20080805000041_base_products_indexes.rb
70
- - db/migrate/20120612195842_add_internal_identifier_to_product_type.rb
71
80
  - lib/erp_products/engine.rb
72
81
  - lib/erp_products/extensions/active_record/acts_as_product_instance.rb
73
82
  - lib/erp_products/extensions/active_record/acts_as_product_offer.rb
@@ -98,6 +107,53 @@ files:
98
107
  - spec/dummy/config/locales/en.yml
99
108
  - spec/dummy/config/routes.rb
100
109
  - spec/dummy/config.ru
110
+ - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
111
+ - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
112
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
113
+ - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
114
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
115
+ - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
116
+ - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
117
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
118
+ - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
119
+ - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
120
+ - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
121
+ - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
122
+ - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
123
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
124
+ - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
125
+ - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
126
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
127
+ - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
128
+ - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
129
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
130
+ - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
131
+ - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
132
+ - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
133
+ - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
134
+ - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
135
+ - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
136
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
137
+ - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
138
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
139
+ - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
140
+ - spec/dummy/db/migrate/20130107214711_base_erp_services.erp_base_erp_svcs.rb
141
+ - spec/dummy/db/migrate/20130107214712_base_products.erp_products.rb
142
+ - spec/dummy/db/migrate/20130107214713_base_products_indexes.erp_products.rb
143
+ - spec/dummy/db/migrate/20130107214714_base_tech_services.erp_tech_svcs.rb
144
+ - spec/dummy/db/migrate/20130107214715_create_has_attribute_tables.erp_tech_svcs.rb
145
+ - spec/dummy/db/migrate/20130107214716_create_groups.erp_tech_svcs.rb
146
+ - spec/dummy/db/migrate/20130107214717_upgrade_security.erp_tech_svcs.rb
147
+ - spec/dummy/db/migrate/20130107214718_upgrade_security2.erp_tech_svcs.rb
148
+ - spec/dummy/db/migrate/20130107214719_base_orders.erp_orders.rb
149
+ - spec/dummy/db/migrate/20130107214720_base_txns_and_accts.erp_txns_and_accts.rb
150
+ - spec/dummy/db/migrate/20130107214721_agreements_services.erp_agreements.rb
151
+ - spec/dummy/db/migrate/20130107214722_agreements_services_indexes.erp_agreements.rb
152
+ - spec/dummy/db/migrate/20130107214723_base_app_framework.erp_app.rb
153
+ - spec/dummy/db/migrate/20130107214724_erp_commerce_base.erp_commerce.rb
154
+ - spec/dummy/db/schema.rb
155
+ - spec/dummy/db/spec.sqlite3
156
+ - spec/dummy/log/spec.log
101
157
  - spec/dummy/public/404.html
102
158
  - spec/dummy/public/422.html
103
159
  - spec/dummy/public/500.html
@@ -129,15 +185,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
185
  - - ! '>='
130
186
  - !ruby/object:Gem::Version
131
187
  version: '0'
188
+ segments:
189
+ - 0
190
+ hash: 1497917790902497929
132
191
  required_rubygems_version: !ruby/object:Gem::Requirement
133
192
  none: false
134
193
  requirements:
135
194
  - - ! '>='
136
195
  - !ruby/object:Gem::Version
137
196
  version: '0'
197
+ segments:
198
+ - 0
199
+ hash: 1497917790902497929
138
200
  requirements: []
139
201
  rubyforge_project:
140
- rubygems_version: 1.8.11
202
+ rubygems_version: 1.8.24
141
203
  signing_key:
142
204
  specification_version: 3
143
205
  summary: The Products Engine implements ProductType and ProductInstance, as well as
@@ -163,6 +225,53 @@ test_files:
163
225
  - spec/dummy/config/locales/en.yml
164
226
  - spec/dummy/config/routes.rb
165
227
  - spec/dummy/config.ru
228
+ - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
229
+ - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
230
+ - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
231
+ - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
232
+ - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
233
+ - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
234
+ - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
235
+ - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
236
+ - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
237
+ - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
238
+ - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
239
+ - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
240
+ - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
241
+ - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
242
+ - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
243
+ - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
244
+ - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
245
+ - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
246
+ - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
247
+ - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
248
+ - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
249
+ - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
250
+ - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
251
+ - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
252
+ - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
253
+ - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
254
+ - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
255
+ - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
256
+ - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
257
+ - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
258
+ - spec/dummy/db/migrate/20130107214711_base_erp_services.erp_base_erp_svcs.rb
259
+ - spec/dummy/db/migrate/20130107214712_base_products.erp_products.rb
260
+ - spec/dummy/db/migrate/20130107214713_base_products_indexes.erp_products.rb
261
+ - spec/dummy/db/migrate/20130107214714_base_tech_services.erp_tech_svcs.rb
262
+ - spec/dummy/db/migrate/20130107214715_create_has_attribute_tables.erp_tech_svcs.rb
263
+ - spec/dummy/db/migrate/20130107214716_create_groups.erp_tech_svcs.rb
264
+ - spec/dummy/db/migrate/20130107214717_upgrade_security.erp_tech_svcs.rb
265
+ - spec/dummy/db/migrate/20130107214718_upgrade_security2.erp_tech_svcs.rb
266
+ - spec/dummy/db/migrate/20130107214719_base_orders.erp_orders.rb
267
+ - spec/dummy/db/migrate/20130107214720_base_txns_and_accts.erp_txns_and_accts.rb
268
+ - spec/dummy/db/migrate/20130107214721_agreements_services.erp_agreements.rb
269
+ - spec/dummy/db/migrate/20130107214722_agreements_services_indexes.erp_agreements.rb
270
+ - spec/dummy/db/migrate/20130107214723_base_app_framework.erp_app.rb
271
+ - spec/dummy/db/migrate/20130107214724_erp_commerce_base.erp_commerce.rb
272
+ - spec/dummy/db/schema.rb
273
+ - spec/dummy/db/spec.sqlite3
274
+ - spec/dummy/log/spec.log
166
275
  - spec/dummy/public/404.html
167
276
  - spec/dummy/public/422.html
168
277
  - spec/dummy/public/500.html
@@ -1,9 +0,0 @@
1
- class AddInternalIdentifierToProductType < ActiveRecord::Migration
2
- def self.up
3
- add_column :product_types, :internal_identifier, :string
4
- end
5
-
6
- def self.down
7
- remove_column :product_types, :internal_identifier
8
- end
9
- end