public_activity 0.4.0.rc2 → 0.4.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # PublicActivity ![Build Status](http://travis-ci.org/pokonski/public_activity.png)
1
+ # PublicActivity [![Build Status](https://secure.travis-ci.org/pokonski/public_activity.png)](http://travis-ci.org/pokonski/public_activity)
2
2
 
3
3
  public_activity provides smooth activity tracking for your ActiveRecord models in Rails 3.
4
4
  Simply put: it records what has been changed or edited and gives you the ability to present those recorded activities to users - in a similar way Github does it.
data/UPGRADING ADDED
@@ -0,0 +1,8 @@
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.
@@ -1,4 +1,4 @@
1
1
  module PublicActivity
2
2
  # A constant with gem's version
3
- VERSION = '0.4.0.rc2'
3
+ VERSION = '0.4.0'
4
4
  end
@@ -6,6 +6,12 @@ module PublicActivity
6
6
  def render_activity activity, options = {}
7
7
  activity.render self, options
8
8
  end
9
+ # Helper for setting content_for in activity partial, needed to
10
+ # flush remains in between partial renders.
11
+ def single_content_for(name, content = nil, &block)
12
+ @view_flow.set(name, ActiveSupport::SafeBuffer.new)
13
+ content_for(name, content, &block)
14
+ end
9
15
  end
10
16
 
11
17
  ActionView::Base.class_eval { include ViewHelpers }
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: public_activity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.rc2
5
- prerelease: 6
4
+ version: 0.4.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Piotrek Okoński
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-16 00:00:00.000000000 Z
13
+ date: 2012-10-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
@@ -157,7 +157,7 @@ dependencies:
157
157
  - !ruby/object:Gem::Version
158
158
  version: 0.12.1
159
159
  - !ruby/object:Gem::Dependency
160
- name: rails
160
+ name: railties
161
161
  requirement: !ruby/object:Gem::Requirement
162
162
  none: false
163
163
  requirements:
@@ -202,9 +202,13 @@ files:
202
202
  - Rakefile
203
203
  - README.md
204
204
  - MIT-LICENSE
205
+ - UPGRADING
205
206
  homepage: https://github.com/pokonski/public_activity
206
207
  licenses: []
207
- post_install_message:
208
+ post_install_message: ! "##################################################\n# NOTE
209
+ FOR UPGRADING FROM PRE-0.4.0 VERSION #\n##################################################\n\npublic_activity
210
+ 0.4.0 brings major changes compared to 0.3.X versions,\nplease read https://github.com/pokonski/public_activity#upgrading
211
+ \nto learn about all the changes you need to apply to properly\nupgrade your applications."
208
212
  rdoc_options: []
209
213
  require_paths:
210
214
  - lib
@@ -217,9 +221,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
217
221
  required_rubygems_version: !ruby/object:Gem::Requirement
218
222
  none: false
219
223
  requirements:
220
- - - ! '>'
224
+ - - ! '>='
221
225
  - !ruby/object:Gem::Version
222
- version: 1.3.1
226
+ version: '0'
223
227
  requirements: []
224
228
  rubyforge_project:
225
229
  rubygems_version: 1.8.24