genki-dm-has-versions 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 YOUR NAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README ADDED
@@ -0,0 +1,5 @@
1
+ dm-has-versions
2
+ ===============
3
+
4
+ A plugin for the Merb framework that provides version control for DataMapper
5
+ models.
data/Rakefile ADDED
@@ -0,0 +1,57 @@
1
+ require 'rubygems'
2
+ require 'rake/gempackagetask'
3
+
4
+ require 'merb-core'
5
+ require 'merb-core/tasks/merb'
6
+
7
+ GEM_NAME = "dm-has-versions"
8
+ GEM_VERSION = "0.0.1"
9
+ AUTHOR = "Genki Takiuchi"
10
+ EMAIL = "genki@s21g.com"
11
+ HOMEPAGE = "http://blog.s21g.com/genki"
12
+ SUMMARY = "Merb plugin that provides version control for DataMapper models."
13
+
14
+ spec = Gem::Specification.new do |s|
15
+ s.rubyforge_project = 'merb'
16
+ s.name = GEM_NAME
17
+ s.version = GEM_VERSION
18
+ s.platform = Gem::Platform::RUBY
19
+ s.has_rdoc = true
20
+ s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
21
+ s.summary = SUMMARY
22
+ s.description = s.summary
23
+ s.author = AUTHOR
24
+ s.email = EMAIL
25
+ s.homepage = HOMEPAGE
26
+ s.add_dependency('merb', '>= 1.0.7.1')
27
+ s.require_path = 'lib'
28
+ s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,spec}/**/*")
29
+ end
30
+
31
+ Rake::GemPackageTask.new(spec) do |pkg|
32
+ pkg.gem_spec = spec
33
+ end
34
+
35
+ desc "install the plugin as a gem"
36
+ task :install do
37
+ Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
38
+ end
39
+
40
+ desc "Uninstall the gem"
41
+ task :uninstall do
42
+ Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION)
43
+ end
44
+
45
+ desc "Create a gemspec file"
46
+ task :gemspec do
47
+ File.open("#{GEM_NAME}.gemspec", "w") do |file|
48
+ file.puts spec.to_ruby
49
+ end
50
+ end
51
+
52
+ desc "Run specs"
53
+ task :spec do
54
+ sh "spec spec --color"
55
+ end
56
+
57
+ task :default => :spec
data/TODO ADDED
@@ -0,0 +1,5 @@
1
+ TODO:
2
+ Fix LICENSE with your name
3
+ Fix Rakefile with your name and contact info
4
+ Add your code to lib/dm-has-versions.rb
5
+ Add your Merb rake tasks to lib/dm-has-versions/merbtasks.rb
@@ -0,0 +1,80 @@
1
+ module DataMapper
2
+ module Has
3
+ module Versions
4
+ def has_versions(options = {})
5
+ ignore = options[:ignore]
6
+
7
+ class << self; self end.class_eval do
8
+ define_method :const_missing do |name|
9
+ storage_name = Extlib::Inflection.tableize(self.name + "Version")
10
+ model = DataMapper::Model.new(storage_name)
11
+
12
+ if name == :Version
13
+ properties.each do |property|
14
+ options = property.options
15
+ model.property property.name, property.type, options
16
+ end
17
+ model.belongs_to self.storage_name.singular.intern
18
+
19
+ self.const_set("Version", model)
20
+ else
21
+ super(name)
22
+ end
23
+ end
24
+ end
25
+
26
+ self.after_class_method :auto_migrate! do
27
+ self::Version.auto_migrate!
28
+ end
29
+
30
+ self.after_class_method :auto_upgrade! do
31
+ self::Version.auto_upgrade!
32
+ end
33
+
34
+ self.before :attribute_set do |property, value|
35
+ pending_version_attributes[property] ||= self.attribute_get(property)
36
+ end
37
+
38
+ self.after :update do |result|
39
+ if result && dirty_attributes.except(*ignore).present?
40
+ attributes = self.attributes.merge(pending_version_attributes)
41
+ original_key = "#{self.class.storage_name.singular}_id"
42
+ attributes[original_key.intern] = self.id
43
+ self.class::Version.create(attributes.except(:id))
44
+ self.pending_version_attributes.clear
45
+ end
46
+
47
+ result
48
+ end
49
+
50
+ include DataMapper::Has::Versions::InstanceMethods
51
+ end
52
+
53
+ module InstanceMethods
54
+ ##
55
+ # Returns a hash of original values to be stored in the
56
+ # versions table when a new version is created. It is
57
+ # cleared after a version model is created.
58
+ #
59
+ # --
60
+ # @return <Hash>
61
+ def pending_version_attributes
62
+ @pending_version_attributes ||= {}
63
+ end
64
+
65
+ ##
66
+ # Returns a collection of other versions of this resource.
67
+ # The versions are related on the models keys, and ordered
68
+ # by the version field.
69
+ #
70
+ # --
71
+ # @return <Collection>
72
+ def versions
73
+ version = self.class.const_get("Version")
74
+ original_key = "#{self.class.storage_name.singular}_id".intern
75
+ version.all(original_key => self.id)
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,6 @@
1
+ namespace :dm_has_versions do
2
+ desc "Do something for dm-has-versions"
3
+ task :default do
4
+ puts "dm-has-versions doesn't do anything"
5
+ end
6
+ end
@@ -0,0 +1,20 @@
1
+ # make sure we're running inside Merb
2
+ if defined?(Merb::Plugins)
3
+
4
+ # Merb gives you a Merb::Plugins.config hash...feel free to put your stuff in your piece of it
5
+ Merb::Plugins.config[:dm_has_versions] = {
6
+ :chickens => false
7
+ }
8
+
9
+ Merb::BootLoader.before_app_loads do
10
+ # require code that must be loaded before the application
11
+ require 'dm-has-version/has/versions'
12
+ DataMapper::Model.append_extensions DataMapper::Has::Versions
13
+ end
14
+
15
+ Merb::BootLoader.after_app_loads do
16
+ # code that can be required after the application loads
17
+ end
18
+
19
+ Merb::Plugins.add_rakefiles "dm-has-versions/merbtasks"
20
+ end
@@ -0,0 +1,38 @@
1
+ require File.dirname(__FILE__) + '/spec_helper'
2
+
3
+ describe "dm-has-versions" do
4
+ describe "a story which should have versions" do
5
+ before do
6
+ Story.all.destroy!
7
+ Story.auto_migrate!
8
+ @story = Story.new(:title => 'test-1')
9
+ @story.save
10
+ end
11
+
12
+ it "should tested on 1 story" do
13
+ Story.count.should == 1
14
+ @story.should_not be_new_record
15
+ @story.title.should == 'test-1'
16
+ end
17
+
18
+ it "should have Version class" do
19
+ Story.const_get(:Version).should_not be_nil
20
+ Story::Version.should be_respond_to(:properties)
21
+ end
22
+
23
+ it "should have versions" do
24
+ @story.should be_respond_to(:versions)
25
+ @story.versions.should be_kind_of(DataMapper::Collection)
26
+ @story.versions.should be_empty
27
+ end
28
+
29
+ it "should generate versions" do
30
+ @story.versions.should be_empty
31
+ @story.update_attributes :title => 'test-2'
32
+ @story.versions.should be_present
33
+ @story.versions.size.should == 1
34
+ @story.update_attributes :title => 'test-3'
35
+ @story.versions.size.should == 2
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,9 @@
1
+ class Story
2
+ include DataMapper::Resource
3
+
4
+ property :id, Integer, :serial => true
5
+ property :title, String
6
+ property :updated_at, DateTime
7
+
8
+ has_versions :ignore => [:updated_at]
9
+ end
@@ -0,0 +1,108 @@
1
+ Thu, 15 Jan 2009 12:52:48 GMT ~ info ~ Logfile created
2
+ ~ Could not load /Users/takiuchi/project/dm-has-versions/spec/fixture/app/models/story.rb:
3
+
4
+ uninitialized constant DataMapper::Has::Versioned - (NameError)
5
+
6
+ /Users/takiuchi/project/dm-has-versions/spec/../lib/dm-has-versions/has/versions.rb:50:in `has_versions'
7
+ /Users/takiuchi/project/dm-has-versions/spec/fixture/app/models/story.rb:8
8
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
9
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
10
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:863:in `load_file'
11
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:1018:in `load_classes_with_requirements'
12
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:1015:in `each'
13
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:1015:in `load_classes_with_requirements'
14
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:903:in `load_classes'
15
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:641:in `run'
16
+ /opt/local/lib/ruby/gems/1.8/gems/extlib-0.9.9/lib/extlib/dictionary.rb:268:in `each'
17
+ /opt/local/lib/ruby/gems/1.8/gems/extlib-0.9.9/lib/extlib/dictionary.rb:268:in `each'
18
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:639:in `run'
19
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:99:in `run'
20
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/server.rb:172:in `bootup'
21
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/server.rb:42:in `start'
22
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core.rb:170:in `start'
23
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core.rb:183:in `start_environment'
24
+ /Users/takiuchi/project/dm-has-versions/spec/spec_helper.rb:13
25
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
26
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
27
+ /Users/takiuchi/project/dm-has-versions/spec/dm-has-versions_spec.rb:1
28
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in `load'
29
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in `load_files'
30
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in `each'
31
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in `load_files'
32
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:98:in `run_examples'
33
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/command_line.rb:10:in `run'
34
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/bin/spec:4
35
+ /opt/local/bin/spec:19:in `load'
36
+ /opt/local/bin/spec:19
37
+ ~ Could not load /Users/takiuchi/project/dm-has-versions/spec/fixture/app/models/story.rb:
38
+
39
+ uninitialized constant DataMapper::Has::Versioned - (NameError)
40
+
41
+ /Users/takiuchi/project/dm-has-versions/spec/../lib/dm-has-versions/has/versions.rb:50:in `has_versions'
42
+ /Users/takiuchi/project/dm-has-versions/spec/fixture/app/models/story.rb:8
43
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
44
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
45
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:863:in `load_file'
46
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:1018:in `load_classes_with_requirements'
47
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:1015:in `each'
48
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:1015:in `load_classes_with_requirements'
49
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:903:in `load_classes'
50
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:641:in `run'
51
+ /opt/local/lib/ruby/gems/1.8/gems/extlib-0.9.9/lib/extlib/dictionary.rb:268:in `each'
52
+ /opt/local/lib/ruby/gems/1.8/gems/extlib-0.9.9/lib/extlib/dictionary.rb:268:in `each'
53
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:639:in `run'
54
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:99:in `run'
55
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/server.rb:172:in `bootup'
56
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/server.rb:42:in `start'
57
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core.rb:170:in `start'
58
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core.rb:183:in `start_environment'
59
+ /Users/takiuchi/project/dm-has-versions/spec/spec_helper.rb:13
60
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
61
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
62
+ /Users/takiuchi/project/dm-has-versions/spec/dm-has-versions_spec.rb:1
63
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in `load'
64
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in `load_files'
65
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in `each'
66
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in `load_files'
67
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:98:in `run_examples'
68
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/command_line.rb:10:in `run'
69
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/bin/spec:4
70
+ /opt/local/bin/spec:19:in `load'
71
+ /opt/local/bin/spec:19
72
+ ~ Could not load /Users/takiuchi/project/dm-has-versions/spec/fixture/app/models/story.rb:
73
+
74
+ undefined local variable or method `n' for #<Class:Story> - (NameError)
75
+
76
+ /Users/takiuchi/project/dm-has-versions/spec/../lib/dm-has-versions/has/versions.rb:25:in `has_versions'
77
+ /Users/takiuchi/project/dm-has-versions/spec/../lib/dm-has-versions/has/versions.rb:7:in `class_eval'
78
+ /Users/takiuchi/project/dm-has-versions/spec/../lib/dm-has-versions/has/versions.rb:7:in `has_versions'
79
+ /Users/takiuchi/project/dm-has-versions/spec/fixture/app/models/story.rb:8
80
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
81
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
82
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:863:in `load_file'
83
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:1018:in `load_classes_with_requirements'
84
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:1015:in `each'
85
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:1015:in `load_classes_with_requirements'
86
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:903:in `load_classes'
87
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:641:in `run'
88
+ /opt/local/lib/ruby/gems/1.8/gems/extlib-0.9.9/lib/extlib/dictionary.rb:268:in `each'
89
+ /opt/local/lib/ruby/gems/1.8/gems/extlib-0.9.9/lib/extlib/dictionary.rb:268:in `each'
90
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:639:in `run'
91
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/bootloader.rb:99:in `run'
92
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/server.rb:172:in `bootup'
93
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core/server.rb:42:in `start'
94
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core.rb:170:in `start'
95
+ /opt/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-core.rb:183:in `start_environment'
96
+ /Users/takiuchi/project/dm-has-versions/spec/spec_helper.rb:14
97
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
98
+ /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
99
+ /Users/takiuchi/project/dm-has-versions/spec/dm-has-versions_spec.rb:1
100
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in `load'
101
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:14:in `load_files'
102
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in `each'
103
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/example_group_runner.rb:13:in `load_files'
104
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:98:in `run_examples'
105
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/command_line.rb:10:in `run'
106
+ /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/bin/spec:4
107
+ /opt/local/bin/spec:19:in `load'
108
+ /opt/local/bin/spec:19
@@ -0,0 +1,29 @@
1
+ $:.push File.join(File.dirname(__FILE__), '..', 'lib')
2
+
3
+ require 'rubygems'
4
+ require 'merb-core'
5
+ require 'dm-core'
6
+ require "spec" # Satisfies Autotest and anyone else not using the Rake tasks
7
+ require 'dm-has-versions/has/versions'
8
+ require 'dm-aggregates'
9
+
10
+ # this loads all plugins required in your init file so don't add them
11
+ # here again, Merb will do it for you
12
+ DataMapper::Model.append_extensions DataMapper::Has::Versions
13
+ Merb.disable(:initfile)
14
+ Merb.start_environment(
15
+ :testing => true,
16
+ :adapter => 'runner',
17
+ :environment => ENV['MERB_ENV'] || 'test',
18
+ :merb_root => File.dirname(__FILE__) / 'fixture',
19
+ :log_file => File.dirname(__FILE__) / "merb_test.log"
20
+ )
21
+ DataMapper.setup(:default, "sqlite3::memory:")
22
+
23
+ Spec::Runner.configure do |config|
24
+ config.include(Merb::Test::ViewHelper)
25
+ config.include(Merb::Test::RouteHelper)
26
+ config.include(Merb::Test::ControllerHelper)
27
+
28
+ DataMapper.auto_migrate!
29
+ end
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: genki-dm-has-versions
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Genki Takiuchi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-01-16 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: merb
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.0.7.1
23
+ version:
24
+ description: Merb plugin that provides version control for DataMapper models.
25
+ email: genki@s21g.com
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files:
31
+ - README
32
+ - LICENSE
33
+ - TODO
34
+ files:
35
+ - LICENSE
36
+ - README
37
+ - Rakefile
38
+ - TODO
39
+ - lib/dm-has-versions
40
+ - lib/dm-has-versions/has
41
+ - lib/dm-has-versions/has/versions.rb
42
+ - lib/dm-has-versions/merbtasks.rb
43
+ - lib/dm-has-versions.rb
44
+ - spec/dm-has-versions_spec.rb
45
+ - spec/fixture
46
+ - spec/fixture/app
47
+ - spec/fixture/app/models
48
+ - spec/fixture/app/models/story.rb
49
+ - spec/merb_test.log
50
+ - spec/spec_helper.rb
51
+ has_rdoc: true
52
+ homepage: http://blog.s21g.com/genki
53
+ post_install_message:
54
+ rdoc_options: []
55
+
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: "0"
63
+ version:
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: "0"
69
+ version:
70
+ requirements: []
71
+
72
+ rubyforge_project: merb
73
+ rubygems_version: 1.2.0
74
+ signing_key:
75
+ specification_version: 2
76
+ summary: Merb plugin that provides version control for DataMapper models.
77
+ test_files: []
78
+