erp_agreements 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ class Agreement < ActiveRecord::Base
4
4
  has_many :agreement_items
5
5
  has_many :agreement_party_roles
6
6
  has_many :parties, :through => :agreement_party_roles
7
- belongs_to :agreement_record, :polymorphic => true, :dependent => :destroy
7
+ belongs_to :agreement_record, :polymorphic => true
8
8
 
9
9
  alias :items :agreement_items
10
10
 
@@ -1,4 +1,6 @@
1
1
  class AgreementType < ActiveRecord::Base
2
2
  acts_as_nested_set
3
3
  include ErpTechSvcs::Utils::DefaultNestedSetMethods
4
+
5
+ has_many :agreements
4
6
  end
@@ -1,6 +1,12 @@
1
1
  module ErpAgreements
2
2
  class Engine < Rails::Engine
3
3
  isolate_namespace ErpAgreements
4
-
4
+
5
+ #TODO
6
+ #this will be removed once rails 3.2 adds the ability to set the order of engine loading
7
+ engine = self
8
+ config.to_prepare do
9
+ ErpBaseErpSvcs.register_compass_ae_engine(engine)
10
+ end
5
11
  end
6
12
  end
@@ -1,3 +1,9 @@
1
1
  module ErpAgreements
2
- VERSION = "3.0.0"
2
+ module VERSION #:nodoc:
3
+ MAJOR = 3
4
+ MINOR = 0
5
+ TINY = 1
6
+
7
+ STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
+ end
3
9
  end
@@ -1,3 +1,4 @@
1
+ require "erp_agreements/version"
1
2
  require "erp_agreements/engine"
2
3
 
3
4
  module ErpAgreements
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_agreements
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,41 +9,30 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-06 00:00:00.000000000Z
12
+ date: 2012-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: erp_base_erp_svcs
16
- requirement: &2157188160 !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: *2157188160
25
14
  - !ruby/object:Gem::Dependency
26
15
  name: erp_tech_svcs
27
- requirement: &2157187560 !ruby/object:Gem::Requirement
16
+ requirement: &69222400 !ruby/object:Gem::Requirement
28
17
  none: false
29
18
  requirements:
30
- - - ! '>='
19
+ - - =
31
20
  - !ruby/object:Gem::Version
32
- version: '0'
21
+ version: 3.0.1
33
22
  type: :runtime
34
23
  prerelease: false
35
- version_requirements: *2157187560
24
+ version_requirements: *69222400
36
25
  - !ruby/object:Gem::Dependency
37
26
  name: erp_dev_svcs
38
- requirement: &2157186740 !ruby/object:Gem::Requirement
27
+ requirement: &69220970 !ruby/object:Gem::Requirement
39
28
  none: false
40
29
  requirements:
41
- - - ! '>='
30
+ - - =
42
31
  - !ruby/object:Gem::Version
43
- version: '0'
32
+ version: 3.0.1
44
33
  type: :development
45
34
  prerelease: false
46
- version_requirements: *2157186740
35
+ version_requirements: *69220970
47
36
  description: The Agreements Engine implements model classes for storing Contracts
48
37
  and Agreements data, including AgreementItems, which represent the terms of the
49
38
  Agreement. Contracts are a special case of Agreements, specifically Agreements which
@@ -55,23 +44,23 @@ executables: []
55
44
  extensions: []
56
45
  extra_rdoc_files: []
57
46
  files:
58
- - app/assets/javascripts/erp_agreements/application.js
59
47
  - app/assets/stylesheets/erp_agreements/application.css
60
- - app/controllers/erp_agreements/application_controller.rb
61
- - app/helpers/erp_agreements/application_helper.rb
62
- - app/models/agreement.rb
48
+ - app/assets/javascripts/erp_agreements/application.js
49
+ - app/views/layouts/erp_agreements/application.html.erb
50
+ - app/models/loyalty_program_code.rb
63
51
  - app/models/agreement_item.rb
64
- - app/models/agreement_item_type.rb
65
- - app/models/agreement_party_role.rb
66
- - app/models/agreement_relationship.rb
52
+ - app/models/agreement_type.rb
67
53
  - app/models/agreement_reln_type.rb
68
54
  - app/models/agreement_role_type.rb
69
- - app/models/agreement_type.rb
55
+ - app/models/agreement_item_type.rb
56
+ - app/models/agreement_relationship.rb
57
+ - app/models/agreement.rb
58
+ - app/models/agreement_party_role.rb
70
59
  - app/models/extensions/party.rb
