raketary 0.1.1 → 0.1.2

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: 73333a3212384440ea74bde271093ab1858d69bf6d99f14bee2d97359fb7e4cc
4
- data.tar.gz: db6a6efecd0b115a549ca9832382412c3678adcdeb78d00752751ba00e674b00
3
+ metadata.gz: 894f790ebfea326ca63187d1ceaf88110682114320ed9be56f6eadd2f0e83ebb
4
+ data.tar.gz: b8a3f97e6d2812a596e3b002e81a508af49de233787a23ae09aa3039731624ec
5
5
  SHA512:
6
- metadata.gz: 505613ae4e2eb0df532ef071899b4f3b48811e6fecbc902da2748b9157acd1c83b5272a20870b0dd9708b122eb79093b9c696be31e77fc3eae3bb34ec174c34d
7
- data.tar.gz: dec0c32f73a776857b3d3f2cdc4e1249c2624aac7c2873b44a561c0c48cc5e3e5cf40621837466a20a35ff8d1aa01d6c1516419bf39edcf5eda928cc6f3dc021
6
+ metadata.gz: 3efae7f58482667ffd159129c936af00e6ab7535ab1b6426bee8ba93cbe3cc3625ac3e238c3f838b28a6fdbca28d81645e99c7e43c754b77d396ec65d3f76ea6
7
+ data.tar.gz: 64083deccbd1b21f0146c64f67b969065ca4d83b3d472d8392a66dabdba90927af2cdc5ab970b93ea06895a5794dd7afaff2298c788a92ed6c57684a3f0b9b72
data/CHANGELOG.md CHANGED
@@ -2,11 +2,23 @@
2
2
 
