ok_acl 0.0.0 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +59 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +64 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/chundo.txt +25 -0
- data/lib/ok_acl.rb +11 -4
- data/lib/ok_acl/translator.rb +14 -0
- data/lib/ok_acl/version.rb +3 -0
- data/ok_acl copy.gemspec +29 -0
- data/ok_acl.gemspec +29 -0
- metadata +29 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7467f57c1bed1c5a183bb4b48981bf5a229bd49388ebb231c561ca06d57135e0
|
4
|
+
data.tar.gz: c5a9e451f62fdfb93b14f71b19ebe0aa83792dc9c8dd00081f20507caf3f5a34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a6c71242b150daa1925eae5f08027449076bb0e715ea22fc923087d6bd773097af9af06a7f974d158cb4f6f15804c860edff26471890f030d25b04754ce76ad
|
7
|
+
data.tar.gz: d6fa89717a44bd732d23a57c3e10de02e31f0343be4e64fa9411e751ba51839a68e67e7358f456fc637884f9020afb3e2d84c3d9cca8e7687b13dd91659e2cce
|
data/.gitignore
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
# .env
|
15
|
+
|
16
|
+
# Ignore Byebug command history file.
|
17
|
+
.byebug_history
|
18
|
+
|
19
|
+
## Specific to RubyMotion:
|
20
|
+
.dat*
|
21
|
+
.repl_history
|
22
|
+
build/
|
23
|
+
*.bridgesupport
|
24
|
+
build-iPhoneOS/
|
25
|
+
build-iPhoneSimulator/
|
26
|
+
|
27
|
+
## Specific to RubyMotion (use of CocoaPods):
|
28
|
+
#
|
29
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
30
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
31
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
32
|
+
#
|
33
|
+
# vendor/Pods/
|
34
|
+
|
35
|
+
## Documentation cache and generated files:
|
36
|
+
/.yardoc/
|
37
|
+
/_yardoc/
|
38
|
+
/doc/
|
39
|
+
/rdoc/
|
40
|
+
|
41
|
+
## Environment normalization:
|
42
|
+
/.bundle/
|
43
|
+
/vendor/bundle
|
44
|
+
/lib/bundler/man/
|
45
|
+
|
46
|
+
# for a library or gem, you might want to ignore these files since the code is
|
47
|
+
# intended to run in multiple environments; otherwise, check them in:
|
48
|
+
# Gemfile.lock
|
49
|
+
# .ruby-version
|
50
|
+
# .ruby-gemset
|
51
|
+
|
52
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
53
|
+
.rvmrc
|
54
|
+
|
55
|
+
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
56
|
+
# .rubocop-https?--*
|
57
|
+
|
58
|
+
# rspec failure tracking
|
59
|
+
.rspec_status
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 chundo
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
- Ruby version
|
9
|
+
|
10
|
+
- System dependencies
|
11
|
+
|
12
|
+
- Configuration
|
13
|
+
|
14
|
+
- Database creation
|
15
|
+
|
16
|
+
- Database initialization
|
17
|
+
|
18
|
+
- How to run the test suite
|
19
|
+
|
20
|
+
- Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
- Deployment instructions
|
23
|
+
|
24
|
+
- ...
|
25
|
+
|
26
|
+
# OkAcl
|
27
|
+
|
28
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ok_acl`. To experiment with that code, run `bin/console` for an interactive prompt.
|
29
|
+
|
30
|
+
TODO: Delete this and the text above, and describe your gem
|
31
|
+
|
32
|
+
## Installation
|
33
|
+
|
34
|
+
Add this line to your application's Gemfile:
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
gem 'ok_acl'
|
38
|
+
```
|
39
|
+
|
40
|
+
And then execute:
|
41
|
+
|
42
|
+
$ bundle install
|
43
|
+
|
44
|
+
Or install it yourself as:
|
45
|
+
|
46
|
+
$ gem install ok_acl
|
47
|
+
|
48
|
+
## Usage
|
49
|
+
|
50
|
+
TODO: Write usage instructions here
|
51
|
+
|
52
|
+
## Development
|
53
|
+
|
54
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
55
|
+
|
56
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
57
|
+
|
58
|
+
## Contributing
|
59
|
+
|
60
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ok_acl.
|
61
|
+
|
62
|
+
## License
|
63
|
+
|
64
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "ok_acl"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/chundo.txt
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
## Create
|
2
|
+
|
3
|
+
- bundle gem ok_acl
|
4
|
+
|
5
|
+
## Gem name
|
6
|
+
|
7
|
+
- ok_acl.gemspec
|
8
|
+
|
9
|
+
## Generate Gemspec
|
10
|
+
|
11
|
+
- gem build ok_acl.gemspec
|
12
|
+
|
13
|
+
## Install gem in my local
|
14
|
+
|
15
|
+
- gem install ./ok_acl-0.0.0.gem
|
16
|
+
|
17
|
+
#Remove gem
|
18
|
+
|
19
|
+
- gem list -r ok_acl
|
20
|
+
|
21
|
+
## Use to gem
|
22
|
+
|
23
|
+
- irb
|
24
|
+
- require 'ok_acl'
|
25
|
+
- OkAcl.hi
|
data/lib/ok_acl.rb
CHANGED
@@ -1,5 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
require "ok_acl/version"
|
2
|
+
require 'ok_acl/translator'
|
3
|
+
|
4
|
+
module OkAcl
|
5
|
+
class Error < StandardError; end
|
6
|
+
# Your code goes here...
|
7
|
+
|
8
|
+
def self.hi(language = "en")
|
9
|
+
translator = Translator.new(language)
|
10
|
+
translator.hi
|
11
|
+
end
|
5
12
|
end
|
data/ok_acl copy.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative 'lib/ok_acl/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "ok_acl"
|
5
|
+
spec.version = OkAcl::VERSION
|
6
|
+
spec.authors = ["chundo"]
|
7
|
+
spec.email = ["segundo.espana1@gmail.com"]
|
8
|
+
|
9
|
+
spec.summary = %q{TODO: Write a short summary, because RubyGems requires one.}
|
10
|
+
spec.description = %q{TODO: Write a longer description or delete this line.}
|
11
|
+
spec.homepage = "TODO: Put your gem's website or public repo URL here."
|
12
|
+
spec.license = "MIT"
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
14
|
+
|
15
|
+
spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
19
|
+
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
24
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
end
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
end
|
data/ok_acl.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative 'lib/ok_acl/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "ok_acl"
|
5
|
+
spec.version = OkAcl::VERSION
|
6
|
+
spec.authors = ["chundo"]
|
7
|
+
spec.email = ["segundo.espana1@gmail.com"]
|
8
|
+
|
9
|
+
spec.summary = "User management, control and permissions"
|
10
|
+
spec.description = "User management, control and permissions"
|
11
|
+
spec.homepage = "https://github.com/chundo/ok_acl"
|
12
|
+
spec.license = "MIT"
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
14
|
+
|
15
|
+
#spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/chundo/ok_acl"
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/chundo/ok_acl/CHANGELOG.md"
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
24
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
end
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
end
|
metadata
CHANGED
@@ -1,26 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ok_acl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- chundo
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
email:
|
13
|
+
description: User management, control and permissions
|
14
|
+
email:
|
15
|
+
- segundo.espana1@gmail.com
|
15
16
|
executables: []
|
16
17
|
extensions: []
|
17
18
|
extra_rdoc_files: []
|
18
19
|
files:
|
20
|
+
- ".gitignore"
|
21
|
+
- ".rspec"
|
22
|
+
- ".travis.yml"
|
23
|
+
- CHANGELOG.md
|
24
|
+
- Gemfile
|
25
|
+
- LICENSE.txt
|
26
|
+
- README.md
|
27
|
+
- Rakefile
|
28
|
+
- bin/console
|
29
|
+
- bin/setup
|
30
|
+
- chundo.txt
|
19
31
|
- lib/ok_acl.rb
|
20
|
-
|
32
|
+
- lib/ok_acl/translator.rb
|
33
|
+
- lib/ok_acl/version.rb
|
34
|
+
- ok_acl copy.gemspec
|
35
|
+
- ok_acl.gemspec
|
36
|
+
homepage: https://github.com/chundo/ok_acl
|
21
37
|
licenses:
|
22
38
|
- MIT
|
23
|
-
metadata:
|
39
|
+
metadata:
|
40
|
+
homepage_uri: https://github.com/chundo/ok_acl
|
41
|
+
source_code_uri: https://github.com/chundo/ok_acl
|
42
|
+
changelog_uri: https://github.com/chundo/ok_acl/CHANGELOG.md
|
24
43
|
post_install_message:
|
25
44
|
rdoc_options: []
|
26
45
|
require_paths:
|
@@ -29,7 +48,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
29
48
|
requirements:
|
30
49
|
- - ">="
|
31
50
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
51
|
+
version: 2.3.0
|
33
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
53
|
requirements:
|
35
54
|
- - ">="
|
@@ -39,5 +58,5 @@ requirements: []
|
|
39
58
|
rubygems_version: 3.1.2
|
40
59
|
signing_key:
|
41
60
|
specification_version: 4
|
42
|
-
summary:
|
61
|
+
summary: User management, control and permissions
|
43
62
|
test_files: []
|