user_notification 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +3 -0
- data/MIT-LICENSE +20 -0
- data/README.md +1 -0
- data/Rakefile +18 -0
- data/lib/generators/user_notification/migration/migration_generator.rb +17 -0
- data/lib/generators/user_notification/migration/templates/migration.rb +24 -0
- data/lib/generators/user_notification/notification/notification_generator.rb +17 -0
- data/lib/generators/user_notification/notification/templates/notification.rb +3 -0
- data/lib/generators/user_notification.rb +14 -0
- data/lib/user_notification/actions/creation.rb +15 -0
- data/lib/user_notification/actions/destruction.rb +15 -0
- data/lib/user_notification/actions/update.rb +15 -0
- data/lib/user_notification/activity.rb +6 -0
- data/lib/user_notification/common.rb +342 -0
- data/lib/user_notification/config.rb +63 -0
- data/lib/user_notification/models/activist.rb +9 -0
- data/lib/user_notification/models/adapter.rb +5 -0
- data/lib/user_notification/models/notification.rb +13 -0
- data/lib/user_notification/models/trackable.rb +9 -0
- data/lib/user_notification/orm/active_record/activist.rb +48 -0
- data/lib/user_notification/orm/active_record/adapter.rb +16 -0
- data/lib/user_notification/orm/active_record/notification.rb +24 -0
- data/lib/user_notification/orm/active_record/trackable.rb +15 -0
- data/lib/user_notification/orm/active_record.rb +5 -0
- data/lib/user_notification/orm/mongo_mapper/activist.rb +46 -0
- data/lib/user_notification/orm/mongo_mapper/adapter.rb +12 -0
- data/lib/user_notification/orm/mongo_mapper/notification.rb +33 -0
- data/lib/user_notification/orm/mongo_mapper/trackable.rb +11 -0
- data/lib/user_notification/orm/mongo_mapper.rb +4 -0
- data/lib/user_notification/orm/mongoid/activist.rb +45 -0
- data/lib/user_notification/orm/mongoid/adapter.rb +12 -0
- data/lib/user_notification/orm/mongoid/notification.rb +26 -0
- data/lib/user_notification/orm/mongoid/trackable.rb +11 -0
- data/lib/user_notification/orm/mongoid.rb +4 -0
- data/lib/user_notification/renderable.rb +118 -0
- data/lib/user_notification/roles/deactivatable.rb +42 -0
- data/lib/user_notification/roles/tracked.rb +183 -0
- data/lib/user_notification/utility/store_controller.rb +37 -0
- data/lib/user_notification/utility/view_helpers.rb +26 -0
- data/lib/user_notification/version.rb +4 -0
- data/lib/user_notification.rb +68 -0
- data/test/migrations/001_create_notifications.rb +24 -0
- data/test/migrations/002_create_articles.rb +11 -0
- data/test/migrations/003_create_users.rb +8 -0
- data/test/migrations/004_add_nonstandard_to_notifications.rb +7 -0
- data/test/mongo_mapper.yml +4 -0
- data/test/mongoid.yml +6 -0
- data/test/test_activist.rb +56 -0
- data/test/test_common.rb +168 -0
- data/test/test_controller_integration.rb +41 -0
- data/test/test_generators.rb +30 -0
- data/test/test_helper.rb +124 -0
- data/test/test_notification.rb +67 -0
- data/test/test_tracking.rb +378 -0
- data/test/test_view_helpers.rb +36 -0
- data/test/views/layouts/_notification.erb +1 -0
- data/test/views/user_notification/_test.erb +8 -0
- metadata +260 -0
metadata
ADDED
@@ -0,0 +1,260 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: user_notification
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Wei Zhu
|
8
|
+
- Piotrek Okoński
|
9
|
+
- Kuba Okoński
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2013-08-25 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: actionpack
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.0.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - '>='
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 3.0.0
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: railties
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 3.0.0
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 3.0.0
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: i18n
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 0.5.0
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 0.5.0
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: activerecord
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '3.0'
|
64
|
+
type: :runtime
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '3.0'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: sqlite3
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.3.7
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ~>
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.3.7
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: mocha
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ~>
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 0.13.0
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 0.13.0
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: simplecov
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ~>
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 0.7.0
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ~>
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 0.7.0
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: minitest
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - <
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 5.0.0
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - <
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 5.0.0
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: redcarpet
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - '>='
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: yard
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ~>
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0.8'
|
148
|
+
type: :development
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ~>
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0.8'
|
155
|
+
description: Easy user notification for your Rails application. Provides Notifiable
|
156
|
+
model with details about actions performed by your users, like adding comments,
|
157
|
+
responding etc.
|
158
|
+
email: yesmeck@gmail.com
|
159
|
+
executables: []
|
160
|
+
extensions: []
|
161
|
+
extra_rdoc_files: []
|
162
|
+
files:
|
163
|
+
- lib/generators/user_notification.rb
|
164
|
+
- lib/generators/user_notification/migration/migration_generator.rb
|
165
|
+
- lib/generators/user_notification/migration/templates/migration.rb
|
166
|
+
- lib/generators/user_notification/notification/notification_generator.rb
|
167
|
+
- lib/generators/user_notification/notification/templates/notification.rb
|
168
|
+
- lib/user_notification.rb
|
169
|
+
- lib/user_notification/actions/creation.rb
|
170
|
+
- lib/user_notification/actions/destruction.rb
|
171
|
+
- lib/user_notification/actions/update.rb
|
172
|
+
- lib/user_notification/activity.rb
|
173
|
+
- lib/user_notification/common.rb
|
174
|
+
- lib/user_notification/config.rb
|
175
|
+
- lib/user_notification/models/activist.rb
|
176
|
+
- lib/user_notification/models/adapter.rb
|
177
|
+
- lib/user_notification/models/notification.rb
|
178
|
+
- lib/user_notification/models/trackable.rb
|
179
|
+
- lib/user_notification/orm/active_record.rb
|
180
|
+
- lib/user_notification/orm/active_record/activist.rb
|
181
|
+
- lib/user_notification/orm/active_record/adapter.rb
|
182
|
+
- lib/user_notification/orm/active_record/notification.rb
|
183
|
+
- lib/user_notification/orm/active_record/trackable.rb
|
184
|
+
- lib/user_notification/orm/mongo_mapper.rb
|
185
|
+
- lib/user_notification/orm/mongo_mapper/activist.rb
|
186
|
+
- lib/user_notification/orm/mongo_mapper/adapter.rb
|
187
|
+
- lib/user_notification/orm/mongo_mapper/notification.rb
|
188
|
+
- lib/user_notification/orm/mongo_mapper/trackable.rb
|
189
|
+
- lib/user_notification/orm/mongoid.rb
|
190
|
+
- lib/user_notification/orm/mongoid/activist.rb
|
191
|
+
- lib/user_notification/orm/mongoid/adapter.rb
|
192
|
+
- lib/user_notification/orm/mongoid/notification.rb
|
193
|
+
- lib/user_notification/orm/mongoid/trackable.rb
|
194
|
+
- lib/user_notification/renderable.rb
|
195
|
+
- lib/user_notification/roles/deactivatable.rb
|
196
|
+
- lib/user_notification/roles/tracked.rb
|
197
|
+
- lib/user_notification/utility/store_controller.rb
|
198
|
+
- lib/user_notification/utility/view_helpers.rb
|
199
|
+
- lib/user_notification/version.rb
|
200
|
+
- Gemfile
|
201
|
+
- Rakefile
|
202
|
+
- README.md
|
203
|
+
- MIT-LICENSE
|
204
|
+
- test/migrations/001_create_notifications.rb
|
205
|
+
- test/migrations/002_create_articles.rb
|
206
|
+
- test/migrations/003_create_users.rb
|
207
|
+
- test/migrations/004_add_nonstandard_to_notifications.rb
|
208
|
+
- test/mongo_mapper.yml
|
209
|
+
- test/mongoid.yml
|
210
|
+
- test/test_activist.rb
|
211
|
+
- test/test_common.rb
|
212
|
+
- test/test_controller_integration.rb
|
213
|
+
- test/test_generators.rb
|
214
|
+
- test/test_helper.rb
|
215
|
+
- test/test_notification.rb
|
216
|
+
- test/test_tracking.rb
|
217
|
+
- test/test_view_helpers.rb
|
218
|
+
- test/views/layouts/_notification.erb
|
219
|
+
- test/views/user_notification/_test.erb
|
220
|
+
homepage: https://github.com/yesmeck/user_notification
|
221
|
+
licenses: []
|
222
|
+
metadata: {}
|
223
|
+
post_install_message:
|
224
|
+
rdoc_options: []
|
225
|
+
require_paths:
|
226
|
+
- lib
|
227
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
228
|
+
requirements:
|
229
|
+
- - '>='
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: 1.9.2
|
232
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - '>='
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
requirements: []
|
238
|
+
rubyforge_project:
|
239
|
+
rubygems_version: 2.0.3
|
240
|
+
signing_key:
|
241
|
+
specification_version: 4
|
242
|
+
summary: Easy user notification for your Rails application
|
243
|
+
test_files:
|
244
|
+
- test/migrations/001_create_notifications.rb
|
245
|
+
- test/migrations/002_create_articles.rb
|
246
|
+
- test/migrations/003_create_users.rb
|
247
|
+
- test/migrations/004_add_nonstandard_to_notifications.rb
|
248
|
+
- test/mongo_mapper.yml
|
249
|
+
- test/mongoid.yml
|
250
|
+
- test/test_activist.rb
|
251
|
+
- test/test_common.rb
|
252
|
+
- test/test_controller_integration.rb
|
253
|
+
- test/test_generators.rb
|
254
|
+
- test/test_helper.rb
|
255
|
+
- test/test_notification.rb
|
256
|
+
- test/test_tracking.rb
|
257
|
+
- test/test_view_helpers.rb
|
258
|
+
- test/views/layouts/_notification.erb
|
259
|
+
- test/views/user_notification/_test.erb
|
260
|
+
has_rdoc:
|