petergate 0.1.2 → 0.1.3

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: 9748be8464609ccb4c4b0a68630979e73e305513
4
- data.tar.gz: 1a7650656137df5a2faaa68e28ed8c2d5e2b9c4d
3
+ metadata.gz: 7187ecf8f85815e545390c1d6990f5f86dd4b681
4
+ data.tar.gz: 9d7af8202338b5dccf7c44ff3e4aab8a6f48a090
5
5
  SHA512:
6
- metadata.gz: 653a5bbdab6cb89714fdaefec2d016e020e2bc4333684237cbdc1a1880ddaaa4e677a3d90e5fac0c84610eaea20b3e333a567806739025c8cfb20eba96f4b46e
7
- data.tar.gz: dab7a5dfa408e27c266b71421af3617393dae88a24e9bba067fd1350cd201d249ac3f38ef87db1eb53429f3e48aa68cb52c65d54e17767897aa7b3561e5b25ca
6
+ metadata.gz: ed8b2dcf4ad4e053c383f606c5f69c0feb2e6354c2d090448bf6f28a65971047b2d3e0074d4c08fd4f3be3bf1bc9f2437b4916de5bf09a9aae4b1e844dc8bf09
7
+ data.tar.gz: 89c02b9422e50a40032ceacb276f2a0dd258545d431b9cf7d19804c3ae153b4646a90a18a15e4599b19792dd04c5820acff52d12515fc72d001b2631e9f1c67f
data/Gemfile CHANGED
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in petergate.gemspec
4
4
  gemspec
5
- gem 'activerecord'
5
+ # gem 'activerecord'
data/lib/petergate.rb CHANGED
@@ -52,26 +52,4 @@ module Petergate
52
52
  # End Permissions
53
53
  ################################################################################
54
54
  end
55
-
56
- module User
57
- serialize :roles
58
-
59
- Roles = [:company, :service, :admin, :weak_admin]
60
-
61
- after_initialize do
62
- self[:roles] = []
63
- end
64
-
65
- def roles=(v)
66
- self[:roles] = v.map(&:to_sym).to_a.select{|r| r.size > 0 && Roles.include?(r)}
67
- end
68
-
69
- def roles
70
- self[:roles] + [:user]
71
- end
72
-
73
- def role
74
- roles.first
75
- end
76
- end
77
55
  end
@@ -1,3 +1,3 @@
1
1
  module Petergate
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: petergate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Sloan