rails_dictionary 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 0.1.2
2
+ Remove Engine cause it's never used.
3
+
4
+ 0.1.1
5
+ Add method scoped_student_city(dynamic build) to return AR scope of student city Dictionary.
6
+
1
7
  0.0.9.1
2
8
  fix a cache bug in 0.0.9
3
9
  0.0.9
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
@@ -1,2 +1,9 @@
1
- require File.join(File.dirname(__FILE__), 'rails_dictionary/railtie')
2
- require File.join(File.dirname(__FILE__), 'rails_dictionary/engine')
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
@@ -1,3 +1,3 @@
1
1
  module RailsDictionary
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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: 2011-12-28 00:00:00.000000000Z
12
+ date: 2012-01-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &11331140 !ruby/object:Gem::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: *11331140
24
+ version_requirements: *24997520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &11327380 !ruby/object:Gem::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: *11327380
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,4 +0,0 @@
1
- module RailsDictionary
2
- class Engine < ::Rails::Engine
3
- end
4
- end
@@ -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