rails_admin_user_abilities 0.1.0.4 → 0.2.0.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: a08769f12e3be6f9c11dc0d188051fa6dfe0f389
4
- data.tar.gz: 4c2b79f15dc7564df5e2061848712d5d10660f27
3
+ metadata.gz: 0724c18ed35cc088eb057bf2f693eaa6315c10a5
4
+ data.tar.gz: 151ab4476f82835869c2d52a3c1b23298ac4ec4c
5
5
  SHA512:
6
- metadata.gz: cb87ec4fe061f7fa008d660c82fae41c68a84f1e1c0be6f3be441e4ce7945ae6f42ff7957ad7c75e1402bcb4754d2da8a22f1e1df2d6e2035cc679ff9d65f3eb
7
- data.tar.gz: 5fb6c543d6874e72eacc1c079c32028583264a54793df9cb541b63ed0d4e1ece070b1b7d7ea936704cb8d9849bd6d7b214d2bccf1cf72ba9d781e45aff57dd28
6
+ metadata.gz: a96038b5f84e54aaefde96bd78012c2c1336754c4ad1e7f53c28eb65f1ce35228d081c046cb14e7f4740fa7a01047c6729320e0449d61d93e281a9561bceb838
7
+ data.tar.gz: 859e7f4b874a3dd40b446272230c16d34a7337005f4bdf29f1770ab94710a138bbcf6f59d7076cc783d52606b1f52a5ab5f04e8128144a4cef1ce390d8f6ec80
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails_admin_user_abilities
1
+ rails_admin_user_abilities_rails5
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # RailsAdminUserAbilities
2
2
 
3
+ ### Rails 5 Support
4
+
3
5
  That will add fields for access to models, objects and actions in rails_admin panel for specific users.
4
6
 
5
7
  ## Installation
@@ -7,7 +9,7 @@ That will add fields for access to models, objects and actions in rails_admin pa
7
9
  Add this line to your application's Gemfile:
8
10
 
9
11
  ```ruby
10
- gem 'rails_admin_user_abilities'
12
+ gem 'rails_admin_user_abilities', '~> 0.2.0'
11
13
  ```
12
14
 
13
15
  And then execute:
@@ -16,7 +18,7 @@ And then execute:
16
18
 
17
19
  Or install it yourself as:
18
20
 
19
- $ gem install rails_admin_user_abilities
21
+ $ gem install rails_admin_user_abilities -v 0.2.0
20
22
 
21
23
  ## Usage
22
24
 
@@ -48,7 +48,6 @@
48
48
  button(data-toggle="collapse" data-target="#model_accesses_hash_#{u.id}")= "Чистый код".freeze
49
49
  .collapse(id="model_accesses_hash_#{u.id}")
50
50
  pre= JSON.pretty_generate({"#{_model.name}": (u.ability.accesses[_model.name] || {}) })
51
- .cf{style='clear: both'}
52
51
 
53
52
  - elsif request.post?
54
53
  - uniq_id = "rails_admin_model_accesses_#{(Time.new.to_f * 1000).to_i}".freeze
@@ -55,7 +55,6 @@
55
55
  button(data-toggle="collapse" data-target="#abilities_hash")= "Чистый код".freeze
56
56
  #abilities_hash.collapse
57
57
  pre= JSON.pretty_generate @object.ability.abilities
58
- .cf{style='clear: both'}
59
58
 
60
59
  - elsif request.post?
61
60
  - uniq_id = "rails_admin_user_abilities_#{(Time.new.to_f * 1000).to_i}".freeze
@@ -1,3 +1,3 @@
1
1
  module RailsAdminUserAbilities
2
- VERSION = "0.1.0.4".freeze
2
+ VERSION = "0.2.0.1".freeze
3
3
  end
@@ -30,7 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency "bundler", "~> 1.10"
31
31
  spec.add_development_dependency "rake", "~> 10.0"
32
32
 
33
- spec.add_dependency "rails", ['>= 4.0', '< 5.0']
34
-
35
- spec.add_dependency 'rails_admin', "~> 0.8.1"
33
+ spec.add_dependency "rails_admin", '>= 1.0.0.rc'
36
34
  end
data/release.sh CHANGED
@@ -2,5 +2,5 @@
2
2
  bundle update
3
3
  git add --all .
4
4
  git commit -am "${*:1}"
5
- git push -u origin master
5
+ git push -u origin rails5
6
6
  rake release
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_user_abilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.4
4
+ version: 0.2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-14 00:00:00.000000000 Z
11
+ date: 2016-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -39,39 +39,19 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rails
42
+ name: rails_admin
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '4.0'
48
- - - "<"
49
- - !ruby/object:Gem::Version
50
- version: '5.0'
47
+ version: 1.0.0.rc
51
48
  type: :runtime
52
49
  prerelease: false
53
50
  version_requirements: !ruby/object:Gem::Requirement
54
51
  requirements:
55
52
  - - ">="
56
53
  - !ruby/object:Gem::Version
57
- version: '4.0'
58
- - - "<"
59
- - !ruby/object:Gem::Version
60
- version: '5.0'
61
- - !ruby/object:Gem::Dependency
62
- name: rails_admin
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: 0.8.1
68
- type: :runtime
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: 0.8.1
54
+ version: 1.0.0.rc
75
55
  description: CanCanCan fields for rails_admin
76
56
  email:
77
57
  - dev@redrocks.pro