follow_system 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/.empty +0 -0
  3. data/.gitignore +15 -0
  4. data/.keep +0 -0
  5. data/.rspec +2 -0
  6. data/.ruby-gemset +1 -0
  7. data/.ruby-version +1 -0
  8. data/.travis.yml +23 -0
  9. data/Appraisals +7 -0
  10. data/Gemfile +4 -0
  11. data/LICENSE.txt +22 -0
  12. data/README.md +93 -0
  13. data/Rakefile +8 -0
  14. data/follow_system.gemspec +31 -0
  15. data/gemfiles/.empty +0 -0
  16. data/gemfiles/.gitignore +0 -0
  17. data/gemfiles/.keep +0 -0
  18. data/gemfiles/rails4.1.gemfile +7 -0
  19. data/gemfiles/rails4.2.gemfile +7 -0
  20. data/lib/.empty +0 -0
  21. data/lib/.gitignore +0 -0
  22. data/lib/.keep +0 -0
  23. data/lib/follow_system/.empty +0 -0
  24. data/lib/follow_system/.gitignore +0 -0
  25. data/lib/follow_system/.keep +0 -0
  26. data/lib/follow_system/follow.rb +155 -0
  27. data/lib/follow_system/followee.rb +58 -0
  28. data/lib/follow_system/follower.rb +88 -0
  29. data/lib/follow_system/version.rb +12 -0
  30. data/lib/follow_system.rb +45 -0
  31. data/lib/generators/.empty +0 -0
  32. data/lib/generators/.gitignore +0 -0
  33. data/lib/generators/.keep +0 -0
  34. data/lib/generators/follow_system/.empty +0 -0
  35. data/lib/generators/follow_system/.gitignore +0 -0
  36. data/lib/generators/follow_system/.keep +0 -0
  37. data/lib/generators/follow_system/follow_system_generator.rb +46 -0
  38. data/lib/generators/follow_system/templates/.empty +0 -0
  39. data/lib/generators/follow_system/templates/.gitignore +0 -0
  40. data/lib/generators/follow_system/templates/.keep +0 -0
  41. data/lib/generators/follow_system/templates/migration.rb +47 -0
  42. data/spec/.empty +0 -0
  43. data/spec/.gitignore +0 -0
  44. data/spec/.keep +0 -0
  45. data/spec/db/.empty +0 -0
  46. data/spec/db/.gitignore +0 -0
  47. data/spec/db/.keep +0 -0
  48. data/spec/db/migrate/.empty +0 -0
  49. data/spec/db/migrate/.gitignore +0 -0
  50. data/spec/db/migrate/.keep +0 -0
  51. data/spec/db/migrate/20140926000000_create_follows.rb +47 -0
  52. data/spec/db/migrate/20140926000005_create_dummy_followers.rb +22 -0
  53. data/spec/db/migrate/20140926000010_create_dummy_followees.rb +22 -0
  54. data/spec/follow_system/.empty +0 -0
  55. data/spec/follow_system/.gitignore +0 -0
  56. data/spec/follow_system/.keep +0 -0
  57. data/spec/follow_system/follow_spec.rb +177 -0
  58. data/spec/follow_system/followee_spec.rb +69 -0
  59. data/spec/follow_system/follower_spec.rb +96 -0
  60. data/spec/spec_helper.rb +116 -0
  61. data/spec/support/.empty +0 -0
  62. data/spec/support/.gitignore +0 -0
  63. data/spec/support/.keep +0 -0
  64. data/spec/support/active_record.rb +12 -0
  65. data/spec/support/shoulda_matchers.rb +2 -0
  66. metadata +237 -0
