minio_runner 0.1.1 → 1.0.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: 0e893ea1ceae7fd460257c29482f2e3f19b14fa62a16c37b219dba34532ec0eb
4
- data.tar.gz: 53cbd2ac3e18e3a4812e693d28f2a1d5bf6701c9ab13ee368bdd1a5ca0b43cba
3
+ metadata.gz: 8e785504aa2d88d0ef104472b3bc00e7a882e9ad46e7e862d12f198e31667fb8
4
+ data.tar.gz: f0ea74f0a594fd648d8efd8892b4a86de26b6489d9ef42c1ccd7f983574d43ae
5
5
  SHA512:
6
- metadata.gz: 34e6ccaba17c9b6b5e9852068b3eca0ceef4bd57d294b54ebfd0756a688306fbee89f7617f832dce0f464c81a6689b81b03c07c74e30ca42e08175bcbefeceb2
7
- data.tar.gz: 91f8e7ec4ec0cd9cdc97b8d224074fbd0cf79c1b71a02a27d398ebe4fae2f76a4af06dcb071af15c0b4199ce32fd77ce5d413667d26eae83aba7f5be8b313dc6
6
+ metadata.gz: db4529f6f6c12eed93eae73ca20e71e10f3ae16b97cf783c51cc0bc99438140ec621b990ee03d6e4983275c3824e0ea2a4b8efa33f93875f4fade4a0a06a24b3
7
+ data.tar.gz: 4476e51029332f13d496d1ccb25fd70b1c0cd3129b2b716589c97e02b30a2ab8577fb633cd6c3dcbb597f09c648aad3ccf4cb58c1c8faf1805d655f94d00045c
data/Gemfile.lock CHANGED
@@ -1,78 +1,127 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minio_runner (0.1.1)
4
+ minio_runner (1.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ activesupport (8.0.2)
10
+ base64
11
+ benchmark (>= 0.3)
12
+ bigdecimal
13
+ concurrent-ruby (~> 1.0, >= 1.3.1)
14
+ connection_pool (>= 2.2.5)
15
+ drb
16
+ i18n (>= 1.6, < 2)
17
+ logger (>= 1.4.2)
18
+ minitest (>= 5.1)
19
+ securerandom (>= 0.3)
20
+ tzinfo (~> 2.0, >= 2.0.5)
21
+ uri (>= 0.13.1)
9
22
  ansi (1.5.0)
10
- ast (2.4.2)
11
- builder (3.2.4)
12
- byebug (11.1.3)
23
+ ast (2.4.3)
24
+ base64 (0.2.0)
25
+ benchmark (0.4.0)
26
+ bigdecimal (3.1.9)
27
+ builder (3.3.0)
28
+ byebug (12.0.0)
13
29
  coderay (1.1.3)
14
- json (2.6.3)
15
- language_server-protocol (3.17.0.3)
16
- method_source (1.0.0)
17
- minitest (5.19.0)
30
+ concurrent-ruby (1.3.5)
31
+ connection_pool (2.5.2)
32
+ drb (2.2.1)
33
+ i18n (1.14.7)
34
+ concurrent-ruby (~> 1.0)
35
+ json (2.11.0)
36
+ language_server-protocol (3.17.0.4)
37
+ lint_roller (1.1.0)
38
+ logger (1.7.0)
39
+ method_source (1.1.0)
40
+ minitest (5.25.5)
18
41
  minitest-color (0.0.2)
19
42
  minitest (~> 5)
20
43
  minitest-line (0.6.5)
21
44
  minitest (~> 5.0)
22
- minitest-reporters (1.6.1)
45
+ minitest-reporters (1.7.1)
23
46
  ansi
24
47
  builder
25
48
  minitest (>= 5.0)
26
49
  ruby-progressbar
27
- parallel (1.23.0)
28
- parser (3.2.2.3)
50
+ parallel (1.27.0)
51
+ parser (3.3.8.0)
29
52
  ast (~> 2.4.1)
30
53
  racc
31
54
  prettier_print (1.2.1)
32
- pry (0.14.2)
55
+ prism (1.4.0)
56
+ pry (0.15.2)
33
57
  coderay (~> 1.1)
34
58
  method_source (~> 1.0)
35
- pry-byebug (3.10.1)
36
- byebug (~> 11.0)
37
- pry (>= 0.13, < 0.15)
38
- racc (1.7.1)
59
+ pry-byebug (3.11.0)
60
+ byebug (~> 12.0)
61
+ pry (>= 0.13, < 0.16)
62
+ racc (1.8.1)
63
+ rack (3.1.13)
39
64
  rainbow (3.1.1)
40
- rake (13.0.6)
41
- regexp_parser (2.8.1)
42
- rexml (3.2.6)
43
- rubocop (1.55.1)
65
+ rake (13.2.1)
66
+ regexp_parser (2.10.0)
67
+ rubocop (1.75.3)
44
68
  json (~> 2.3)
45
- language_server-protocol (>= 3.17.0)
69
+ language_server-protocol (~> 3.17.0.2)
70
+ lint_roller (~> 1.1.0)
46
71
  parallel (~> 1.10)
47
- parser (>= 3.2.2.3)
72
+ parser (>= 3.3.0.2)
48
73
  rainbow (>= 2.2.2, < 4.0)
49
- regexp_parser (>= 1.8, < 3.0)
50
- rexml (>= 3.2.5, < 4.0)
51
- rubocop-ast (>= 1.28.1, < 2.0)
74
+ regexp_parser (>= 2.9.3, < 3.0)
75
+ rubocop-ast (>= 1.44.0, < 2.0)
52
76
  ruby-progressbar (~> 1.7)
53
- unicode-display_width (>= 2.4.0, < 3.0)
54
- rubocop-ast (1.29.0)
55
- parser (>= 3.2.1.0)
56
- rubocop-capybara (2.18.0)
57
- rubocop (~> 1.41)
58
- rubocop-discourse (3.3.0)
59
- rubocop (>= 1.1.0)
60
- rubocop-rspec (>= 2.0.0)
61
- rubocop-factory_bot (2.23.1)
62
- rubocop (~> 1.33)
63
- rubocop-rspec (2.23.0)
64
- rubocop (~> 1.33)
65
- rubocop-capybara (~> 2.17)
66
- rubocop-factory_bot (~> 2.22)
77
+ unicode-display_width (>= 2.4.0, < 4.0)
78
+ rubocop-ast (1.44.1)
79
+ parser (>= 3.3.7.2)
80
+ prism (~> 1.4)
81
+ rubocop-capybara (2.22.1)
82
+ lint_roller (~> 1.1)
83
+ rubocop (~> 1.72, >= 1.72.1)
84
+ rubocop-discourse (3.12.1)
85
+ activesupport (>= 6.1)
86
+ lint_roller (>= 1.1.0)
87
+ rubocop (>= 1.73.2)
88
+ rubocop-capybara (>= 2.22.0)
89
+ rubocop-factory_bot (>= 2.27.0)
90
+ rubocop-rails (>= 2.30.3)
91
+ rubocop-rspec (>= 3.0.1)
92
+ rubocop-rspec_rails (>= 2.31.0)
93
+ rubocop-factory_bot (2.27.1)
94
+ lint_roller (~> 1.1)
95
+ rubocop (~> 1.72, >= 1.72.1)
96
+ rubocop-rails (2.31.0)
97
+ activesupport (>= 4.2.0)
98
+ lint_roller (~> 1.1)
99
+ rack (>= 1.1)
100
+ rubocop (>= 1.75.0, < 2.0)
101
+ rubocop-ast (>= 1.38.0, < 2.0)
102
+ rubocop-rspec (3.6.0)
103
+ lint_roller (~> 1.1)
104
+ rubocop (~> 1.72, >= 1.72.1)
105
+ rubocop-rspec_rails (2.31.0)
106
+ lint_roller (~> 1.1)
107
+ rubocop (~> 1.72, >= 1.72.1)
108
+ rubocop-rspec (~> 3.5)
67
109
  ruby-progressbar (1.13.0)
110
+ securerandom (0.4.1)
68
111
  spy (1.0.5)
69
- syntax_tree (6.1.1)
112
+ syntax_tree (6.2.0)
70
113
  prettier_print (>= 1.2.0)
71
114
  syntax_tree-disable_ternary (1.0.0)
72
- unicode-display_width (2.4.2)
115
+ tzinfo (2.0.6)
116
+ concurrent-ruby (~> 1.0)
117
+ unicode-display_width (3.1.4)
118
+ unicode-emoji (~> 4.0, >= 4.0.4)
119
+ unicode-emoji (4.0.4)
120
+ uri (1.0.3)
73
121
 
74
122
  PLATFORMS
75
123
  arm64-darwin-21
124
+ arm64-darwin-24
76
125
  x86_64-linux
77
126
 
78
127
  DEPENDENCIES
@@ -90,4 +139,4 @@ DEPENDENCIES
90
139
  syntax_tree-disable_ternary
91
140
 
92
141
  BUNDLED WITH
93
- 2.4.13
142
+ 2.6.4
data/README.md CHANGED
@@ -42,6 +42,9 @@ setup and teardown for rspec.
42
42
  # is greater than the installed version.
43
43
  MinioRunner.start
44
44
 
45
+ # Start the server without attempting to locate or download the minio binary
46
+ MinioRunner.start(install: false)
47
+
45
48
  # Stop the currently running server.
46
49
  MinioRunner.stop
47
50
  ```
@@ -2,14 +2,15 @@
2
2
 
3
3
  module MinioRunner
4
4
  class Config
5
- attr_accessor :install_dir, :cache_time, :buckets, :public_buckets, :log_level
6
- attr_accessor :minio_data_directory,
7
- :minio_root_user,
5
+ attr_accessor :cache_time, :buckets, :public_buckets, :log_level
6
+ attr_accessor :minio_root_user,
8
7
  :minio_root_password,
9
8
  :minio_domain,
10
9
  :minio_port,
11
10
  :minio_console_port
12
11
 
12
+ attr_reader :install_dir, :minio_data_directory
13
+
13
14
  DEFAULT_INSTALL_DIR = "~/.minio_runner"
14
15
  DEFAULT_CACHE_TIME = 86_400 # 24 hours in seconds
15
16
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MinioRunner
4
- VERSION = "0.1.1"
4
+ VERSION = "1.0.0"
5
5
  end
data/lib/minio_runner.rb CHANGED
@@ -13,6 +13,8 @@ require_relative "minio_runner/mc_manager"
13
13
 
14
14
  module MinioRunner
15
15
  class << self
16
+ @@started = false
17
+
16
18
  def config(&block)
17
19
  @config ||= MinioRunner::Config.new
18
20
  if block_given?
@@ -44,15 +46,21 @@ module MinioRunner
44
46
  end
45
47
  end
46
48
 
47
- def start
49
+ def start(install: true)
48
50
  logger.debug("Starting minio_runner...")
49
51
 
50
- install_binaries
52
+ install_binaries if install
51
53
  start_server
52
54
  setup_alias
53
55
  setup_buckets
54
56
 
55
57
  logger.debug("Started minio_runner.")
58
+
59
+ @@started = true
60
+ end
61
+
62
+ def started?
63
+ @@started
56
64
  end
57
65
 
58
66
  def install_binaries
@@ -80,9 +88,11 @@ module MinioRunner
80
88
  end
81
89
 
82
90
  def stop
91
+ return if !started?
83
92
  logger.debug("Stopping minio_runner...")
84
93
  MinioRunner::MinioServerManager.stop
85
94
  logger.debug("Stopped minio_runner.")
95
+ @@started = false
86
96
  end
87
97
 
88
98
  def reset_config!
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minio_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Brennan
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-08-22 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: syntax_tree
@@ -165,7 +164,6 @@ homepage: https://rubygemspec.org/gems/minio_runner
165
164
  licenses:
166
165
  - MIT
167
166
  metadata: {}
168
- post_install_message:
169
167
  rdoc_options: []
170
168
  require_paths:
171
169
  - lib
@@ -173,15 +171,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
171
  requirements:
174
172
  - - ">="
175
173
  - !ruby/object:Gem::Version
176
- version: '0'
174
+ version: 3.3.0
177
175
  required_rubygems_version: !ruby/object:Gem::Requirement
178
176
  requirements:
179
177
  - - ">="
180
178
  - !ruby/object:Gem::Version
181
179
  version: '0'
182
180
  requirements: []
183
- rubygems_version: 3.1.6
184
- signing_key:
181
+ rubygems_version: 3.6.7
185
182
  specification_version: 4
186
183
  summary: Manages local minio binary installs
187
184
  test_files: []