prepro 0.0.4 → 0.0.5

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/Changelog ADDED
@@ -0,0 +1,26 @@
1
+ Prepro Changelog
2
+
3
+ There are two versions of Prepro:
4
+
5
+ * 0.1.x series works with Rails 3.1
6
+ * 0.0.x series works with Rails 3.0 (code maintained in rails_30 branch)
7
+
8
+ We will keep the patch versions in sync, as long as we have the two series.
9
+
10
+ Rails 3.1 series
11
+ ================
12
+
13
+ 0.1.5
14
+ -----
15
+
16
+ First release of dual series for Rails 3.1. No functional changes from
17
+ 0.0.4. The purpose of this release is to establish the dual series versioning.
18
+
19
+ Rails 3.0 series
20
+ ================
21
+
22
+ 0.0.5
23
+ -----
24
+
25
+ First release of dual series for Rails 3.0.
26
+ Made attribute assignment compatible with Rails 3.0
@@ -3,6 +3,11 @@ h1. How to cut a new version
3
3
  # after all changes are made
4
4
  # update the version in lib/version.rb, following semantic versioning
5
5
  # cd into prepro root dir
6
- # gem build prepro.gemspec
7
- # gem push prepro-x.x.x.gem
6
+ # build the gem
7
+ gem build prepro.gemspec
8
+ # update Changelog
9
+ # push the gem to rubygems.org
10
+ gem push prepro-x.x.x.gem
8
11
  # commit all changes to git
12
+ # create a git tag for the new version
13
+ git tag '0.1.5'
@@ -24,7 +24,7 @@ module Prepro
24
24
  enforce_permissions(model_instance.creatable_by?(actor))
25
25
  end
26
26
  before_assign_attributes_on_create(model_instance, processor_attrs)
27
- model_instance.assign_attributes(model_attrs, :as => options[:as])
27
+ model_instance.attributes = model_attrs
28
28
  before_save_on_create(model_instance, processor_attrs)
29
29
  success = model_instance.save
30
30
  [model_instance, success]
@@ -42,7 +42,7 @@ module Prepro
42
42
  enforce_permissions(model_instance.updatable_by?(actor))
43
43
  end
44
44
  before_assign_attributes_on_update(model_instance, processor_attrs)
45
- model_instance.assign_attributes(model_attrs, :as => options[:as])
45
+ model_instance.attributes = model_attrs
46
46
  before_save_on_update(model_instance, processor_attrs)
47
47
  success = model_instance.save
48
48
  [model_instance, success]
@@ -1,3 +1,3 @@
1
1
  module Prepro
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/prepro-0.0.4.gem ADDED
Binary file
data/prepro-0.1.5.gem ADDED
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prepro
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jo Hund
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-02 00:00:00 -08:00
18
+ date: 2012-02-04 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -28,6 +28,7 @@ extensions: []
28
28
  extra_rdoc_files: []
29
29
 
30
30
  files:
31
+ - Changelog
31
32
  - doc/gem_workflow.textile
32
33
  - lib/prepro.rb
33
34
  - lib/prepro/authorization_error.rb
@@ -36,6 +37,8 @@ files:
36
37
  - lib/prepro/version.rb
37
38
  - prepro-0.0.2.gem
38
39
  - prepro-0.0.3.gem
40
+ - prepro-0.0.4.gem
41
+ - prepro-0.1.5.gem
39
42
  - prepro.gemspec
40
43
  - readme.textile
41
44
  has_rdoc: true