simple_set 0.0.1 → 1.0.0

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: a89d5b1d434529dfd5e8496e9d3f6e276912068a
4
- data.tar.gz: 431ecc28bbd8bf82a6ba765ab00e553ea6d77575
3
+ metadata.gz: 392d564ce8a892deb4861f90a081fc1464589c51
4
+ data.tar.gz: 7c6d23cf091f87f21c9b838dad2e0355c2002793
5
5
  SHA512:
6
- metadata.gz: 58858c8bf1379593972d5b39f9173dcfe463a3166646f798d4d17754b56649d64069e0049846681e44d920853ee7bfb07067558089ddc73234c9509e8245d308
7
- data.tar.gz: b567de32fd5286e4730086673e495088a2463974fe3b45eaf71ab213fa48c8ce8080eddfe32a82f48bb277c02d3e6f20e88589b97bc9d196e950cc1145a3127b
6
+ metadata.gz: 2ae3c96a417abc5d3347c6b39bb821586d9786c5376cae6846dcddcd8eb9e4709023e95b70e852ae2f60eb4428b513635abe3f2ce65c7f078ea5ca84ebcea86d
7
+ data.tar.gz: fb99df0dc0099801202081fe1b6fe31c9ad13087180f413a63a66b86229effc8bdb326049c6033fca570379e441928d5b89541997a7c6382a215e2e18f1ed893
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # SimpleSet
1
+ # SimpleSet [![Build Status](https://travis-ci.org/smortex/simple_set.png?branch=master)](https://travis-ci.org/smortex/simple_set)
2
2
 
3
3
  A Rails plugin which brings easy-to-use set-like functionality to ActiveRecord models.
4
4
 
@@ -105,17 +105,17 @@ Now, it's possible to manage roles with maximum ease:
105
105
 
106
106
  5. Easy Rails integration:
107
107
 
108
- Given a `User` is declared as:
108
+ Given a `User` is declared as:
109
109
 
110
110
  class User < ActiveRecord::Base
111
111
  as_set :roles, [:management, :accounting, :human_resources]
112
112
  end
113
113
 
114
- Adjust strong parameters to allow roles assignment:
114
+ Adjust strong parameters to allow roles assignment:
115
115
 
116
116
  params.require(:user).permit(:roles => [])
117
117
 
118
- And then render a collection of checkboxes:
118
+ And then render a collection of checkboxes:
119
119
 
120
120
  = form_for @user do |f|
121
121
  = f.collection_check_boxes(:roles, User.roles, :to_sym, :to_sym) do |b|
@@ -1,3 +1,3 @@
1
1
  module SimpleSet
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
data/simple_set.gemspec CHANGED
@@ -22,4 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "bundler", "~> 1.3"
23
23
  spec.add_development_dependency "rake"
24
24
  spec.add_development_dependency "rspec"
25
+ spec.add_development_dependency "activerecord", ">= 3.0.0"
26
+ spec.add_development_dependency "sqlite3"
25
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_set
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Romain Tartière
@@ -66,6 +66,34 @@ dependencies:
66
66
  - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: activerecord
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: 3.0.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: 3.0.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
69
97
  description:
70
98
  email:
71
99
  - romain@blogreen.org