public_activity 1.1.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -20
  3. data/README.md +50 -62
  4. data/lib/public_activity/activity.rb +2 -0
  5. data/lib/public_activity/common.rb +9 -7
  6. data/lib/public_activity/config.rb +15 -0
  7. data/lib/public_activity/models/activist.rb +2 -0
  8. data/lib/public_activity/models/adapter.rb +1 -0
  9. data/lib/public_activity/models/trackable.rb +2 -0
  10. data/lib/public_activity/orm/active_record/activist.rb +9 -6
  11. data/lib/public_activity/orm/active_record/activity.rb +4 -3
  12. data/lib/public_activity/orm/active_record/adapter.rb +4 -0
  13. data/lib/public_activity/orm/active_record/trackable.rb +4 -0
  14. data/lib/public_activity/orm/mongo_mapper/activist.rb +46 -0
  15. data/lib/public_activity/orm/mongo_mapper/activity.rb +33 -0
  16. data/lib/public_activity/orm/mongo_mapper/adapter.rb +12 -0
  17. data/lib/public_activity/orm/mongo_mapper/trackable.rb +11 -0
  18. data/lib/public_activity/orm/mongo_mapper.rb +4 -0
  19. data/lib/public_activity/orm/mongoid/activity.rb +1 -0
  20. data/lib/public_activity/renderable.rb +12 -8
  21. data/lib/public_activity/roles/deactivatable.rb +3 -0
  22. data/lib/public_activity/roles/tracked.rb +6 -6
  23. data/lib/public_activity/utility/view_helpers.rb +11 -3
  24. data/lib/public_activity/version.rb +1 -1
  25. data/test/migrations/001_create_activities.rb +23 -0
  26. data/test/migrations/002_create_articles.rb +11 -0
  27. data/test/migrations/003_create_users.rb +8 -0
  28. data/test/migrations/004_add_nonstandard_to_activities.rb +7 -0
  29. data/test/mongo_mapper.yml +4 -0
  30. data/test/mongoid.yml +6 -0
  31. data/test/test_activist.rb +56 -0
  32. data/test/test_activity.rb +67 -0
  33. data/test/test_common.rb +168 -0
  34. data/test/test_controller_integration.rb +41 -0
  35. data/test/test_generators.rb +41 -0
  36. data/test/test_helper.rb +124 -0
  37. data/test/test_tracking.rb +378 -0
  38. data/test/test_view_helpers.rb +36 -0
  39. data/test/views/layouts/_activity.erb +1 -0
  40. data/test/views/public_activity/_test.erb +8 -0
  41. metadata +139 -22
  42. data/UPGRADING +0 -8
