erp_communication_events 3.0.4 → 3.1.0
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.
- data/app/models/comm_evt_purpose.rb +1 -1
- data/app/models/comm_evt_purpose_type.rb +1 -0
- data/app/models/comm_evt_status.rb +1 -1
- data/app/models/communication_event.rb +1 -0
- data/db/migrate/20080805000080_communication_events_services.rb +0 -2
- data/lib/erp_communication_events.rb +2 -0
- data/lib/erp_communication_events/version.rb +2 -2
- data/spec/dummy/config/application.rb +2 -0
- data/spec/dummy/config/environments/spec.rb +3 -0
- data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +15 -0
- data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +12 -0
- data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +19 -0
- data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +16 -0
- data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +12 -0
- data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +22 -0
- data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +14 -0
- data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +20 -0
- data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +24 -0
- data/spec/dummy/db/migrate/20121213233556_base_erp_services.erp_base_erp_svcs.rb +461 -0
- data/spec/dummy/db/migrate/20121213233557_communication_events_services.erp_communication_events.rb +108 -0
- data/spec/dummy/db/migrate/20121213233558_base_tech_services.erp_tech_svcs.rb +255 -0
- data/spec/dummy/db/migrate/20121213233559_create_has_attribute_tables.erp_tech_svcs.rb +39 -0
- data/spec/dummy/db/migrate/20130107180829_create_groups.erp_tech_svcs.rb +19 -0
- data/spec/dummy/db/migrate/20130107180830_upgrade_security.erp_tech_svcs.rb +54 -0
- data/spec/dummy/db/migrate/20130107180831_upgrade_security2.erp_tech_svcs.rb +270 -0
- data/spec/dummy/db/schema.rb +666 -0
- data/spec/dummy/db/spec.sqlite3 +0 -0
- data/spec/dummy/log/spec.log +5407 -0
- data/spec/spec_helper.rb +11 -3
- metadata +63 -13
- data/db/migrate/upgrade/20120203142414_add_external_id_to_comm_events.rb +0 -13
- data/db/migrate/upgrade/20120203203450_add_from_to_mechanism_to_cmm_evt.rb +0 -33
- data/spec/models/comm_evt_status_type_spec.rb +0 -13
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
require 'spork'
|
2
2
|
require 'rake'
|
3
|
+
require 'factory_girl'
|
4
|
+
require 'rails/generators'
|
3
5
|
|
4
6
|
Spork.prefork do
|
5
7
|
# Loading more in this block will cause your tests to run faster. However,
|
@@ -31,6 +33,7 @@ Spork.prefork do
|
|
31
33
|
|
32
34
|
RSpec.configure do |config|
|
33
35
|
config.use_transactional_fixtures = true
|
36
|
+
config.include FactoryGirl::Syntax::Methods
|
34
37
|
config.include Sorcery::TestHelpers::Rails
|
35
38
|
config.include ErpDevSvcs
|
36
39
|
config.include ErpDevSvcs::ControllerSupport, :type => :controller
|
@@ -40,12 +43,17 @@ end
|
|
40
43
|
Spork.each_run do
|
41
44
|
#We have to execute the migrations from dummy app directory
|
42
45
|
Dir.chdir DUMMY_APP_ROOT
|
43
|
-
`rake db:drop`
|
46
|
+
`rake db:drop RAILS_ENV=spec`
|
44
47
|
Dir.chdir ENGINE_RAILS_ROOT
|
45
48
|
|
46
|
-
#We have to execute the
|
49
|
+
#We have to execute the migratiapp:compass_ae:install:data_migrationsons from dummy app directory
|
47
50
|
Dir.chdir DUMMY_APP_ROOT
|
48
|
-
|
51
|
+
|
52
|
+
|
53
|
+
`rake compass_ae:install:migrations RAILS_ENV=spec`
|
54
|
+
`rake compass_ae:install:data_migrations RAILS_ENV=spec`
|
55
|
+
`rake db:migrate RAILS_ENV=spec`
|
56
|
+
`rake db:migrate_data RAILS_ENV=spec`
|
49
57
|
Dir.chdir ENGINE_RAILS_ROOT
|
50
58
|
|
51
59
|
ErpDevSvcs::FactorySupport.load_engine_factories
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_communication_events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
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-
|
12
|
+
date: 2013-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: erp_tech_svcs
|
16
|
-
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.
|
21
|
+
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
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:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
31
36
|
- !ruby/object:Gem::Version
|
32
|
-
version: '3.
|
37
|
+
version: '3.1'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
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: ErpCommunicationEvents add models and services to CompassAE's ERP core
|
37
47
|
to handle contacts between Business Parties. For example, tracking inbound or outbound
|
38
48
|
emails, customer contact events, support requests, etc. These models would be used
|
@@ -64,8 +74,6 @@ files:
|
|
64
74
|
- app/views/layouts/erp_communication_events/application.html.erb
|
65
75
|
- config/routes.rb
|
66
76
|
- db/migrate/20080805000080_communication_events_services.rb
|
67
|
-
- db/migrate/upgrade/20120203142414_add_external_id_to_comm_events.rb
|
68
|
-
- db/migrate/upgrade/20120203203450_add_from_to_mechanism_to_cmm_evt.rb
|
69
77
|
- lib/erp_communication_events/engine.rb
|
70
78
|
- lib/erp_communication_events/version.rb
|
71
79
|
- lib/erp_communication_events.rb
|
@@ -92,6 +100,25 @@ files:
|
|
92
100
|
- spec/dummy/config/locales/en.yml
|
93
101
|
- spec/dummy/config/routes.rb
|
94
102
|
- spec/dummy/config.ru
|
103
|
+
- spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
|
104
|
+
- spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
|
105
|
+
- spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
|
106
|
+
- spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
|
107
|
+
- spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
|
108
|
+
- spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
|
109
|
+
- spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
|
110
|
+
- spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
|
111
|
+
- spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
|
112
|
+
- spec/dummy/db/migrate/20121213233556_base_erp_services.erp_base_erp_svcs.rb
|
113
|
+
- spec/dummy/db/migrate/20121213233557_communication_events_services.erp_communication_events.rb
|
114
|
+
- spec/dummy/db/migrate/20121213233558_base_tech_services.erp_tech_svcs.rb
|
115
|
+
- spec/dummy/db/migrate/20121213233559_create_has_attribute_tables.erp_tech_svcs.rb
|
116
|
+
- spec/dummy/db/migrate/20130107180829_create_groups.erp_tech_svcs.rb
|
117
|
+
- spec/dummy/db/migrate/20130107180830_upgrade_security.erp_tech_svcs.rb
|
118
|
+
- spec/dummy/db/migrate/20130107180831_upgrade_security2.erp_tech_svcs.rb
|
119
|
+
- spec/dummy/db/schema.rb
|
120
|
+
- spec/dummy/db/spec.sqlite3
|
121
|
+
- spec/dummy/log/spec.log
|
95
122
|
- spec/dummy/public/404.html
|
96
123
|
- spec/dummy/public/422.html
|
97
124
|
- spec/dummy/public/500.html
|
@@ -101,7 +128,6 @@ files:
|
|
101
128
|
- spec/models/comm_evt_purpose_spec.rb
|
102
129
|
- spec/models/comm_evt_purpose_type_spec.rb
|
103
130
|
- spec/models/comm_evt_status_spec.rb
|
104
|
-
- spec/models/comm_evt_status_type_spec.rb
|
105
131
|
- spec/models/communication_event_spec.rb
|
106
132
|
- spec/spec_helper.rb
|
107
133
|
homepage: http://development.compassagile.com
|
@@ -116,15 +142,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
142
|
- - ! '>='
|
117
143
|
- !ruby/object:Gem::Version
|
118
144
|
version: '0'
|
145
|
+
segments:
|
146
|
+
- 0
|
147
|
+
hash: -3975129084745360356
|
119
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
149
|
none: false
|
121
150
|
requirements:
|
122
151
|
- - ! '>='
|
123
152
|
- !ruby/object:Gem::Version
|
124
153
|
version: '0'
|
154
|
+
segments:
|
155
|
+
- 0
|
156
|
+
hash: -3975129084745360356
|
125
157
|
requirements: []
|
126
158
|
rubyforge_project:
|
127
|
-
rubygems_version: 1.8.
|
159
|
+
rubygems_version: 1.8.24
|
128
160
|
signing_key:
|
129
161
|
specification_version: 3
|
130
162
|
summary: ErpCommunicationEvents add models and services to CompassAE's ERP core to
|
@@ -149,6 +181,25 @@ test_files:
|
|
149
181
|
- spec/dummy/config/locales/en.yml
|
150
182
|
- spec/dummy/config/routes.rb
|
151
183
|
- spec/dummy/config.ru
|
184
|
+
- spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
|
185
|
+
- spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
|
186
|
+
- spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
|
187
|
+
- spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
|
188
|
+
- spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
|
189
|
+
- spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
|
190
|
+
- spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
|
191
|
+
- spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
|
192
|
+
- spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
|
193
|
+
- spec/dummy/db/migrate/20121213233556_base_erp_services.erp_base_erp_svcs.rb
|
194
|
+
- spec/dummy/db/migrate/20121213233557_communication_events_services.erp_communication_events.rb
|
195
|
+
- spec/dummy/db/migrate/20121213233558_base_tech_services.erp_tech_svcs.rb
|
196
|
+
- spec/dummy/db/migrate/20121213233559_create_has_attribute_tables.erp_tech_svcs.rb
|
197
|
+
- spec/dummy/db/migrate/20130107180829_create_groups.erp_tech_svcs.rb
|
198
|
+
- spec/dummy/db/migrate/20130107180830_upgrade_security.erp_tech_svcs.rb
|
199
|
+
- spec/dummy/db/migrate/20130107180831_upgrade_security2.erp_tech_svcs.rb
|
200
|
+
- spec/dummy/db/schema.rb
|
201
|
+
- spec/dummy/db/spec.sqlite3
|
202
|
+
- spec/dummy/log/spec.log
|
152
203
|
- spec/dummy/public/404.html
|
153
204
|
- spec/dummy/public/422.html
|
154
205
|
- spec/dummy/public/500.html
|
@@ -158,6 +209,5 @@ test_files:
|
|
158
209
|
- spec/models/comm_evt_purpose_spec.rb
|
159
210
|
- spec/models/comm_evt_purpose_type_spec.rb
|
160
211
|
- spec/models/comm_evt_status_spec.rb
|
161
|
-
- spec/models/comm_evt_status_type_spec.rb
|
162
212
|
- spec/models/communication_event_spec.rb
|
163
213
|
- spec/spec_helper.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
class AddExternalIdToCommEvents < ActiveRecord::Migration
|
2
|
-
def up
|
3
|
-
unless column_exists? :communication_events, :external_identifier
|
4
|
-
add_column :communication_events, :external_identifier, :string
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
def down
|
9
|
-
if column_exists? :communication_events, :external_identifier
|
10
|
-
remove_column :communication_events, :external_identifier
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
class AddFromToNumbersToCmmEvt < ActiveRecord::Migration
|
2
|
-
def up
|
3
|
-
unless column_exists? :communication_events, :from_contact_mechanism_id
|
4
|
-
add_column :communication_events, :from_contact_mechanism_id, :integer
|
5
|
-
add_column :communication_events, :from_contact_mechanism_type, :string
|
6
|
-
|
7
|
-
add_index :communication_events, [:from_contact_mechanism_id, :from_contact_mechanism_type], :name => 'from_contact_mech_idx'
|
8
|
-
end
|
9
|
-
|
10
|
-
unless column_exists? :communication_events, :to_contact_mechanism_id
|
11
|
-
add_column :communication_events, :to_contact_mechanism_id, :integer
|
12
|
-
add_column :communication_events, :to_contact_mechanism_type, :string
|
13
|
-
|
14
|
-
add_index :communication_events, [:to_contact_mechanism_id, :to_contact_mechanism_type], :name => 'to_contact_mech_idx'
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def down
|
19
|
-
if column_exists? :communication_events, :from_contact_mechanism_id
|
20
|
-
remove_column :communication_events, :from_contact_mechanism_id
|
21
|
-
remove_column :communication_events, :from_contact_mechanism_type
|
22
|
-
|
23
|
-
remove_index :communication_events, 'from_contact_mech_idx'
|
24
|
-
end
|
25
|
-
|
26
|
-
if column_exists? :communication_events, :to_contact_mechanism_id
|
27
|
-
remove_column :communication_events, :to_contact_mechanism_id
|
28
|
-
remove_column :communication_events, :to_contact_mechanism_type
|
29
|
-
|
30
|
-
remove_index :communication_events, 'to_contact_mech_idx'
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe CommEvtStatusType do
|
4
|
-
it "can be instantiated" do
|
5
|
-
CommEvtStatusType.new.should be_an_instance_of(CommEvtStatusType)
|
6
|
-
end
|
7
|
-
|
8
|
-
it "can be saved successfully" do
|
9
|
-
CommEvtStatusType.create().should be_persisted
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
|