prepro 0.0.5 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/gem_workflow.textile +2 -5
- data/lib/prepro/processor.rb +2 -2
- data/lib/prepro/version.rb +1 -1
- metadata +3 -5
- data/Changelog +0 -26
- data/prepro-0.1.5.gem +0 -0
data/doc/gem_workflow.textile
CHANGED
@@ -3,11 +3,8 @@ 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
|
-
# build
|
7
|
-
gem build prepro.gemspec
|
6
|
+
# gem build prepro.gemspec
|
8
7
|
# update Changelog
|
9
|
-
#
|
10
|
-
gem push prepro-x.x.x.gem
|
8
|
+
# gem push prepro-x.x.x.gem
|
11
9
|
# commit all changes to git
|
12
10
|
# create a git tag for the new version
|
13
|
-
git tag '0.1.5'
|
data/lib/prepro/processor.rb
CHANGED
@@ -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.
|
27
|
+
model_instance.assign_attributes(model_attrs, :as => options[:as])
|
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.
|
45
|
+
model_instance.assign_attributes(model_attrs, :as => options[:as])
|
46
46
|
before_save_on_update(model_instance, processor_attrs)
|
47
47
|
success = model_instance.save
|
48
48
|
[model_instance, success]
|
data/lib/prepro/version.rb
CHANGED
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 1
|
9
9
|
- 5
|
10
|
-
version: 0.
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jo Hund
|
@@ -28,7 +28,6 @@ extensions: []
|
|
28
28
|
extra_rdoc_files: []
|
29
29
|
|
30
30
|
files:
|
31
|
-
- Changelog
|
32
31
|
- doc/gem_workflow.textile
|
33
32
|
- lib/prepro.rb
|
34
33
|
- lib/prepro/authorization_error.rb
|
@@ -38,7 +37,6 @@ files:
|
|
38
37
|
- prepro-0.0.2.gem
|
39
38
|
- prepro-0.0.3.gem
|
40
39
|
- prepro-0.0.4.gem
|
41
|
-
- prepro-0.1.5.gem
|
42
40
|
- prepro.gemspec
|
43
41
|
- readme.textile
|
44
42
|
has_rdoc: true
|
data/Changelog
DELETED
@@ -1,26 +0,0 @@
|
|
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
|
data/prepro-0.1.5.gem
DELETED
Binary file
|