jive 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e99fd45b1d45c356ac45300a941833cf34dbcfc3995f935234c9c08f06dba74
4
- data.tar.gz: a68176da0fe8547d201ddbc573fb6d49e0773ca983fa312e4b6dc313c9a4157b
3
+ metadata.gz: bddc17f6e7de98fa8523b1397b9b71ba62d9a3f3d8a1afe0d3f2e199c1ae455d
4
+ data.tar.gz: 116b830e7c5f78974da8c983218ddeb85e9cf3ca848845fdfad03c0a5b61e866
5
5
  SHA512:
6
- metadata.gz: c41233baa8f43d3a9277435661eb9ccb13e874d5a5ed338f4de60cd095942c6b8ad3f13f74be5a34819d5efea3b8fd090c68369a6f39bacb8f2f10edf313e1c6
7
- data.tar.gz: cafe522151627f9e4649391e620cb4419970454a04cd62d2b31d329699c7d3cb0bb73dfb2b1faaa9b8ffbec43ee89750b06dc10b75723bf343609bbf1751a2be
6
+ metadata.gz: 334e951bcf57081638f45c698cc75f3bfa9bc196286b19e0bb0e11031dc595b82c85df4354c4d1b7b93803072319e9ab958b75cfdf472eb36f5ad30ceda32234
7
+ data.tar.gz: dc64e8622088871e639cfcc1465aa00ede6653539d8f1959529215c8c3b1efae5bb11eefd2b1e888f64d58e05b09df3fc074b8bc0f0d1cd56111b16b09abd043
data/jive.gemspec CHANGED
@@ -15,21 +15,19 @@ Gem::Specification.new do |spec|
15
15
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
16
16
 
17
17
  spec.metadata["homepage_uri"] = spec.homepage
18
-
19
- # Specify which files should be added to the gem when it is released.
20
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
- `git ls-files -z`.split("\x0").reject do |f|
23
- f.match(%r{^(test|spec|features)/})
24
- end
25
- end
18
+ spec.files = Dir["lib/**/*.rb"] + Dir["exe/*"] + [
19
+ "LICENSE.txt",
20
+ "README.md",
21
+ "jive.gemspec",
22
+ "jive.sh"
23
+ ]
26
24
  spec.bindir = "exe"
27
25
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
26
  spec.require_paths = ["lib"]
29
27
  spec.post_install_message = <<~MESSAGE
30
- Include the following in your ~/.bash_profile
28
+ Run the following command for setup instructions:
31
29
 
32
- source #{__dir__}/jive.sh
30
+ $ jive setup
33
31
  MESSAGE
34
32
 
35
33
  spec.add_dependency "thor", "~> 1.1"
data/lib/jive.rb CHANGED
@@ -11,6 +11,10 @@ require "jive/version"
11
11
  module Jive
12
12
  class Error < StandardError; end
13
13
 
14
+ def self.root
15
+ @root ||= Pathname.new(__FILE__).parent.parent
16
+ end
17
+
14
18
  def self.run(tasks)
15
19
  Jive::BatchRunner.new.run(tasks)
16
20
  end
data/lib/jive/cli.rb CHANGED
@@ -24,6 +24,15 @@ module Jive
24
24
  ])
25
25
  end
26
26
 
27
+ desc "setup", "provide instructions to integrate into shell"
28
+ def setup
29
+ say <<~MESSAGE
30
+ Include the following in your ~/.bash_profile
31
+
32
+ source #{::Jive.root.join("jive.sh")}
33
+ MESSAGE
34
+ end
35
+
27
36
  private
28
37
 
