erp_base_erp_svcs 3.0.7 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/category.rb +2 -1
- data/app/models/category_classification.rb +2 -0
- data/app/models/compass_ae_instance.rb +1 -1
- data/app/models/contact.rb +34 -32
- data/app/models/contact_purpose.rb +6 -4
- data/app/models/contact_type.rb +3 -1
- data/app/models/currency.rb +6 -4
- data/app/models/descriptive_asset.rb +2 -0
- data/app/models/email_address.rb +2 -0
- data/app/models/geo_country.rb +2 -0
- data/app/models/geo_zone.rb +2 -0
- data/app/models/individual.rb +2 -0
- data/app/models/iso_country_code.rb +0 -1
- data/app/models/money.rb +1 -0
- data/app/models/note.rb +2 -0
- data/app/models/note_type.rb +2 -0
- data/app/models/organization.rb +2 -0
- data/app/models/party.rb +4 -3
- data/app/models/party_relationship.rb +6 -5
- data/app/models/party_role.rb +7 -5
- data/app/models/phone_number.rb +2 -0
- data/app/models/postal_address.rb +2 -0
- data/app/models/relationship_type.rb +7 -5
- data/app/models/role_type.rb +2 -0
- data/app/models/valid_note_type.rb +2 -0
- data/app/models/view_type.rb +2 -0
- data/db/data_migrations/20110913145838_setup_compass_ae_instance.rb +1 -1
- data/db/migrate/20080805000020_base_erp_services.rb +222 -222
- data/lib/erp_base_erp_svcs/engine.rb +2 -0
- data/lib/erp_base_erp_svcs/extensions/active_record/migration.rb +39 -0
- data/lib/erp_base_erp_svcs/extensions.rb +1 -2
- data/lib/erp_base_erp_svcs/version.rb +2 -2
- data/lib/erp_base_erp_svcs.rb +15 -15
- data/lib/tasks/erp_base_erp_svcs_tasks.rake +58 -23
- data/spec/dummy/config/application.rb +6 -0
- data/spec/dummy/config/environments/spec.rb +3 -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/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +12 -0
- data/spec/dummy/db/migrate/20130107214414_base_erp_services.erp_base_erp_svcs.rb +461 -0
- data/spec/dummy/db/schema.rb +383 -0
- data/spec/dummy/db/spec.sqlite3 +0 -0
- data/spec/dummy/log/spec.log +17576 -0
- data/spec/models/email_address_spec.rb +1 -1
- data/spec/models/party_spec.rb +19 -19
- data/spec/spec_helper.rb +14 -5
- metadata +70 -149
- data/db/migrate/20110913145329_create_compass_ae_instance.rb +0 -15
- data/db/migrate/upgrade/20110907171257_add_notes.rb +0 -63
- data/lib/erp_base_erp_svcs/extensions/active_record/data_migrator.rb +0 -46
- data/lib/erp_base_erp_svcs/extensions/active_record/migrator.rb +0 -76
data/spec/models/party_spec.rb
CHANGED
@@ -10,41 +10,41 @@ describe Party do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
it "has method to check for phone number passing in a number" do
|
13
|
-
party =
|
14
|
-
contact_purpose =
|
13
|
+
party = FactoryGirl.create(:party)
|
14
|
+
contact_purpose = FactoryGirl.create(:contact_purpose, :description => 'billing', :internal_identifier => 'billing')
|
15
15
|
party.update_or_add_contact_with_purpose(PhoneNumber, contact_purpose, :phone_number => '123-123-1234')
|
16
16
|
party.has_phone_number?('123-123-1234').should eq true
|
17
17
|
end
|
18
18
|
|
19
19
|
it "has method to check for zip code passing in a zip code" do
|
20
|
-
party =
|
21
|
-
contact_purpose =
|
20
|
+
party = FactoryGirl.create(:party)
|
21
|
+
contact_purpose = FactoryGirl.create(:contact_purpose, :description => 'billing', :internal_identifier => 'billing')
|
22
22
|
party.update_or_add_contact_with_purpose(PostalAddress, contact_purpose, :zip => '34711')
|
23
23
|
party.has_zip_code?('34711').should eq true
|
24
24
|
end
|
25
25
|
|
26
26
|
it "has method to_label to return description" do
|
27
|
-
party =
|
27
|
+
party = FactoryGirl.create(:party, :description => 'Joe Smith')
|
28
28
|
party.to_label.should eq "Joe Smith"
|
29
29
|
end
|
30
30
|
|
31
31
|
it "has method to_s to return description" do
|
32
|
-
party =
|
32
|
+
party = FactoryGirl.create(:party, :description => 'Joe Smith')
|
33
33
|
party.to_s.should eq "Joe Smith"
|
34
34
|
end
|
35
35
|
|
36
36
|
it "overrids respond_to? and method_missing to find contacts" do
|
37
|
-
party =
|
38
|
-
contact_purpose =
|
37
|
+
party = FactoryGirl.create(:party)
|
38
|
+
contact_purpose = FactoryGirl.create(:contact_purpose, :description => 'billing', :internal_identifier => 'billing')
|
39
39
|
party.update_or_add_contact_with_purpose(PhoneNumber, contact_purpose, :phone_number => '123-123-1234')
|
40
40
|
party.billing_phone_number.should_not eq nil
|
41
41
|
party.billing_phone_number.phone_number.should eq '123-123-1234'
|
42
42
|
end
|
43
43
|
|
44
44
|
it "has method to get all contacts by contact mechanism" do
|
45
|
-
party =
|
46
|
-
contact_purpose_billing =
|
47
|
-
contact_purpose_home =
|
45
|
+
party = FactoryGirl.create(:party)
|
46
|
+
contact_purpose_billing = FactoryGirl.create(:contact_purpose, :description => 'billing', :internal_identifier => 'billing')
|
47
|
+
contact_purpose_home = FactoryGirl.create(:contact_purpose, :description => 'home', :internal_identifier => 'home')
|
48
48
|
party.update_or_add_contact_with_purpose(PhoneNumber, contact_purpose_billing, :phone_number => '123-123-1234')
|
49
49
|
party.update_or_add_contact_with_purpose(PhoneNumber, contact_purpose_home, :phone_number => '123-123-1234')
|
50
50
|
|
@@ -52,24 +52,24 @@ describe Party do
|
|
52
52
|
end
|
53
53
|
|
54
54
|
it "has method to find contact with a contact purpose and can take internal identifier of contact purpose" do
|
55
|
-
party =
|
56
|
-
contact_purpose_billing =
|
55
|
+
party = FactoryGirl.create(:party)
|
56
|
+
contact_purpose_billing = FactoryGirl.create(:contact_purpose, :description => 'billing', :internal_identifier => 'billing')
|
57
57
|
party.update_or_add_contact_with_purpose(PhoneNumber, contact_purpose_billing, :phone_number => '123-123-1234')
|
58
58
|
|
59
59
|
party.find_contact_with_purpose(PhoneNumber, 'billing').contact_mechanism.phone_number.should eq '123-123-1234'
|
60
60
|
end
|
61
61
|
|
62
62
|
it "has method to find contact with a contact purpose and can take a contact purpose instance" do
|
63
|
-
party =
|
64
|
-
contact_purpose_billing =
|
63
|
+
party = FactoryGirl.create(:party)
|
64
|
+
contact_purpose_billing = FactoryGirl.create(:contact_purpose, :description => 'billing', :internal_identifier => 'billing')
|
65
65
|
party.update_or_add_contact_with_purpose(PhoneNumber, contact_purpose_billing, :phone_number => '123-123-1234')
|
66
66
|
|
67
67
|
party.find_contact_with_purpose(PhoneNumber, contact_purpose_billing).contact_mechanism.phone_number.should eq '123-123-1234'
|
68
68
|
end
|
69
69
|
|
70
70
|
it "can update contact" do
|
71
|
-
party =
|
72
|
-
contact_purpose_billing =
|
71
|
+
party = FactoryGirl.create(:party)
|
72
|
+
contact_purpose_billing = FactoryGirl.create(:contact_purpose, :description => 'billing', :internal_identifier => 'billing')
|
73
73
|
party.update_or_add_contact_with_purpose(PhoneNumber, contact_purpose_billing, :phone_number => '123-123-1234')
|
74
74
|
|
75
75
|
party.find_contact_with_purpose(PhoneNumber, contact_purpose_billing).contact_mechanism.phone_number.should eq '123-123-1234'
|
@@ -80,8 +80,8 @@ describe Party do
|
|
80
80
|
end
|
81
81
|
|
82
82
|
it "should update contact if contact already exists" do
|
83
|
-
party =
|
84
|
-
contact_purpose_billing =
|
83
|
+
party = FactoryGirl.create(:party)
|
84
|
+
contact_purpose_billing = FactoryGirl.create(:contact_purpose, :description => 'billing', :internal_identifier => 'billing')
|
85
85
|
party.update_or_add_contact_with_purpose(PhoneNumber, contact_purpose_billing, :phone_number => '123-123-1234')
|
86
86
|
|
87
87
|
current_contact = party.find_contact_with_purpose(PhoneNumber, contact_purpose_billing)
|
data/spec/spec_helper.rb
CHANGED
@@ -31,22 +31,30 @@ Spork.prefork do
|
|
31
31
|
|
32
32
|
RSpec.configure do |config|
|
33
33
|
config.use_transactional_fixtures = true
|
34
|
+
config.include FactoryGirl::Syntax::Methods
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
37
38
|
Spork.each_run do
|
38
|
-
FactoryGirl.find_definitions
|
39
|
-
|
40
39
|
#We have to execute the migrations from dummy app directory
|
41
40
|
Dir.chdir DUMMY_APP_ROOT
|
42
|
-
`rake db:drop`
|
41
|
+
`rake db:drop RAILS_ENV=spec`
|
43
42
|
Dir.chdir ENGINE_RAILS_ROOT
|
44
43
|
|
45
|
-
#We have to execute the
|
44
|
+
#We have to execute the migratiapp:compass_ae:install:data_migrationsons from dummy app directory
|
46
45
|
Dir.chdir DUMMY_APP_ROOT
|
47
|
-
|
46
|
+
|
47
|
+
|
48
|
+
`rake compass_ae:install:migrations RAILS_ENV=spec`
|
49
|
+
`rake compass_ae:install:data_migrations RAILS_ENV=spec`
|
50
|
+
`rake db:migrate RAILS_ENV=spec`
|
51
|
+
`rake db:migrate_data RAILS_ENV=spec`
|
48
52
|
Dir.chdir ENGINE_RAILS_ROOT
|
49
53
|
|
54
|
+
Rails::Application::Railties.engines.map{|p| p.config.root.to_s}.each do |engine_dir|
|
55
|
+
Dir.glob(File.join(engine_dir,'spec','factories','*')) {|file| require file} if File.directory? File.join(engine_dir,'spec','factories')
|
56
|
+
end
|
57
|
+
|
50
58
|
require 'simplecov'
|
51
59
|
SimpleCov.start 'rails' do
|
52
60
|
add_filter "spec/"
|
@@ -54,4 +62,5 @@ Spork.each_run do
|
|
54
62
|
#Need to explictly load the files in lib/ until we figure out how to
|
55
63
|
#get rails to autoload them for spec like it used to...
|
56
64
|
Dir[File.join(ENGINE_RAILS_ROOT, "lib/**/*.rb")].each {|f| load f}
|
65
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "app/models/extensions/**/*.rb")].each {|f| load f}
|
57
66
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_base_erp_svcs
|
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,80 +9,16 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 3.1.0
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 3.1.0
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: actionmailer
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 3.1.0
|
38
|
-
type: :runtime
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 3.1.0
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: actionpack
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 3.1.0
|
54
|
-
type: :runtime
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 3.1.0
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: activerecord
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 3.1.0
|
70
|
-
type: :runtime
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 3.1.0
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: activeresource
|
15
|
+
name: attr_encrypted
|
80
16
|
requirement: !ruby/object:Gem::Requirement
|
81
17
|
none: false
|
82
18
|
requirements:
|
83
19
|
- - ~>
|
84
20
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
21
|
+
version: 1.2.0
|
86
22
|
type: :runtime
|
87
23
|
prerelease: false
|
88
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -90,15 +26,15 @@ dependencies:
|
|
90
26
|
requirements:
|
91
27
|
- - ~>
|
92
28
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
29
|
+
version: 1.2.0
|
94
30
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
31
|
+
name: awesome_nested_set
|
96
32
|
requirement: !ruby/object:Gem::Requirement
|
97
33
|
none: false
|
98
34
|
requirements:
|
99
35
|
- - ~>
|
100
36
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
37
|
+
version: 2.1.3
|
102
38
|
type: :runtime
|
103
39
|
prerelease: false
|
104
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,15 +42,15 @@ dependencies:
|
|
106
42
|
requirements:
|
107
43
|
- - ~>
|
108
44
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
45
|
+
version: 2.1.3
|
110
46
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
47
|
+
name: data_migrator
|
112
48
|
requirement: !ruby/object:Gem::Requirement
|
113
49
|
none: false
|
114
50
|
requirements:
|
115
51
|
- - ~>
|
116
52
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
53
|
+
version: '2.0'
|
118
54
|
type: :runtime
|
119
55
|
prerelease: false
|
120
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -122,47 +58,31 @@ dependencies:
|
|
122
58
|
requirements:
|
123
59
|
- - ~>
|
124
60
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: attr_encrypted
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - '='
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 1.2.0
|
134
|
-
type: :runtime
|
135
|
-
prerelease: false
|
136
|
-
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- - '='
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: 1.2.0
|
61
|
+
version: '2.0'
|
142
62
|
- !ruby/object:Gem::Dependency
|
143
|
-
name:
|
63
|
+
name: has_many_polymorphic
|
144
64
|
requirement: !ruby/object:Gem::Requirement
|
145
65
|
none: false
|
146
66
|
requirements:
|
147
|
-
- - '
|
67
|
+
- - ! '>='
|
148
68
|
- !ruby/object:Gem::Version
|
149
|
-
version: 2.0.
|
69
|
+
version: 2.0.1
|
150
70
|
type: :runtime
|
151
71
|
prerelease: false
|
152
72
|
version_requirements: !ruby/object:Gem::Requirement
|
153
73
|
none: false
|
154
74
|
requirements:
|
155
|
-
- - '
|
75
|
+
- - ! '>='
|
156
76
|
- !ruby/object:Gem::Version
|
157
|
-
version: 2.0.
|
77
|
+
version: 2.0.1
|
158
78
|
- !ruby/object:Gem::Dependency
|
159
|
-
name:
|
79
|
+
name: uuid
|
160
80
|
requirement: !ruby/object:Gem::Requirement
|
161
81
|
none: false
|
162
82
|
requirements:
|
163
83
|
- - '='
|
164
84
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
85
|
+
version: 2.3.5
|
166
86
|
type: :runtime
|
167
87
|
prerelease: false
|
168
88
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -170,39 +90,23 @@ dependencies:
|
|
170
90
|
requirements:
|
171
91
|
- - '='
|
172
92
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
174
|
-
- !ruby/object:Gem::Dependency
|
175
|
-
name: has_many_polymorphic
|
176
|
-
requirement: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
|
-
requirements:
|
179
|
-
- - ! '>='
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
version: 2.0.1
|
182
|
-
type: :runtime
|
183
|
-
prerelease: false
|
184
|
-
version_requirements: !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
|
-
requirements:
|
187
|
-
- - ! '>='
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: 2.0.1
|
93
|
+
version: 2.3.5
|
190
94
|
- !ruby/object:Gem::Dependency
|
191
|
-
name:
|
95
|
+
name: cucumber-rails
|
192
96
|
requirement: !ruby/object:Gem::Requirement
|
193
97
|
none: false
|
194
98
|
requirements:
|
195
|
-
- -
|
99
|
+
- - ~>
|
196
100
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
198
|
-
type: :
|
101
|
+
version: 1.3.0
|
102
|
+
type: :development
|
199
103
|
prerelease: false
|
200
104
|
version_requirements: !ruby/object:Gem::Requirement
|
201
105
|
none: false
|
202
106
|
requirements:
|
203
|
-
- -
|
107
|
+
- - ~>
|
204
108
|
- !ruby/object:Gem::Version
|
205
|
-
version:
|
109
|
+
version: 1.3.0
|
206
110
|
- !ruby/object:Gem::Dependency
|
207
111
|
name: database_cleaner
|
208
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -224,97 +128,97 @@ dependencies:
|
|
224
128
|
requirement: !ruby/object:Gem::Requirement
|
225
129
|
none: false
|
226
130
|
requirements:
|
227
|
-
- -
|
131
|
+
- - ~>
|
228
132
|
- !ruby/object:Gem::Version
|
229
|
-
version: 1.
|
133
|
+
version: 4.1.0
|
230
134
|
type: :development
|
231
135
|
prerelease: false
|
232
136
|
version_requirements: !ruby/object:Gem::Requirement
|
233
137
|
none: false
|
234
138
|
requirements:
|
235
|
-
- -
|
139
|
+
- - ~>
|
236
140
|
- !ruby/object:Gem::Version
|
237
|
-
version: 1.
|
141
|
+
version: 4.1.0
|
238
142
|
- !ruby/object:Gem::Dependency
|
239
143
|
name: rspec-rails
|
240
144
|
requirement: !ruby/object:Gem::Requirement
|
241
145
|
none: false
|
242
146
|
requirements:
|
243
|
-
- -
|
147
|
+
- - ~>
|
244
148
|
- !ruby/object:Gem::Version
|
245
|
-
version:
|
149
|
+
version: 2.12.0
|
246
150
|
type: :development
|
247
151
|
prerelease: false
|
248
152
|
version_requirements: !ruby/object:Gem::Requirement
|
249
153
|
none: false
|
250
154
|
requirements:
|
251
|
-
- -
|
155
|
+
- - ~>
|
252
156
|
- !ruby/object:Gem::Version
|
253
|
-
version:
|
157
|
+
version: 2.12.0
|
254
158
|
- !ruby/object:Gem::Dependency
|
255
159
|
name: simplecov
|
256
160
|
requirement: !ruby/object:Gem::Requirement
|
257
161
|
none: false
|
258
162
|
requirements:
|
259
|
-
- -
|
163
|
+
- - ~>
|
260
164
|
- !ruby/object:Gem::Version
|
261
|
-
version:
|
165
|
+
version: 0.7.1
|
262
166
|
type: :development
|
263
167
|
prerelease: false
|
264
168
|
version_requirements: !ruby/object:Gem::Requirement
|
265
169
|
none: false
|
266
170
|
requirements:
|
267
|
-
- -
|
171
|
+
- - ~>
|
268
172
|
- !ruby/object:Gem::Version
|
269
|
-
version:
|
173
|
+
version: 0.7.1
|
270
174
|
- !ruby/object:Gem::Dependency
|
271
175
|
name: spork
|
272
176
|
requirement: !ruby/object:Gem::Requirement
|
273
177
|
none: false
|
274
178
|
requirements:
|
275
|
-
- -
|
179
|
+
- - ~>
|
276
180
|
- !ruby/object:Gem::Version
|
277
|
-
version: 0.9.
|
181
|
+
version: 0.9.2
|
278
182
|
type: :development
|
279
183
|
prerelease: false
|
280
184
|
version_requirements: !ruby/object:Gem::Requirement
|
281
185
|
none: false
|
282
186
|
requirements:
|
283
|
-
- -
|
187
|
+
- - ~>
|
284
188
|
- !ruby/object:Gem::Version
|
285
|
-
version: 0.9.
|
189
|
+
version: 0.9.2
|
286
190
|
- !ruby/object:Gem::Dependency
|
287
191
|
name: sqlite3
|
288
192
|
requirement: !ruby/object:Gem::Requirement
|
289
193
|
none: false
|
290
194
|
requirements:
|
291
|
-
- -
|
195
|
+
- - ~>
|
292
196
|
- !ruby/object:Gem::Version
|
293
|
-
version: 1.3.
|
197
|
+
version: 1.3.6
|
294
198
|
type: :development
|
295
199
|
prerelease: false
|
296
200
|
version_requirements: !ruby/object:Gem::Requirement
|
297
201
|
none: false
|
298
202
|
requirements:
|
299
|
-
- -
|
203
|
+
- - ~>
|
300
204
|
- !ruby/object:Gem::Version
|
301
|
-
version: 1.3.
|
205
|
+
version: 1.3.6
|
302
206
|
- !ruby/object:Gem::Dependency
|
303
207
|
name: watchr
|
304
208
|
requirement: !ruby/object:Gem::Requirement
|
305
209
|
none: false
|
306
210
|
requirements:
|
307
|
-
- -
|
211
|
+
- - ~>
|
308
212
|
- !ruby/object:Gem::Version
|
309
|
-
version: '0'
|
213
|
+
version: '0.7'
|
310
214
|
type: :development
|
311
215
|
prerelease: false
|
312
216
|
version_requirements: !ruby/object:Gem::Requirement
|
313
217
|
none: false
|
314
218
|
requirements:
|
315
|
-
- -
|
219
|
+
- - ~>
|
316
220
|
- !ruby/object:Gem::Version
|
317
|
-
version: '0'
|
221
|
+
version: '0.7'
|
318
222
|
description: contains an implementation of the ubiquitous 'party model' for managing
|
319
223
|
people, organizations, roles, relationships and contact information. The models
|
320
224
|
in this library are designed to be useful in a variety of circumstances, including
|
@@ -363,19 +267,16 @@ files:
|
|
363
267
|
- db/data_sets/geo_countries.yml
|
364
268
|
- db/data_sets/geo_zones.yml
|
365
269
|
- db/migrate/20080805000020_base_erp_services.rb
|
366
|
-
- db/migrate/20110913145329_create_compass_ae_instance.rb
|
367
|
-
- db/migrate/upgrade/20110907171257_add_notes.rb
|
368
270
|
- lib/erp_base_erp_svcs/ar_fixtures.rb
|
369
271
|
- lib/erp_base_erp_svcs/config.rb
|
370
272
|
- lib/erp_base_erp_svcs/engine.rb
|
371
273
|
- lib/erp_base_erp_svcs/extensions/active_record/acts_as_category.rb
|
372
274
|
- lib/erp_base_erp_svcs/extensions/active_record/acts_as_erp_type.rb
|
373
275
|
- lib/erp_base_erp_svcs/extensions/active_record/acts_as_note_type.rb
|
374
|
-
- lib/erp_base_erp_svcs/extensions/active_record/data_migrator.rb
|
375
276
|
- lib/erp_base_erp_svcs/extensions/active_record/has_contact.rb
|
376
277
|
- lib/erp_base_erp_svcs/extensions/active_record/has_notes.rb
|
377
278
|
- lib/erp_base_erp_svcs/extensions/active_record/is_describable.rb
|
378
|
-
- lib/erp_base_erp_svcs/extensions/active_record/
|
279
|
+
- lib/erp_base_erp_svcs/extensions/active_record/migration.rb
|
379
280
|
- lib/erp_base_erp_svcs/extensions/active_record/sti_instantiation.rb
|
380
281
|
- lib/erp_base_erp_svcs/extensions/active_record/to_hash.rb
|
381
282
|
- lib/erp_base_erp_svcs/extensions/core/array.rb
|
@@ -411,6 +312,13 @@ files:
|
|
411
312
|
- spec/dummy/config/locales/en.yml
|
412
313
|
- spec/dummy/config/routes.rb
|
413
314
|
- spec/dummy/config.ru
|
315
|
+
- spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
|
316
|
+
- spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
|
317
|
+
- spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
|
318
|
+
- spec/dummy/db/migrate/20130107214414_base_erp_services.erp_base_erp_svcs.rb
|
319
|
+
- spec/dummy/db/schema.rb
|
320
|
+
- spec/dummy/db/spec.sqlite3
|
321
|
+
- spec/dummy/log/spec.log
|
414
322
|
- spec/dummy/public/404.html
|
415
323
|
- spec/dummy/public/422.html
|
416
324
|
- spec/dummy/public/500.html
|
@@ -462,12 +370,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
462
370
|
- - ! '>='
|
463
371
|
- !ruby/object:Gem::Version
|
464
372
|
version: '0'
|
373
|
+
segments:
|
374
|
+
- 0
|
375
|
+
hash: -2074992093686783973
|
465
376
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
466
377
|
none: false
|
467
378
|
requirements:
|
468
379
|
- - ! '>='
|
469
380
|
- !ruby/object:Gem::Version
|
470
381
|
version: '0'
|
382
|
+
segments:
|
383
|
+
- 0
|
384
|
+
hash: -2074992093686783973
|
471
385
|
requirements: []
|
472
386
|
rubyforge_project:
|
473
387
|
rubygems_version: 1.8.24
|
@@ -495,6 +409,13 @@ test_files:
|
|
495
409
|
- spec/dummy/config/locales/en.yml
|
496
410
|
- spec/dummy/config/routes.rb
|
497
411
|
- spec/dummy/config.ru
|
412
|
+
- spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
|
413
|
+
- spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
|
414
|
+
- spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
|
415
|
+
- spec/dummy/db/migrate/20130107214414_base_erp_services.erp_base_erp_svcs.rb
|
416
|
+
- spec/dummy/db/schema.rb
|
417
|
+
- spec/dummy/db/spec.sqlite3
|
418
|
+
- spec/dummy/log/spec.log
|
498
419
|
- spec/dummy/public/404.html
|
499
420
|
- spec/dummy/public/422.html
|
500
421
|
- spec/dummy/public/500.html
|
@@ -1,15 +0,0 @@
|
|
1
|
-
class CreateCompassAeInstance < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
unless table_exists?(:compass_ae_instances)
|
4
|
-
create_table :compass_ae_instances do |t|
|
5
|
-
t.decimal :version, :scale => 8, :precision => 3
|
6
|
-
|
7
|
-
t.timestamps
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.down
|
13
|
-
drop_table :compass_ae_instances
|
14
|
-
end
|
15
|
-
end
|
@@ -1,63 +0,0 @@
|
|
1
|
-
class AddNotes < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
unless table_exists?(:notes)
|
4
|
-
create_table :notes do |t|
|
5
|
-
t.integer :created_by_id
|
6
|
-
t.text :content
|
7
|
-
t.references :noted_record, :polymorphic => true
|
8
|
-
t.references :note_type
|
9
|
-
|
10
|
-
t.timestamps
|
11
|
-
end
|
12
|
-
|
13
|
-
add_index :notes, [:noted_record_id, :noted_record_type]
|
14
|
-
add_index :notes, :note_type_id
|
15
|
-
add_index :notes, :created_by_id
|
16
|
-
add_index :notes, :content
|
17
|
-
end
|
18
|
-
|
19
|
-
unless table_exists?(:note_types)
|
20
|
-
create_table :note_types do |t|
|
21
|
-
#these columns are required to support the behavior of the plugin 'awesome_nested_set'
|
22
|
-
t.integer :parent_id
|
23
|
-
t.integer :lft
|
24
|
-
t.integer :rgt
|
25
|
-
|
26
|
-
t.string :description
|
27
|
-
t.string :internal_identifier
|
28
|
-
t.string :external_identifier
|
29
|
-
t.references :note_type_record, :polymorphic => true
|
30
|
-
|
31
|
-
t.timestamps
|
32
|
-
end
|
33
|
-
|
34
|
-
add_index :note_types, [:note_type_record_id, :note_type_record_type], :name => "note_type_record_idx"
|
35
|
-
end
|
36
|
-
|
37
|
-
unless table_exists?(:valid_note_types)
|
38
|
-
create_table :valid_note_types do |t|
|
39
|
-
t.references :valid_note_type_record, :polymorphic => true
|
40
|
-
t.references :note_type
|
41
|
-
|
42
|
-
t.timestamps
|
43
|
-
end
|
44
|
-
|
45
|
-
add_index :valid_note_types, [:valid_note_type_record_id, :valid_note_type_record_type], :name => "valid_note_type_record_idx"
|
46
|
-
add_index :valid_note_types, :note_type_id
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
def self.down
|
51
|
-
if table_exists?(:valid_note_types)
|
52
|
-
drop_table :valid_note_types
|
53
|
-
end
|
54
|
-
|
55
|
-
if table_exists?(:note_types)
|
56
|
-
drop_table :note_types
|
57
|
-
end
|
58
|
-
|
59
|
-
if table_exists?(:notes)
|
60
|
-
drop_table :notes
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|