devise_referable 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/.document +5 -0
  2. data/.gitignore +22 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +81 -0
  5. data/Rakefile +54 -0
  6. data/VERSION +1 -0
  7. data/app/controllers/referrals_controller.rb +12 -0
  8. data/app/models/referral.rb +38 -0
  9. data/devise_referable.gemspec +117 -0
  10. data/init.rb +1 -0
  11. data/lib/devise/hooks/referable.rb +13 -0
  12. data/lib/devise_referable/model.rb +47 -0
  13. data/lib/devise_referable/routes.rb +12 -0
  14. data/lib/devise_referable.rb +12 -0
  15. data/rails/init.rb +1 -0
  16. data/test/integration/referable_test.rb +59 -0
  17. data/test/integration_tests_helper.rb +35 -0
  18. data/test/model_tests_helper.rb +64 -0
  19. data/test/models/referral_test.rb +40 -0
  20. data/test/models_test.rb +31 -0
  21. data/test/rails_app/app/controllers/admins_controller.rb +6 -0
  22. data/test/rails_app/app/controllers/application_controller.rb +10 -0
  23. data/test/rails_app/app/controllers/home_controller.rb +4 -0
  24. data/test/rails_app/app/controllers/users_controller.rb +12 -0
  25. data/test/rails_app/app/helpers/application_helper.rb +3 -0
  26. data/test/rails_app/app/models/blog.rb +3 -0
  27. data/test/rails_app/app/models/user.rb +4 -0
  28. data/test/rails_app/app/views/home/index.html.erb +1 -0
  29. data/test/rails_app/config/boot.rb +110 -0
  30. data/test/rails_app/config/database.yml +22 -0
  31. data/test/rails_app/config/environment.rb +44 -0
  32. data/test/rails_app/config/environments/development.rb +17 -0
  33. data/test/rails_app/config/environments/production.rb +28 -0
  34. data/test/rails_app/config/environments/test.rb +28 -0
  35. data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  36. data/test/rails_app/config/initializers/devise.rb +76 -0
  37. data/test/rails_app/config/initializers/inflections.rb +2 -0
  38. data/test/rails_app/config/initializers/new_rails_defaults.rb +21 -0
  39. data/test/rails_app/config/initializers/session_store.rb +15 -0
  40. data/test/rails_app/config/routes.rb +4 -0
  41. data/test/rails_app/vendor/plugins/devise_referable/init.rb +1 -0
  42. data/test/routes_test.rb +21 -0
  43. data/test/test_helper.rb +66 -0
  44. metadata +167 -0
