rtiss_acts_as_versioned 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a47925d46be533c4270653aa1c6ecd3bdec9a8d5
4
- data.tar.gz: 2d1c25a86d66ab51f3c747f26abc34818e8a4b53
3
+ metadata.gz: 83d1bf02ac4a4e8fe21f71e9d503a86486f0804e
4
+ data.tar.gz: 492102d8c64416677319b3af7d3b30826e309564
5
5
  SHA512:
6
- metadata.gz: a117151d322b33a6a87eec2931bb4f6d3290c84d9ffcc18b3e248188e745fcd7a81557893c585e2d061b861a4893b57af23979120a9e6637b3b5512a1528e400
7
- data.tar.gz: 7bdca076be71230b7e08e4daf4527177829efce40f884265e4fbfeed4f17f2111f30fe1ed326d61e9457f3891ba798f4d22f6f7973b35d44963b403cdd197ee4
6
+ metadata.gz: 40de928a24e5a7d439ab36d87a15a52dba42168b3219460569c0357a7a3012c0a2c400e632beb29be8a8fc9d80e9ac4ac3cc90e7a5aa72743a69e6cdde0e57ff
7
+ data.tar.gz: 04b89f39d2de426b2a3c22634f198861b0283d78acfd1a45d7d2210e64bec347a0c1e6696fcc1e40aa3cc5be14735d32952b828b5baad26af1b25a85fcbc260a
data/README CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  This library adds simple versioning to an ActiveRecord module. ActiveRecord is required.
4
4
 
5
+ This is the patched version for rtiss.
6
+
7
+ Versions 0.6.x (rails2 branch) are for rails 2.x
8
+ Versions 0.7.x (rails3 branch) are for rails 3.x
9
+ Versions 0.8.x (master branch) are for rails 4.x
10
+
5
11
  == Resources
6
12
 
7
13
  Install
@@ -21,4 +27,10 @@ Subversion
21
27
  * http://svn.github.com/technoweenie/acts_as_versioned.git
22
28
 
23
29
  Special thanks to Dreamer on ##rubyonrails for help in early testing. His ServerSideWiki (http://serversidewiki.com)
24
- was the first project to use acts_as_versioned <em>in the wild</em>.
30
+ was the first project to use acts_as_versioned <em>in the wild</em>.
31
+
32
+ == Publishing a new release
33
+
34
+ * increase the VERSION in rtiss_acts_as_versioned.rb
35
+ * run: bundle exec rake test
36
+ * run: bundle exec rake release
data/Rakefile CHANGED
@@ -88,10 +88,6 @@ end
88
88
  #############################################################################
89
89
 
90
90
  task :release => :build do
91
- unless `git branch` =~ /^\* master$/
92
- puts "You must be on the master branch to release!"
93
- exit!
94
- end
95
91
  sh "git commit --allow-empty -a -m 'Release #{version}'"
96
92
  sh "git tag #{version}"
97
93
  sh "git push origin master --tags"
@@ -20,7 +20,7 @@
20
20
  # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
 
23
- VERSION = '0.8.0'
23
+ VERSION = '0.8.1'
24
24
 
25
25
  module ActiveRecord #:nodoc:
26
26
  module Acts #:nodoc:
@@ -276,7 +276,7 @@ module ActiveRecord #:nodoc:
276
276
  end
277
277
 
278
278
  new_version = clone
279
- new_version.version += 1
279
+ # new_version.version += 1
280
280
  new_version.send("#{self.original_class.deleted_in_original_table_flag}=", false)
281
281
  new_version.send("#{self.original_class.record_restored_flag}=", true)
282
282
  if new_version.respond_to? :updated_at=
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  ## If your rubyforge_project name is different, then edit it and comment out
13
13
  ## the sub! line in the Rakefile
14
14
  s.name = 'rtiss_acts_as_versioned'
15
- s.version = '0.8.0'
15
+ s.version = '0.8.1'
16
16
  s.date = '2014-10-30'
17
17
  s.rubyforge_project = 'rtiss_acts_as_versioned'
18
18
  s.summary = "Add simple versioning to ActiveRecord models (TISS version)."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtiss_acts_as_versioned
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Olson