@@ -0,0 +1,378 @@
1
+ require 'test_helper'
2
+
3
+ describe PublicActivity::Tracked do
4
+ describe 'defining instance options' do
5
+ subject { article.new }
6
+ let :options do
7
+ { :key => 'key',
8
+ :params => {:a => 1},
9
+ :owner => User.create,
10
+ :recipient => User.create }
11
+ end
12
+ before(:each) { subject.activity(options) }
13
+ let(:activity){ subject.save; subject.activities.last }
14
+
15
+ specify { subject.activity_key.must_be_same_as options[:key] }
16
+ specify { activity.key.must_equal options[:key] }
17
+
18
+ specify { subject.activity_owner.must_be_same_as options[:owner] }
19
+ specify { activity.owner.must_equal options[:owner] }
20
+
21
+ specify { subject.activity_params.must_be_same_as options[:params] }
22
+ specify { activity.parameters.must_equal options[:params] }
23
+
24
+ specify { subject.activity_recipient.must_be_same_as options[:recipient] }
25
+ specify { activity.recipient.must_equal options[:recipient] }
26
+ end
27
+
28
+ it 'can be tracked and be an activist at the same time' do
29
+ case PublicActivity.config.orm
30
+ when :mongoid
31
+ class ActivistAndTrackedArticle
32
+ include Mongoid::Document
33
+ include Mongoid::Timestamps
34
+ include PublicActivity::Model
35
+
36
+ belongs_to :user
37
+
38
+ field :name, type: String
39
+ field :published, type: Boolean
40
+ tracked
41
+ activist
42
+ end
43
+ when :mongo_mapper
44
+ class ActivistAndTrackedArticle
45
+ include MongoMapper::Document
46
+ include PublicActivity::Model
47
+
48
+ belongs_to :user
49
+
50
+ key :name, String
51
+ key :published, Boolean
52
+ tracked
53
+ activist
54
+ timestamps!
55
+ end
56
+ when :active_record
57
+ class ActivistAndTrackedArticle < ActiveRecord::Base
58
+ self.table_name = 'articles'
59
+ include PublicActivity::Model
60
+ tracked
61
+ activist
62
+
63
+ if ::ActiveRecord::VERSION::MAJOR < 4
64
+ attr_accessible :name, :published, :user
65
+ end
66
+ belongs_to :user
67
+ end
68
+ end
69
+
70
+ art = ActivistAndTrackedArticle.new
71
+ art.save
72
+ art.activities.last.trackable_id.must_equal art.id
73
+ art.activities.last.owner_id.must_equal nil
74
+ end
75
+
76
+ describe 'custom fields' do
77
+ describe 'global' do
78
+ it 'should resolve symbols' do
79
+ a = article(nonstandard: :name).new(name: 'Symbol resolved')
80
+ a.save
81
+ a.activities.last.nonstandard.must_equal 'Symbol resolved'
82
+ end
83
+
84
+ it 'should resolve procs' do
85
+ a = article(nonstandard: proc {|_, model| model.name}).new(name: 'Proc resolved')
86
+ a.save
87
+ a.activities.last.nonstandard.must_equal 'Proc resolved'
88
+ end
89
+ end
90
+
91
+ describe 'instance' do
92
+ it 'should resolve symbols' do
93
+ a = article.new(name: 'Symbol resolved')
94
+ a.activity nonstandard: :name
95
+ a.save
96
+ a.activities.last.nonstandard.must_equal 'Symbol resolved'
97
+ end
98
+
99
+ it 'should resolve procs' do
100
+ a = article.new(name: 'Proc resolved')
101
+ a.activity nonstandard: proc {|_, model| model.name}
102
+ a.save
103
+ a.activities.last.nonstandard.must_equal 'Proc resolved'
104
+ end
105
+ end
106
+ end
107
+
108
+ it 'should reset instance options on successful create_activity' do
109
+ a = article.new
110
+ a.activity key: 'test', params: {test: 1}
111
+ a.save
112
+ a.activities.count.must_equal 1
113
+ ->{a.create_activity}.must_raise PublicActivity::NoKeyProvided
114
+ a.activity_params.must_be_empty
115
+ a.activity key: 'asd'
116
+ a.create_activity
117
+ ->{a.create_activity}.must_raise PublicActivity::NoKeyProvided
118
+ end
119
+
120
+ it 'should not accept global key option' do
121
+ # this example tests the lack of presence of sth that should not be here
122
+ a = article(key: 'asd').new
123
+ a.save
124
+ ->{a.create_activity}.must_raise PublicActivity::NoKeyProvided
125
+ a.activities.count.must_equal 1
126
+ end
127
+
128
+ it 'should not change global custom fields' do
129
+ a = article(nonstandard: 'global').new
130
+ a.activity nonstandard: 'instance'
131
+ a.save
132
+ a.class.activity_custom_fields_global.must_equal nonstandard: 'global'
133
+ end
134
+
135
+ describe 'disabling functionality' do
136
+ it 'allows for global disable' do
137
+ PublicActivity.enabled = false
138
+ activity_count_before = PublicActivity::Activity.count
139
+
140
+ @article = article().new
141
+ @article.save
142
+ PublicActivity::Activity.count.must_equal activity_count_before
143
+
144
+ PublicActivity.enabled = true
145
+ end
146
+
147
+ it 'allows for class-wide disable' do
148
+ activity_count_before = PublicActivity::Activity.count
149
+
150
+ klass = article
151
+ klass.public_activity_off
152
+ @article = klass.new
153
+ @article.save
154
+ PublicActivity::Activity.count.must_equal activity_count_before
155
+
156
+ klass.public_activity_on
157
+ @article.save
158
+ PublicActivity::Activity.count.must_be :>, activity_count_before
159
+ end
160
+ end
161
+
162
+ describe '#tracked' do
163
+ subject { article(options) }
164
+ let(:options) { {} }
165
+
166
+ it 'allows skipping the tracking on CRUD actions' do
167
+ case PublicActivity.config.orm
168
+ when :mongoid
169
+ art = Class.new do
170
+ include Mongoid::Document
171
+ include Mongoid::Timestamps
172
+ include PublicActivity::Model
173
+
174
+ belongs_to :user
175
+
176
+ field :name, type: String
177
+ field :published, type: Boolean
178
+ tracked :skip_defaults => true
179
+ end
180
+ when :mongo_mapper
181
+ art = Class.new do
182
+ include MongoMapper::Document
183
+ include PublicActivity::Model
184
+
185
+ belongs_to :user
186
+
187
+ key :name, String
188
+ key :published, Boolean
189
+ tracked :skip_defaults => true
190
+
191
+ timestamps!
192
+ end
193
+ when :active_record
194
+ art = article(:skip_defaults => true)
195
+ end
196
+
197
+ art.must_include PublicActivity::Common
198
+ art.wont_include PublicActivity::Creation
199
+ art.wont_include PublicActivity::Update
200
+ art.wont_include PublicActivity::Destruction
201
+ end
202
+
203
+ describe 'default options' do
204
+ subject { article }
205
+
206
+ specify { subject.must_include PublicActivity::Creation }
207
+ specify { subject.must_include PublicActivity::Destruction }
208
+ specify { subject.must_include PublicActivity::Update }
209
+
210
+ specify { subject._create_callbacks.select do |c|
211
+ c.kind.eql?(:after) && c.filter == :activity_on_create
212
+ end.wont_be_empty }
213
+
214
+ specify { subject._update_callbacks.select do |c|
215
+ c.kind.eql?(:after) && c.filter == :activity_on_update
216
+ end.wont_be_empty }
217
+
218
+ specify { subject._destroy_callbacks.select do |c|
219
+ c.kind.eql?(:before) && c.filter == :activity_on_destroy
220
+ end.wont_be_empty }
221
+ end
222
+
223
+ it 'accepts :except option' do
224
+ case PublicActivity.config.orm
225
+ when :mongoid
226
+ art = Class.new do
227
+ include Mongoid::Document
228
+ include Mongoid::Timestamps
229
+ include PublicActivity::Model
230
+
231
+ belongs_to :user
232
+
233
+ field :name, type: String
234
+ field :published, type: Boolean
235
+ tracked :except => [:create]
236
+ end
237
+ when :mongo_mapper
238
+ art = Class.new do
239
+ include MongoMapper::Document
240
+ include PublicActivity::Model
241
+
242
+ belongs_to :user
243
+
244
+ key :name, String
245
+ key :published, Boolean
246
+ tracked :except => [:create]
247
+
248
+ timestamps!
249
+ end
250
+ when :active_record
251
+ art = article(:except => [:create])
252
+ end
253
+
254
+ art.wont_include PublicActivity::Creation
255
+ art.must_include PublicActivity::Update
256
+ art.must_include PublicActivity::Destruction
257
+ end
258
+
259
+ it 'accepts :only option' do
260
+ case PublicActivity.config.orm
261
+ when :mongoid
262
+ art = Class.new do
263
+ include Mongoid::Document
264
+ include Mongoid::Timestamps
265
+ include PublicActivity::Model
266
+
267
+ belongs_to :user
268
+
269
+ field :name, type: String
270
+ field :published, type: Boolean
271
+
272
+ tracked :only => [:create, :update]
273
+ end
274
+ when :mongo_mapper
275
+ art = Class.new do
276
+ include MongoMapper::Document
277
+ include PublicActivity::Model
278
+
279
+ belongs_to :user
280
+
281
+ key :name, String
282
+ key :published, Boolean
283
+
284
+ tracked :only => [:create, :update]
285
+ end
286
+ when :active_record
287
+ art = article({:only => [:create, :update]})
288
+ end
289
+
290
+ art.must_include PublicActivity::Creation
291
+ art.wont_include PublicActivity::Destruction
292
+ art.must_include PublicActivity::Update
293
+ end
294
+
295
+ it 'accepts :owner option' do
296
+ owner = mock('owner')
297
+ subject.tracked(:owner => owner)
298
+ subject.activity_owner_global.must_equal owner
299
+ end
300
+
301
+ it 'accepts :params option' do
302
+ params = {:a => 1}
303
+ subject.tracked(:params => params)
304
+ subject.activity_params_global.must_equal params
305
+ end
306
+
307
+ it 'accepts :on option' do
308
+ on = {:a => lambda{}, :b => proc {}}
309
+ subject.tracked(:on => on)
310
+ subject.activity_hooks.must_equal on
311
+ end
312
+
313
+ it 'accepts :on option with string keys' do
314
+ on = {'a' => lambda {}}
315
+ subject.tracked(:on => on)
316
+ subject.activity_hooks.must_equal on.symbolize_keys
317
+ end
318
+
319
+ it 'accepts :on values that are procs' do
320
+ on = {:unpassable => 1, :proper => lambda {}, :proper_proc => proc {}}
321
+ subject.tracked(:on => on)
322
+ subject.activity_hooks.must_include :proper
323
+ subject.activity_hooks.must_include :proper_proc
324
+ subject.activity_hooks.wont_include :unpassable
325
+ end
326
+
327
+ describe 'global options' do
328
+ subject { article(recipient: :test, owner: :test2, params: {a: 'b'}) }
329
+
330
+ specify { subject.activity_recipient_global.must_equal :test }
331
+ specify { subject.activity_owner_global.must_equal :test2 }
332
+ specify { subject.activity_params_global.must_equal(a: 'b') }
333
+ end
334
+ end
335
+
336
+ describe 'activity hooks' do
337
+ subject { s = article; s.activity_hooks = {:test => hook}; s }
338
+ let(:hook) { lambda {} }
339
+
340
+ it 'retrieves hooks' do
341
+ assert_same hook, subject.get_hook(:test)
342
+ end
343
+
344
+ it 'retrieves hooks by string keys' do
345
+ assert_same hook, subject.get_hook('test')
346
+ end
347
+
348
+ it 'returns nil when no matching hook is present' do
349
+ nil.must_be_same_as subject.get_hook(:nonexistent)
350
+ end
351
+
352
+ it 'allows hooks to decide if activity should be created' do
353
+ subject.tracked
354
+ @article = subject.new(:name => 'Some Name')
355
+ PublicActivity.set_controller(mock('controller'))
356
+ pf = proc { |model, controller|
357
+ controller.must_be_same_as PublicActivity.get_controller
358
+ model.name.must_equal 'Some Name'
359
+ false
360
+ }
361
+ pt = proc { |model, controller|
362
+ controller.must_be_same_as PublicActivity.get_controller
363
+ model.name.must_equal 'Other Name'
364
+ true # this will save the activity with *.update key
365
+ }
366
+ @article.class.activity_hooks = {:create => pf, :update => pt, :destroy => pt}
367
+
368
+ @article.activities.to_a.must_be_empty
369
+ @article.save # create
370
+ @article.name = 'Other Name'
371
+ @article.save # update
372
+ @article.destroy # destroy
373
+
374
+ @article.activities.count.must_equal 2
375
+ @article.activities.first.key.must_equal 'article.update'
376
+ end
377
+ end
378
+ end
@@ -0,0 +1,36 @@
1
+ require 'test_helper'
2
+
3
+ describe 'ViewHelpers Rendering' do
4
+ include PublicActivity::ViewHelpers
5
+
6
+ # is this a proper test?
7
+ it 'provides render_activity helper' do
8
+ activity = mock('activity')
9
+ activity.stubs(:is_a?).with(PublicActivity::Activity).returns(true)
10
+ activity.expects(:render).with(self, {})
11
+ render_activity(activity)
12
+ end
13
+
14
+ it 'handles multiple activities' do
15
+ activity = mock('activity')
16
+ activity.expects(:render).with(self, {})
17
+ render_activities([activity])
18
+ end
19
+
20
+ it 'flushes content_for between partials renderes' do
21
+ @view_flow = mock('view_flow')
22
+ @view_flow.expects(:set).twice.with('name', ActiveSupport::SafeBuffer.new)
23
+
24
+ single_content_for('name', 'content')
25
+ @name.must_equal 'name'
26
+ @content.must_equal 'content'
27
+ single_content_for('name', 'content2')
28
+ @name.must_equal 'name'
29
+ @content.must_equal 'content2'
30
+ end
31
+
32
+ def content_for(name, content, &block)
33
+ @name = name
34
+ @content = content
35
+ end
36
+ end
@@ -0,0 +1 @@
1
+ <h2>Here be the layouts</h2><%= yield %>
@@ -0,0 +1,8 @@
1
+ <% if defined?(two) == 'local-variable' %>
2
+ <% # output local_variable if defined %>
3
+ <%= two %>
4
+ <% else %>
5
+ <strong><%= p[:one] %>, <%= params['two'] %></strong>
6
+ <em><%= a.key %>, <%= activity.id %></em>
7
+ <%= current_user %>
8
+ <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: public_activity
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotrek Okoński
@@ -9,36 +9,36 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-08 00:00:00.000000000 Z
12
+ date: 2013-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: activesupport
15
+ name: actionpack
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - '>='
19
19
  - !ruby/object:Gem::Version