@@ -0,0 +1,12 @@
1
+ require 'active_record'
2
+
3
+ ###
4
+ # Active record database configuration
5
+ ###
6
+ ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:'
7
+
8
+ ###
9
+ # Active record migrator configuration
10
+ ###
11
+ ActiveRecord::Migrator.up 'spec/db/migrate'
12
+
@@ -0,0 +1,2 @@
1
+ require 'shoulda/matchers'
2
+
metadata ADDED
@@ -0,0 +1,237 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: follow_system
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
5
+ platform: ruby
6
+ authors:
7
+ - Pablo Martin Viva
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '4.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5'
33
+ - !ruby/object:Gem::Dependency
34
+ name: appraisal
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: bundler
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.7'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.7'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rake
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '10.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '10.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rspec
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '3.1'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '3.1'
89
+ - !ruby/object:Gem::Dependency
90
+ name: shoulda-matchers
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '2.7'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '2.7'
103
+ - !ruby/object:Gem::Dependency
104
+ name: sqlite3
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '1.3'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '1.3'
117
+ description: An active record follow system developed using ruby on rails 4.1 applying
118
+ domain driven design and test driven development principles.
119
+ email:
120
+ - pmviva@gmail.com
121
+ executables: []
122
+ extensions: []
123
+ extra_rdoc_files: []
124
+ files:
125
+ - ".empty"
126
+ - ".gitignore"
127
+ - ".keep"
128
+ - ".rspec"
129
+ - ".ruby-gemset"
130
+ - ".ruby-version"
131
+ - ".travis.yml"
132
+ - Appraisals
133
+ - Gemfile
134
+ - LICENSE.txt
135
+ - README.md
136
+ - Rakefile
137
+ - follow_system.gemspec
138
+ - gemfiles/.empty
139
+ - gemfiles/.gitignore
140
+ - gemfiles/.keep
141
+ - gemfiles/rails4.1.gemfile
142
+ - gemfiles/rails4.2.gemfile
143
+ - lib/.empty
144
+ - lib/.gitignore
145
+ - lib/.keep
146
+ - lib/follow_system.rb
147
+ - lib/follow_system/.empty
148
+ - lib/follow_system/.gitignore
149
+ - lib/follow_system/.keep
150
+ - lib/follow_system/follow.rb
151
+ - lib/follow_system/followee.rb
152
+ - lib/follow_system/follower.rb
153
+ - lib/follow_system/version.rb
154
+ - lib/generators/.empty
155
+ - lib/generators/.gitignore
156
+ - lib/generators/.keep
157
+ - lib/generators/follow_system/.empty
158
+ - lib/generators/follow_system/.gitignore
159
+ - lib/generators/follow_system/.keep
160
+ - lib/generators/follow_system/follow_system_generator.rb
161
+ - lib/generators/follow_system/templates/.empty
162
+ - lib/generators/follow_system/templates/.gitignore
163
+ - lib/generators/follow_system/templates/.keep
164
+ - lib/generators/follow_system/templates/migration.rb
165
+ - spec/.empty
166
+ - spec/.gitignore
167
+ - spec/.keep
168
+ - spec/db/.empty
169
+ - spec/db/.gitignore
170
+ - spec/db/.keep
171
+ - spec/db/migrate/.empty
172
+ - spec/db/migrate/.gitignore
173
+ - spec/db/migrate/.keep
174
+ - spec/db/migrate/20140926000000_create_follows.rb
175
+ - spec/db/migrate/20140926000005_create_dummy_followers.rb
176
+ - spec/db/migrate/20140926000010_create_dummy_followees.rb
177
+ - spec/follow_system/.empty
178
+ - spec/follow_system/.gitignore
179
+ - spec/follow_system/.keep
180
+ - spec/follow_system/follow_spec.rb
181
+ - spec/follow_system/followee_spec.rb
182
+ - spec/follow_system/follower_spec.rb
183
+ - spec/spec_helper.rb
184
+ - spec/support/.empty
185
+ - spec/support/.gitignore
186
+ - spec/support/.keep
187
+ - spec/support/active_record.rb
188
+ - spec/support/shoulda_matchers.rb
189
+ homepage: http://github.com/pmviva/follow_system
190
+ licenses:
191
+ - MIT
192
+ metadata: {}
193
+ post_install_message:
194
+ rdoc_options: []
195
+ require_paths:
196
+ - lib
197
+ required_ruby_version: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: 2.0.0
202
+ required_rubygems_version: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
207
+ requirements: []
208
+ rubyforge_project:
209
+ rubygems_version: 2.4.6
210
+ signing_key:
211
+ specification_version: 4
212
+ summary: An active record follow system.
213
+ test_files:
214
+ - spec/.empty
215
+ - spec/.gitignore
216
+ - spec/.keep
217
+ - spec/db/.empty
218
+ - spec/db/.gitignore
219
+ - spec/db/.keep
220
+ - spec/db/migrate/.empty
221
+ - spec/db/migrate/.gitignore
222
+ - spec/db/migrate/.keep
223
+ - spec/db/migrate/20140926000000_create_follows.rb
224
+ - spec/db/migrate/20140926000005_create_dummy_followers.rb
225
+ - spec/db/migrate/20140926000010_create_dummy_followees.rb
226
+ - spec/follow_system/.empty
227
+ - spec/follow_system/.gitignore
228
+ - spec/follow_system/.keep
229
+ - spec/follow_system/follow_spec.rb
230
+ - spec/follow_system/followee_spec.rb
231
+ - spec/follow_system/follower_spec.rb
232
+ - spec/spec_helper.rb
233
+ - spec/support/.empty
234
+ - spec/support/.gitignore
235
+ - spec/support/.keep
236
+ - spec/support/active_record.rb
237
+ - spec/support/shoulda_matchers.rb