acl9 1.2.0 → 1.2.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: f04f136959818b774a8a07d3317348bfae2ff653
4
- data.tar.gz: cad678253e611fefcb70c0716e717e458720e571
3
+ metadata.gz: 44c10dcc68d41635dfb0c5239aa9fb7cd720eaf4
4
+ data.tar.gz: 821d4948d72b7fbd274037d336d39989102c56b9
5
5
  SHA512:
6
- metadata.gz: 5e6cdf549284877a10421026d96868e9c74069cad37d1a0ac5cac1e171ddf4d9b75d529013935c4716b80fd091908087a2e4a4af77dc9a0dd9fe3f948ad4e5c9
7
- data.tar.gz: a0b5a3c792b5253bdda4edc6bbcb00b61ca0f92a9c268c6d773e5359dd70c4aa6db907960d5bf5baa0d0c5981d459ea537817c59935d31044ba508b3440f515c
6
+ metadata.gz: 45511d2a77a9ad88253e1ca32e0ef50485d6d610507033514d0025865ac84ea5b228a2b4f9b83c16503c78f4e5df9eb4f88e32ef5ad82f3b7239db2c442f2e63
7
+ data.tar.gz: 1f79e486fcee9ed273a8dcbd0980dfd7dc4241897b67bd9579da6226cd4832d883dc47cdc641787313245354f1183062a771a4322d462d43779214fb7cc3260f
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.1.5
1
+ 2.2.1
data/.travis.yml CHANGED
@@ -3,7 +3,7 @@ language: ruby
3
3
  rvm:
4
4
  - 2.0.0
5
5
  - 2.1.5
6
- - 2.2.0
6
+ - 2.2.1
7
7
  - ruby-head
8
8
 
9
9
  gemfile:
data/CHANGELOG.md ADDED
@@ -0,0 +1,91 @@
1
+ ## 1.2.0 - 12 Jan 2015
2
+
3
+ The generator release (and some other cool new features):
4
+
5
+ * New: ZOMG - we have a generator now
6
+ * Role names are now normalized with `.underscore.singularize` - especially
7
+ handy in case sensitive DBs
8
+ * New: `Acl9.configure` lets you specify config options nicely
9
+ * New: `object.users :managers` to get a list of users who have manager role on
10
+ `object`
11
+ * Testing against Ruby 2.2
12
+
13
+ ## 1.1.0 - 15 Dec 2014
14
+
15
+ Bugfix release with a minor version bump because one security fix might not be
16
+ expected, also doc improvements
17
+
18
+ * `has_role!` was not returning true properly when more roles remained (this is
19
+ the change that might be unexpected)
20
+ * License added to gemspec
21
+ * Testing against Rails 4.2
22
+ * When subject was destroyed, roles were not removed from the DB.
23
+
24
+ ## 1.0.0 - 22 Nov 2014
25
+
26
+ The resurrection, Rails4, doc cleanup, Ruby2, SemVer, xunit, lots of stuff:
27
+
28
+ * Getting involved is easier, ie. you should be able to just `bundle && rake`
29
+ * The tests are all in xunit now because rspec is ugly, slow and cumbersome (and the whole test suite now runs in 3 seconds (on my machine ;))
30
+ * The deprecation warnings are GOOOOONE
31
+ * That annoying "Stack level too deep" bug is fixed
32
+ * There's now an actual license for the project
33
+ * The gemspec specifies the license (and doesn't have the date hardcoded anymore)
34
+ * The wiki is New and Improved™ - with a lot of work still left to do there
35
+ * WIP: The README is being reduced to something more consumable (because all the nitty gritty details are now in the wiki)
36
+ * The README is now in markdown, so it's easier to transfer things out into the wiki
37
+ * We've adopted SemVer officially
38
+ * The issues are groomed and in milestones
39
+ * CI is now happening on Travis
40
+ * Code quality is now happening on CodeClimate
41
+ * We're testing against Rails 4.0 and 4.1 in both Ruby 2.0 and 2.1 now
42
+ * We're officially not supporting Rails < 4 or Ruby < 2 in the 1.x releases (we'll bow to peer pressure if there is any)
43
+ * WIP: `protect_global_roles` is true by default for 1.0.0
44
+ * We're now on IRC as #acl9 (on freenode)
45
+
46
+ ## 0.12.0 - 04 Jan 2010
47
+
48
+ An anniversary release of fixes and hacks, introduced by venerable users of the plugin.
49
+
50
+ * Allow for inheritance of subject (Jeff Jaco)
51
+ * Renamed "Object" module in extensions, since it caused some breakage inside activesupport
52
+ (invisiblelama).
53
+ * `show_to` helper for usage in views (Antono Vasiljev)
54
+ * `:association_name` config option, now you can change Subject#role_objects to whatever
55
+ you want (Jeff Tucker).
56
+ * Fix bug when Subject#id is a string, e.g. UUID (Julien Bachmann)
57
+ * Bug with action blocks when using anonymous and another role (Franck)
58
+
59
+
60
+ ## 0.11.0 - 16 Sep 2009
61
+
62
+ * :protect_global_roles
63
+ * Subject#roles renamed to Subject#role_objects
64
+ * Fix namespaced models in roles backend (thanks goes to Tomas Jogin)
65
+ * Action name override in boolean methods.
66
+ * `:query_method` option for `access_control`.
67
+
68
+ ## 0.10.0 - 03 May 2009
69
+
70
+ * Use context+matchy combo for testing
71
+ * Bugfix: unwanted double quote in generated SQL statement
72
+
73
+ ## 0.9.4 - 27 Feb 2009
74
+
75
+ * Introduce :if and :unless rule options.
76
+
77
+ ## 0.9.3 - 04 Feb 2009
78
+
79
+ * Fix bug in delete_role - didn't work with custom class names
80
+ * Add `:helper` option for `access_control`.
81
+ * Ability to generate helper methods directly (place `include Acl9Helpers` in your helper module).
82
+
83
+ ## 0.9.2 - 11 Jan 2009
84
+
85
+ * `access_control :method do end` as shorter form for `access_control :as_method => :method do end`.
86
+ * Boolean method can now receive an objects hash which will be looked into first before taking
87
+ an instance variable.
88
+
89
+ ## 0.9.1 - 03 Jan 2009
90
+
91
+ Initial release.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acl9 (1.2.0)
4
+ acl9 (1.2.1)
5
5
  rails (~> 4.0)
