acts_as_friendable 0.5.0 → 1.0.0

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/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ script: "cp spec/config/database.yml.sample spec/config/database.yml && bundle install && bundle exec rake"
2
+ language: ruby
3
+ rvm:
4
+ - 1.9.3
5
+ env:
6
+ - DB=sqlite3
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # ActsAsFriendable
1
+ # ActsAsFriendable [![Build Status](https://travis-ci.org/jrmyward/acts_as_friendable.png?branch=master)](https://travis-ci.org/jrmyward/acts_as_friendable)
2
2
 
3
3
  ActsAsFriendable provides a Friendship model, relevent scopes, and many instance methods to quickly and easily add Social Networking functionality to your Rails application.
4
4
 
@@ -24,7 +24,7 @@ Install and run the migrations:
24
24
 
25
25
  ```shell
26
26
  rails g acts_as_friendable:install
27
- rails db:migrate
27
+ rake db:migrate
28
28
  ```
29
29
 
30
30
  ## Usage
@@ -1,3 +1,3 @@
1
1
  module ActsAsFriendable
2
- VERSION = "0.5.0"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -17,7 +17,7 @@ module ActsAsFriendable
17
17
  end
18
18
 
19
19
  def copy_migration
20
- migration_template 'migration.rb', 'db/migrate/acts_as_friendable.rb'
20
+ migration_template 'friendships.rb', 'db/migrate/create_acts_as_friendable_friendships.rb'
21
21
  end
22
22
  end
23
23
  end
@@ -1,4 +1,4 @@
1
- class ActsAsFriendable < ActiveRecord::Migration
1
+ class CreateActsAsFriendableFriendships < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :friendships do |t|
4
4
  t.integer :user_id
@@ -4,16 +4,12 @@ sqlite3:
4
4
 
5
5
  mysql:
6
6
  adapter: mysql2
7
- hostname: localhost
8
7
  username: root
9
- password:
10
8
  database: acts_as_friendable
11
9
  charset: utf8
12
10
 
13
11
  postgresql:
14
12
  adapter: postgresql
15
- hostname: localhost
16
13
  username: postgres
17
- password:
18
14
  database: acts_as_friendable
19
15
  encoding: utf8
@@ -16,7 +16,7 @@ describe ActsAsFriendable::Generators::InstallGenerator do
16
16
  before { run_generator }
17
17
 
18
18
  describe 'db/migrate/acts_as_friendable.rb' do
19
- subject { file('db/migrate/acts_as_friendable.rb') }
19
+ subject { file('db/migrate/create_acts_as_friendable_friendships.rb') }
20
20
  it { should be_a_migration }
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_friendable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -102,6 +102,7 @@ extra_rdoc_files: []
102
102
  files:
103
103
  - .gitignore
104
104
  - .rspec
105
+ - .travis.yml
105
106
  - Gemfile
106
107
  - LICENSE.txt
107
108
  - README.md
@@ -112,7 +113,7 @@ files:
112
113
  - lib/acts_as_friendable/model_additions.rb
113
114
  - lib/acts_as_friendable/version.rb
114
115
  - lib/generators/acts_as_friendable/install/install_generator.rb
115
- - lib/generators/acts_as_friendable/install/templates/migration.rb
116
+ - lib/generators/acts_as_friendable/install/templates/friendships.rb
116
117
  - rails/init.rb
117
118
  - spec/acts_as_friendable/friendships_spec.rb
118
119
  - spec/acts_as_friendable/model_additions_spec.rb