eac_ruby_gems_utils 0.9.1 → 0.9.5

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: c099ecc1a35c258668400a2ae537a1b4d68e8bc015ec5412a13e41c48cd9e068
4
- data.tar.gz: 3fc444bbde8b308c16f4e9e7d8f4cac37a249fe7a72e7f1c983a7e6cf110f67d
3
+ metadata.gz: aa2d807cc0f6c40f3470d61fd3dd4d6f1d6919b2b61968554eee7c7f300864cd
4
+ data.tar.gz: c1045d3a71a6545e8a1437801352ee069c0ec89741f9d5d5c332b6de32de261c
5
5
  SHA512:
6
- metadata.gz: 719f2c29fc18afe5c9fb00e53c2624cb78aad1d04b0e64f2cbd0b2449da2af67246c3ca8b64a4ec36a497bfe7837de51db00a1c2c033290bd4b11aee3f0dea5a
7
- data.tar.gz: f6e66ff586dacf7d43a2daf6a7181cb3b57764f5b92f7425531d838d08640e71b6cb6a01cc92718ca1234917f9381fa5f4f23f62f297adf515ea67c584954a71
6
+ metadata.gz: 49a8b3c40b99b3d05abc66e10a0329bfc85e699680b3d7ed736f9bb13f27b6d46323437338980ef8c23c66e0633420a8ce1abbfc15051158f77edf659d05a8f2
7
+ data.tar.gz: bbed5c5e3d25afe4f9457264132d7651fbee260d79cf3eec3265acf827fe20e2ffdf794ac588506581953b3bb975cbe35dd4e5ad8d734b20e179abf2c78afb7d
@@ -8,7 +8,7 @@ module EacRubyGemsUtils
8
8
  module Tests
9
9
  class Multiple
10
10
  require_sub __FILE__
11
- enable_console_speaker
11
+ enable_speaker
12
12
  enable_simple_cache
13
13
  common_constructor :gems, :options, default: [{}]
14
14
  set_callback :initialize, :after, :run
@@ -1,10 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'eac_ruby_utils/core_ext'
4
+
3
5
  module EacRubyGemsUtils
4
6
  module Tests
5
7
  class Multiple
6
8
  class DecoratedGem < ::SimpleDelegator
7
- enable_console_speaker
9
+ enable_speaker
8
10
 
9
11
  def prepare
10
12
  return unless gemfile_path.exist?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRubyGemsUtils
