ar-simple-idmap 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +5 -2
  2. data/VERSION +1 -0
  3. data/lib/identity_map.rb +3 -1
  4. metadata +4 -3
data/README CHANGED
@@ -6,10 +6,13 @@ Adds simple hand controlled identity map for ActiveRecord.
6
6
  Installing
7
7
  ==========
8
8
 
9
- gem install ar-simple-identity-map
9
+ in Rails 2.3 in config/environment.rb
10
10
 
11
- or
11
+ config.gem 'ar-simple-idmap', :lib => 'identity_map'
12
+
13
+ in Rails 3 in Gemfile
12
14
 
15
+ gem 'ar-simple-idmap', :require => 'identity_map'
13
16
 
14
17
  Enabling
15
18
  ========
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.1
data/lib/identity_map.rb CHANGED
@@ -1,3 +1,5 @@
1
1
  require "identity_map/cache"
2
- require "identity_map/action_controller/dispatcher"
2
+ if defined?(ActionController)
3
+ require "identity_map/action_controller/dispatcher"
4
+ end
3
5
  require "identity_map/active_record/base"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar-simple-idmap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sokolov Yura aka funny_falcon
@@ -45,6 +45,7 @@ files:
45
45
  - COPYING
46
46
  - README
47
47
  - Rakefile
48
+ - VERSION
48
49
  - init.rb
49
50
  - install.rb
50
51
  - lib/autotest/discover.rb