ok_acl 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ec49e0c07a0498ef7a36bdf5de5ccdb0f6723861c42c46c073d445d3667268e
4
- data.tar.gz: aedb2f2a3502814f0e5bca04fb0b87a5704fa7a449c837b010d4fd9762eb2696
3
+ metadata.gz: 7467f57c1bed1c5a183bb4b48981bf5a229bd49388ebb231c561ca06d57135e0
4
+ data.tar.gz: c5a9e451f62fdfb93b14f71b19ebe0aa83792dc9c8dd00081f20507caf3f5a34
5
5
  SHA512:
6
- metadata.gz: 393a50c1ccc54b57e426662cd510b9de8739d5f11ebc8166efa77e7d3b367bdc6fd839263c53ccf60049adc7c19cc722e6021e3b932f1f3b20cd31f673c91902
7
- data.tar.gz: 95766b410e302961cd58e3e86885c715cdcc5af578acd4ce0a029c50b203e8b61badd19937e2bec29e99a90e279b5bbfa43a58fe90944a7c53344d011fe9e069
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
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.0
6
+ before_install: gem install bundler -v 2.1.2
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ ### 0.0.0 - 2020-05-01
2
+
3
+ - enhancements
4
+ - Creation and changes in the gem structure
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in ok_acl.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
7
+ gem "rspec", "~> 3.0"
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
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
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
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
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
- class OkAcl
2
- def self.hi
3
- puts "I'm building something great for you!"
4
- end
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
@@ -0,0 +1,14 @@
1
+ class OkAcl::Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "es"
9
+ "¡Estoy construyendo algo genial para ti!"
10
+ else
11
+ "I'm building something great for you!"
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,3 @@
1
+ module OkAcl
2
+ VERSION = "0.1.0"
3
+ end
@@ -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.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - Segundo España
7
+ - chundo
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-30 00:00:00.000000000 Z
11
+ date: 2020-05-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A acl of users woth roles and permissions
14
- email: segundo.espana1@gmail.com
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
- homepage: https://rubygems.org/gems/ok_acl
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: '0'
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: Ok acl!
61
+ summary: User management, control and permissions
43
62
  test_files: []