4
- VERSION = '0.9.1'
4
+ VERSION = '0.9.5'
5
5
  end
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- ::EacRubyGemSupport::Rspec.default.describe_rubocop
3
+ ::EacRubyUtils::Rspec.default_setup.describe_rubocop
data/spec/spec_helper.rb CHANGED
@@ -1,103 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This file was generated by the `rspec --init` command. Conventionally, all
4
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
5
- # The generated `.rspec` file contains `--require spec_helper` which will cause
6
- # this file to always be loaded, without a need to explicitly require it in any
7
- # files.
8
- #
9
- # Given that it is always loaded, you are encouraged to keep this file as
10
- # light-weight as possible. Requiring heavyweight dependencies from this file
11
- # will add to the boot time of your test suite on EVERY test run, even for an
12
- # individual file that may not need all of that loaded. Instead, consider making
13
- # a separate helper file that requires the additional dependencies and performs
14
- # the additional setup, and require it from the spec files that actually need
15
- # it.
16
- #
17
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
18
- RSpec.configure do |config|
19
- # rspec-expectations config goes here. You can use an alternate
20
- # assertion/expectation library such as wrong or the stdlib/minitest
21
- # assertions if you prefer.
22
- config.expect_with :rspec do |expectations|
23
- # This option will default to `true` in RSpec 4. It makes the `description`
24
- # and `failure_message` of custom matchers include text for helper methods
25
- # defined using `chain`, e.g.:
26
- # be_bigger_than(2).and_smaller_than(4).description
27
- # # => "be bigger than 2 and smaller than 4"
28
- # ...rather than:
29
- # # => "be bigger than 2"
30
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
31
- end
32
-
33
- # rspec-mocks config goes here. You can use an alternate test double
34
- # library (such as bogus or mocha) by changing the `mock_with` option here.
35
- config.mock_with :rspec do |mocks|
36
- # Prevents you from mocking or stubbing a method that does not exist on
37
- # a real object. This is generally recommended, and will default to
38
- # `true` in RSpec 4.
39
- mocks.verify_partial_doubles = true
40
- end
41
-
42
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
43
- # have no way to turn it off -- the option exists only for backwards
44
- # compatibility in RSpec 3). It causes shared context metadata to be
45
- # inherited by the metadata hash of host groups and examples, rather than
46
- # triggering implicit auto-inclusion in groups with matching metadata.
47
- config.shared_context_metadata_behavior = :apply_to_host_groups
48
-
49
- # The settings below are suggested to provide a good initial experience
50
- # with RSpec, but feel free to customize to your heart's content.
51
- # # This allows you to limit a spec run to individual examples or groups
52
- # # you care about by tagging them with `:focus` metadata. When nothing
53
- # # is tagged with `:focus`, all examples get run. RSpec also provides
54
- # # aliases for `it`, `describe`, and `context` that include `:focus`
55
- # # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
56
- # config.filter_run_when_matching :focus
57
- #
58
- # # Allows RSpec to persist some state between runs in order to support
59
- # # the `--only-failures` and `--next-failure` CLI options. We recommend
60
- # # you configure your source control system to ignore this file.
61
- # config.example_status_persistence_file_path = "spec/examples.txt"
62
- #
63
- # # Limits the available syntax to the non-monkey patched syntax that is
64
- # # recommended. For more details, see:
65
- # # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
66
- # # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
67
- # # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
68
- # config.disable_monkey_patching!
69
- #
70
- # # This setting enables warnings. It's recommended, but in some cases may
71
- # # be too noisy due to issues in dependencies.
72
- # config.warnings = true
73
- #
74
- # # Many RSpec users commonly either run the entire suite or an individual
75
- # # file, and it's useful to allow more verbose output when running an
76
- # # individual spec file.
77
- # if config.files_to_run.one?
78
- # # Use the documentation formatter for detailed output,
79
- # # unless a formatter has already been configured
80
- # # (e.g. via a command-line flag).
81
- # config.default_formatter = "doc"
82
- # end
83
- #
84
- # # Print the 10 slowest examples and example groups at the
85
- # # end of the spec run, to help surface which specs are running
86
- # # particularly slow.
87
- # config.profile_examples = 10
88
- #
89
- # # Run specs in random order to surface order dependencies. If you find an
90
- # # order dependency and want to debug it, you can fix the order by providing
91
- # # the seed, which is printed after each run.
92
- # # --seed 1234
93
- # config.order = :random
94
- #
95
- # # Seed global randomization in this process using the `--seed` CLI option.
96
- # # Setting this allows you to use `--seed` to deterministically reproduce
97
- # # test failures related to randomization by passing the same `--seed` value
98
- # # as the one that triggered the failure.
99
- # Kernel.srand config.seed
100
-
101
- require 'eac_ruby_gem_support/rspec'
102
- ::EacRubyGemSupport::Rspec.setup(::File.expand_path('..', __dir__), config)
103
- end
3
+ require 'eac_ruby_utils/rspec/default_setup'
4
+ ::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__))
metadata CHANGED
@@ -1,43 +1,63 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_ruby_gems_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-06 00:00:00.000000000 Z
11
+ date: 2021-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.2'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 2.2.17
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '2.2'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 2.2.17
13
33
  - !ruby/object:Gem::Dependency
14
34
  name: eac_ruby_utils
15
35
  requirement: !ruby/object:Gem::Requirement
16
36
  requirements:
17
37
  - - "~>"
18
38
  - !ruby/object:Gem::Version
19
- version: '0.29'
39
+ version: '0.70'
20
40
  type: :runtime
21
41
  prerelease: false
22
42
  version_requirements: !ruby/object:Gem::Requirement
23
43
  requirements:
24
44
  - - "~>"
25
45
  - !ruby/object:Gem::Version
26
- version: '0.29'
46
+ version: '0.70'
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: eac_ruby_gem_support
29
49
  requirement: !ruby/object:Gem::Requirement
30
50
  requirements:
31
51
  - - "~>"
32
52
  - !ruby/object:Gem::Version
33
- version: '0.2'
53
+ version: '0.3'
34
54
  type: :development
35
55
  prerelease: false
36
56
  version_requirements: !ruby/object:Gem::Requirement
37
57
  requirements:
38
58
  - - "~>"
39
59
  - !ruby/object:Gem::Version
40
- version: '0.2'
60
+ version: '0.3'
41
61
  description:
42
62
  email:
43
63
  executables: []
@@ -45,13 +65,9 @@ extensions: []
45
65
  extra_rdoc_files:
