trop 0.6.1 → 0.6.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +6 -8
- data/VERSION +2 -1
- data/lib/trop/filefind.rb +2 -2
- data/lib/trop/gem_tasks.rb +15 -1
- data/lib/trop/shell_deb_verb.rb +3 -4
- data/lib/trop/version.rb +1 -1
- data/rakelib/gem_version.rake +26 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 528c3684d5b8d58c956fc4bffea8186d5b9568b3684007039e586fc201a5928c
|
4
|
+
data.tar.gz: 1980f19a8892c9fb7a7b8fa77a7742a68051b75505bf27f46c6daba4b83f5278
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e381ee7393674373efe1cc4eaffb82fa2adc4334f1d0fee5f44916eb0fdecce185fd80c9d4b16e81332cc9513fb10a90ebbd97a491f71c2286894bb481f743d2
|
7
|
+
data.tar.gz: 816702ae5fcff854234bc199ef1c4431c11b0169ed9b050aa3cd70ed345c5f72e086f91cb78796ec7300f30e53c98dde17dc662232f15572d5a2497a2c9394e9
|
data/Gemfile
CHANGED
@@ -4,7 +4,7 @@ source 'http://localhost:9292/'
|
|
4
4
|
# Add dependencies required to use your gem here.
|
5
5
|
# Example:
|
6
6
|
gem 'activesupport', '>= 2.3.5', require: false
|
7
|
-
|
7
|
+
gem "poise-service", "~> 1.5", require: false
|
8
8
|
# Add dependencies to develop your gem here.
|
9
9
|
# Include everything needed to run rake, tests, features, etc.
|
10
10
|
group :development do
|
@@ -17,20 +17,18 @@ group :development do
|
|
17
17
|
gem "minitest-reporters", "~> 1.3"
|
18
18
|
gem "bump", "~> 0.8.0"
|
19
19
|
gem "gem_version", "~> 0.0.6"
|
20
|
-
|
20
|
+
gem "bundler-geminabox", "1.0"
|
21
|
+
gem "git-version-bump", "~> 0.16.0"
|
22
|
+
gem "gem-release", "~> 2.0"
|
21
23
|
end
|
22
24
|
|
23
25
|
|
24
26
|
gem 'dotenv'
|
25
27
|
gem 'bundler', '~> 2.0.1'
|
26
|
-
|
27
28
|
gem 'sentry-raven'
|
28
29
|
gem 'colorize'
|
30
|
+
gem "faraday", "0.15.4"
|
29
31
|
|
30
|
-
gem "bundler-geminabox", "1.0"
|
31
|
-
|
32
|
-
gem "git-version-bump", "~> 0.16.0"
|
33
32
|
|
34
33
|
gem "gem-release", "~> 2.0"
|
35
|
-
|
36
|
-
gem "faraday", "0.15.4"
|
34
|
+
gem "nokogiri", "~> 1.10"
|
data/VERSION
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
[0;33;49mUsing dsn https://1119c5fd4e7e47b7948c62b22b182fdf@sentry.io/1448013[0m
|
2
|
+
0.16.0
|
data/lib/trop/filefind.rb
CHANGED
@@ -14,7 +14,7 @@ module Trop
|
|
14
14
|
class FileFind
|
15
15
|
|
16
16
|
# The version of the file-find library
|
17
|
-
VERSION = '0.4.
|
17
|
+
VERSION = '0.4.2'.freeze
|
18
18
|
|
19
19
|
|
20
20
|
# :stopdoc:
|
@@ -293,7 +293,7 @@ module Trop
|
|
293
293
|
# Add directories back onto the list of paths to search unless
|
294
294
|
# they've already been added
|
295
295
|
#
|
296
|
-
if stat_info.directory?
|
296
|
+
if File.directory?(file) ## stat_info.directory?
|
297
297
|
paths << file unless paths.include?(file)
|
298
298
|
end
|
299
299
|
|
data/lib/trop/gem_tasks.rb
CHANGED
@@ -5,7 +5,7 @@ require 'bundler/endpoint_specification'
|
|
5
5
|
require 'bump'
|
6
6
|
require 'gem_version'
|
7
7
|
require 'git-version-bump/rake-tasks'
|
8
|
-
|
8
|
+
#require 'gem/release'
|
9
9
|
|
10
10
|
module GemHelper
|
11
11
|
|
@@ -21,4 +21,18 @@ module GemHelper
|
|
21
21
|
return spec_gem.version
|
22
22
|
end
|
23
23
|
|
24
|
+
def self.check_lib_version_rb
|
25
|
+
content = Pathname.new(Trop::VERSION_FILE).read
|
26
|
+
version_ok = content.scan(/VERSION.*["']+\d+\.\d+[\.\d+]+["']+/)
|
27
|
+
version_ok
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.check_lib_version_rb?
|
31
|
+
return false if ( GemHelper::check_lib_version_rb.nil? )
|
32
|
+
true
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.update_version
|
36
|
+
end
|
37
|
+
|
24
38
|
end
|
data/lib/trop/shell_deb_verb.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
require 'rake/file_utils_ext'
|
3
2
|
require_relative 'core-ext'
|
4
3
|
|
@@ -32,7 +31,7 @@ module Trop
|
|
32
31
|
end
|
33
32
|
|
34
33
|
def self.silence_streams(*streams)
|
35
|
-
@@on_hold = streams.collect {
|
34
|
+
@@on_hold = streams.collect {|stream| stream.dup}
|
36
35
|
streams.each do |stream|
|
37
36
|
stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
|
38
37
|
stream.sync = true
|
@@ -83,9 +82,9 @@ module Trop
|
|
83
82
|
else
|
84
83
|
cmd = cmds.to_s
|
85
84
|
end
|
86
|
-
puts "commands: #{cmd} " if
|
85
|
+
puts "commands: #{cmd} " if Trop::Sh::debug?
|
87
86
|
return [-1, ''] if cmd.blank?
|
88
|
-
puts " #{cmd} ".colorize(:green) if
|
87
|
+
puts " #{cmd} ".colorize(:green) if Trop::Sh::verbose?
|
89
88
|
|
90
89
|
# execute system call with return in stdout
|
91
90
|
stdout = `#{cmd}`
|
data/lib/trop/version.rb
CHANGED
data/rakelib/gem_version.rake
CHANGED
@@ -2,9 +2,11 @@
|
|
2
2
|
require_relative '../lib/trop'
|
3
3
|
|
4
4
|
namespace :gem do
|
5
|
-
|
5
|
+
|
6
6
|
DEVNULL = Gem.win_platform? ? "NUL" : "/dev/null"
|
7
|
+
|
7
8
|
task :gembox do
|
9
|
+
Trop::Sh::silent!
|
8
10
|
Dir.chdir('./pkg') do
|
9
11
|
Trop::Sh::systemlocal 'gem inabox *.gem --host=http://localhost:9292 -o '
|
10
12
|
end
|
@@ -44,4 +46,27 @@ namespace :gem do
|
|
44
46
|
FileUtils.cp(%w[LICENSE.txt README.md README.rakes.md TODO.md], 'public', verbose: true)
|
45
47
|
end
|
46
48
|
|
49
|
+
|
50
|
+
|
51
|
+
end
|
52
|
+
|
53
|
+
namespace :gem do
|
54
|
+
desc "Clean *.gem* files from project root"
|
55
|
+
task :clean do
|
56
|
+
FileUtils.rm_f Dir.glob('*.gem*')
|
57
|
+
end
|
58
|
+
|
59
|
+
desc "Return and set next gem version"
|
60
|
+
task :version do
|
61
|
+
if (ENV.include?("set"))
|
62
|
+
version = ENV['set'].gsub(/'/, '')
|
63
|
+
unless GemVersion.version_format_valid?(version)
|
64
|
+
raise "Version '#{version}' format invalid. Must only contain digits separated by decimal points."
|
65
|
+
end
|
66
|
+
GemVersion.set_version(version)
|
67
|
+
puts "Next version set at '#{version}'"
|
68
|
+
else
|
69
|
+
puts GemVersion.next_version
|
70
|
+
end
|
71
|
+
end
|
47
72
|
end
|