rails_dictionary 0.1.1 → 0.1.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 +6 -0
- data/README.rdoc +0 -1
- data/lib/rails_dictionary.rb +9 -2
- data/lib/rails_dictionary/version.rb +1 -1
- metadata +6 -8
- data/lib/rails_dictionary/engine.rb +0 -4
- data/lib/rails_dictionary/railtie.rb +0 -18
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -124,7 +124,6 @@ In short,when you confused with the debug data,try running "rails tmp:clear" fir
|
|
124
124
|
|
125
125
|
= TODO & Problems
|
126
126
|
Remove engine. Becase for the view layer we can use gem rails_admin. so this gem did not need rails engine.
|
127
|
-
Make Dictionary.student_city return a scope.
|
128
127
|
Is there any exist low level method to monitor the change of descendents?
|
129
128
|
Add test code for cache DictType.tab_and_column,then uncomment the cache code.
|
130
129
|
Remove gems/rails_dictionary-0.0.9.4/app/views from rails view path
|
data/lib/rails_dictionary.rb
CHANGED
@@ -1,2 +1,9 @@
|
|
1
|
-
require
|
2
|
-
|
1
|
+
require 'iconv'
|
2
|
+
|
3
|
+
require File.join(File.dirname(__FILE__), "rails_dictionary/array_core_ext")
|
4
|
+
require File.join(File.dirname(__FILE__), "rails_dictionary/models/active_record_extension")
|
5
|
+
require File.join(File.dirname(__FILE__), "rails_dictionary/models/acts_as_dict_type")
|
6
|
+
require File.join(File.dirname(__FILE__), "rails_dictionary/models/acts_as_dictionary")
|
7
|
+
require File.join(File.dirname(__FILE__), "rails_dictionary/models/acts_as_dict_slave")
|
8
|
+
|
9
|
+
::ActiveRecord::Base.send :include, RailsDictionary::ActiveRecordExtension
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_dictionary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-01-05 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &24997520 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>'
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *24997520
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &24997020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>'
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '3.0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *24997020
|
36
36
|
description: Rails plugin for mapping static data of web application to Dictionary
|
37
37
|
class
|
38
38
|
email:
|
@@ -48,12 +48,10 @@ files:
|
|
48
48
|
- Rakefile
|
49
49
|
- lib/rails_dictionary.rb
|
50
50
|
- lib/rails_dictionary/array_core_ext.rb
|
51
|
-
- lib/rails_dictionary/engine.rb
|
52
51
|
- lib/rails_dictionary/models/active_record_extension.rb
|
53
52
|
- lib/rails_dictionary/models/acts_as_dict_slave.rb
|
54
53
|
- lib/rails_dictionary/models/acts_as_dict_type.rb
|
55
54
|
- lib/rails_dictionary/models/acts_as_dictionary.rb
|
56
|
-
- lib/rails_dictionary/railtie.rb
|
57
55
|
- lib/rails_dictionary/version.rb
|
58
56
|
- lib/tasks/dicts.rake
|
59
57
|
- log/development.log
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'rails'
|
2
|
-
require 'iconv'
|
3
|
-
|
4
|
-
require File.join(File.dirname(__FILE__),"array_core_ext")
|
5
|
-
require File.join(File.dirname(__FILE__),"models/acts_as_dict_type")
|
6
|
-
require File.join(File.dirname(__FILE__),"models/acts_as_dictionary")
|
7
|
-
require File.join(File.dirname(__FILE__),"models/acts_as_dict_slave")
|
8
|
-
|
9
|
-
module RailsDictionary
|
10
|
-
class Railtie < ::Rails::Railtie
|
11
|
-
initializer 'rails_dictionary' do |app|
|
12
|
-
ActiveSupport.on_load(:active_record) do
|
13
|
-
require File.join(File.dirname(__FILE__), 'models/active_record_extension')
|
14
|
-
::ActiveRecord::Base.send :include, RailsDictionary::ActiveRecordExtension
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|