erp_communication_events 3.0.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/GPL-3-LICENSE +674 -0
- data/README.rdoc +2 -0
- data/Rakefile +31 -0
- data/app/assets/javascripts/erp_communication_events/application.js +9 -0
- data/app/assets/stylesheets/erp_communication_events/application.css +7 -0
- data/app/controllers/erp_communication_events/application_controller.rb +4 -0
- data/app/helpers/erp_communication_events/application_helper.rb +4 -0
- data/app/models/comm_evt_purpose.rb +3 -0
- data/app/models/comm_evt_purpose_type.rb +14 -0
- data/app/models/comm_evt_status.rb +3 -0
- data/app/models/comm_evt_status_type.rb +3 -0
- data/app/models/communication_event.rb +20 -0
- data/app/models/extensions/party.rb +6 -0
- data/app/observers/communication_event_observer.rb +10 -0
- data/app/observers/email_address_change_event_observer.rb +13 -0
- data/app/observers/phone_number_change_event_observer.rb +13 -0
- data/app/observers/postal_address_change_event_observer.rb +13 -0
- data/app/views/layouts/erp_communication_events/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20080805000080_communication_events_services.rb +83 -0
- data/db/migrate/20080805000081_communication_events_services_indexes.rb +25 -0
- data/lib/erp_communication_events/engine.rb +13 -0
- data/lib/erp_communication_events/version.rb +3 -0
- data/lib/erp_communication_events.rb +4 -0
- data/lib/tasks/erp_communication_events_tasks.rake +4 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +44 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +8 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/spec.rb +27 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/models/comm_evt_purpose_spec.rb +12 -0
- data/spec/models/comm_evt_purpose_type_spec.rb +11 -0
- data/spec/models/comm_evt_status_spec.rb +12 -0
- data/spec/models/comm_evt_status_type_spec.rb +13 -0
- data/spec/models/communication_event_spec.rb +16 -0
- data/spec/spec_helper.rb +61 -0
- metadata +171 -0
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe CommEvtPurposeType do
|
4
|
+
it "can be instantiated" do
|
5
|
+
CommEvtPurposeType.new.should be_an_instance_of(CommEvtPurposeType)
|
6
|
+
end
|
7
|
+
|
8
|
+
it "can be saved successfully" do
|
9
|
+
CommEvtPurposeType.create().should be_persisted
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,13 @@
|
|
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
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe CommunicationEvent do
|
4
|
+
it "can be instantiated" do
|
5
|
+
CommunicationEvent.new.should be_an_instance_of(CommunicationEvent)
|
6
|
+
end
|
7
|
+
|
8
|
+
it "can be saved successfully" do
|
9
|
+
from_role = RoleType.create(:internal_identifier => 'test')
|
10
|
+
from_party = Party.create(:description => 'test party')
|
11
|
+
CommunicationEvent.create(:from_role => from_role, :from_party => from_party).should be_persisted
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
|
16
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
require 'spork'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
Spork.prefork do
|
5
|
+
# Loading more in this block will cause your tests to run faster. However,
|
6
|
+
# if you change any configuration or code from libraries loaded here, you'll
|
7
|
+
# need to restart spork for it take effect.
|
8
|
+
|
9
|
+
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
|
10
|
+
DUMMY_APP_ROOT=File.join(File.dirname(__FILE__), '/dummy')
|
11
|
+
|
12
|
+
require 'active_support'
|
13
|
+
require 'active_model'
|
14
|
+
require 'active_record'
|
15
|
+
require 'action_controller'
|
16
|
+
|
17
|
+
# Configure Rails Envinronment
|
18
|
+
ENV["RAILS_ENV"] = "spec"
|
19
|
+
require File.expand_path(DUMMY_APP_ROOT + "/config/environment.rb", __FILE__)
|
20
|
+
|
21
|
+
ActiveRecord::Base.configurations = YAML::load(IO.read(DUMMY_APP_ROOT + "/config/database.yml"))
|
22
|
+
ActiveRecord::Base.establish_connection(ENV["DB"] || "spec")
|
23
|
+
ActiveRecord::Migration.verbose = false
|
24
|
+
|
25
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
26
|
+
# in spec/support/ and its subdirectories.
|
27
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
28
|
+
|
29
|
+
require 'rspec/rails'
|
30
|
+
require 'erp_dev_svcs'
|
31
|
+
|
32
|
+
RSpec.configure do |config|
|
33
|
+
config.use_transactional_fixtures = true
|
34
|
+
config.include Sorcery::TestHelpers::Rails
|
35
|
+
config.include ErpDevSvcs
|
36
|
+
config.include ErpDevSvcs::ControllerSupport, :type => :controller
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
Spork.each_run do
|
41
|
+
#We have to execute the migrations from dummy app directory
|
42
|
+
Dir.chdir DUMMY_APP_ROOT
|
43
|
+
`rake db:drop`
|
44
|
+
Dir.chdir ENGINE_RAILS_ROOT
|
45
|
+
|
46
|
+
#We have to execute the migrations from dummy app directory
|
47
|
+
Dir.chdir DUMMY_APP_ROOT
|
48
|
+
`rake db:migrate`
|
49
|
+
Dir.chdir ENGINE_RAILS_ROOT
|
50
|
+
|
51
|
+
ErpDevSvcs::FactorySupport.load_engine_factories
|
52
|
+
|
53
|
+
require 'simplecov'
|
54
|
+
SimpleCov.start 'rails' do
|
55
|
+
add_filter "spec/"
|
56
|
+
end
|
57
|
+
#Need to explictly load the files in lib/ until we figure out how to
|
58
|
+
#get rails to autoload them for spec like it used to...
|
59
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "lib/**/*.rb")].each {|f| load f}
|
60
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "app/models/extensions/**/*.rb")].each {|f| load f}
|
61
|
+
end
|
metadata
ADDED
@@ -0,0 +1,171 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: erp_communication_events
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Rick Koloski, Russell Holmes
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-01-06 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: erp_base_erp_svcs
|
16
|
+
requirement: &2161001540 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2161001540
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: erp_tech_svcs
|
27
|
+
requirement: &2161001020 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2161001020
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: erp_dev_svcs
|
38
|
+
requirement: &2161000200 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2161000200
|
47
|
+
description: ErpCommunicationEvents add models and services to CompassAE's ERP core
|
48
|
+
to handle contacts between Business Parties. For example, tracking inbound or outbound
|
49
|
+
emails, customer contact events, support requests, etc. These models would be used
|
50
|
+
for support and ticketing systems, marketing communications applications and the
|
51
|
+
like. CommunicationEvents can be typed and can relate to one another, providing
|
52
|
+
the functionality to treat several related communication events as a group.
|
53
|
+
email:
|
54
|
+
- russonrails@gmail.com
|
55
|
+
executables: []
|
56
|
+
extensions: []
|
57
|
+
extra_rdoc_files: []
|
58
|
+
files:
|
59
|
+
- app/assets/javascripts/erp_communication_events/application.js
|
60
|
+
- app/assets/stylesheets/erp_communication_events/application.css
|
61
|
+
- app/controllers/erp_communication_events/application_controller.rb
|
62
|
+
- app/helpers/erp_communication_events/application_helper.rb
|
63
|
+
- app/models/comm_evt_purpose.rb
|
64
|
+
- app/models/comm_evt_purpose_type.rb
|
65
|
+
- app/models/comm_evt_status.rb
|
66
|
+
- app/models/comm_evt_status_type.rb
|
67
|
+
- app/models/communication_event.rb
|
68
|
+
- app/models/extensions/party.rb
|
69
|
+
- app/observers/communication_event_observer.rb
|
70
|
+
- app/observers/email_address_change_event_observer.rb
|
71
|
+
- app/observers/phone_number_change_event_observer.rb
|
72
|
+
- app/observers/postal_address_change_event_observer.rb
|
73
|
+
- app/views/layouts/erp_communication_events/application.html.erb
|
74
|
+
- config/routes.rb
|
75
|
+
- db/migrate/20080805000080_communication_events_services.rb
|
76
|
+
- db/migrate/20080805000081_communication_events_services_indexes.rb
|
77
|
+
- lib/erp_communication_events/engine.rb
|
78
|
+
- lib/erp_communication_events/version.rb
|
79
|
+
- lib/erp_communication_events.rb
|
80
|
+
- lib/tasks/erp_communication_events_tasks.rake
|
81
|
+
- GPL-3-LICENSE
|
82
|
+
- Rakefile
|
83
|
+
- README.rdoc
|
84
|
+
- spec/dummy/app/assets/javascripts/application.js
|
85
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
86
|
+
- spec/dummy/app/controllers/application_controller.rb
|
87
|
+
- spec/dummy/app/helpers/application_helper.rb
|
88
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
89
|
+
- spec/dummy/config/application.rb
|
90
|
+
- spec/dummy/config/boot.rb
|
91
|
+
- spec/dummy/config/database.yml
|
92
|
+
- spec/dummy/config/environment.rb
|
93
|
+
- spec/dummy/config/environments/spec.rb
|
94
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
95
|
+
- spec/dummy/config/initializers/inflections.rb
|
96
|
+
- spec/dummy/config/initializers/mime_types.rb
|
97
|
+
- spec/dummy/config/initializers/secret_token.rb
|
98
|
+
- spec/dummy/config/initializers/session_store.rb
|
99
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
100
|
+
- spec/dummy/config/locales/en.yml
|
101
|
+
- spec/dummy/config/routes.rb
|
102
|
+
- spec/dummy/config.ru
|
103
|
+
- spec/dummy/public/404.html
|
104
|
+
- spec/dummy/public/422.html
|
105
|
+
- spec/dummy/public/500.html
|
106
|
+
- spec/dummy/public/favicon.ico
|
107
|
+
- spec/dummy/Rakefile
|
108
|
+
- spec/dummy/script/rails
|
109
|
+
- spec/models/comm_evt_purpose_spec.rb
|
110
|
+
- spec/models/comm_evt_purpose_type_spec.rb
|
111
|
+
- spec/models/comm_evt_status_spec.rb
|
112
|
+
- spec/models/comm_evt_status_type_spec.rb
|
113
|
+
- spec/models/communication_event_spec.rb
|
114
|
+
- spec/spec_helper.rb
|
115
|
+
homepage: http://development.compassagile.com
|
116
|
+
licenses: []
|
117
|
+
post_install_message:
|
118
|
+
rdoc_options: []
|
119
|
+
require_paths:
|
120
|
+
- lib
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
requirements: []
|
134
|
+
rubyforge_project:
|
135
|
+
rubygems_version: 1.8.10
|
136
|
+
signing_key:
|
137
|
+
specification_version: 3
|
138
|
+
summary: ErpCommunicationEvents add models and services to CompassAE's ERP core to
|
139
|
+
handle contacts between Business Parties.
|
140
|
+
test_files:
|
141
|
+
- spec/dummy/app/assets/javascripts/application.js
|
142
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
143
|
+
- spec/dummy/app/controllers/application_controller.rb
|
144
|
+
- spec/dummy/app/helpers/application_helper.rb
|
145
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
146
|
+
- spec/dummy/config/application.rb
|
147
|
+
- spec/dummy/config/boot.rb
|
148
|
+
- spec/dummy/config/database.yml
|
149
|
+
- spec/dummy/config/environment.rb
|
150
|
+
- spec/dummy/config/environments/spec.rb
|
151
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
152
|
+
- spec/dummy/config/initializers/inflections.rb
|
153
|
+
- spec/dummy/config/initializers/mime_types.rb
|
154
|
+
- spec/dummy/config/initializers/secret_token.rb
|
155
|
+
- spec/dummy/config/initializers/session_store.rb
|
156
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
157
|
+
- spec/dummy/config/locales/en.yml
|
158
|
+
- spec/dummy/config/routes.rb
|
159
|
+
- spec/dummy/config.ru
|
160
|
+
- spec/dummy/public/404.html
|
161
|
+
- spec/dummy/public/422.html
|
162
|
+
- spec/dummy/public/500.html
|
163
|
+
- spec/dummy/public/favicon.ico
|
164
|
+
- spec/dummy/Rakefile
|
165
|
+
- spec/dummy/script/rails
|
166
|
+
- spec/models/comm_evt_purpose_spec.rb
|
167
|
+
- spec/models/comm_evt_purpose_type_spec.rb
|
168
|
+
- spec/models/comm_evt_status_spec.rb
|
169
|
+
- spec/models/comm_evt_status_type_spec.rb
|
170
|
+
- spec/models/communication_event_spec.rb
|
171
|
+
- spec/spec_helper.rb
|