ops_team 0.2.0 → 0.2.1

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: 869d7f0aed1186432fd6695a4e48157f2914d0b9388d692a0596b2f8c919d524
4
- data.tar.gz: 678f918345ef55fb8ddd83819bebe1df1e0568b0032229e4e64d5c54315cf6dd
3
+ metadata.gz: 3f947ab7c489798b9868dde0124578cfbc747baee9017edab35ddeed55328e27
4
+ data.tar.gz: 49e885e7155a06c8960dadd505713a2da32081537a7998a4b6fc6c0aa6cb916b
5
5
  SHA512:
6
- metadata.gz: 835562752850437072b3c6fc58a603dfb92fd8d34149e8280df2763a995b689f314fe2d5ace25baa84bb4c71e257aa9b88466e2a14bef1ebb334405c3f261566
7
- data.tar.gz: 764c5b69e77aa06812e2211c3960c974e8278f03b212cc6b13308e8fd64236542ada77096b4adb61f0013f431a9ab4cceeaf01ca0c9f36e5f34d7f65a3529afb
6
+ metadata.gz: fe7fd8380653accb913cccc03b22b1a5463b9da28305df09587f9c2c21c9adf2c43f11217fadf4746a65e3f685ff88e258735f5e34a338846dea77f492f2919e
7
+ data.tar.gz: 7ceea9ca0c2ced123f2afa57a6d33901546fbaff1b91fee357e66b9a85d1e91c3fb64dac9206552010bca2033f18fe285156320bae422d468b68c60b91de4234
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rubygems"
4
+
5
+ require "output"
6
+
7
+ module Builtins
8
+ class Version < Builtin
9
+ GEMSPEC_FILE = "#{__dir__}/../../ops_team.gemspec"
10
+
11
+ def run
12
+ unless gemspec
13
+ Output.error("Unable to load gemspec at '#{GEMSPEC_FILE}")
14
+ return false
15
+ end
16
+
17
+ Output.out(gemspec.version)
18
+ end
19
+
20
+ private
21
+
22
+ def gemspec
23
+ @gemspec ||= Gem::Specification.load(GEMSPEC_FILE)
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'ops_team'
5
+ s.version = '0.2.1'
6
+ s.authors = [
7
+ 'nickthecook@gmail.com'
8
+ ]
9
+ s.date = '2020-05-29'
10
+ s.summary = 'ops_team handles basic operations tasks for your project, driven by YAML config'
11
+ s.homepage = 'https://github.com/nickthecook/ops'
12
+ s.files = Dir[
13
+ 'Gemfile',
14
+ 'bin/*',
15
+ 'lib/*',
16
+ 'etc/*',
17
+ 'lib/builtins/*',
18
+ 'lib/builtins/helpers/*',
19
+ 'lib/dependencies/*',
20
+ 'loader.rb',
21
+ 'ops_team.gemspec'
22
+ ]
23
+ s.executables << 'ops'
24
+ s.required_ruby_version = '~> 2.5'
25
+ s.add_runtime_dependency 'colorize', '~> 0.8', '>= 0.8.1'
26
+ s.add_runtime_dependency 'require_all', '~> 1.1', '>= 1.1.6'
27
+ s.license = 'GPL-3.0-only'
28
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_team
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nickthecook@gmail.com
@@ -71,6 +71,7 @@ files:
71
71
  - lib/builtins/helpers/dependency_handler.rb
72
72
  - lib/builtins/init.rb
73
73
  - lib/builtins/up.rb
74
+ - lib/builtins/version.rb
74
75
  - lib/dependencies/apk.rb
75
76
  - lib/dependencies/apt.rb
76
77
  - lib/dependencies/brew.rb
@@ -87,6 +88,7 @@ files:
87
88
  - lib/output.rb
88
89
  - lib/secrets.rb
89
90
  - loader.rb
91
+ - ops_team.gemspec
90
92
  homepage: https://github.com/nickthecook/ops
91
93
  licenses:
92
94
  - GPL-3.0-only