3
3
  Format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [[Unreleased]](https://github.com/esotericpig/raketary/compare/v0.1.1...master)
5
+ ## [[Unreleased]](https://github.com/esotericpig/raketary/compare/v0.1.2...master)
6
+
7
+ ## [v0.1.2] - 2020-03-01
8
+ ### Added
9
+ - Added `github_pkg` sub command using AppGitHubPkg & Raketeer::GitHubPkgTask
10
+ - This will publish/push your `pkg/*.gem` release(s) to GitHub Packages
11
+
12
+ ### Changed
13
+ - Updated Gemfile.lock
14
+
15
+ ### Fixed
16
+ - Fixed AppBump (`bump` sub command) to bump the bundle after bumping all
17
+ - Before this fix, it required you calling `bump` twice on the command line
6
18
 
7
19
  ## [v0.1.1] - 2019-12-18
8
20
  ### Changed
9
- - Add more info to CHANGELOG, README, TODO
21
+ - Added more info to CHANGELOG, README, TODO
10
22
 
11
23
  ## [v0.1.0] - 2019-08-06
12
24
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- raketary (0.1.1)
4
+ raketary (0.1.2)
5
5
  irb (~> 1.0)
6
6
  rake (~> 12.3)
7
7
  raketeer (~> 0.2)
@@ -9,12 +9,14 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- irb (1.2.0)
12
+ io-console (0.5.6)
13
+ irb (1.2.3)
13
14
  reline (>= 0.0.1)
14
15
  rake (12.3.3)
15
- raketeer (0.2.7)
16
+ raketeer (0.2.8)
16
17
  rake
17
- reline (0.0.7)
18
+ reline (0.1.3)
19
+ io-console (~> 0.5)
18
20
 
19
21
  PLATFORMS
20
22
  ruby
@@ -24,4 +26,4 @@ DEPENDENCIES
24
26
  raketary!
25
27
 
26
28
  BUNDLED WITH
27
- 2.0.2
29
+ 2.1.2
data/README.md CHANGED
@@ -8,6 +8,8 @@
8
8
 
9
9
  CLI for [Raketeer](https://github.com/esotericpig/raketeer).
10
10
 
11
+ ![Demo of Raketary on the command line](https://github.com/esotericpig/esotericpig.github.io/blob/master/pics/raketary_demo.gif)
12
+
11
13
  ## Contents
12
14
 
13
15
  - [Installing](#installing)
@@ -42,6 +44,7 @@ Usage: raketary [options] [command] [options]...
42
44
 
43
45
  Commands:
44
46
  bump Bump your project's version
47
+ github_pkg Publish your project's gem(s) to GitHub Packages
45
48
  irb Open an irb session loaded with your library
46
49
  nokogiri Install Nokogiri libs
47
50
  run Run your project's main file: raketary run -- --version
@@ -99,10 +102,21 @@ raketary bump -b 'beta.5' # Set the build metadata
99
102
  raketary bump -u # Bump the Gemfile.lock version
100
103
  ```
101
104
 
105
+ **GitHub Pkg**
106
+
107
+ ```
108
+ $ raketary github_pkg -h
109
+ ...
110
+ [github_pkg] Options:
111
+ -u, --user [STR] set the GitHub username
112
+ -h, --help show this help
113
+ ```
114
+
102
115
  ## [Hacking](#contents)
103
116
 
104
117
  ```
105
118
  $ git clone 'https://github.com/esotericpig/raketary.git'
119
+ $ cd raketary
106
120
  $ bundle install
107
121
  $ bundle exec rake -T
108
122
  ```
@@ -112,7 +126,7 @@ $ bundle exec rake -T
112
126
  [GNU LGPL v3+](LICENSE.txt)
113
127
 
114
128
  > Raketary (<https://github.com/esotericpig/raketary>)
115
- > Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
129
+ > Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
116
130
  >
117
131
  > Raketary is free software: you can redistribute it and/or modify
118
132
  > it under the terms of the GNU Lesser General Public License as published by
data/lib/raketary/app.rb CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  #--
6
6
  # This file is part of Raketary.
7
- # Copyright (c) 2019 Jonathan Bradley Whited (@esotericpig)
7
+ # Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
8
8
  #
9
9
  # Raketary is free software: you can redistribute it and/or modify
10
10
  # it under the terms of the GNU Lesser General Public License as published by
@@ -22,6 +22,7 @@
22
22
 
23
23
 
24
24
  require 'raketary/app_bump'
25
+ require 'raketary/app_github_pkg'
25
26
  require 'raketary/app_irb'
26
27
  require 'raketary/app_nokogiri'
27
28
  require 'raketary/app_run'
@@ -29,6 +30,7 @@ require 'raketary/cmd'
29
30
  require 'raketary/sub_cmd'
30
31
  require 'raketary/version'
31
32
 
33
+
32
34
  module Raketary
33
35
  ###
34
36
  # @author Jonathan Bradley Whited (@esotericpig)
@@ -56,6 +58,7 @@ module Raketary
56
58
 
57
59
  @sub_cmds = {
58
60
  'bump' => SubCmd.new(%q(Bump your project's version),AppBump),
61
+ 'github_pkg' => SubCmd.new(%q(Publish your project's gem(s) to GitHub Packages),AppGitHubPkg),
59
62
  'irb' => SubCmd.new('Open an irb session loaded with your library',AppIRB),
60
63
  'nokogiri' => SubCmd.new('Install Nokogiri libs',AppNokogiri),
61
64
  'run' => SubCmd.new(%Q(Run your project's main file: #{@name} run -- --version),AppRun)
@@ -112,8 +112,6 @@ module Raketary
112
112
 
113
113
  bump_task.check_env()
114
114
 
115
- bump_task.bump_bundle_file() if app.options[:bundle]
116
-
117
115
  bump_task.bump_all(Raketeer::BumpVer.new(
118
116
  version: app.options[:ver],
119
117
  major: app.options[:major],
@@ -123,6 +121,8 @@ module Raketary
123
121
  build_meta: app.options[:build]
124
122
  ))
125
123
 
124
+ bump_task.bump_bundle_file() if app.options[:bundle]
125
+
126
126
  app.ran_cmd = true
127
127
  end
128
128
  end
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: UTF-8
3
+ # frozen_string_literal: true
4
+
5
+ #--
6
+ # This file is part of Raketary.
7
+ # Copyright (c) 2019-2020 Jonathan Bradley Whited (@esotericpig)
8
+ #
9
+ # Raketary is free software: you can redistribute it and/or modify
10
+ # it under the terms of the GNU Lesser General Public License as published by
11
+ # the Free Software Foundation, either version 3 of the License, or
12
+ # (at your option) any later version.
13
+ #
14
+ # Raketary is distributed in the hope that it will be useful,
15
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ # GNU Lesser General Public License for more details.
18
+ #
19
+ # You should have received a copy of the GNU Lesser General Public License
20
+ # along with Raketary. If not, see <https://www.gnu.org/licenses/>.
21
+ #++
22
+
23
+
24
+ require 'bundler/gem_tasks'
25
+
26
+ require 'rake'
27
+ require 'raketary/cmd'
28
+ require 'raketeer/github_pkg_task'
29
+
30
+
31
+ module Raketary
32
+ ###
33
+ # @author Jonathan Bradley Whited (@esotericpig)
34
+ # @since 0.1.2
35
+ ###
36
+ class AppGitHubPkg < Cmd
37
+ def initialize(*)
38
+ super
39
+
40
+ parse!() do |op|
41
+ op.on('-u','--user [STR]','set the GitHub username')
42
+ end
43
+ end
44
+
45
+ def run()
46
+ super()
47
+
48
+ ghpkg_task = Raketeer::GitHubPkgTask.new() do |task|
49
+ task.username = app.options[:user] if app.options[:user]
50
+ end
51
+
52
+ ghpkg_task = Rake::Task[ghpkg_task.name]
53
+
54
+ ghpkg_task.reenable()
55
+ ghpkg_task.invoke()
56
+
57
+ app.ran_cmd = true
58
+ end
59
+ end
60
+ end
@@ -22,5 +22,5 @@
22
22
 
23
23
 
24
24
  module Raketary
25
- VERSION = '0.1.1'
25
+ VERSION = '0.1.2'
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raketary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Bradley Whited (@esotericpig)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-18 00:00:00.000000000 Z
11
+ date: 2020-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: irb
@@ -84,6 +84,7 @@ files:
84
84
  - lib/raketary.rb
85
85
  - lib/raketary/app.rb
86
86
  - lib/raketary/app_bump.rb
87
+ - lib/raketary/app_github_pkg.rb
87
88
  - lib/raketary/app_irb.rb
88
89
  - lib/raketary/app_nokogiri.rb
89
90
  - lib/raketary/app_run.rb
@@ -115,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
116
  - !ruby/object:Gem::Version
116
117
  version: '0'
117
118
  requirements: []
118
- rubygems_version: 3.0.4
119
+ rubygems_version: 3.1.2
119
120
  signing_key:
120
121
  specification_version: 4
121
122
  summary: CLI for Raketeer.