HornsAndHooves-moribus 0.4.4 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,10 +2,12 @@
2
2
  module MoribusSpecModel
3
3
  def self.cleanup!
4
4
  ObjectSpace.each_object(MoribusSpecModel) do |klass|
5
- if Object.const_defined? klass.name.to_sym
6
- conn, table_name = klass.connection, klass.table_name
7
- conn.drop_table(table_name) if conn.tables.include?(table_name)
8
- Object.send :remove_const, klass.name.to_sym
5
+ unless klass.name.nil?
6
+ if Object.const_defined? klass.name.to_sym
7
+ conn, table_name = klass.connection, klass.table_name
8
+ conn.drop_table(table_name) if conn.tables.include?(table_name)
9
+ Object.send :remove_const, klass.name.to_sym
10
+ end
9
11
  end
10
12
  end
11
13
  ActiveSupport::Dependencies::Reference.clear!
data/tags CHANGED
@@ -27,12 +27,16 @@ HasAggregatedExtension lib/moribus/extensions/has_aggregated_extension.rb 5;" m
27
27
  HasCurrentExtension lib/moribus/extensions/has_current_extension.rb 5;" m line:5 class:Moribus.Extensions
28
28
  Helper lib/moribus/extensions/has_aggregated_extension.rb 18;" c line:18 class:Moribus.Extensions.HasAggregatedExtension
29
29
  K.D coverage/assets/0.10.0/application.js 17;" f line:17
30
+ K.D coverage/assets/0.10.2/application.js 17;" f line:17
30
31
  K.D coverage/assets/0.8.0/application.js 17;" f line:17
31
32
  K.E coverage/assets/0.10.0/application.js 17;" f line:17
33
+ K.E coverage/assets/0.10.2/application.js 17;" f line:17
32
34
  K.E coverage/assets/0.8.0/application.js 17;" f line:17
33
35
  K.l coverage/assets/0.10.0/application.js 17;" f line:17
36
+ K.l coverage/assets/0.10.2/application.js 17;" f line:17
34
37
  K.l coverage/assets/0.8.0/application.js 17;" f line:17
35
38
  K.m coverage/assets/0.10.0/application.js 17;" f line:17
39
+ K.m coverage/assets/0.10.2/application.js 17;" f line:17
36
40
  K.m coverage/assets/0.8.0/application.js 17;" f line:17
37
41
  Macros lib/moribus/macros.rb 4;" m line:4 class:Moribus
38
42
  Moribus lib/moribus.rb 6;" m line:6
@@ -46,23 +50,39 @@ Moribus lib/moribus/extensions/has_current_extension.rb 1;" m line:1
46
50
  Moribus lib/moribus/macros.rb 1;" m line:1
47
51
  Moribus lib/moribus/tracked_behavior.rb 1;" m line:1
48
52
  Moribus lib/moribus/version.rb 1;" m line:1
49
- MoribusSpecModel spec/support/moribus_spec_model.rb 26;" f line:26
53
+ MoribusSpecModel spec/support/moribus_spec_model.rb 28;" f line:28
50
54
  MoribusSpecModel spec/support/moribus_spec_model.rb 2;" m line:2
51
55
  SpecAuthor spec/moribus/alias_association_spec.rb 15;" c line:15
52
56
  SpecComment spec/moribus/alias_association_spec.rb 23;" c line:23
53
- SpecCustomer spec/moribus_spec.rb 87;" c line:87
54
- SpecCustomerEmail spec/moribus_spec.rb 95;" c line:95
55
- SpecCustomerFeature spec/moribus_spec.rb 44;" c line:44
56
- SpecCustomerInfo spec/moribus_spec.rb 48;" c line:48
57
- SpecCustomerInfoWithType spec/moribus_spec.rb 69;" c line:69
57
+ SpecCustomer spec/moribus/extensions/delegate_associated_spec.rb 66;" c line:66
58
+ SpecCustomer spec/moribus/extensions/has_current_extension_spec.rb 17;" c line:17
59
+ SpecCustomer spec/moribus/macros_spec.rb 7;" c line:7
60
+ SpecCustomer spec/moribus_spec.rb 88;" c line:88
61
+ SpecCustomerEmail spec/moribus_spec.rb 96;" c line:96
62
+ SpecCustomerFeature spec/moribus/aggregated_behavior_spec.rb 28;" c line:28
63
+ SpecCustomerFeature spec/moribus_spec.rb 45;" c line:45
64
+ SpecCustomerInfo spec/moribus/extensions/delegate_associated_spec.rb 45;" c line:45
65
+ SpecCustomerInfo spec/moribus/extensions/has_current_extension_spec.rb 5;" c line:5
66
+ SpecCustomerInfo spec/moribus/macros_spec.rb 12;" c line:12
67
+ SpecCustomerInfo spec/moribus_spec.rb 49;" c line:49
68
+ SpecCustomerInfoOrder spec/moribus/macros_spec.rb 29;" c line:29
69
+ SpecCustomerInfoWithType spec/moribus_spec.rb 70;" c line:70
70
+ SpecCustomerOrder spec/moribus/macros_spec.rb 24;" c line:24
71
+ SpecPersonName spec/moribus/aggregated_behavior_spec.rb 13;" c line:13
72
+ SpecPersonName spec/moribus/extensions/delegate_associated_spec.rb 29;" c line:29
58
73
  SpecPersonName spec/moribus_spec.rb 29;" c line:29
