my_feeds 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'rspec'
4
+ gem 'rails'
4
5
  gem 'sqlite3'
5
6
 
6
7
  # Specify your gem's dependencies in my_feeds.gemspec
data/README.md CHANGED
@@ -46,7 +46,7 @@ just make sure your model have a polymorphic field for feeder.
46
46
  and
47
47
  ```
48
48
  class YourCustomModel < ActiveRecord::Base
49
- include MyFeeds::Identify #make sure include this module
49
+ include MyFeeds::Associate #make sure include this module
50
50
  self.feed_polymorphic = :likeable #and set this, in this case is likeable, it should same as the polymorphic belongs_to
51
51
 
52
52
  #same as self.feed_polymorphic
data/lib/my_feeds.rb CHANGED
@@ -4,4 +4,7 @@ module MyFeeds
4
4
  autoload :Feeder, 'my_feeds/feeder'
5
5
  autoload :Eater, 'my_feeds/eater'
6
6
  autoload :Identify, 'my_feeds/identify'
7
+
8
+ #alias
9
+ Associate = Identify
7
10
  end
@@ -1,3 +1,3 @@
1
1
  module MyFeeds
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  class Like < ActiveRecord::Base
2
- include MyFeeds::Identify
2
+ include MyFeeds::Associate
3
3
  self.feed_polymorphic = :likeable
4
4
  #attr_accessible
5
5
 
data/spec/models/like.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Like < ActiveRecord::Base
2
- include MyFeeds::Identify
2
+ include MyFeeds::Associate
3
3
  self.feed_polymorphic = :likeable
4
4
  #attr_accessible
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_feeds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,40 +9,40 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-12 00:00:00.000000000 Z
12
+ date: 2013-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
17
  requirements:
19
18
  - - ~>
20
19
  - !ruby/object:Gem::Version
21
20
  version: '1.3'
22
- type: :development
21
+ none: false
23
22
  prerelease: false
23
+ type: :development
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
28
  version: '1.3'
29
+ none: false
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rake
32
32
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
33
  requirements:
35
34
  - - ! '>='
36
35
  - !ruby/object:Gem::Version
37
36
  version: '0'
38
- type: :development
37
+ none: false
39
38
  prerelease: false
39
+ type: :development
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
41
  requirements:
43
42
  - - ! '>='
44
43
  - !ruby/object:Gem::Version
45
44
  version: '0'
45
+ none: false
46
46
  description: Help you implement feeds / timeline in rails application.
47
47
  email:
48
48
  - jjyruby@gmail.com
@@ -82,17 +82,17 @@ rdoc_options: []
82
82
  require_paths:
83
83
  - lib
84
84
  required_ruby_version: !ruby/object:Gem::Requirement
85
- none: false
86
85
  requirements:
87
86
  - - ! '>='
88
87
  - !ruby/object:Gem::Version
89
88
  version: '0'
90
- required_rubygems_version: !ruby/object:Gem::Requirement
91
89
  none: false
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
91
  requirements:
93
92
  - - ! '>='
94
93
  - !ruby/object:Gem::Version
95
94
  version: '0'
95
+ none: false
96
96
  requirements: []
97
97
  rubyforge_project:
98
98
  rubygems_version: 1.8.25