infopark_rails_connector_meta 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ module RailsConnector
2
+ AbstractModel = begin
3
+ ::RailsConnector::InfoparkBase
4
+ rescue NameError
5
+ ::RailsConnector::CmsBaseModel
6
+ end
7
+ end
@@ -5,7 +5,7 @@ module RailsConnector
5
5
  # text? are created by meta programming have no documentation of their own.
6
6
  # Warning: Dependent on the setup of your DB replication, most tables
7
7
  # with meta information will not be available on your live system!
8
- class Attribute < RailsConnector::InfoparkBase
8
+ class Attribute < RailsConnector::AbstractModel
9
9
 
10
10
  # The possible types of an attribute.
11
11
  TYPES = %w{date enum html linklist markdown multienum string text}
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module RailsConnector
3
- class BlobMapping < RailsConnector::InfoparkBase
3
+ class BlobMapping < RailsConnector::AbstractModel
4
4
  def self.exists?
5
5
  self.table_exists?
6
6
  end
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  # @author Anton Mezin
3
3
  module RailsConnector
4
- class Channel < InfoparkBase
4
+ class Channel < AbstractModel
5
5
  self.primary_key = "channel_name"
6
6
 
7
7
  def self.table_name
@@ -3,7 +3,7 @@ module RailsConnector
3
3
 
4
4
  # This class allows us to read out the editor of an Obj,
5
5
  # if it has edited content
6
- class Content < RailsConnector::InfoparkBase
6
+ class Content < RailsConnector::AbstractModel
7
7
 
8
8
  self.primary_key = :content_id
9
9
 
@@ -5,7 +5,7 @@ module RailsConnector
5
5
  # mandatory attributes and titles of an Obj.
6
6
  # Warning: Dependent on the setup of your DB replication, most tables
7
7
  # with meta information will not be available on your live system!
8
- class ObjClass < RailsConnector::InfoparkBase
8
+ class ObjClass < RailsConnector::AbstractModel
9
9
 
10
10
  self.primary_key = :obj_class_id
11
11
 
@@ -3,7 +3,7 @@ module RailsConnector
3
3
 
4
4
  # This class allows us to read out the version and
5
5
  # the reminder information of an Obj
6
- class ObjectWithMetaData < RailsConnector::InfoparkBase #:nodoc:
6
+ class ObjectWithMetaData < RailsConnector::AbstractModel #:nodoc:
7
7
 
8
8
  # If we name the class Object, conflicts with the plain Ruby
9
9
  # objects inside the RailsConnector will occur.
data/lib/meta/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module RailsConnector
3
3
  module Meta
4
- VERSION = "1.7.1"
4
+ VERSION = "1.7.2"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_rails_connector_meta
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
- - 1
10
- version: 1.7.1
9
+ - 2
10
+ version: 1.7.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tomasz Przedmojski
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-03-07 00:00:00 +01:00
18
+ date: 2013-03-14 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -106,6 +106,7 @@ files:
106
106
  - Gemfile
107
107
  - LICENSE
108
108
  - Rakefile
109
+ - app/models/rails_connector/abstract_model.rb
109
110
  - app/models/rails_connector/abstract_obj.rb
110
111
  - app/models/rails_connector/attribute.rb
111
112
  - app/models/rails_connector/blob_mapping.rb