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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aacf53a552232a034917687fedb94ec38c63eb53f0e0a27af7c3b3da8643025f
4
- data.tar.gz: cd861452275f281afc6a7c81e59b2d065fab5f3f9b7870d0dfe113c20ff6a435
3
+ metadata.gz: 528c3684d5b8d58c956fc4bffea8186d5b9568b3684007039e586fc201a5928c
4
+ data.tar.gz: 1980f19a8892c9fb7a7b8fa77a7742a68051b75505bf27f46c6daba4b83f5278
5
5
  SHA512:
6
- metadata.gz: 866ac0a2c6f8a26c75075ff5aa4c911f39a1cff74239d392ca4aebaa24c9280faaa2c7bfbf4a612cf0ab29e6e5a59d5647f34a723b79f79c1b826f271dabe33d
7
- data.tar.gz: 884098e9c2a39c3655e090ef421a8e4339b84cfe29b5953c94fb431c68472459b661e3417e71d7b3d3c6dc27d39e93c93a2a8b0a2659381c969bdbddde5d7582
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.0
1
+ Using dsn https://1119c5fd4e7e47b7948c62b22b182fdf@sentry.io/1448013
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.1'.freeze
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
 
@@ -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
@@ -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 { |stream| stream.dup }
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 Trop::Sh::debug?
85
+ puts "commands: #{cmd} " if Trop::Sh::debug?
87
86
  return [-1, ''] if cmd.blank?
88
- puts " #{cmd} ".colorize(:green) if Trop::Sh::verbose?
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
@@ -1,5 +1,5 @@
1
1
  module Trop
2
- VERSION = '0.4.52'
2
+ VERSION = '0.6.9'
3
3
  VERSION_NAME = 'trop'
4
4
  GEMSPEC_NAME = VERSION_NAME + '.gemspec'
5
5
  VERSION_FILE = File.expand_path('version.rb', __dir__)
@@ -2,9 +2,11 @@
2
2
  require_relative '../lib/trop'
3
3
 
4
4
  namespace :gem do
5
- Trop::Sh::silent!
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - werner