46
66
  - README.rdoc
47
67
  files:
48
- - ".gitignore"
49
68
  - ".rspec"
50
- - ".rubocop.yml"
51
69
  - Gemfile
52
- - LICENCE
53
70
  - README.rdoc
54
- - eac_ruby_gems_utils.gemspec
55
71
  - lib/eac_ruby_gems_utils.rb
56
72
  - lib/eac_ruby_gems_utils/gem.rb
57
73
  - lib/eac_ruby_gems_utils/gem/command.rb
@@ -97,20 +113,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
113
  - !ruby/object:Gem::Version
98
114
  version: '0'
99
115
  requirements: []
100
- rubygems_version: 3.0.9
116
+ rubygems_version: 3.1.6
101
117
  signing_key:
102
118
  specification_version: 4
103
119
  summary: Utilities for Ruby gems development.
104
120
  test_files:
105
- - spec/code/rubocop_check_spec.rb
106
- - spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb
107
121
  - spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb
122
+ - spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb
108
123
  - spec/lib/eac_ruby_gems_utils/gem_spec.rb
109
124
  - spec/spec_helper.rb
110
- - spec/support/mygem/Gemfile
111
- - spec/support/mygem/Gemfile.lock
125
+ - spec/code/rubocop_check_spec.rb
112
126
  - spec/support/mygem/Rakefile
113
- - spec/support/mygem/exe/myrunner
114
- - spec/support/mygem/lib/mygem.rb
127
+ - spec/support/mygem/Gemfile
115
128
  - spec/support/mygem/lib/mygem/version.rb
129
+ - spec/support/mygem/lib/mygem.rb
130
+ - spec/support/mygem/exe/myrunner
116
131
  - spec/support/mygem/mygem.gemspec
132
+ - spec/support/mygem/Gemfile.lock
133
+ - ".rspec"
data/.gitignore DELETED
@@ -1,3 +0,0 @@
1
- /Gemfile.lock
2
- doc/**/*
3
- .yardoc/**/*
data/.rubocop.yml DELETED
@@ -1,25 +0,0 @@
1
- require:
2
- - rubocop-rails
3
- - rubocop-rspec
4
-
5
- AllCops:
6
- TargetRubyVersion: 2.4
7
-
8
- Layout/LineLength:
9
- Max: 100
10
-
11
- Rails/RakeEnvironment:
12
- Exclude:
13
- - spec/support/mygem/Rakefile
14
-
15
- Style/Documentation:
16
- Enabled: false
17
-
18
- Style/HashEachMethods:
19
- Enabled: true
20
-
21
- Style/HashTransformKeys:
22
- Enabled: true
23
-
24
- Style/HashTransformValues:
25
- Enabled: true
data/LICENCE DELETED
@@ -1,16 +0,0 @@
1
- Copyright (c) 2020 Eduardo Henrique Bogoni
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
4
- associated documentation files (the "Software"), to deal in the Software without restriction,
5
- including without limitation the rights to use, copy, modify, merge, publish, distribute,
6
- sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
7
- furnished to do so, subject to the following conditions:
8
-
9
- The above copyright notice and this permission notice (including the next paragraph) shall be
10
- included in all copies or substantial portions of the Software.
11
-
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
13
- NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
15
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
16
- OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- $LOAD_PATH.push File.expand_path('lib', __dir__)
4
-
5
- # Maintain your gem's version:
6
- require 'eac_ruby_gems_utils/version'
7
-
8
- # Describe your gem and declare its dependencies:
9
- Gem::Specification.new do |s|
10
- s.name = 'eac_ruby_gems_utils'
11
- s.version = ::EacRubyGemsUtils::VERSION
12
- s.authors = ['Esquilo Azul Company']
13
- s.summary = 'Utilities for Ruby gems development.'
14
- s.license = 'MIT'
15
- s.homepage = 'https://github.com/esquilo-azul/eac_ruby_gems_utils'
16
- s.metadata = { 'source_code_uri' => s.homepage }
17
-
18
- s.extra_rdoc_files = ['README.rdoc']
19
- s.rdoc_options = ['--charset=UTF-8']
20
-
21
- s.require_paths = ['lib']
22
- s.files = `git ls-files`.split("\n")
23
- s.test_files = `git ls-files spec examples`.split("\n")
24
-
25
- s.add_dependency 'eac_ruby_utils', '~> 0.29'
26
-
27
- # Tests
28
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
29
- end