impressionist 1.0.0 → 1.0.1
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/Gemfile +0 -2
- data/README.md +10 -3
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/impressionist.gemspec +3 -3
- data/lib/generators/impressionist/templates/create_impressions_table.rb +1 -1
- metadata +39 -9
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -110,15 +110,15 @@ Adding a counter cache
|
|
110
110
|
----------------------
|
111
111
|
Impressionist makes it easy to add a `counter_cache` column to your model. The most basic configuration looks like:
|
112
112
|
|
113
|
-
|
113
|
+
is_impressionable :counter_cache => true
|
114
114
|
|
115
115
|
This will automatically increment the `impressions_count` column in the included model. Note: You'll need to add that column to your model. If you'd like specific a different column name, you can:
|
116
116
|
|
117
|
-
|
117
|
+
is_impressionable :counter_cache => { :column_name => :my_column }
|
118
118
|
|
119
119
|
If you'd like to include only unique impressions in your count:
|
120
120
|
|
121
|
-
|
121
|
+
is_impressionable :counter_cache => { :column_name => :my_column, :unique => true }
|
122
122
|
|
123
123
|
|
124
124
|
What if I only want to record unique impressions?
|
@@ -157,4 +157,11 @@ Contributing to impressionist
|
|
157
157
|
* If adding engine controller or view functionality, use HAML and Inherited Resources.
|
158
158
|
* All testing is done inside a small Rails app (test_app). You will find specs within this app.
|
159
159
|
|
160
|
+
Contributors
|
161
|
+
------------
|
162
|
+
* johnmcaliley
|
163
|
+
* coryschires
|
164
|
+
* georgmittendorfer
|
165
|
+
|
166
|
+
|
160
167
|
Copyright (c) 2011 John McAliley. See LICENSE.txt for further details.
|
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ Jeweler::Tasks.new do |gem|
|
|
20
20
|
gem.description = %Q{Log impressions from controller actions or from a model}
|
21
21
|
gem.email = "john.mcaliley@gmail.com"
|
22
22
|
gem.authors = ["cowboycoded"]
|
23
|
-
gem.files.exclude "test_app"
|
23
|
+
gem.files.exclude "test_app/**/*", "test_app/**/.*"
|
24
24
|
end
|
25
25
|
Jeweler::RubygemsDotOrgTasks.new
|
26
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/impressionist.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{impressionist}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["cowboycoded"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-11-30}
|
13
13
|
s.description = %q{Log impressions from controller actions or from a model}
|
14
14
|
s.email = %q{john.mcaliley@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
|
|
39
39
|
"upgrade_migrations/version_0_3_0.rb",
|
40
40
|
"upgrade_migrations/version_0_4_0.rb"
|
41
41
|
]
|
42
|
-
s.homepage = %q{
|
42
|
+
s.homepage = %q{http://github.com/cowboycoded/impressionist}
|
43
43
|
s.licenses = ["MIT"]
|
44
44
|
s.require_paths = ["lib"]
|
45
45
|
s.rubygems_version = %q{1.3.7}
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: impressionist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
segments_generated: true
|
10
|
+
version: 1.0.1
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- cowboycoded
|
@@ -10,51 +15,68 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2011-
|
18
|
+
date: 2011-11-30 00:00:00 -05:00
|
19
|
+
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: shoulda
|
17
|
-
prerelease: false
|
18
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
24
|
none: false
|
20
25
|
requirements:
|
21
26
|
- - ">="
|
22
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
segments_generated: true
|
23
31
|
version: "0"
|
24
32
|
type: :development
|
33
|
+
prerelease: false
|
25
34
|
version_requirements: *id001
|
26
35
|
- !ruby/object:Gem::Dependency
|
27
36
|
name: bundler
|
28
|
-
prerelease: false
|
29
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
none: false
|
31
39
|
requirements:
|
32
40
|
- - ~>
|
33
41
|
- !ruby/object:Gem::Version
|
42
|
+
segments:
|
43
|
+
- 1
|
44
|
+
- 0
|
45
|
+
- 0
|
46
|
+
segments_generated: true
|
34
47
|
version: 1.0.0
|
35
48
|
type: :development
|
49
|
+
prerelease: false
|
36
50
|
version_requirements: *id002
|
37
51
|
- !ruby/object:Gem::Dependency
|
38
52
|
name: jeweler
|
39
|
-
prerelease: false
|
40
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
41
54
|
none: false
|
42
55
|
requirements:
|
43
56
|
- - ~>
|
44
57
|
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 1
|
60
|
+
- 5
|
61
|
+
- 1
|
62
|
+
segments_generated: true
|
45
63
|
version: 1.5.1
|
46
64
|
type: :development
|
65
|
+
prerelease: false
|
47
66
|
version_requirements: *id003
|
48
67
|
- !ruby/object:Gem::Dependency
|
49
68
|
name: rcov
|
50
|
-
prerelease: false
|
51
69
|
requirement: &id004 !ruby/object:Gem::Requirement
|
52
70
|
none: false
|
53
71
|
requirements:
|
54
72
|
- - ">="
|
55
73
|
- !ruby/object:Gem::Version
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
segments_generated: true
|
56
77
|
version: "0"
|
57
78
|
type: :development
|
79
|
+
prerelease: false
|
58
80
|
version_requirements: *id004
|
59
81
|
description: Log impressions from controller actions or from a model
|
60
82
|
email: john.mcaliley@gmail.com
|
@@ -87,7 +109,8 @@ files:
|
|
87
109
|
- logo.png
|
88
110
|
- upgrade_migrations/version_0_3_0.rb
|
89
111
|
- upgrade_migrations/version_0_4_0.rb
|
90
|
-
|
112
|
+
has_rdoc: true
|
113
|
+
homepage: http://github.com/cowboycoded/impressionist
|
91
114
|
licenses:
|
92
115
|
- MIT
|
93
116
|
post_install_message:
|
@@ -100,17 +123,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
123
|
requirements:
|
101
124
|
- - ">="
|
102
125
|
- !ruby/object:Gem::Version
|
126
|
+
hash: -1970179710473797351
|
127
|
+
segments:
|
128
|
+
- 0
|
129
|
+
segments_generated: true
|
103
130
|
version: "0"
|
104
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
132
|
none: false
|
106
133
|
requirements:
|
107
134
|
- - ">="
|
108
135
|
- !ruby/object:Gem::Version
|
136
|
+
segments:
|
137
|
+
- 0
|
138
|
+
segments_generated: true
|
109
139
|
version: "0"
|
110
140
|
requirements: []
|
111
141
|
|
112
142
|
rubyforge_project:
|
113
|
-
rubygems_version: 1.
|
143
|
+
rubygems_version: 1.3.7
|
114
144
|
signing_key:
|
115
145
|
specification_version: 3
|
116
146
|
summary: Easy way to log impressions
|