59
74
  SpecPost spec/moribus/alias_association_spec.rb 5;" c line:5
60
75
  SpecPostInfo spec/moribus/alias_association_spec.rb 19;" c line:19
76
+ SpecStatus spec/moribus/extensions/delegate_associated_spec.rb 5;" c line:5
61
77
  SpecStatus spec/moribus_spec.rb 5;" c line:5
78
+ SpecSuffix spec/moribus/aggregated_behavior_spec.rb 5;" c line:5
79
+ SpecSuffix spec/moribus/extensions/delegate_associated_spec.rb 21;" c line:21
62
80
  SpecSuffix spec/moribus_spec.rb 21;" c line:21
81
+ SpecType spec/moribus/extensions/delegate_associated_spec.rb 13;" c line:13
63
82
  SpecType spec/moribus_spec.rb 13;" c line:13
64
83
  TrackedBehavior lib/moribus/tracked_behavior.rb 8;" m line:8 class:Moribus
65
84
  V.N coverage/assets/0.10.0/application.js 17;" f line:17
85
+ V.N coverage/assets/0.10.2/application.js 17;" f line:17
66
86
  V.N coverage/assets/0.8.0/application.js 17;" f line:17
67
87
  acts_as_aggregated lib/moribus.rb 28;" f line:28 class:Moribus.ClassMethods
68
88
  acts_as_aggregated? lib/moribus.rb 58;" f line:58 class:Moribus.ClassMethods
@@ -77,27 +97,38 @@ alias_collection_association_methods lib/moribus/alias_association.rb 108;" f li
77
97
  alias_singular_association_methods lib/moribus/alias_association.rb 98;" f line:98 class:Moribus.AliasAssociation.ClassMethods
78
98
  association lib/moribus/extensions.rb 24;" f line:24 class:Moribus.Extensions
79
99
  b$.bA coverage/assets/0.10.0/application.js 17;" f line:17
100
+ b$.bA coverage/assets/0.10.2/application.js 17;" f line:17
80
101
  b$.bA coverage/assets/0.8.0/application.js 17;" f line:17
81
102
  b$.bW coverage/assets/0.10.0/application.js 17;" f line:17
103
+ b$.bW coverage/assets/0.10.2/application.js 17;" f line:17
82
104
  b$.bW coverage/assets/0.8.0/application.js 17;" f line:17
83
105
  b$.bX coverage/assets/0.10.0/application.js 17;" f line:17
106
+ b$.bX coverage/assets/0.10.2/application.js 17;" f line:17
84
107
  b$.bX coverage/assets/0.8.0/application.js 17;" f line:17
85
108
  b$.bY coverage/assets/0.10.0/application.js 17;" f line:17
109
+ b$.bY coverage/assets/0.10.2/application.js 17;" f line:17
86
110
  b$.bY coverage/assets/0.8.0/application.js 17;" f line:17
87
111
  b$.bZ coverage/assets/0.10.0/application.js 17;" f line:17
112
+ b$.bZ coverage/assets/0.10.2/application.js 17;" f line:17
88
113
  b$.bZ coverage/assets/0.8.0/application.js 17;" f line:17
89
114
  b$.bi coverage/assets/0.10.0/application.js 17;" f line:17
115
+ b$.bi coverage/assets/0.10.2/application.js 17;" f line:17
90
116
  b$.bi coverage/assets/0.8.0/application.js 17;" f line:17
91
117
  b$.bj coverage/assets/0.10.0/application.js 17;" f line:17
118
+ b$.bj coverage/assets/0.10.2/application.js 17;" f line:17
92
119
  b$.bj coverage/assets/0.8.0/application.js 17;" f line:17
93
120
  b$.bk coverage/assets/0.10.0/application.js 17;" f line:17
121
+ b$.bk coverage/assets/0.10.2/application.js 17;" f line:17
94
122
  b$.bk coverage/assets/0.8.0/application.js 17;" f line:17
95
123
  b$.bl coverage/assets/0.10.0/application.js 17;" f line:17
