kentouzu 0.0.1 → 0.0.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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.0.2
2
+
3
+ * Fixed bug in reify.
4
+
1
5
  ## v0.0.1
2
6
 
3
7
  * Initial release.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kentouzu (0.0.1)
4
+ kentouzu (0.0.2)
5
5
  activerecord (~> 3.0)
6
6
  railties (~> 3.0)
7
7
 
@@ -69,7 +69,7 @@ GEM
69
69
  tilt (~> 1.1, != 1.3.0)
70
70
  thor (0.16.0)
71
71
  tilt (1.3.3)
72
- tzinfo (0.3.34)
72
+ tzinfo (0.3.33)
73
73
 
74
74
  PLATFORMS
75
75
  ruby
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Kentouzu
2
2
 
3
- Kentouzu is a Ruby gem that lets you create draft versions of your ActiveRecord models upon saving. If you're developing a publishing approval queue then Kentouzu just might be what you need. It's heavily based off the wonderful [paper_trail](https://github.com/airblade/paper_trail) gem. In fact, much of the code for this gem was pretty much lifted line for line from paper_trail (because it works beautifully). You should definitely check out paper_trail and it's source. It's a nice clean example of a gem that hooks into Rails.
3
+ Kentouzu is a Ruby gem that lets you create draft versions of your ActiveRecord models upon saving. If you're developing a publishing approval queue then Kentouzu just might be what you need. It's heavily based off the wonderful [paper_trail](https://github.com/airblade/paper_trail) gem. In fact, much of the code for this gem was pretty much lifted line for line from paper_trail (because it works beautifully). You should definitely check out paper_trail and its source. It's a nice clean example of a gem that hooks into Rails.
4
4
 
5
5
  ## Rails Version
6
6
 
data/kentouzu.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Kentouzu::VERSION
8
8
  s.authors = ['Sean Eshbaugh']
9
9
  s.email = ['seaneshbaugh@gmail.com']
10
- s.homepage = 'http://seaneshbaugh.com/'
10
+ s.homepage = 'https://github.com/seaneshbaugh/kentouzu'
11
11
  s.summary = 'Add drafts to ActiveRecord models.'
12
12
  s.description = 'Add drafts to ActiveRecord models.'
13
13
 
@@ -43,7 +43,7 @@ class Draft < ActiveRecord::Base
43
43
  else
44
44
  inheritance_column_name = item_type.constantize.inheritance_column
45
45
 
46
- class_name = loaded_object.respond_to?(inheritance_column_name.to_sym) ? inheritance_column_name : item_type
46
+ class_name = loaded_object.respond_to?(inheritance_column_name.to_sym) ? loaded_object.send(inheritance_column_name.to_sym) : item_type
47
47
 
48
48
  klass = class_name.constantize
49
49
 
@@ -1,3 +1,3 @@
1
1
  module Kentouzu
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kentouzu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-30 00:00:00.000000000 Z
12
+ date: 2012-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -85,7 +85,7 @@ files:
85
85
  - lib/kentouzu/version.rb
86
86
  - spec/kentouzu/kentouzu_spec.rb
87
87
  - spec/spec_helper.rb
88
- homepage: http://seaneshbaugh.com/
88
+ homepage: https://github.com/seaneshbaugh/kentouzu
89
89
  licenses: []
90
90
  post_install_message:
91
91
  rdoc_options: []