groupify 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d570dee72597e96ba6684917ba35f43d4d90809
4
- data.tar.gz: eae9072357349dae48d23634ecda81e6a95d0447
3
+ metadata.gz: e5a7c94016dfb89d80fa168432ac5264715eeb99
4
+ data.tar.gz: 76fea4b6d592cdfaf49100193b626229015eb0a9
5
5
  SHA512:
6
- metadata.gz: 62eb907fb6744685f4d799b8d51611fdf91539e1cce0d5207d05a7f3470a485d8fe443520e11c507b40548c05e7af5a585577275660fbe13c087eb26a0d87f0f
7
- data.tar.gz: 3f16c4a4941e7d86eeed9ab62b764be8cb236eb4dd390a0a3e6c745b29914e22ef210f016e66a8169f730150b339279e84d3ab31bdb991dbed2808d7a7b0e30c
6
+ metadata.gz: 8f8c9ec44a6fc7d8dfaa51719fb44dabfca72e4b03f1c947bc731ff64674a4299f6f12be1347bb0f29f0b775af12094e9ee7c3de08ecbbab2c22b57ed4e52014
7
+ data.tar.gz: 6510cefc1fb9b8dd15d065a89e462ebc4f3cc3d25f8d4e868ea1eca1067ea6f7f61e7c2fbe3067fd9dd2fdb7c6a9e75e667516d61df4d440098dcebddbaca862
data/.travis.yml CHANGED
@@ -24,3 +24,4 @@ matrix:
24
24
  allow_failures:
25
25
  - rvm: rbx-2
26
26
  sudo: false
27
+ cache: bundler
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Change Log
2
2
 
3
+ ## [0.7.1](https://github.com/dwbutler/groupify/tree/0.7.1) (2015-11-19)
4
+ [Full Changelog](https://github.com/dwbutler/groupify/compare/v0.7.0...0.7.1)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - Save using member resource id [\#33](https://github.com/dwbutler/groupify/issues/33)
9
+
10
+ **Merged pull requests:**
11
+
12
+ - Fixes the `member\_ids=` auto generated method on groups [\#34](https://github.com/dwbutler/groupify/pull/34) ([dwbutler](https://github.com/dwbutler))
13
+
14
+ ## [v0.7.0](https://github.com/dwbutler/groupify/tree/v0.7.0) (2015-09-09)
15
+ [Full Changelog](https://github.com/dwbutler/groupify/compare/v0.6.3...v0.7.0)
16
+
17
+ **Implemented enhancements:**
18
+
19
+ - Options for acts\_as\_group like class name for group\_membership [\#19](https://github.com/dwbutler/groupify/issues/19)
20
+ - Migration Generator [\#1](https://github.com/dwbutler/groupify/issues/1)
21
+ - Make group and group membership class names configurable [\#32](https://github.com/dwbutler/groupify/pull/32) ([dwbutler](https://github.com/dwbutler))
22
+
3
23
  ## [v0.6.3](https://github.com/dwbutler/groupify/tree/v0.6.3) (2015-08-24)
4
24
  [Full Changelog](https://github.com/dwbutler/groupify/compare/v0.6.2...v0.6.3)
5
25
 
@@ -87,4 +107,4 @@
87
107
  ## [v0.4.0](https://github.com/dwbutler/groupify/tree/v0.4.0) (2013-07-01)
88
108
 
89
109
 
90
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
110
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/Rakefile CHANGED
@@ -9,4 +9,10 @@ RSpec::Core::RakeTask.new do |t|
9
9
  t.verbose = false
10
10
  end
11
11
 
12
- task :default => :spec
12
+ require 'github_changelog_generator/task'
13
+ desc "Regenerate changelog"
14
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
15
+ config.future_release = '0.7.1'
16
+ end
17
+
18
+ task :default => :spec
data/groupify.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |gem|
24
24
  gem.add_development_dependency "rspec", ">= 3"
25
25
 
26
26
  gem.add_development_dependency "database_cleaner", "~> 1.3.0"
27
- gem.add_development_dependency "combustion"
27
+ gem.add_development_dependency "combustion", ">= 0.5.0"
28
28
  gem.add_development_dependency "appraisal"
29
29
 
30
30
  gem.add_development_dependency "github_changelog_generator"
@@ -5,7 +5,7 @@ class GroupifyMigration < ActiveRecord::Migration
5
5
  end
6
6
 
7
7
  create_table :group_memberships do |t|
8
- t.references :member, polymorphic: true, index: true
8
+ t.references :member, polymorphic: true, index: true, null: false
9
9
  t.references :group, polymorphic: true, index: true
10
10
 
11
11
  # The named group to which a member belongs (if using)
@@ -17,6 +17,7 @@ module Groupify
17
17
  @member_klasses ||= Set.new
18
18
  has_many :group_memberships,
19
19
  dependent: :destroy,
20
+ as: :group,
20
21
  class_name: Groupify.group_membership_class_name
21
22
 
22
23
  end
@@ -1,3 +1,3 @@
1
1
  module Groupify
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
data/spec/db/schema.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  ActiveRecord::Schema.define(version: 0) do
2
2
  create_table :groups do |t|
3
- t.string :name
4
3
  t.string :type
4
+ t.string :name
5
5
  end
6
6
 
7
7
  create_table :group_memberships do |t|
8
- t.references :member, polymorphic: true, index: true
8
+ t.references :member, polymorphic: true, index: true, null: false
9
9
  t.references :group, polymorphic: true, index: true
10
10
  t.string :group_name, index: true
11
11
  t.string :membership_type
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - dwbutler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-09 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: '0'
81
+ version: 0.5.0
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: '0'
88
+ version: 0.5.0
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: appraisal
91
91
  requirement: !ruby/object:Gem::Requirement