20
- version: '3.0'
20
+ version: 3.0.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - '>='
26
26
  - !ruby/object:Gem::Version
27
- version: '3.0'
27
+ version: 3.0.0
28
28
  - !ruby/object:Gem::Dependency
29
- name: actionpack
29
+ name: railties
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - '>='
33
33
  - !ruby/object:Gem::Version
34
- version: '3.0'
34
+ version: 3.0.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - '>='
40
40
  - !ruby/object:Gem::Version
41
- version: '3.0'
41
+ version: 3.0.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: i18n
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -54,19 +54,103 @@ dependencies:
54
54
  - !ruby/object:Gem::Version
55
55
  version: 0.5.0
56
56
  - !ruby/object:Gem::Dependency
57
- name: railties
57
+ name: activerecord
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - '>='
61
61
  - !ruby/object:Gem::Version
62
62
  version: '3.0'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '3.0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: sqlite3
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: 1.3.7
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ~>
82
+ - !ruby/object:Gem::Version
83
+ version: 1.3.7
84
+ - !ruby/object:Gem::Dependency
85
+ name: mocha
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ~>
89
+ - !ruby/object:Gem::Version
90
+ version: 0.13.0
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ~>
96
+ - !ruby/object:Gem::Version
97
+ version: 0.13.0
98
+ - !ruby/object:Gem::Dependency
99
+ name: simplecov
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ~>
103
+ - !ruby/object:Gem::Version
104
+ version: 0.7.0
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ~>
110
+ - !ruby/object:Gem::Version
111
+ version: 0.7.0
112
+ - !ruby/object:Gem::Dependency
113
+ name: minitest
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - <
117
+ - !ruby/object:Gem::Version
118
+ version: 5.0.0
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - <
124
+ - !ruby/object:Gem::Version
125
+ version: 5.0.0
126
+ - !ruby/object:Gem::Dependency
127
+ name: redcarpet
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - '>='
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: yard
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ~>
145
+ - !ruby/object:Gem::Version
146
+ version: '0.8'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ~>
152
+ - !ruby/object:Gem::Version
153
+ version: '0.8'
70
154
  description: Easy activity tracking for your ActiveRecord models. Provides Activity