29
38
  COMMAND_MAP = {
data/lib/jive/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jive
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jive
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
  - mo khan
@@ -102,20 +102,8 @@ executables:
102
102
  extensions: []
103
103
  extra_rdoc_files: []
104
104
  files:
105
- - ".github/workflows/ci.yml"
106
- - ".gitignore"
107
- - ".rubocop.yml"
108
- - Gemfile
109
- - Gemfile.lock
110
105
  - LICENSE.txt
111
106
  - README.md
112
- - Rakefile
113
- - bin/console
114
- - bin/run
115
- - bin/setup
116
- - bin/shipit
117
- - bin/style
118
- - bin/test
119
107
  - exe/jive
120
108
  - jive.gemspec
121
109
  - jive.sh
@@ -131,9 +119,9 @@ licenses:
131
119
  metadata:
132
120
  homepage_uri: https://rubygems.org/gems/jive
133
121
  post_install_message: |
134
- Include the following in your ~/.bash_profile
122
+ Run the following command for setup instructions:
135
123
 
136
- source /home/mokha/src/github.com/xlgmokha/jive/jive.sh
124
+ $ jive setup
137
125
  rdoc_options: []
138
126
  require_paths:
139
127
  - lib
@@ -1,28 +0,0 @@
1
- name: ci
2
- on:
3
- push:
4
- branches: [main]
5
- pull_request:
6
- branches: [main]
7
- jobs:
8
- test:
9
- runs-on: ubuntu-latest
10
- strategy:
11
- matrix:
12
- ruby-version: ['2.5', '2.6', '2.7', '3.0']
13
- steps:
14
- - uses: actions/checkout@v2
15
- - uses: ruby/setup-ruby@v1
16
- with:
17
- ruby-version: ${{ matrix.ruby-version }}
18
- bundler-cache: true
19
- - run: ./bin/test
20
- style:
21
- runs-on: ubuntu-latest
22
- steps:
23
- - uses: actions/checkout@v2
24
- - uses: ruby/setup-ruby@v1
25
- with:
26
- ruby-version: '3'
27
- bundler-cache: true
28
- - run: ./bin/style
data/.gitignore DELETED
@@ -1,7 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /tmp/
data/.rubocop.yml DELETED
@@ -1,37 +0,0 @@
1
- require:
2
- - rubocop-minitest
3
- - rubocop-rake
4
-
5
- AllCops:
6
- NewCops: enable
7
- TargetRubyVersion: 2.5
8
-
9
- Layout/LineLength:
10
- Max: 120
11
-
12
- Layout/EndOfLine:
13
- EnforcedStyle: lf
14
-
15
- Layout/FirstArrayElementIndentation:
16
- EnforcedStyle: consistent
17
-
18
- Metrics/AbcSize:
19
- Exclude:
20
- - lib/jive/batch_runner.rb
21
- - lib/jive/popen.rb
22
-
23
- Metrics/MethodLength:
24
- Exclude:
25
- - lib/jive/batch_runner.rb
26
- - lib/jive/popen.rb
27
-
28
- Style/Documentation:
29
- Enabled: false
30
-
31
- Style/StringLiterals:
32
- Enabled: true
33
- EnforcedStyle: double_quotes
34
-
35
- Style/StringLiteralsInInterpolation:
36
- Enabled: true
37
- EnforcedStyle: double_quotes
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in jive.gemspec
6
- gemspec
data/Gemfile.lock DELETED
@@ -1,50 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- jive (0.2.0)
5
- thor (~> 1.1)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- ast (2.4.2)
11
- minitest (5.14.3)
12
- parallel (1.20.1)
13
- parser (3.0.0.0)
14
- ast (~> 2.4.1)
15
- rainbow (3.0.0)
16
- rake (13.0.3)
17
- regexp_parser (2.0.3)
18
- rexml (3.2.4)
19
- rubocop (1.9.1)
20
- parallel (~> 1.10)
21
- parser (>= 3.0.0.0)
22
- rainbow (>= 2.2.2, < 4.0)
23
- regexp_parser (>= 1.8, < 3.0)
24
- rexml
25
- rubocop-ast (>= 1.2.0, < 2.0)
26
- ruby-progressbar (~> 1.7)
27
- unicode-display_width (>= 1.4.0, < 3.0)
28
- rubocop-ast (1.4.1)
29
- parser (>= 2.7.1.5)
30
- rubocop-minitest (0.10.3)
31
- rubocop (>= 0.87, < 2.0)
32
- rubocop-rake (0.5.1)
33
- rubocop
34
- ruby-progressbar (1.11.0)
35
- thor (1.1.0)
36
- unicode-display_width (2.0.0)
37
-
38
- PLATFORMS
39
- ruby
40
-
41
- DEPENDENCIES
42
- jive!
43
- minitest (~> 5.0)
44
- rake (~> 13.0)
45
- rubocop (~> 1.7)
46
- rubocop-minitest (~> 0.1)
47
- rubocop-rake (~> 0.5)
48
-
49
- BUNDLED WITH
50
- 2.2.8
data/Rakefile DELETED
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rake/testtask"
5
- require "rubocop/rake_task"
6
-
7
- Rake::TestTask.new(:test) do |task|
8
- task.libs << "lib"
9
- task.libs << "test"
10
- task.test_files = FileList["test/**/*_test.rb"]
11
- end
12
- RuboCop::RakeTask.new
13
-
14
- task default: %i[test rubocop]
data/bin/console DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "jive"
6
-
7
- require "irb"
8
- IRB.start(__FILE__)
data/bin/run DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
-
3
- set -e
4
-
5
- cd "$(dirname "$0")/.."
6
-
7
- bundle exec ./exe/jive "$@"
data/bin/setup DELETED
@@ -1,6 +0,0 @@
1
- #!/bin/sh
2
- set -e
3
-
4
- cd "$(dirname "$0")/.."
5
-
6
- bundle install
data/bin/shipit DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/sh
2
-
3
- set -e
4
-
5
- cd "$(dirname "$0")/.."
6
-
7
- bundle exec rake release
data/bin/style DELETED
@@ -1,6 +0,0 @@
1
- #!/bin/sh
2
- set -e
3
-
4
- cd "$(dirname "$0")/.."
5
-
6
- bundle exec rubocop "$@"
data/bin/test DELETED
@@ -1,12 +0,0 @@
1
- #!/bin/sh
2
- set -e
3
-
4
- cd "$(dirname "$0")/.."
5
-
6
- export RUBYOPT="-Ilib:test"
7
-
8
- if [ $# -gt 0 ]; then
9
- bundle exec ruby "$@"
10
- else
11
- bundle exec ruby test/**/*_test.rb
12
- fi