124
+ b$.bl coverage/assets/0.10.2/application.js 17;" f line:17
96
125
  b$.bl coverage/assets/0.8.0/application.js 17;" f line:17
97
126
  b$.bm coverage/assets/0.10.0/application.js 17;" f line:17
127
+ b$.bm coverage/assets/0.10.2/application.js 17;" f line:17
98
128
  b$.bm coverage/assets/0.8.0/application.js 17;" f line:17
99
129
  belongs_to lib/moribus/alias_association.rb 39;" f line:39 class:Moribus.AliasAssociation.ClassMethods
100
130
  bh.bg coverage/assets/0.10.0/application.js 17;" f line:17
131
+ bh.bg coverage/assets/0.10.2/application.js 17;" f line:17
101
132
  bh.bg coverage/assets/0.8.0/application.js 17;" f line:17
102
133
  bold lib/colorized_text.rb 30;" f line:30 class:ColorizedText
103
134
  cache_aggregated_record lib/moribus/aggregated_cache_behavior.rb 63;" f line:63 class:Moribus.AggregatedCacheBehavior
@@ -108,19 +139,24 @@ colorize lib/colorized_text.rb 10;" f line:10 class:ColorizedText
108
139
  column_for_attribute lib/moribus/extensions/delegate_associated.rb 35;" f line:35 class:Moribus.Extensions.DelegateAssociated
109
140
  content_changed? lib/moribus/tracked_behavior.rb 48;" f line:48 class:Moribus.TrackedBehavior
110
141
  cp.ce coverage/assets/0.10.0/application.js 17;" f line:17
142
+ cp.ce coverage/assets/0.10.2/application.js 17;" f line:17
111
143
  cp.ce coverage/assets/0.8.0/application.js 17;" f line:17
112
144
  cp.cf coverage/assets/0.10.0/application.js 17;" f line:17
145
+ cp.cf coverage/assets/0.10.2/application.js 17;" f line:17
113
146
  cp.cf coverage/assets/0.8.0/application.js 17;" f line:17
114
- current_lock_value lib/moribus/tracked_behavior.rb 132;" f line:132
115
- current_to_false_sql_statement lib/moribus/tracked_behavior.rb 105;" f line:105 class:Moribus.TrackedBehavior
147
+ current_lock_value lib/moribus/tracked_behavior.rb 144;" f line:144
148
+ current_to_false_sql_statement lib/moribus/tracked_behavior.rb 117;" f line:117 class:Moribus.TrackedBehavior
116
149
  define_delegation_module lib/moribus/extensions/has_aggregated_extension.rb 40;" f line:40 class:Moribus.Extensions.HasAggregatedExtension.Helper
117
150
  define_effective_reader_for lib/moribus/macros.rb 144;" f line:144 class:Moribus.Macros
118
151
  delegate_associated lib/moribus/macros.rb 51;" f line:51 class:Moribus.Macros
119
152
  effective_ lib/moribus/macros.rb 146;" f line:146 class:Moribus.Macros.define_effective_reader_for
120
153
  extend lib/moribus/extensions/has_aggregated_extension.rb 32;" f line:32 class:Moribus.Extensions.HasAggregatedExtension.Helper
121
154
  extend_has_aggregated_reflection lib/moribus/extensions.rb 16;" f line:16 class:Moribus.Extensions.ClassMethods
122
- first_name= spec/moribus_spec.rb 39;" f line:39 class:SpecPersonName
155
+ first_name= spec/moribus/aggregated_behavior_spec.rb 23;" f line:23 class:SpecPersonName
156
+ first_name= spec/moribus/extensions/delegate_associated_spec.rb 40;" f line:40 class:SpecPersonName
157
+ first_name= spec/moribus_spec.rb 40;" f line:40 class:SpecPersonName
123
158
  function.cr coverage/assets/0.10.0/application.js 17;" f line:17
159
+ function.cr coverage/assets/0.10.2/application.js 17;" f line:17
124
160
  function.cr coverage/assets/0.8.0/application.js 17;" f line:17
125
161
  get_parent_relation_keys lib/moribus.rb 71;" f line:71 class:Moribus.ClassMethods
126
162
  green lib/colorized_text.rb 20;" f line:20 class:ColorizedText
@@ -131,8 +167,10 @@ has_one_current lib/moribus/macros.rb 78;" f line:78 class:Moribus.Macros
131
167
  include_delegation_module lib/moribus/extensions/has_aggregated_extension.rb 81;" f line:81 class:Moribus.Extensions.HasAggregatedExtension.Helper
132
168
  initialize lib/moribus/extensions/has_aggregated_extension.rb 26;" f line:26 class:Moribus.Extensions.HasAggregatedExtension.Helper