71
155
  model with details about actions performed by your users, like adding comments,
72
156
  responding etc.
@@ -98,6 +182,11 @@ files:
98
182
  - lib/public_activity/orm/active_record/activity.rb
99
183
  - lib/public_activity/orm/active_record/adapter.rb
100
184
  - lib/public_activity/orm/active_record/trackable.rb
185
+ - lib/public_activity/orm/mongo_mapper.rb
186
+ - lib/public_activity/orm/mongo_mapper/activist.rb
187
+ - lib/public_activity/orm/mongo_mapper/activity.rb
188
+ - lib/public_activity/orm/mongo_mapper/adapter.rb
189
+ - lib/public_activity/orm/mongo_mapper/trackable.rb
101
190
  - lib/public_activity/orm/mongoid.rb
102
191
  - lib/public_activity/orm/mongoid/activist.rb
103
192
  - lib/public_activity/orm/mongoid/activity.rb
@@ -113,14 +202,26 @@ files:
113
202
  - Rakefile
114
203
  - README.md
115
204
  - MIT-LICENSE
116
- - UPGRADING
205
+ - test/migrations/001_create_activities.rb
206
+ - test/migrations/002_create_articles.rb
207
+ - test/migrations/003_create_users.rb
208
+ - test/migrations/004_add_nonstandard_to_activities.rb
209
+ - test/mongo_mapper.yml
210
+ - test/mongoid.yml
211
+ - test/test_activist.rb
212
+ - test/test_activity.rb
213
+ - test/test_common.rb
214
+ - test/test_controller_integration.rb
215
+ - test/test_generators.rb
216
+ - test/test_helper.rb
217
+ - test/test_tracking.rb
218
+ - test/test_view_helpers.rb
219
+ - test/views/layouts/_activity.erb
220
+ - test/views/public_activity/_test.erb
117
221
  homepage: https://github.com/pokonski/public_activity
