cmd_executable 0.1.5 → 0.1.8

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: 9abe4451b735f5bb2d9280739e22812008eb2621984f34b7e42c7041d86cb0dc
4
- data.tar.gz: bc54ef0b966b6866b270a8b9fd6f6cf8b1b411fbea79cc57c71d85ed21a3bab7
3
+ metadata.gz: d5ea980a7333175768f46f2280975fc3e83e27da85d4ceece524788d7493eae3
4
+ data.tar.gz: 77a169245a60ff3c05a64a67225d15f0389a6ec28b1796420ddaeab3449d2fdc
5
5
  SHA512:
6
- metadata.gz: 4ca959fea731ab8ee1d1be217f322359aae743e40167e74937a443c14e8d97a04d0454ccb2bc183044f0d14a2fbbeceeaeb793c6510918119689813ca2dc3ba8
7
- data.tar.gz: 1fd4c29f26b3092b5ab6e93572df2adb1ac43ae49b8335ccd452c11f596ef3914fe019f8369bb6980b5ddace50dd5167cbd0e900bc0f8bc53b11ef2ee4e542ad
6
+ metadata.gz: 5c81df74d0d61a19794e66096578216f7c3089d4aa389e12d4ef6dad4e81f6c85f4bae9d7c1194ea6fff742451a54a339682a3b2da7cc4a4303b701006f79136
7
+ data.tar.gz: 46284763fa3f13ec196be342e00cf0b3ead3438992e0109a714a65347a34144fff4a1434ad164418c8526c33b070425cce3ae59b2dfc6358a56435667a76ea73
@@ -0,0 +1,42 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ build:
11
+ name: Build + Publish
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Ruby 2.6
17
+ uses: actions/setup-ruby@v1
18
+ with:
19
+ version: 2.6.x
20
+
21
+ - name: Publish to GPR
22
+ run: |
23
+ mkdir -p $HOME/.gem
24
+ touch $HOME/.gem/credentials
25
+ chmod 0600 $HOME/.gem/credentials
26
+ printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
27
+ gem build *.gemspec
28
+ gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
29
+ env:
30
+ GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}}
31
+ OWNER: toshiki670
32
+
33
+ - name: Publish to RubyGems
34
+ run: |
35
+ mkdir -p $HOME/.gem
36
+ touch $HOME/.gem/credentials
37
+ chmod 0600 $HOME/.gem/credentials
38
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
39
+ gem build *.gemspec
40
+ gem push *.gem
41
+ env:
42
+ GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
@@ -9,13 +9,15 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ['toshiki.dev@protonmail.ch']
10
10
 
11
11
  spec.summary = 'The command executable module.'
12
- spec.description = 'Please include CmdExecutable'
12
+ spec.description = <<-'DESC'
13
+ This module adds a method "executable?(command)".
14
+ it's return true if given command usable on Linux.
15
+ DESC
16
+
13
17
  spec.homepage = 'https://github.com/toshiki670/cmd_executable/wiki'
14
18
  spec.license = 'MIT'
15
19
  spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
16
20
 
17
- spec.metadata['allowed_push_host'] = 'https://rubygems.org'
18
-
19
21
  spec.metadata['homepage_uri'] = spec.homepage
20
22
  spec.metadata['source_code_uri'] = 'https://github.com/toshiki670/cmd_executable'
21
23
  spec.metadata['changelog_uri'] = 'https://github.com/toshiki670/cmd_executable/releases'
@@ -29,9 +31,9 @@ Gem::Specification.new do |spec|
29
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
32
  spec.require_paths = ['lib']
31
33
 
32
- spec.add_development_dependency 'bundler'
33
- spec.add_development_dependency 'pry'
34
- spec.add_development_dependency 'rake'
35
- spec.add_development_dependency 'rspec'
36
- spec.add_development_dependency 'rubocop'
34
+ spec.add_development_dependency 'bundler', '~> 2.1'
35
+ spec.add_development_dependency 'pry', '~> 0.13.1'
36
+ spec.add_development_dependency 'rake', '~> 13.0'
37
+ spec.add_development_dependency 'rspec', '~> 3.9'
38
+ spec.add_development_dependency 'rubocop', '~> 0.85.0'
37
39
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CmdExecutable
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmd_executable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshiki
@@ -14,73 +14,75 @@ dependencies:
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '2.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.13.1
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.13.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '3.9'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '3.9'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 0.85.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
83
- description: Please include CmdExecutable
82
+ version: 0.85.0
83
+ description: |2
84
+ This module adds a method "executable?(command)".
85
+ it's return true if given command usable on Linux.
84
86
  email:
85
87
  - toshiki.dev@protonmail.ch
86
88
  executables:
@@ -88,7 +90,7 @@ executables:
88
90
  extensions: []
89
91
  extra_rdoc_files: []
90
92
  files:
91
- - ".github/workflows/release.yml"
93
+ - ".github/workflows/gem-push.yml"
92
94
  - ".github/workflows/ruby_check.yml"
93
95
  - ".gitignore"
94
96
  - ".rubocop.yml"
@@ -108,7 +110,6 @@ homepage: https://github.com/toshiki670/cmd_executable/wiki
108
110
  licenses:
109
111
  - MIT
110
112
  metadata:
111
- allowed_push_host: https://rubygems.org
112
113
  homepage_uri: https://github.com/toshiki670/cmd_executable/wiki
113
114
  source_code_uri: https://github.com/toshiki670/cmd_executable
114
115
  changelog_uri: https://github.com/toshiki670/cmd_executable/releases
@@ -127,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
128
  - !ruby/object:Gem::Version
128
129
  version: '0'
129
130
  requirements: []
130
- rubygems_version: 3.1.3
131
+ rubygems_version: 3.0.3
131
132
  signing_key:
132
133
  specification_version: 4
133
134
  summary: The command executable module.
@@ -1,50 +0,0 @@
1
- # This workflow uses actions that are not certified by GitHub.
2
- # They are provided by a third-party and are governed by
3
- # separate terms of service, privacy policy, and support
4
- # documentation.
5
- # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
- # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
-
8
- name: Release
9
-
10
- on:
11
- push:
12
- branches: [ master ]
13
- pull_request:
14
- branches: [ master ]
15
-
16
- jobs:
17
- release:
18
-
19
- runs-on: ubuntu-latest
20
-
21
- steps:
22
- - uses: actions/checkout@v2
23
- - name: Set up Ruby
24
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
25
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
26
- # uses: ruby/setup-ruby@v1
27
- uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
28
- with:
29
- ruby-version: 2.7
30
- - name: Install dependencies
31
- run: |
32
- bundle config set path 'vendor/bundle'
33
- bundle install --jobs=8
34
- - name: Create credentials
35
- run: |
36
- mkdir -p ~/.gem
37
- echo '---' > ~/.gem/credentials
38
- echo ":rubygems_api_key: $RUBYGEMS_API_ACCESS_KEY" >> ~/.gem/credentials
39
- chmod 0600 ~/.gem/credentials
40
- - name: Setup git
41
- run: |
42
- git config push.default current
43
- git config user.email "toshiki.dev@protonmail.ch"
44
- git config user.name "Toshiki"
45
- - name: Release
46
- run: |
47
- bundle exec rake build
48
- bundle exec rake release
49
- - name: Remove credentials
50
- run: shred -u ~/.gem/credentials