metadata ADDED
@@ -0,0 +1,167 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: devise_referable
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - Matt Van Horn, based on work by Sergio Cambra
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-03-16 00:00:00 -04:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: mocha
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :development
31
+ version_requirements: *id001
32
+ - !ruby/object:Gem::Dependency
33
+ name: webrat
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
41
+ version: "0"
42
+ type: :development
43
+ version_requirements: *id002
44
+ - !ruby/object:Gem::Dependency
45
+ name: devise
46
+ prerelease: false
47
+ requirement: &id003 !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ~>
50
+ - !ruby/object:Gem::Version
51
+ segments:
52
+ - 1
53
+ - 0
54
+ - 0
55
+ version: 1.0.0
56
+ type: :runtime
57
+ version_requirements: *id003
58
+ description: It tracks the referring entity via cookie, and creates a record when user registers.
59
+ email: mattvanhorn@gmail.com
60
+ executables: []
61
+
62
+ extensions: []
63
+
64
+ extra_rdoc_files:
65
+ - LICENSE
66
+ - README.rdoc
67
+ files:
68
+ - .document
69
+ - .gitignore
70
+ - LICENSE
71
+ - README.rdoc
72
+ - Rakefile
73
+ - VERSION
74
+ - app/controllers/referrals_controller.rb
75
+ - app/models/referral.rb
76
+ - devise_referable.gemspec
77
+ - init.rb
78
+ - lib/devise/hooks/referable.rb
79
+ - lib/devise_referable.rb
80
+ - lib/devise_referable/model.rb
81
+ - lib/devise_referable/routes.rb
82
+ - rails/init.rb
83
+ - test/integration/referable_test.rb
84
+ - test/integration_tests_helper.rb
85
+ - test/model_tests_helper.rb
86
+ - test/models/referral_test.rb
87
+ - test/models_test.rb
88
+ - test/rails_app/app/controllers/admins_controller.rb
89
+ - test/rails_app/app/controllers/application_controller.rb
90
+ - test/rails_app/app/controllers/home_controller.rb
91
+ - test/rails_app/app/controllers/users_controller.rb
92
+ - test/rails_app/app/helpers/application_helper.rb
93
+ - test/rails_app/app/models/blog.rb
94
+ - test/rails_app/app/models/user.rb
95
+ - test/rails_app/app/views/home/index.html.erb
96
+ - test/rails_app/config/boot.rb
97
+ - test/rails_app/config/database.yml
98
+ - test/rails_app/config/environment.rb
99
+ - test/rails_app/config/environments/development.rb
100
+ - test/rails_app/config/environments/production.rb
101
+ - test/rails_app/config/environments/test.rb
102
+ - test/rails_app/config/initializers/backtrace_silencers.rb
103
+ - test/rails_app/config/initializers/devise.rb
104
+ - test/rails_app/config/initializers/inflections.rb
105
+ - test/rails_app/config/initializers/new_rails_defaults.rb
106
+ - test/rails_app/config/initializers/session_store.rb
107
+ - test/rails_app/config/routes.rb
108
+ - test/rails_app/vendor/plugins/devise_referable/init.rb
109
+ - test/routes_test.rb
110
+ - test/test_helper.rb
111
+ has_rdoc: true
112
+ homepage: http://github.com/mattvanhorn/devise_referable
113
+ licenses: []
114
+
115
+ post_install_message:
116
+ rdoc_options:
117
+ - --charset=UTF-8
118
+ require_paths:
119
+ - lib
120
+ required_ruby_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ segments:
125
+ - 0
126
+ version: "0"
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ segments:
132
+ - 0
133
+ version: "0"
134
+ requirements: []
135
+
136
+ rubyforge_project:
137
+ rubygems_version: 1.3.6
138
+ signing_key:
139
+ specification_version: 3
140
+ summary: An allows referral tracking for devise
141
+ test_files:
142
+ - test/integration/referable_test.rb
143
+ - test/integration_tests_helper.rb
144
+ - test/model_tests_helper.rb
145
+ - test/models/referral_test.rb
146
+ - test/models_test.rb
147
+ - test/rails_app/app/controllers/admins_controller.rb
148
+ - test/rails_app/app/controllers/application_controller.rb
149
+ - test/rails_app/app/controllers/home_controller.rb
150
+ - test/rails_app/app/controllers/users_controller.rb
151
+ - test/rails_app/app/helpers/application_helper.rb
152
+ - test/rails_app/app/models/blog.rb
153
+ - test/rails_app/app/models/user.rb
154
+ - test/rails_app/config/boot.rb
155
+ - test/rails_app/config/environment.rb
156
+ - test/rails_app/config/environments/development.rb
157
+ - test/rails_app/config/environments/production.rb
158
+ - test/rails_app/config/environments/test.rb
159
+ - test/rails_app/config/initializers/backtrace_silencers.rb
160
+ - test/rails_app/config/initializers/devise.rb
161
+ - test/rails_app/config/initializers/inflections.rb
162
+ - test/rails_app/config/initializers/new_rails_defaults.rb
163
+ - test/rails_app/config/initializers/session_store.rb
164
+ - test/rails_app/config/routes.rb
165
+ - test/rails_app/vendor/plugins/devise_referable/init.rb
166
+ - test/routes_test.rb
167
+ - test/test_helper.rb