pleaserun 0.0.28 → 0.0.29

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
  SHA1:
3
- metadata.gz: ffe7bd35a8979fae195d6af866698f4d7f1064cf
4
- data.tar.gz: a3fc41ed4350a763c5d79b23fe3eba2244163ab7
3
+ metadata.gz: 816479bedcc5fc1bb0166b8fd18fce5e2c15adf3
4
+ data.tar.gz: cdcc4a4a80b6f79b7bb1737ab012186f9faeff75
5
5
  SHA512:
6
- metadata.gz: b3c0e84cbcbc649e8526f6cc4c1f3549ff0ad199897cc879dbcefd73427fdac91afa7236a6cfde00c5d802fdb9c2444099a4b24f06251b22949b6059897cf6c7
7
- data.tar.gz: 99235189ac2182d5ddf860b330c92ee4c8aec6583123a2e920cca059d11d807eb3db0fc9e19b0c8e2b76069cefc59a7b4756cc35f1bf65bee14dc522c1c99107
6
+ metadata.gz: ac3efe244a6641b236d9074d216a1dda6a16ddb22cd070595e098d463923e9e2433231aa37b4f83e986c95d63fe6201fa55c10b86c758646bf37d5eee119edaa
7
+ data.tar.gz: 89b1b59a1099186506e0dee56c602703ff6bbdb146f0635e0f8454a0ffae5c92737ec9d8ab60a4284cbb8190f5912aa02824bb60fe3018c48c59b42b32f4dafb
@@ -1,5 +1,8 @@
1
1
  = Pleaserun Changes and Releases
2
2
 
3
+ == 0.0.29 (April 17, 2017)
4
+ * `pleaserun --version` will now write the version of pleaserun and exit. (#125)
5
+
3
6
  == 0.0.28 (February 6, 2017)
4
7
  * sysv and upstart will now `set -a` before loading /etc/default and
5
8
  /etc/sysconfig files. This is to bring them in line with what users are
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pleaserun (0.0.27)
4
+ pleaserun (0.0.29)
5
5
  cabin (> 0)
6
6
  clamp
7
7
  dotenv
@@ -15,10 +15,10 @@ GEM
15
15
  cabin (0.9.0)
16
16
  celluloid (0.16.0)
17
17
  timers (~> 4.0.0)
18
- clamp (1.1.1)
18
+ clamp (1.1.2)
19
19
  coderay (1.1.0)
20
20
  diff-lcs (1.2.5)
21
- dotenv (2.1.1)
21
+ dotenv (2.2.0)
22
22
  ffi (1.9.6)
23
23
  ffi (1.9.6-java)
24
24
  flores (0.0.3)
data/Makefile CHANGED
@@ -1,5 +1,5 @@
1
1
  GEMSPEC=$(shell ls *.gemspec)
2
- VERSION=$(shell awk -F\" '/spec.version/ { print $$2 }' $(GEMSPEC))
2
+ VERSION=$(shell awk -F\" '/VERSION =/ { print $$2 }' lib/pleaserun/version.rb)
3
3
  NAME=$(shell awk -F\" '/spec.name/ { print $$2 }' $(GEMSPEC))
4
4
  GEM=$(NAME)-$(VERSION).gem
5
5
 
@@ -4,6 +4,7 @@ require "clamp"
4
4
  require "cabin"
5
5
  require "stud/temporary"
6
6
 
7
+ require "pleaserun/version"
7
8
  require "pleaserun/platform/base"
8
9
  require "pleaserun/installer"
9
10
  require "pleaserun/errors"
@@ -63,7 +64,7 @@ class PleaseRun::CLI < Clamp::Command # rubocop:disable ClassLength
63
64
 
64
65
  def help # rubocop:disable MethodLength
65
66
  return <<-HELP
66
- Welcome to pleaserun!
67
+ Welcome to pleaserun version #{PleaseRun::VERSION}!
67
68
 
68
69
  This program aims to help you generate 'init' scripts/configs for various
69
70
  platforms. The simplest example takes only the command you wish to run.
@@ -103,6 +104,16 @@ are made. If it fails, nagios will not start. Yay!
103
104
  # rubocop:enable MethodLength
104
105
  end
105
106
 
107
+ def run(args)
108
+ # Short circuit for a `fpm --version` or `fpm -v` short invocation that
109
+ # is the user asking us for the version of fpm.
110
+ if args == [ "-v" ] || args == [ "--version" ]
111
+ puts PleaseRun::VERSION
112
+ return 0
113
+ end
114
+ super
115
+ end
116
+
106
117
  def execute
107
118
  setup_logger
108
119
  setup_defaults
@@ -0,0 +1,3 @@
1
+ module PleaseRun
2
+ VERSION = "0.0.29"
3
+ end
@@ -1,8 +1,9 @@
1
+ require File.join(File.dirname(__FILE__), "lib/pleaserun/version")
1
2
  Gem::Specification.new do |spec|
2
3
  files = File.read(__FILE__)[/^__END__$.*/m].split("\n")[1..-1]
3
4
 
4
5
  spec.name = "pleaserun"
5
- spec.version = "0.0.28"
6
+ spec.version = PleaseRun::VERSION
6
7
  spec.summary = "pleaserun"
7
8
  spec.description = "pleaserun"
8
9
  spec.license = "Apache 2.0"
@@ -53,6 +54,7 @@ lib/pleaserun/platform/systemd.rb
53
54
  lib/pleaserun/platform/sysv.rb
54
55
  lib/pleaserun/platform/upstart.rb
55
56
  lib/pleaserun/user/base.rb
57
+ lib/pleaserun/version.rb
56
58
  pleaserun.gemspec
57
59
  spec/pleaserun/cli_spec.rb
58
60
  spec/pleaserun/configurable_spec.rb
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pleaserun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.28
4
+ version: 0.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Sissel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-04 00:00:00.000000000 Z
11
+ date: 2017-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cabin
@@ -129,6 +129,7 @@ files:
129
129
  - lib/pleaserun/platform/sysv.rb
130
130
  - lib/pleaserun/platform/upstart.rb
131
131
  - lib/pleaserun/user/base.rb
132
+ - lib/pleaserun/version.rb
132
133
  - pleaserun.gemspec
133
134
  - spec/pleaserun/cli_spec.rb
134
135
  - spec/pleaserun/configurable_spec.rb