133
169
  k.function.J coverage/assets/0.10.0/application.js 17;" f line:17
170
+ k.function.J coverage/assets/0.10.2/application.js 17;" f line:17
134
171
  k.function.J coverage/assets/0.8.0/application.js 17;" f line:17
135
172
  k.var.e coverage/assets/0.10.0/application.js 17;" f line:17
173
+ k.var.e coverage/assets/0.10.2/application.js 17;" f line:17
136
174
  k.var.e coverage/assets/0.8.0/application.js 17;" f line:17
137
175
  lookup_relation lib/moribus/aggregated_behavior.rb 72;" f line:72 class:Moribus.AggregatedBehavior
138
176
  lookup_self lib/moribus/aggregated_behavior.rb 65;" f line:65 class:Moribus.AggregatedBehavior
metadata CHANGED
@@ -1,36 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HornsAndHooves-moribus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - HornsAndHooves
8
8
  - Arthur Shagall
9
9
  - Artem Kuzko
10
10
  - Sergey Potapov
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-03-30 00:00:00.000000000 Z
14
+ date: 2021-03-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - ">"
21
- - !ruby/object:Gem::Version
22
- version: '4.0'
23
- - - "<"
20
+ - - "~>"
24
21
  - !ruby/object:Gem::Version
25
22
  version: '5'
26
23
  type: :runtime
27
24
  prerelease: false
28
25
  version_requirements: !ruby/object:Gem::Requirement
29
26
  requirements:
30
- - - ">"
31
- - !ruby/object:Gem::Version
32
- version: '4.0'
33
- - - "<"
27
+ - - "~>"
34
28
  - !ruby/object:Gem::Version
35
29
  version: '5'
36
30
  - !ruby/object:Gem::Dependency
@@ -107,16 +101,16 @@ dependencies:
107
101
  name: sqlite3
108
102
  requirement: !ruby/object:Gem::Requirement
109
103
  requirements:
110
- - - ">="
104
+ - - "~>"
111
105
  - !ruby/object:Gem::Version
112
- version: '0'
106
+ version: 1.3.6
113
107
  type: :development
114
108
  prerelease: false
115
109
  version_requirements: !ruby/object:Gem::Requirement
116
110
  requirements:
117
- - - ">="
111
+ - - "~>"
118
112
  - !ruby/object:Gem::Version
119
- version: '0'
113
+ version: 1.3.6
120
114
  description: |-
121
115
  Introduces Aggregated and Tracked behavior to ActiveRecord::Base models, as well
122
116
  as Macros and Extensions modules for more efficient usage.
@@ -184,7 +178,11 @@ files:
184
178
  - spec/dummy/public/500.html
185
179
  - spec/dummy/public/favicon.ico
186
180
  - spec/dummy/script/rails
181
+ - spec/dummy/tmp/development_secret.txt
182
+ - spec/moribus/aggregated_behavior_spec.rb
187
183
  - spec/moribus/alias_association_spec.rb
184
+ - spec/moribus/extensions/delegate_associated_spec.rb
185
+ - spec/moribus/extensions/has_current_extension_spec.rb
188
186
  - spec/moribus/macros_spec.rb
189
187
  - spec/moribus_spec.rb
190
188
  - spec/spec_helper.rb
@@ -194,7 +192,7 @@ homepage: https://github.com/HornsAndHooves/moribus
194
192
  licenses:
195
193
  - MIT
196
194
  metadata: {}
197
- post_install_message:
195
+ post_install_message:
198
196
  rdoc_options: []
199
197
  require_paths:
200
198
  - lib
@@ -209,9 +207,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
207
  - !ruby/object:Gem::Version
210
208
  version: '0'
211
209
  requirements: []
212
- rubyforge_project:
213
- rubygems_version: 2.6.10
214
- signing_key:
210
+ rubyforge_project:
211
+ rubygems_version: 2.7.9
212
+ signing_key:
215
213
  specification_version: 4
216
214
  summary: Introduces Aggregated and Tracked behavior to ActiveRecord::Base models
217
215
  test_files:
@@ -248,7 +246,11 @@ test_files:
248
246
  - spec/dummy/public/500.html
249
247
  - spec/dummy/public/favicon.ico
250
248
  - spec/dummy/script/rails
249
+ - spec/dummy/tmp/development_secret.txt
250
+ - spec/moribus/aggregated_behavior_spec.rb
251
251
  - spec/moribus/alias_association_spec.rb
252
+ - spec/moribus/extensions/delegate_associated_spec.rb
253
+ - spec/moribus/extensions/has_current_extension_spec.rb
252
254
  - spec/moribus/macros_spec.rb
253
255
  - spec/moribus_spec.rb
254
256
  - spec/spec_helper.rb