118
222
  licenses: []
119
223
  metadata: {}
120
- post_install_message: "##################################################\n# NOTE
121
- FOR UPGRADING FROM PRE-0.4.0 VERSION #\n##################################################\n\npublic_activity
122
- 0.4.0 brings major changes compared to 0.3.X versions,\nplease read https://github.com/pokonski/public_activity#upgrading
123
- \nto learn about all the changes you need to apply to properly\nupgrade your applications.\n"
224
+ post_install_message:
124
225
  rdoc_options: []
125
226
  require_paths:
126
227
  - lib
@@ -136,9 +237,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
237
  version: '0'
137
238
  requirements: []
138
239
  rubyforge_project:
139
- rubygems_version: 2.0.3
240
+ rubygems_version: 2.0.7
140
241
  signing_key:
141
242
  specification_version: 4
142
243
  summary: Easy activity tracking for ActiveRecord models
143
- test_files: []
244
+ test_files:
245
+ - test/migrations/001_create_activities.rb
246
+ - test/migrations/002_create_articles.rb
247
+ - test/migrations/003_create_users.rb
248
+ - test/migrations/004_add_nonstandard_to_activities.rb
249
+ - test/mongo_mapper.yml
250
+ - test/mongoid.yml
251
+ - test/test_activist.rb
252
+ - test/test_activity.rb
253
+ - test/test_common.rb
254
+ - test/test_controller_integration.rb
255
+ - test/test_generators.rb
256
+ - test/test_helper.rb
257
+ - test/test_tracking.rb
258
+ - test/test_view_helpers.rb
259
+ - test/views/layouts/_activity.erb
260
+ - test/views/public_activity/_test.erb
144
261
  has_rdoc:
data/UPGRADING DELETED
@@ -1,8 +0,0 @@
1
- ##################################################
2
- # NOTE FOR UPGRADING FROM PRE-0.4.0 VERSION #
3
- ##################################################
4
-
5
- public_activity 0.4.0 brings major changes compared to 0.3.X versions,
6
- please read https://github.com/pokonski/public_activity#upgrading
7
- to learn about all the changes you need to apply to properly
8
- upgrade your applications.