runfile-tasks 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/gem.runfile +6 -2
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67f6533fc2c505ad0a6446287e3a260ad74a6c83a8b31ae5c7a78728fb4fd7f2
4
- data.tar.gz: b1f4822b7dac241adb5e055ac3b01ae73d4d6a20ee1301b23191da636e0f9a58
3
+ metadata.gz: 6c9053330f6de48b1a256bfe8878c9cd9f2caa2f39442dd6d348dd4e5b450eee
4
+ data.tar.gz: 72c148f9cdd1d450650b8e4350e14717c2c69465e0e0e184f85cd4475e741182
5
5
  SHA512:
6
- metadata.gz: caf4ee112f5d01340c26d391156ee61ea08257625a8356f618ee882486488f589c52e84ca1c290b353d37f529b0ba3857acee6d1325a0768979b4056f3b8c4cf
7
- data.tar.gz: 237bf631a951e5c52b7d546761ce42edc1fc0352a935da2a87d699c7d1d3709860ac90408e944b95d84e3033587879ffd26302bf03ce40dce9e65cd3749ec74d
6
+ metadata.gz: 51f4f1d8683cb0bf6f7d17d84651317e3d51857e32a07886919814d96796e587d327cd3eacefb6c6878b693e4ccf097632c00c0297fbc72fc8fc61df5bd0d08a
7
+ data.tar.gz: 0cafcd6a005b243d84158ea943af78b6eaca197f89ed5b047ee66d3dac7980f5031326d8fed0fbf713138d325410b4c259c8293d367d86a41d9747f9658e9ad5
data/README.md CHANGED
@@ -33,9 +33,9 @@ In your Runfile, use the `import_gem` directive to require any of the runfiles:
33
33
  title 'My Runfile'
34
34
 
35
35
  # commands for building and publishing your gem
36
- import_gem 'runfile-tasks/gem', gemname: 'my-gem'
36
+ import_gem 'runfile-tasks/gem'
37
37
  # or without publish/yank actions
38
- import_gem 'runfile-tasks/gem', gemname: 'my-gem', private: true
38
+ import_gem 'runfile-tasks/gem', private: true
39
39
 
40
40
  # commands for building and publishing your Dockerfile
41
41
  import_gem 'runfile-tasks/docker', image: 'my/image', version: '1.2.3'
data/gem.runfile CHANGED
@@ -3,7 +3,6 @@ require 'fileutils'
3
3
  title 'Gem management commands'
4
4
  summary 'Gem building and publishing commands'
5
5
 
6
- require_context :gemname
7
6
  require_context :private, default: false
8
7
 
9
8
  help 'Build and optionally install the gem'
@@ -45,7 +44,12 @@ end
45
44
 
46
45
  helpers do
47
46
  def gemname
48
- context[:gemname]
47
+ @gemname ||= begin
48
+ gemspec = Dir['*.gemspec'].first
49
+ raise UserError, 'Cannot find any *.gemspec' unless gemspec
50
+
51
+ Gem::Specification::load(gemspec).name
52
+ end
49
53
  end
50
54
 
51
55
  def gemfile
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runfile-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-01 00:00:00.000000000 Z
11
+ date: 2023-02-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A collection of tasks for Runfile
14
14
  email: db@dannyben.com
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  requirements: []
42
- rubygems_version: 3.4.5
42
+ rubygems_version: 3.4.6
43
43
  signing_key:
44
44
  specification_version: 4
45
45
  summary: Runfile tasks collection