redcrumbs 0.4.5 → 0.4.7
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/lib/generators/redcrumbs/templates/initializer.rb +14 -1
- data/lib/redcrumbs.rb +1 -1
- data/lib/redcrumbs/version.rb +1 -1
- metadata +7 -9
@@ -14,8 +14,21 @@ Redcrumbs.setup do |config|
|
|
14
14
|
# sensible and evaluate whether the additional space used in Redis is really worth the time saving.
|
15
15
|
#
|
16
16
|
# config.store_creator_attributes = [:id, :name, :email]
|
17
|
+
# config.store_target_attributes = [:id, :name, :email]
|
17
18
|
#
|
18
19
|
#
|
19
20
|
# Set the mortality to make crumbs automatically expire in time. Default is infinity.
|
20
21
|
# config.mortality = 30.days
|
21
|
-
end
|
22
|
+
end
|
23
|
+
|
24
|
+
# Point this to your redis connection. It can be a Redis object or a string.
|
25
|
+
Redcrumbs.redis = 'localhost:6379'
|
26
|
+
|
27
|
+
# You may want to create a config/redcrumbs.yml file and base your redis setting
|
28
|
+
# from that. e.g. (thanks to Resque for this):
|
29
|
+
|
30
|
+
# rails_root = ENV['RAILS_ROOT'] || File.dirname(__FILE__) + '/../..'
|
31
|
+
# rails_env = ENV['RAILS_ENV'] || 'development'
|
32
|
+
#
|
33
|
+
# redcrumbs_config = YAML.load_file(rails_root + '/config/redcrumbs.yml')
|
34
|
+
# Redcrumbs.redis = redcrumbs_config[rails_env]
|
data/lib/redcrumbs.rb
CHANGED
data/lib/redcrumbs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redcrumbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
default_executable:
|
12
|
+
date: 2013-07-04 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: data_mapper
|
17
|
-
requirement: &
|
16
|
+
requirement: &70142819060880 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ! '>='
|
@@ -22,10 +21,10 @@ dependencies:
|
|
22
21
|
version: 1.2.0
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *70142819060880
|
26
25
|
- !ruby/object:Gem::Dependency
|
27
26
|
name: dm-redis-adapter
|
28
|
-
requirement: &
|
27
|
+
requirement: &70142819059760 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
29
|
requirements:
|
31
30
|
- - ! '>='
|
@@ -33,7 +32,7 @@ dependencies:
|
|
33
32
|
version: 0.6.2
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
35
|
+
version_requirements: *70142819059760
|
37
36
|
description: Fast and unobtrusive activity tracking of ActiveRecord models using DataMapper
|
38
37
|
and Redis
|
39
38
|
email:
|
@@ -60,7 +59,6 @@ files:
|
|
60
59
|
- lib/redcrumbs/users.rb
|
61
60
|
- lib/redcrumbs/version.rb
|
62
61
|
- redcrumbs.gemspec
|
63
|
-
has_rdoc: true
|
64
62
|
homepage: https://github.com/projectzebra/Redcrumbs
|
65
63
|
licenses: []
|
66
64
|
post_install_message:
|
@@ -81,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
79
|
version: '0'
|
82
80
|
requirements: []
|
83
81
|
rubyforge_project: redcrumbs
|
84
|
-
rubygems_version: 1.
|
82
|
+
rubygems_version: 1.8.10
|
85
83
|
signing_key:
|
86
84
|
specification_version: 3
|
87
85
|
summary: Fast and unobtrusive activity tracking of ActiveRecord models using DataMapper
|