ez_model 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -16,7 +16,7 @@ In ~/app/models/ez_models/, it will generate model files inherit ActiveRecord::B
16
16
  # and find the file with same name and class that inherits this class
17
17
  module EZModel
18
18
  module ActiveRecord
19
- class BillingInfo < ActiveRecord::Base
19
+ class BillingInfo < ::ActiveRecord::Base
20
20
  belongs_to :users, :class_name => 'User', :foreign_key => :user_id
21
21
  belongs_to :invoices, :class_name => 'Invoice', :foreign_key => :invoice_id
22
22
  has_many :chargebacks, :class_name => 'Chargeback'
@@ -1,3 +1,3 @@
1
1
  module EZModel
2
- VERSION = "1.0.3" unless defined?(::EZModel::VERSION)
2
+ VERSION = "1.0.4" unless defined?(::EZModel::VERSION)
3
3
  end
data/lib/rmre/model.eruby CHANGED
@@ -3,7 +3,7 @@
3
3
  # and find the file with same name and class that inherits this class
4
4
  module EZModel
5
5
  module ActiveRecord
6
- class <%= table_name.tableize.classify %> < ActiveRecord::Base
6
+ class <%= table_name.tableize.classify %> < ::ActiveRecord::Base
7
7
  <% unless table_name == table_name.tableize %>
8
8
  <%= "set_table_name '#{table_name}'" + "\n" -%>
9
9
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ez_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
- requirement: &82647050 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *82647050
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 3.0.0
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: erubis
27
- requirement: &82646710 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,7 +37,12 @@ dependencies:
32
37
  version: 2.6.6
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *82646710
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 2.6.6
36
46
  description: Generate models and schema.rb from existing(legacy) database just in
37
47
  one command line. If you prefer design ER diagram and export scripts to generate
38
48
  database schema, or if you have to work with a legacy database, this can save you
@@ -86,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
96
  version: 1.3.6
87
97
  requirements: []
88
98
  rubyforge_project:
89
- rubygems_version: 1.8.17
99
+ rubygems_version: 1.8.22
90
100
  signing_key:
91
101
  specification_version: 3
92
102
  summary: Rails gem for generating model files in one command line