orm_adapter 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: cc52f312f40978e98faccf378d0478a5bc4778b0
4
+ data.tar.gz: fc8d36e106c659dbac6b7f620657899c81245248
5
+ SHA512:
6
+ metadata.gz: 9b4889fc827dfe94918c89873dbf5b6bd9063321674115ac3990d1422be7263b8c9a777e3f1692511cd404ae31bbe292bf6eedab7e4e5231ed868258ab62991b
7
+ data.tar.gz: 2833a8437efde00b070b520926d2ff42c080a9f5737db60bfe3687e766324148bfbe38cc4d5049be69a72d0169c9bec75a71ba35f3d4204a8758cb9b1e6ed752
data/.gitignore CHANGED
@@ -5,6 +5,7 @@
5
5
  .rvmrc
6
6
  .bundle
7
7
  Gemfile.lock
8
+ gemfiles/*.lock
8
9
 
9
10
  # built docs
10
11
  .yardoc
@@ -12,4 +13,4 @@ doc
12
13
 
13
14
  # built gems
14
15
  pkg
15
- *.gem
16
+ *.gem
@@ -1,4 +1,17 @@
1
1
  language: ruby
2
- rvm:
3
- - 1.9.3
4
- before_install: "cp Gemfile.lock.development Gemfile.lock"
2
+
3
+ matrix:
4
+ include:
5
+ - rvm: 1.9.3
6
+ gemfile: Gemfile
7
+ services: mongodb
8
+
9
+ - rvm: 2.0.0
10
+ gemfile: Gemfile
11
+ services: mongodb
12
+
13
+ - rvm: 1.9.3
14
+ gemfile: gemfiles/activerecord-4.gemfile
15
+
16
+ - rvm: 2.0.0
17
+ gemfile: gemfiles/activerecord-4.gemfile
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
- gemspec
3
+ gemspec
@@ -1,3 +1,7 @@
1
+ == 0.4.1
2
+
3
+ * Adds activerecord 4 to the test suite
4
+
1
5
  == 0.4.0
2
6
 
3
7
  * Adds :limit, and :offset options to #find_all [Fred Wu]
@@ -8,10 +12,10 @@
8
12
  * Add note about the scope of ORM Adapter re: model instance methods
9
13
 
10
14
  == 0.2.0
11
-
15
+
12
16
  * Normalise :id in find conditions [Tim Galeckas, Ian White]
13
17
  * Allow find_first and find_all to take no arguments [Tim Galeckas, Ian White]
14
-
18
+
15
19
  == 0.1.0
16
20
 
17
21
  * Add #destroy(object) to the API [Fred Wu]
@@ -55,4 +59,4 @@
55
59
 
56
60
  == 0.0.1
57
61
 
58
- * Initial release [Ian White, José Valim]
62
+ * Initial release [Ian White, José Valim]
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2012 Ian White and José Valim
1
+ Copyright (c) 2010-2013 Ian White and José Valim
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -7,9 +7,9 @@ Provides a single point of entry for popular ruby ORMs. Its target audience is
7
7
  require 'orm_adapter'
8
8
 
9
9
  User # is it an ActiveRecord, DM Resource, MongoMapper or MongoId Document?
10
-
10
+
11
11
  User.to_adapter.find_first :name => 'Fred' # we don't care!
12
-
12
+
13
13
  user_model = User.to_adapter
14
14
  user_model.get!(1) # find a record by id
15
15
  user_model.find_first(:name => 'fred') # find first fred
@@ -18,12 +18,12 @@ Provides a single point of entry for popular ruby ORMs. Its target audience is
18
18
  user_model.find_all # find all users
19
19
  user_model.find_all(:name => 'fred') # find all freds
20
20
  user_model.find_all(:order => :name) # find all freds, ordered by name
21
- user_model.create!(:name => 'fred') # create a fred
21
+ user_model.create!(:name => 'fred') # create a fred
22
22
  user_model.destroy(object) # destroy the user object
23
-
23
+
24
24
 
25
25
  @see OrmAdapter::Base for more details of the supported API
26
-
26
+
27
27
  == Supported ORMs
28
28
 
29
29
  Currently supported ORMs are *ActiveRecord*, *DataMapper*, *MongoMapper*, and *MongoId*.
@@ -35,7 +35,7 @@ To write an adapter look at <tt>lib/orm_adapter/adapters/active_record.rb</tt> f
35
35
 
36
36
  == Goals
37
37
 
38
- ORM Adapter's goal is to support a minimum API used by most of the plugins that needs agnosticism beyond Active Model.
38
+ ORM Adapter's goal is to support a minimum API used by most of the plugins that needs agnosticism beyond Active Model.
39
39
 
40
40
  ORM Adapter will support only basic methods, as +get+, +find_first+, <tt>create!</tt> and so forth. It is not ORM Adapter's goal to support different query constructions, handle table joins, etc.
41
41
 
@@ -61,11 +61,14 @@ To run the specs, you can start from the last known good set of gem dependencies
61
61
 
62
62
  git clone http://github.com/ianwhite/orm_adapter
63
63
  cd orm_adapter
64
- cp Gemfile.lock.development Gemfile.lock
65
- bundle
64
+ bundle install
66
65
  bundle exec rake spec
67
66
 
67
+ To run specs for different versions of ORMs, you can specify a gemfile from the `gemfiles` directory, e.g.
68
+
69
+ BUNDLE_GEMFILE=gemiles/activerecord4.gemfile bundle install
70
+ BUNDLE_GEMFILE=gemiles/activerecord4.gemfile bundle exec rake spec
68
71
 
69
72
  == Copyright
70
73
 
71
- Copyright (c) 2010-2012 Ian White and José Valim. See LICENSE for details.
74
+ Copyright (c) 2010-2013 Ian White and José Valim. See LICENSE for details.
data/Rakefile CHANGED
@@ -26,12 +26,3 @@ rescue LoadError
26
26
  end
27
27
 
28
28
  Bundler::GemHelper.install_tasks
29
-
30
- task :release => :check_gemfile
31
-
32
- task :check_gemfile do
33
- if File.exists?("Gemfile.lock") && File.read("Gemfile.lock") != File.read("Gemfile.lock.development")
34
- cp "Gemfile.lock", "Gemfile.lock.development"
35
- raise "** Gemfile.lock.development has been updated, please commit these changes."
36
- end
37
- end
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rake", ">= 10"
4
+ gem "activerecord", "~> 4.0.1"
5
+ gem "rspec", ">= 2.4.0"
6
+ gem "sqlite3", ">= 1.3.2"
@@ -26,7 +26,7 @@ module OrmAdapter
26
26
  # @see OrmAdapter::Base#find_all
27
27
  def find_all(options = {})
28
28
  conditions, order, limit, offset = extract_conditions!(options)
29
- klass.where(conditions_to_fields(conditions)).order(*order_clause(order)).limit(limit).offset(offset).all
29
+ klass.where(conditions_to_fields(conditions)).order(*order_clause(order)).limit(limit).offset(offset)
30
30
  end
31
31
 
32
32
  # @see OrmAdapter::Base#create!
@@ -1,3 +1,3 @@
1
1
  module OrmAdapter
2
- VERSION = "0.4.0"
3
- end
2
+ VERSION = "0.4.1"
3
+ end
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.summary = "orm_adapter provides a single point of entry for using basic features of popular ruby ORMs. Its target audience is gem authors who want to support many ruby ORMs."
11
11
  s.email = "ian.w.white@gmail.com"
12
12
  s.homepage = "http://github.com/ianwhite/orm_adapter"
13
+ s.license = "MIT"
13
14
 
14
15
  s.rubyforge_project = "orm_adapter"
15
16
  s.required_rubygems_version = ">= 1.3.6"
@@ -22,9 +23,9 @@ Gem::Specification.new do |s|
22
23
  s.add_development_dependency "git", ">= 1.2.5"
23
24
  s.add_development_dependency "yard", ">= 0.6.0"
24
25
  s.add_development_dependency "rake", ">= 0.8.7"
25
- s.add_development_dependency "activerecord", ">= 3.0.0"
26
- s.add_development_dependency "mongoid", ">= 2.0.0.beta.20"
27
- s.add_development_dependency "mongo_mapper", ">= 0.9.0"
26
+ s.add_development_dependency "activerecord", ">= 3.2.15"
27
+ s.add_development_dependency "mongoid", "~> 2.8.0"
28
+ s.add_development_dependency "mongo_mapper", "~> 0.11.0"
28
29
  s.add_development_dependency "bson_ext", ">= 1.3.0"
29
30
  s.add_development_dependency "rspec", ">= 2.4.0"
30
31
  s.add_development_dependency "sqlite3", ">= 1.3.2"
@@ -3,7 +3,7 @@ require 'orm_adapter/example_app_shared'
3
3
 
4
4
  if !defined?(ActiveRecord::Base)
5
5
  puts "** require 'active_record' to run the specs in #{__FILE__}"
6
- else
6
+ else
7
7
  ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ":memory:")
8
8
 
9
9
  ActiveRecord::Migration.suppress_messages do
@@ -12,7 +12,7 @@ else
12
12
  create_table(:notes, :force => true) {|t| t.belongs_to :owner, :polymorphic => true }
13
13
  end
14
14
  end
15
-
15
+
16
16
  module ArOrmSpec
17
17
  class User < ActiveRecord::Base
18
18
  has_many :notes, :as => :owner
@@ -25,33 +25,33 @@ else
25
25
  class Note < AbstractNoteClass
26
26
  belongs_to :owner, :polymorphic => true
27
27
  end
28
-
28
+
29
29
  # here be the specs!
30
30
  describe '[ActiveRecord orm adapter]' do
31
31
  before do
32
32
  User.delete_all
33
33
  Note.delete_all
34
34
  end
35
-
35
+
36
36
  it_should_behave_like "example app with orm_adapter" do
37
37
  let(:user_class) { User }
38
38
  let(:note_class) { Note }
39
39
  end
40
-
40
+
41
41
  describe "#conditions_to_fields" do
42
42
  describe "with non-standard association keys" do
43
43
  class PerverseNote < Note
44
44
  belongs_to :user, :foreign_key => 'owner_id'
45
45
  belongs_to :pwner, :polymorphic => true, :foreign_key => 'owner_id', :foreign_type => 'owner_type'
46
46
  end
47
-
47
+
48
48
  let(:user) { User.create! }
49
49
  let(:adapter) { PerverseNote.to_adapter }
50
-
50
+
51
51
  it "should convert polymorphic object in conditions to the appropriate fields" do
52
52
  adapter.send(:conditions_to_fields, :pwner => user).should == {'owner_id' => user.id, 'owner_type' => user.class.name}
53
53
  end
54
-
54
+
55
55
  it "should convert belongs_to object in conditions to the appropriate fields" do
56
56
  adapter.send(:conditions_to_fields, :user => user).should == {'owner_id' => user.id}
57
57
  end
@@ -59,4 +59,4 @@ else
59
59
  end
60
60
  end
61
61
  end
62
- end
62
+ end
@@ -3,10 +3,10 @@ require 'orm_adapter/example_app_shared'
3
3
 
4
4
  if !defined?(DataMapper)
5
5
  puts "** require 'dm-core' to run the specs in #{__FILE__}"
6
- else
7
-
6
+ else
7
+
8
8
  DataMapper.setup(:default, 'sqlite::memory:')
9
-
9
+
10
10
  module DmOrmSpec
11
11
  class User
12
12
  include DataMapper::Resource
@@ -22,11 +22,11 @@ else
22
22
  property :body, String
23
23
  belongs_to :owner, 'User'
24
24
  end
25
-
25
+
26
26
  require 'dm-migrations'
27
27
  DataMapper.finalize
28
28
  DataMapper.auto_migrate!
29
-
29
+
30
30
  # here be the specs!
31
31
  describe DataMapper::Resource::OrmAdapter do
32
32
  before do
@@ -37,11 +37,11 @@ else
37
37
  it_should_behave_like "example app with orm_adapter" do
38
38
  let(:user_class) { User }
39
39
  let(:note_class) { Note }
40
-
40
+
41
41
  def reload_model(model)
42
42
  model.class.get(model.id)
43
43
  end
44
44
  end
45
45
  end
46
46
  end
47
- end
47
+ end
@@ -3,12 +3,12 @@ require 'orm_adapter/example_app_shared'
3
3
 
4
4
  if !defined?(MongoMapper) || !(Mongo::Connection.new.db('orm_adapter_spec') rescue nil)
5
5
  puts "** require 'mongo_mapper' and start mongod to run the specs in #{__FILE__}"
6
- else
7
-
6
+ else
7
+
8
8
  MongoMapper.connection = Mongo::Connection.new
9
9
  MongoMapper.database = "orm_adapter_spec"
10
-
11
-
10
+
11
+
12
12
  module MongoMapperOrmSpec
13
13
  class User
14
14
  include MongoMapper::Document
@@ -22,20 +22,20 @@ else
22
22
  key :body, :default => "made by orm"
23
23
  belongs_to :owner, :class_name => 'MongoMapperOrmSpec::User'
24
24
  end
25
-
25
+
26
26
  # here be the specs!
27
27
  describe MongoMapper::Document::OrmAdapter do
28
-
28
+
29
29
  before do
30
30
  MongoMapper.database.collections.each do | coll |
31
- coll.remove
31
+ coll.remove unless coll.name =~ /system/
32
32
  end
33
33
  end
34
-
34
+
35
35
  it_should_behave_like "example app with orm_adapter" do
36
36
  let(:user_class) { User }
37
37
  let(:note_class) { Note }
38
38
  end
39
39
  end
40
40
  end
41
- end
41
+ end
@@ -3,12 +3,12 @@ require 'orm_adapter/example_app_shared'
3
3
 
4
4
  if !defined?(Mongoid) || !(Mongo::Connection.new.db('orm_adapter_spec') rescue nil)
5
5
  puts "** require 'mongoid' and start mongod to run the specs in #{__FILE__}"
6
- else
7
-
6
+ else
7
+
8
8
  Mongoid.configure do |config|
9
9
  config.master = Mongo::Connection.new.db('orm_adapter_spec')
10
10
  end
11
-
11
+
12
12
  module MongoidOrmSpec
13
13
  class User
14
14
  include Mongoid::Document
@@ -22,18 +22,18 @@ else
22
22
  field :body, :default => "made by orm"
23
23
  belongs_to_related :owner, :class_name => 'MongoidOrmSpec::User'
24
24
  end
25
-
25
+
26
26
  # here be the specs!
27
27
  describe Mongoid::Document::OrmAdapter do
28
28
  before do
29
29
  User.delete_all
30
30
  Note.delete_all
31
31
  end
32
-
32
+
33
33
  it_should_behave_like "example app with orm_adapter" do
34
34
  let(:user_class) { User }
35
35
  let(:note_class) { Note }
36
36
  end
37
37
  end
38
38
  end
39
- end
39
+ end
@@ -222,7 +222,7 @@ shared_examples_for "example app with orm_adapter" do
222
222
  describe "#destroy(instance)" do
223
223
  it "should destroy the instance if it exists" do
224
224
  user = create_model(user_class)
225
- user_adapter.destroy(user).should == true
225
+ user_adapter.destroy(user).should be_true
226
226
  user_adapter.get(user.id).should be_nil
227
227
  end
228
228
 
@@ -3,7 +3,7 @@ require 'rspec'
3
3
 
4
4
  $:.unshift(File.dirname(__FILE__) + '/../lib')
5
5
 
6
- ['dm-core', 'mongoid', 'active_record', 'mongo_mapper'].each do |orm|
6
+ ['dm-core', 'dm-active_model','mongoid', 'active_record', 'mongo_mapper'].each do |orm|
7
7
  begin
8
8
  require orm
9
9
  rescue LoadError
@@ -11,5 +11,4 @@ $:.unshift(File.dirname(__FILE__) + '/../lib')
11
11
  end
12
12
  end
13
13
 
14
- require 'dm-active_model' if defined?(DataMapper)
15
- require 'orm_adapter'
14
+ require 'orm_adapter'
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orm_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
5
- prerelease:
4
+ version: 0.4.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ian White
@@ -10,151 +9,190 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-07-09 00:00:00.000000000 Z
12
+ date: 2013-11-12 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: bundler
17
- requirement: &70358654083860 !ruby/object:Gem::Requirement
18
- none: false
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: 1.0.0
23
21
  type: :development
24
22
  prerelease: false
25
- version_requirements: *70358654083860
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: 1.0.0
26
28
  - !ruby/object:Gem::Dependency
27
29
  name: git
28
- requirement: &70358654083320 !ruby/object:Gem::Requirement
29
- none: false
30
+ requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - ! '>='
32
+ - - '>='
32
33
  - !ruby/object:Gem::Version
33
34
  version: 1.2.5
34
35
  type: :development
35
36
  prerelease: false
36
- version_requirements: *70358654083320
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: 1.2.5
37
42
  - !ruby/object:Gem::Dependency
38
43
  name: yard
39
- requirement: &70358654082820 !ruby/object:Gem::Requirement
40
- none: false
44
+ requirement: !ruby/object:Gem::Requirement
41
45
  requirements:
42
- - - ! '>='
46
+ - - '>='
43
47
  - !ruby/object:Gem::Version
44
48
  version: 0.6.0
45
49
  type: :development
46
50
  prerelease: false
47
- version_requirements: *70358654082820
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: 0.6.0
48
56
  - !ruby/object:Gem::Dependency
49
57
  name: rake
50
- requirement: &70358654082040 !ruby/object:Gem::Requirement
51
- none: false
58
+ requirement: !ruby/object:Gem::Requirement
52
59
  requirements:
53
- - - ! '>='
60
+ - - '>='
54
61
  - !ruby/object:Gem::Version
55
62
  version: 0.8.7
56
63
  type: :development
57
64
  prerelease: false
58
- version_requirements: *70358654082040
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - '>='
68
+ - !ruby/object:Gem::Version
69
+ version: 0.8.7
59
70
  - !ruby/object:Gem::Dependency
60
71
  name: activerecord
61
- requirement: &70358654080600 !ruby/object:Gem::Requirement
62
- none: false
72
+ requirement: !ruby/object:Gem::Requirement
63
73
  requirements:
64
- - - ! '>='
74
+ - - '>='
65
75
  - !ruby/object:Gem::Version
66
- version: 3.0.0
76
+ version: 3.2.15
67
77
  type: :development
68
78
  prerelease: false
69
- version_requirements: *70358654080600
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - '>='
82
+ - !ruby/object:Gem::Version
83
+ version: 3.2.15
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: mongoid
72
- requirement: &70358654079240 !ruby/object:Gem::Requirement
73
- none: false
86
+ requirement: !ruby/object:Gem::Requirement
74
87
  requirements:
75
- - - ! '>='
88
+ - - ~>
76
89
  - !ruby/object:Gem::Version
77
- version: 2.0.0.beta.20
90
+ version: 2.8.0
78
91
  type: :development
79
92
  prerelease: false
80
- version_requirements: *70358654079240
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ~>
96
+ - !ruby/object:Gem::Version
97
+ version: 2.8.0
81
98
  - !ruby/object:Gem::Dependency
82
99
  name: mongo_mapper
83
- requirement: &70358654078040 !ruby/object:Gem::Requirement
84
- none: false
100
+ requirement: !ruby/object:Gem::Requirement
85
101
  requirements:
86
- - - ! '>='
102
+ - - ~>
87
103
  - !ruby/object:Gem::Version
88
- version: 0.9.0
104
+ version: 0.11.0
89
105
  type: :development
90
106
  prerelease: false
91
- version_requirements: *70358654078040
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ~>
110
+ - !ruby/object:Gem::Version
111
+ version: 0.11.0
92
112
  - !ruby/object:Gem::Dependency
93
113
  name: bson_ext
94
- requirement: &70358654077240 !ruby/object:Gem::Requirement
95
- none: false
114
+ requirement: !ruby/object:Gem::Requirement
96
115
  requirements:
97
- - - ! '>='
116
+ - - '>='
98
117
  - !ruby/object:Gem::Version
99
118
  version: 1.3.0
100
119
  type: :development
101
120
  prerelease: false
102
- version_requirements: *70358654077240
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - '>='
124
+ - !ruby/object:Gem::Version
125
+ version: 1.3.0
103
126
  - !ruby/object:Gem::Dependency
104
127
  name: rspec
105
- requirement: &70358654076340 !ruby/object:Gem::Requirement
106
- none: false
128
+ requirement: !ruby/object:Gem::Requirement
107
129
  requirements:
108
- - - ! '>='
130
+ - - '>='
109
131
  - !ruby/object:Gem::Version
110
132
  version: 2.4.0
111
133
  type: :development
112
134
  prerelease: false
113
- version_requirements: *70358654076340
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - '>='
138
+ - !ruby/object:Gem::Version
139
+ version: 2.4.0
114
140
  - !ruby/object:Gem::Dependency
115
141
  name: sqlite3
116
- requirement: &70358654056980 !ruby/object:Gem::Requirement
117
- none: false
142
+ requirement: !ruby/object:Gem::Requirement
118
143
  requirements:
119
- - - ! '>='
144
+ - - '>='
120
145
  - !ruby/object:Gem::Version
121
146
  version: 1.3.2
122
147
  type: :development
123
148
  prerelease: false
124
- version_requirements: *70358654056980
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - '>='
152
+ - !ruby/object:Gem::Version
153
+ version: 1.3.2
125
154
  - !ruby/object:Gem::Dependency
126
155
  name: datamapper
127
- requirement: &70358654056260 !ruby/object:Gem::Requirement
128
- none: false
156
+ requirement: !ruby/object:Gem::Requirement
129
157
  requirements:
130
- - - ! '>='
158
+ - - '>='
131
159
  - !ruby/object:Gem::Version
132
160
  version: '1.0'
133
161
  type: :development
134
162
  prerelease: false
135
- version_requirements: *70358654056260
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - '>='
166
+ - !ruby/object:Gem::Version
167
+ version: '1.0'
136
168
  - !ruby/object:Gem::Dependency
137
169
  name: dm-sqlite-adapter
138
- requirement: &70358654055740 !ruby/object:Gem::Requirement
139
- none: false
170
+ requirement: !ruby/object:Gem::Requirement
140
171
  requirements:
141
- - - ! '>='
172
+ - - '>='
142
173
  - !ruby/object:Gem::Version
143
174
  version: '1.0'
144
175
  type: :development
145
176
  prerelease: false
146
- version_requirements: *70358654055740
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '1.0'
147
182
  - !ruby/object:Gem::Dependency
148
183
  name: dm-active_model
149
- requirement: &70358654055220 !ruby/object:Gem::Requirement
150
- none: false
184
+ requirement: !ruby/object:Gem::Requirement
151
185
  requirements:
152
- - - ! '>='
186
+ - - '>='
153
187
  - !ruby/object:Gem::Version
154
188
  version: '1.0'
155
189
  type: :development
156
190
  prerelease: false
157
- version_requirements: *70358654055220
191
+ version_requirements: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - '>='
194
+ - !ruby/object:Gem::Version
195
+ version: '1.0'
158
196
  description: Provides a single point of entry for using basic features of ruby ORMs
159
197
  email: ian.w.white@gmail.com
160
198
  executables: []
@@ -165,11 +203,11 @@ files:
165
203
  - .rspec
166
204
  - .travis.yml
167
205
  - Gemfile
168
- - Gemfile.lock.development
169
206
  - History.txt
170
207
  - LICENSE
171
208
  - README.rdoc
172
209
  - Rakefile
210
+ - gemfiles/activerecord-4.gemfile
173
211
  - lib/orm_adapter.rb
174
212
  - lib/orm_adapter/adapters/active_record.rb
175
213
  - lib/orm_adapter/adapters/data_mapper.rb
@@ -188,31 +226,28 @@ files:
188
226
  - spec/orm_adapter_spec.rb
189
227
  - spec/spec_helper.rb
190
228
  homepage: http://github.com/ianwhite/orm_adapter
191
- licenses: []
229
+ licenses:
230
+ - MIT
231
+ metadata: {}
192
232
  post_install_message:
193
233
  rdoc_options: []
194
234
  require_paths:
195
235
  - lib
196
236
  required_ruby_version: !ruby/object:Gem::Requirement
197
- none: false
198
237
  requirements:
199
- - - ! '>='
238
+ - - '>='
200
239
  - !ruby/object:Gem::Version
201
240
  version: '0'
202
- segments:
203
- - 0
204
- hash: 3652466131119741366
205
241
  required_rubygems_version: !ruby/object:Gem::Requirement
206
- none: false
207
242
  requirements:
208
- - - ! '>='
243
+ - - '>='
209
244
  - !ruby/object:Gem::Version
210
245
  version: 1.3.6
211
246
  requirements: []
212
247
  rubyforge_project: orm_adapter
213
- rubygems_version: 1.8.15
248
+ rubygems_version: 2.0.6
214
249
  signing_key:
215
- specification_version: 3
250
+ specification_version: 4
216
251
  summary: orm_adapter provides a single point of entry for using basic features of
217
252
  popular ruby ORMs. Its target audience is gem authors who want to support many
218
253
  ruby ORMs.
@@ -1,129 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- orm_adapter (0.4.0)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- activemodel (3.1.3)
10
- activesupport (= 3.1.3)
11
- builder (~> 3.0.0)
12
- i18n (~> 0.6)
13
- activerecord (3.1.3)
14
- activemodel (= 3.1.3)
15
- activesupport (= 3.1.3)
16
- arel (~> 2.2.1)
17
- tzinfo (~> 0.3.29)
18
- activesupport (3.1.3)
19
- multi_json (~> 1.0)
20
- addressable (2.2.6)
21
- arel (2.2.1)
22
- bcrypt-ruby (3.0.1)
23
- bson (1.5.2)
24
- bson_ext (1.5.2)
25
- bson (= 1.5.2)
26
- builder (3.0.0)
27
- data_objects (0.10.7)
28
- addressable (~> 2.1)
29
- datamapper (1.2.0)
30
- dm-aggregates (~> 1.2.0)
31
- dm-constraints (~> 1.2.0)
32
- dm-core (~> 1.2.0)
33
- dm-migrations (~> 1.2.0)
34
- dm-serializer (~> 1.2.0)
35
- dm-timestamps (~> 1.2.0)
36
- dm-transactions (~> 1.2.0)
37
- dm-types (~> 1.2.0)
38
- dm-validations (~> 1.2.0)
39
- diff-lcs (1.1.3)
40
- dm-active_model (1.2.0)
41
- activemodel (~> 3.1.0)
42
- dm-core (~> 1.2.0)
43
- dm-aggregates (1.2.0)
44
- dm-core (~> 1.2.0)
45
- dm-constraints (1.2.0)
46
- dm-core (~> 1.2.0)
47
- dm-core (1.2.0)
48
- addressable (~> 2.2.6)
49
- dm-do-adapter (1.2.0)
50
- data_objects (~> 0.10.6)
51
- dm-core (~> 1.2.0)
52
- dm-migrations (1.2.0)
53
- dm-core (~> 1.2.0)
54
- dm-serializer (1.2.1)
55
- dm-core (~> 1.2.0)
56
- fastercsv (~> 1.5.4)
57
- json (~> 1.6.1)
58
- json_pure (~> 1.6.1)
59
- multi_json (~> 1.0.3)
60
- dm-sqlite-adapter (1.2.0)
61
- dm-do-adapter (~> 1.2.0)
62
- do_sqlite3 (~> 0.10.6)
63
- dm-timestamps (1.2.0)
64
- dm-core (~> 1.2.0)
65
- dm-transactions (1.2.0)
66
- dm-core (~> 1.2.0)
67
- dm-types (1.2.1)
68
- bcrypt-ruby (~> 3.0.0)
69
- dm-core (~> 1.2.0)
70
- fastercsv (~> 1.5.4)
71
- json (~> 1.6.1)
72
- multi_json (~> 1.0.3)
73
- stringex (~> 1.3.0)
74
- uuidtools (~> 2.1.2)
75
- dm-validations (1.2.0)
76
- dm-core (~> 1.2.0)
77
- do_sqlite3 (0.10.7)
78
- data_objects (= 0.10.7)
79
- fastercsv (1.5.4)
80
- git (1.2.5)
81
- i18n (0.6.0)
82
- json (1.6.4)
83
- json_pure (1.6.4)
84
- mongo (1.5.2)
85
- bson (= 1.5.2)
86
- mongo_mapper (0.10.1)
87
- activemodel (~> 3.0)
88
- activesupport (~> 3.0)
89
- plucky (~> 0.4.0)
90
- mongoid (2.4.0)
91
- activemodel (~> 3.1)
92
- mongo (~> 1.3)
93
- tzinfo (~> 0.3.22)
94
- multi_json (1.0.4)
95
- plucky (0.4.3)
96
- mongo (~> 1.3)
97
- rake (0.9.2.2)
98
- rspec (2.8.0)
99
- rspec-core (~> 2.8.0)
100
- rspec-expectations (~> 2.8.0)
101
- rspec-mocks (~> 2.8.0)
102
- rspec-core (2.8.0)
103
- rspec-expectations (2.8.0)
104
- diff-lcs (~> 1.1.2)
105
- rspec-mocks (2.8.0)
106
- sqlite3 (1.3.5)
107
- stringex (1.3.0)
108
- tzinfo (0.3.31)
109
- uuidtools (2.1.2)
110
- yard (0.7.4)
111
-
112
- PLATFORMS
113
- ruby
114
-
115
- DEPENDENCIES
116
- activerecord (>= 3.0.0)
117
- bson_ext (>= 1.3.0)
118
- bundler (>= 1.0.0)
119
- datamapper (>= 1.0)
120
- dm-active_model (>= 1.0)
121
- dm-sqlite-adapter (>= 1.0)
122
- git (>= 1.2.5)
123
- mongo_mapper (>= 0.9.0)
124
- mongoid (>= 2.0.0.beta.20)
125
- orm_adapter!
126
- rake (>= 0.8.7)
127
- rspec (>= 2.4.0)
128
- sqlite3 (>= 1.3.2)
129
- yard (>= 0.6.0)