dkr 0.0.2 → 0.0.3

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: 75794f05e53c0bf2a1bb1a72279a032771e1626a0837b071f0d410a24527bd73
4
- data.tar.gz: f6bdc7a35029694fef23f625b11e568e26c266d09c193654918e3f8ede1b157b
3
+ metadata.gz: 90a726dd5a0fd6ad709784e715cfefb95b9c03cea89415a0bb1087f5b13d9fcf
4
+ data.tar.gz: 849d80eeae7a4712eff80138b3ab611468e68070b20a2a0e9b9ec2eeb15d136c
5
5
  SHA512:
6
- metadata.gz: 7c95a5a29e80be10b3d45571ab7bbccebff6669c6561f52146b11351bd8b37dfafb308df2ddc5dece35c0d954073616fa7dc9040b9b7b34c0c595553517b3945
7
- data.tar.gz: de65667b57a8081bb0142179e9d3822e8c9ff8893308a2fb630716a165b2aedd55ce87aa3855b374ccadfd166fec3d1d7e3baeb2df4c0dfede497ca5d3408f9f
6
+ metadata.gz: dcdef93ab0537902d27539f0173420332a24e35b505fd65c20f68255575fff873fc55bc28c65da475394615938544f6a28aaa9ab0eedec2c681a58147502f57f
7
+ data.tar.gz: 444291aa3b003e3dc78bf26561b2ee434ff1ff5d327eb27cfd069938b82116b50937ae788aa2d026b128462b8704887c3db13321e1bc21254dd8db0263f010b4
File without changes
@@ -0,0 +1,26 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6.3
3
+
4
+ # Checks the indetation of multiline methods call
5
+ Layout/MultilineMethodCallIndentation:
6
+ EnforcedStyle: indented
7
+
8
+ # Checks if uses dobule quotes
9
+ Style/StringLiterals:
10
+ EnforcedStyle: double_quotes
11
+
12
+ # Checks if uses braces for call method
13
+ Style/LambdaCall:
14
+ EnforcedStyle: braces
15
+
16
+ # Checks for conditionals
17
+ Style/NegatedIf:
18
+ EnforcedStyle: prefix
19
+
20
+ # Checks Module Documentation with exceptions
21
+ Style/Documentation:
22
+ Enabled: false
23
+
24
+ # Checks for trailing comma in parameter lists
25
+ Style/TrailingCommaInArguments:
26
+ Enabled: false
@@ -0,0 +1,3 @@
1
+ # v0.0.1 2019-07-28
2
+
3
+ Initial release
@@ -0,0 +1 @@
1
+ # TODO
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gemspec
6
+
7
+ group :test do
8
+ gem "simplecov", "~> 0.17", require: false
9
+ end
10
+
11
+ group :tools do
12
+ gem "pry-byebug", "~> 3.7"
13
+ end
@@ -0,0 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ dkr (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ byebug (11.0.1)
10
+ coderay (1.1.2)
11
+ diff-lcs (1.3)
12
+ docile (1.3.2)
13
+ json (2.2.0)
14
+ method_source (0.9.2)
15
+ pry (0.12.2)
16
+ coderay (~> 1.1.0)
17
+ method_source (~> 0.9.0)
18
+ pry-byebug (3.7.0)
19
+ byebug (~> 11.0)
20
+ pry (~> 0.10)
21
+ rake (12.3.3)
22
+ rspec (3.8.0)
23
+ rspec-core (~> 3.8.0)
24
+ rspec-expectations (~> 3.8.0)
25
+ rspec-mocks (~> 3.8.0)
26
+ rspec-core (3.8.2)
27
+ rspec-support (~> 3.8.0)
28
+ rspec-expectations (3.8.4)
29
+ diff-lcs (>= 1.2.0, < 2.0)
30
+ rspec-support (~> 3.8.0)
31
+ rspec-mocks (3.8.1)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.8.0)
34
+ rspec-support (3.8.2)
35
+ simplecov (0.17.0)
36
+ docile (~> 1.1)
37
+ json (>= 1.8, < 3)
38
+ simplecov-html (~> 0.10.0)
39
+ simplecov-html (0.10.2)
40
+
41
+ PLATFORMS
42
+ ruby
43
+
44
+ DEPENDENCIES
45
+ bundler (~> 2.0)
46
+ dkr!
47
+ pry-byebug (~> 3.7)
48
+ rake (~> 12.3)
49
+ rspec (~> 3.8)
50
+ simplecov (~> 0.17)
51
+
52
+ BUNDLED WITH
53
+ 2.0.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Leonardo Lobo Lima
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.
@@ -0,0 +1,8 @@
1
+ # dkr
2
+
3
+ Docker utility.
4
+
5
+ ## License
6
+
7
+ The gem is available as open source under the terms of the
8
+ [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rspec/core/rake_task"
4
+ require "bundler/gem_tasks"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -2,42 +2,31 @@
2
2
 
3
3
  lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require "dkr/version"
6
5
 
7
- IGNORE_FILES = %w[
8
- Gemfile
9
- Gemfile.lock
10
- .gitignore
11
- Rakefile
12
- rakelib
13
- reek
14
- .rubocop.yml
15
- ].freeze
6
+ require "dkr/version"
16
7
 
17
8
  Gem::Specification.new do |spec|
18
- spec.name = "dkr"
19
- spec.version = Dkr::VERSION
20
- spec.authors = ["Leonardo Lobo Lima"]
21
- spec.email = ["dleemoo@gmail.com"]
22
- spec.license = "MIT"
9
+ spec.name = "dkr"
10
+ spec.version = Dkr::VERSION
11
+ spec.authors = ["Leonardo Lobo Lima"]
12
+ spec.email = ["dleemoo@gmail.com"]
23
13
 
24
- spec.summary = "Docker utility"
25
- spec.homepage = "https://gitlab.com/dleemoo/dkr"
14
+ spec.summary = "Docker utility"
15
+ spec.description = spec.summary
16
+ spec.homepage = "https://github.com/dleemoo/dkr"
17
+ spec.license = "MIT"
26
18
 
27
- spec.files = `git ls-files -z`
28
- .split("\x0")
29
- .reject { |file| file.match(Regexp.new(IGNORE_FILES.join("|"))) }
30
- spec.bindir = "exe"
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
21
  spec.require_paths = ["lib"]
22
+ spec.required_ruby_version = ">= 2.6.3"
23
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
24
+ spec.files = `git ls-files -z`.split("\x0")
25
+ .reject { |f| f.match(%r{^(test|spec|features|bin)/}) }
33
26
 
34
- spec.required_ruby_version = ">= 2.5.1"
27
+ # spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
35
28
 
36
- spec.add_development_dependency "bump", "~> 0.6"
37
- spec.add_development_dependency "bundler", "~> 1.16"
38
- spec.add_development_dependency "minitest", "~> 5.11"
39
- spec.add_development_dependency "minitest-reporters", "~> 1.3"
29
+ spec.add_development_dependency "bundler", "~> 2.0"
40
30
  spec.add_development_dependency "rake", "~> 12.3"
41
- spec.add_development_dependency "reek", "~> 5.0"
42
- spec.add_development_dependency "rubocop", "~> 0.58"
31
+ spec.add_development_dependency "rspec", "~> 3.8"
43
32
  end
data/lib/dkr.rb CHANGED
@@ -1,10 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- #
4
- # Namespace for all dkr app
5
- #
3
+ require "dkr/version"
4
+
6
5
  module Dkr
6
+ module Core
7
+ end
7
8
  end
8
-
9
- require "dkr/version"
10
- require "dkr/application"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dkr
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
metadata CHANGED
@@ -1,71 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dkr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Lobo Lima
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-13 00:00:00.000000000 Z
11
+ date: 2019-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bump
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '0.6'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '0.6'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: bundler
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: '1.16'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.16'
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '5.11'
19
+ version: '2.0'
48
20
  type: :development
49
21
  prerelease: false
50
22
  version_requirements: !ruby/object:Gem::Requirement
51
23
  requirements:
52
24
  - - "~>"
53
25
  - !ruby/object:Gem::Version
54
- version: '5.11'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest-reporters
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '1.3'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '1.3'
26
+ version: '2.0'
69
27
  - !ruby/object:Gem::Dependency
70
28
  name: rake
71
29
  requirement: !ruby/object:Gem::Requirement
@@ -81,53 +39,43 @@ dependencies:
81
39
  - !ruby/object:Gem::Version
82
40
  version: '12.3'
83
41
  - !ruby/object:Gem::Dependency
84
- name: reek
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '5.0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '5.0'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop
42
+ name: rspec
99
43
  requirement: !ruby/object:Gem::Requirement
100
44
  requirements:
101
45
  - - "~>"
102
46
  - !ruby/object:Gem::Version
103
- version: '0.58'
47
+ version: '3.8'
104
48
  type: :development
105
49
  prerelease: false
106
50
  version_requirements: !ruby/object:Gem::Requirement
107
51
  requirements:
108
52
  - - "~>"
109
53
  - !ruby/object:Gem::Version
110
- version: '0.58'
111
- description:
54
+ version: '3.8'
55
+ description: Docker utility
112
56
  email:
113
57
  - dleemoo@gmail.com
114
- executables:
115
- - dkr
58
+ executables: []
116
59
  extensions: []
117
60
  extra_rdoc_files: []
118
61
  files:
119
- - ".gitlab-ci.yml"
62
+ - ".gitignore"
63
+ - ".rubocop.yml"
64
+ - CHANGELOG.md
65
+ - CONTRIBUTING.md
66
+ - Gemfile
67
+ - Gemfile.lock
68
+ - LICENSE.txt
69
+ - README.md
70
+ - Rakefile
120
71
  - dkr.gemspec
121
- - exe/dkr
122
72
  - lib/dkr.rb
123
- - lib/dkr/application.rb
124
73
  - lib/dkr/version.rb
125
- - test/application/run_test.rb
126
- - test/test_helper.rb
127
- homepage: https://gitlab.com/dleemoo/dkr
74
+ homepage: https://github.com/dleemoo/dkr
128
75
  licenses:
129
76
  - MIT
130
- metadata: {}
77
+ metadata:
78
+ allowed_push_host: https://rubygems.org
131
79
  post_install_message:
132
80
  rdoc_options: []
133
81
  require_paths:
@@ -136,15 +84,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
84
  requirements:
137
85
  - - ">="
138
86
  - !ruby/object:Gem::Version
139
- version: 2.5.1
87
+ version: 2.6.3
140
88
  required_rubygems_version: !ruby/object:Gem::Requirement
141
89
  requirements:
142
90
  - - ">="
143
91
  - !ruby/object:Gem::Version
144
92
  version: '0'
145
93
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.7.6
94
+ rubygems_version: 3.0.4
148
95
  signing_key:
149
96
  specification_version: 4
150
97
  summary: Docker utility
@@ -1,14 +0,0 @@
1
- before_script:
2
- - bundle install --jobs $(nproc) "${FLAGS[@]}"
3
-
4
- reek:
5
- script:
6
- - bundle exec rake code:reek
7
-
8
- rubocop:
9
- script:
10
- - bundle exec rake code:rubocop
11
-
12
- test:
13
- script:
14
- - bundle exec rake test
data/exe/dkr DELETED
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #--
5
- # Copyright (c) 2018 Leonardo Lobo Lima
6
- #
7
- # Permission is hereby granted, free of charge, to any person obtaining a copy
8
- # of this software and associated documentation files (the "Software"), to
9
- # deal in the Software without restriction, including without limitation the
10
- # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11
- # sell copies of the Software, and to permit persons to whom the Software is
12
- # furnished to do so, subject to the following conditions:
13
- #
14
- # The above copyright notice and this permission notice shall be included in
15
- # all copies or substantial portions of the Software.
16
- #
17
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
- # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
- # IN THE SOFTWARE.
24
- #++
25
-
26
- require "dkr"
27
-
28
- Dkr::Application.new.run
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Dkr
4
- #
5
- # The command dkr executor
6
- #
7
- class Application
8
-
9
- def run(argv = ARGV)
10
- argv.tap { |arg| puts arg }
11
- end
12
-
13
- end
14
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../test_helper"
4
-
5
- class ApplicationTest < Minitest::Test
6
-
7
- def test_that_run_without_arguments
8
- assert_equal [], Dkr::Application.new.run([])
9
- end
10
-
11
- def test_that_run_with_arguments
12
- assert_equal %i[a b], Dkr::Application.new.run(%i[a b])
13
- end
14
-
15
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "dkr"
4
-
5
- require "minitest"
6
- require "minitest/unit"
7
- require "minitest/autorun"
8
-
9
- # user beter reports
10
- require "minitest/reporters"
11
- Minitest::Reporters.use!