simple_versioning 0.0.1.1 → 0.0.1.2

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.
@@ -0,0 +1,20 @@
1
+ class CreateSimpleVersions < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :versions do |t|
4
+ t.belongs_to :versioned, :polymorphic => true
5
+ t.text :yaml
6
+ t.integer :number
7
+ t.timestamps
8
+ end
9
+
10
+ change_table :versions do |t|
11
+ t.index [:versioned_id, :versioned_type]
12
+ t.index :number
13
+ t.index :created_at
14
+ end
15
+ end
16
+
17
+ def self.down
18
+ drop_table :versions
19
+ end
20
+ end
@@ -1,7 +1,7 @@
1
1
  require 'active_record'
2
2
 
3
3
  module SimpleVersioning
4
- VERSION = "0.0.1.1"
4
+ VERSION = "0.0.1.2"
5
5
 
6
6
  class Version < ActiveRecord::Base
7
7
  validates_numericality_of :number, :only_integer => true, :greater_than => 0
@@ -8,9 +8,9 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Swanand Pagnis"]
10
10
  s.email = ["swanand@kaverisoft.com"]
11
- s.homepage = "http://github.com/spp/simple_versioning"
12
- s.summary = %q{Provide a vanilla versioning support}
13
- s.description = %q{Keeps track of your models attributes}
11
+ s.homepage = "http://github.com/swanandp/simple_versioning"
12
+ s.summary = %q{Provide a vanilla versioning support for ActiveRecord}
13
+ s.description = %q{Keeps track of all your models attributes in a polymorphically associated table}
14
14
 
15
15
  s.rubyforge_project = "simple_versioning"
16
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_versioning
3
3
  version: !ruby/object:Gem::Version
4
- hash: 73
4
+ hash: 79
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 1
10
- - 1
11
- version: 0.0.1.1
10
+ - 2
11
+ version: 0.0.1.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Swanand Pagnis
@@ -35,7 +35,7 @@ dependencies:
35
35
  version: 2.2.2
36
36
  type: :runtime
37
37
  version_requirements: *id001
38
- description: Keeps track of your models attributes
38
+ description: Keeps track of all your models attributes in a polymorphically associated table
39
39
  email:
40
40
  - swanand@kaverisoft.com
41
41
  executables: []
@@ -49,11 +49,12 @@ files:
49
49
  - Gemfile
50
50
  - README.markdown
51
51
  - Rakefile
52
+ - examples/migration/create_simple_versioning.rb
52
53
  - lib/simple_versioning.rb
53
54
  - lib/simple_versioning/version.rb
54
55
  - simple_versioning.gemspec
55
56
  has_rdoc: true
56
- homepage: http://github.com/spp/simple_versioning
57
+ homepage: http://github.com/swanandp/simple_versioning
57
58
  licenses: []
58
59
 
59
60
  post_install_message:
@@ -85,6 +86,6 @@ rubyforge_project: simple_versioning
85
86
  rubygems_version: 1.3.7
86
87
  signing_key:
87
88
  specification_version: 3
88
- summary: Provide a vanilla versioning support
89
+ summary: Provide a vanilla versioning support for ActiveRecord
89
90
  test_files: []
90
91