6
6
 
7
7
  GEM
@@ -72,10 +72,10 @@ GEM
72
72
  minitest-reporter-api (0.0.5)
73
73
  minitest (~> 5.0)
74
74
  multi_json (1.10.1)
75
- nokogiri (1.6.5)
75
+ nokogiri (1.6.6.2)
76
76
  mini_portile (~> 0.6.0)
77
77
  rack (1.6.0)
78
- rack-test (0.6.2)
78
+ rack-test (0.6.3)
79
79
  rack (>= 1.0)
80
80
  rails (4.2.0)
81
81
  actionmailer (= 4.2.0)
@@ -112,7 +112,7 @@ GEM
112
112
  multi_json (~> 1.0)
113
113
  rack (~> 1.0)
114
114
  tilt (~> 1.1, != 1.3.0)
115
- sprockets-rails (2.2.2)
115
+ sprockets-rails (2.2.4)
116
116
  actionpack (>= 3.0)
117
117
  activesupport (>= 3.0)
118
118
  sprockets (>= 2.8, < 4.0)
data/lib/acl9/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Acl9
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
data/lib/acl9.rb CHANGED
@@ -34,5 +34,5 @@ module Acl9
34
34
  end
35
35
 
36
36
  ActiveRecord::Base.send(:include, Acl9::ModelExtensions)
37
- ActionController::Base.send(:include, Acl9::ControllerExtensions)
37
+ AbstractController::Base.send :include, Acl9::ControllerExtensions
38
38
  Acl9Helpers = Acl9::Helpers unless defined?(Acl9Helpers)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acl9
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - oleg dashevskii
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-12 00:00:00.000000000 Z
12
+ date: 2015-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -82,7 +82,7 @@ files:
82
82
  - ".ruby-version"
83
83
  - ".travis.yml"
84
84
  - Appraisals
85
- - CHANGELOG.textile
85
+ - CHANGELOG.md
86
86
  - CONTRIBUTING.md
87
87
  - Gemfile
88
88
  - Gemfile.lock
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
228
  version: '0'
229
229
  requirements: []
230
230
  rubyforge_project:
231
- rubygems_version: 2.2.2
231
+ rubygems_version: 2.4.5
232
232
  signing_key:
233
233
  specification_version: 4
234
234
  summary: Role-based authorization system for Rails with a concise DSL for securing
data/CHANGELOG.textile DELETED
@@ -1,46 +0,0 @@
1
- h2. 0.12.0 (04-Jan-2010)
2
-
3
- An anniversary release of fixes and hacks, introduced by venerable users of the plugin.
4
-
5
- * Allow for inheritance of subject (Jeff Jaco)
6
- * Renamed "Object" module in extensions, since it caused some breakage inside activesupport
7
- (invisiblelama).
8
- * @show_to@ helper for usage in views (Antono Vasiljev)
9
- * @:association_name@ config option, now you can change Subject#role_objects to whatever
10
- you want (Jeff Tucker).
11
- * Fix bug when Subject#id is a string, e.g. UUID (Julien Bachmann)
12
- * Bug with action blocks when using anonymous and another role (Franck)
13
-
14
-
15
- h2. 0.11.0 (16-Sep-2009)
16
-
17
- * :protect_global_roles
18
- * Subject#roles renamed to Subject#role_objects
19
- * Fix namespaced models in roles backend (thanks goes to Tomas Jogin)
20
- * Action name override in boolean methods.
21
- * @:query_method@ option for @access_control@.
22
-
23
- h2. 0.10.0 (03-May-2009)
24
-
25
- * Use context+matchy combo for testing
26
- * Bugfix: unwanted double quote in generated SQL statement
27
-
28
- h2. 0.9.4 (27-Feb-2009)
29
-
30
- * Introduce :if and :unless rule options.
31
-
32
- h2. 0.9.3 (04-Feb-2009)
33
-
34
- * Fix bug in delete_role - didn't work with custom class names
35
- * Add @:helper@ option for @access_control@.
36
- * Ability to generate helper methods directly (place @include Acl9Helpers@ in your helper module).
37
-
38
- h2. 0.9.2 (11-Jan-2009)
39
-
40
- * @access_control :method do end@ as shorter form for @access_control :as_method => :method do end@.
41
- * Boolean method can now receive an objects hash which will be looked into first before taking
42
- an instance variable.
43
-
44
- h2. 0.9.1 (03-Jan-2009)
45
-
46
- Initial release.