71
- - app/models/loyalty_program_code.rb
72
- - app/views/layouts/erp_agreements/application.html.erb
73
- - config/initializers/has_many_polymorphic.rb
60
+ - app/helpers/erp_agreements/application_helper.rb
61
+ - app/controllers/erp_agreements/application_controller.rb
74
62
  - config/routes.rb
63
+ - config/initializers/has_many_polymorphic.rb
75
64
  - db/migrate/20080805000070_agreements_services.rb
76
65
  - db/migrate/20080805000071_agreements_services_indexes.rb
77
66
  - lib/erp_agreements/engine.rb
@@ -81,47 +70,47 @@ files:
81
70
  - GPL-3-LICENSE
82
71
  - Rakefile
83
72
  - README.rdoc
84
- - spec/dummy/app/assets/javascripts/application.js
73
+ - spec/factories/agreement_item.rb
74
+ - spec/factories/agreement_reln_type.rb
75
+ - spec/factories/agreement_item_type.rb
76
+ - spec/factories/agreement_relationship.rb
77
+ - spec/factories/agreement.rb
78
+ - spec/factories/agreement_party_role.rb
79
+ - spec/spec_helper.rb
80
+ - spec/models/agreement_item_type_spec.rb
81
+ - spec/models/agreement_type_spec.rb
82
+ - spec/models/agreement_party_role_spec.rb
83
+ - spec/models/agreement_item_spec.rb
84
+ - spec/models/loyalty_program_code_spec.rb
85
+ - spec/models/agreement_role_type_spec.rb
86
+ - spec/models/agreement_spec.rb
87
+ - spec/models/agreement_reln_type_spec.rb
88
+ - spec/models/agreement_relationship_spec.rb
89
+ - spec/dummy/public/422.html
90
+ - spec/dummy/public/404.html
91
+ - spec/dummy/public/500.html
92
+ - spec/dummy/public/favicon.ico
93
+ - spec/dummy/config.ru
85
94
  - spec/dummy/app/assets/stylesheets/application.css
86
- - spec/dummy/app/controllers/application_controller.rb
87
- - spec/dummy/app/helpers/application_helper.rb
95
+ - spec/dummy/app/assets/javascripts/application.js
88
96
  - spec/dummy/app/views/layouts/application.html.erb
89
- - spec/dummy/config/application.rb
97
+ - spec/dummy/app/helpers/application_helper.rb
98
+ - spec/dummy/app/controllers/application_controller.rb
99
+ - spec/dummy/config/routes.rb
100
+ - spec/dummy/config/locales/en.yml
90
101
  - spec/dummy/config/boot.rb
91
- - spec/dummy/config/database.yml
92
- - spec/dummy/config/environment.rb
102
+ - spec/dummy/config/application.rb
93
103
  - spec/dummy/config/environments/spec.rb
94
- - spec/dummy/config/initializers/backtrace_silencers.rb
95
- - spec/dummy/config/initializers/inflections.rb
96
104
  - spec/dummy/config/initializers/mime_types.rb
97
- - spec/dummy/config/initializers/secret_token.rb
98
105
  - spec/dummy/config/initializers/session_store.rb
106
+ - spec/dummy/config/initializers/backtrace_silencers.rb
99
107
  - 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
108
+ - spec/dummy/config/initializers/inflections.rb
109
+ - spec/dummy/config/initializers/secret_token.rb
110
+ - spec/dummy/config/environment.rb
111
+ - spec/dummy/config/database.yml
107
112
  - spec/dummy/Rakefile
108
113
  - spec/dummy/script/rails
109
- - spec/factories/agreement.rb
110
- - spec/factories/agreement_item.rb
111
- - spec/factories/agreement_item_type.rb
112
- - spec/factories/agreement_party_role.rb
113
- - spec/factories/agreement_relationship.rb
114
- - spec/factories/agreement_reln_type.rb
115
- - spec/models/agreement_item_spec.rb
116
- - spec/models/agreement_item_type_spec.rb
117
- - spec/models/agreement_party_role_spec.rb
118
- - spec/models/agreement_relationship_spec.rb
119
- - spec/models/agreement_reln_type_spec.rb
120
- - spec/models/agreement_role_type_spec.rb
121
- - spec/models/agreement_spec.rb
122
- - spec/models/agreement_type_spec.rb
123
- - spec/models/loyalty_program_code_spec.rb
124
- - spec/spec_helper.rb
125
114
  homepage: http://development.compassagile.com
126
115
  licenses: []
127
116
  post_install_message:
@@ -148,44 +137,44 @@ specification_version: 3
148
137
  summary: The Agreements Engine implements model classes for storing Contracts and
149
138
  Agreements data, including AgreementItems, which represent the terms of the Agreement.
150
139
  test_files:
151
- - spec/dummy/app/assets/javascripts/application.js
140
+ - spec/factories/agreement_item.rb
141
+ - spec/factories/agreement_reln_type.rb
142
+ - spec/factories/agreement_item_type.rb
143
+ - spec/factories/agreement_relationship.rb
144
+ - spec/factories/agreement.rb
145
+ - spec/factories/agreement_party_role.rb
146
+ - spec/spec_helper.rb
147
+ - spec/models/agreement_item_type_spec.rb
148
+ - spec/models/agreement_type_spec.rb
149
+ - spec/models/agreement_party_role_spec.rb
150
+ - spec/models/agreement_item_spec.rb
151
+ - spec/models/loyalty_program_code_spec.rb
152
+ - spec/models/agreement_role_type_spec.rb
153
+ - spec/models/agreement_spec.rb
154
+ - spec/models/agreement_reln_type_spec.rb
155
+ - spec/models/agreement_relationship_spec.rb
156
+ - spec/dummy/public/422.html
157
+ - spec/dummy/public/404.html
158
+ - spec/dummy/public/500.html
159
+ - spec/dummy/public/favicon.ico
160
+ - spec/dummy/config.ru
152
161
  - spec/dummy/app/assets/stylesheets/application.css
153
- - spec/dummy/app/controllers/application_controller.rb
154
- - spec/dummy/app/helpers/application_helper.rb
162
+ - spec/dummy/app/assets/javascripts/application.js
155
163
  - spec/dummy/app/views/layouts/application.html.erb
156
- - spec/dummy/config/application.rb
164
+ - spec/dummy/app/helpers/application_helper.rb
165
+ - spec/dummy/app/controllers/application_controller.rb
166
+ - spec/dummy/config/routes.rb
167
+ - spec/dummy/config/locales/en.yml
157
168
  - spec/dummy/config/boot.rb
158
- - spec/dummy/config/database.yml
159
- - spec/dummy/config/environment.rb
169
+ - spec/dummy/config/application.rb
160
170
  - spec/dummy/config/environments/spec.rb
161
- - spec/dummy/config/initializers/backtrace_silencers.rb
162
- - spec/dummy/config/initializers/inflections.rb
163
171
  - spec/dummy/config/initializers/mime_types.rb
164
- - spec/dummy/config/initializers/secret_token.rb
165
172
  - spec/dummy/config/initializers/session_store.rb
173
+ - spec/dummy/config/initializers/backtrace_silencers.rb
166
174
  - spec/dummy/config/initializers/wrap_parameters.rb
167
- - spec/dummy/config/locales/en.yml
168
- - spec/dummy/config/routes.rb
169
- - spec/dummy/config.ru
170
- - spec/dummy/public/404.html
171
- - spec/dummy/public/422.html
172
- - spec/dummy/public/500.html
173
- - spec/dummy/public/favicon.ico
175
+ - spec/dummy/config/initializers/inflections.rb
176
+ - spec/dummy/config/initializers/secret_token.rb
177
+ - spec/dummy/config/environment.rb
178
+ - spec/dummy/config/database.yml
174
179
  - spec/dummy/Rakefile
175
180
  - spec/dummy/script/rails
176
- - spec/factories/agreement.rb
177
- - spec/factories/agreement_item.rb
178
- - spec/factories/agreement_item_type.rb
179
- - spec/factories/agreement_party_role.rb
180
- - spec/factories/agreement_relationship.rb
181
- - spec/factories/agreement_reln_type.rb
182
- - spec/models/agreement_item_spec.rb
183
- - spec/models/agreement_item_type_spec.rb
184
- - spec/models/agreement_party_role_spec.rb
185
- - spec/models/agreement_relationship_spec.rb
186
- - spec/models/agreement_reln_type_spec.rb
187
- - spec/models/agreement_role_type_spec.rb
188
- - spec/models/agreement_spec.rb
189
- - spec/models/agreement_type_spec.rb
190
- - spec/models/loyalty_program_code_spec.rb
191
- - spec/spec_helper.rb