capistrano_multiconfig_parallel 0.15.4 → 0.15.5

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: b6cd09cc8132c08c2d8ae96463ddebaf9262f296
4
- data.tar.gz: 8b2521b82d898dd019ed65db627b9c4e068b5181
3
+ metadata.gz: ce5c12b343517998bcc01bda3c1fe46d1ca24387
4
+ data.tar.gz: 8cd1948ff8deb57abb6b793fc098296cf11db28d
5
5
  SHA512:
6
- metadata.gz: 8b99f2a7c3dc0fbf602b816d8d59c37800ee19ed9c153209afc05887c88ac13d3cfb0d61fec4ad9cfbda34898b05bd53911923e1e9fee92a5cb0f5f33b8a2285
7
- data.tar.gz: bc29a225e6eef5b902d66e030e342b3be7486c5a988dcc62354870f5d69b717c0c74c0e05a8a866b8c56052dded9ae3374498b2fc211dec5edd114fbf4daa0b8
6
+ metadata.gz: 8ef0605ffdeec6fc0fcd926f9b327fa213200461fe57fd3187f8f5891698878420ebae80927ee802964447edaf042a486811c1b99619a25242e9c9ab82e22b39
7
+ data.tar.gz: de674a4f61774088723d3c6cb60618ba657d81a1869940d0b9eca9855e4e43446c58e90f3ab11f7bca581c3f64fbd065dc427f796589b3525c4a60a475254449
@@ -33,6 +33,5 @@ Gem.find_files('capistrano_multiconfig_parallel/celluloid/**/*.rb').each { |path
33
33
 
34
34
  require_relative './version'
35
35
  require_relative './configuration'
36
- require_relative './helper'
37
36
  require_relative './base'
38
37
  require_relative './application'
@@ -1,7 +1,6 @@
1
1
  # base module that has the statis methods that this gem is using
2
2
  module CapistranoMulticonfigParallel
3
3
  include CapistranoMulticonfigParallel::Configuration
4
- include Helper
5
4
 
6
5
  ENV_KEY_JOB_ID = 'multi_cap_job_id'
7
6
  MULTI_KEY = 'multi'
@@ -95,9 +94,6 @@ module CapistranoMulticonfigParallel
95
94
  end
96
95
  end
97
96
 
98
- def using_cap3?
99
- verify_gem_version('capistrano', '3', operator: '>=')
100
- end
101
97
 
102
98
  def try_detect_capfile
103
99
  root = Pathname.new(FileUtils.pwd)
@@ -8,7 +8,7 @@ module CapistranoMulticonfigParallel
8
8
  module VERSION
9
9
  MAJOR = 0
10
10
  MINOR = 15
11
- TINY = 4
11
+ TINY = 5
12
12
  PRE = nil
13
13
 
14
14
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.4
4
+ version: 0.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada
@@ -631,7 +631,6 @@ files:
631
631
  - lib/capistrano_multiconfig_parallel/extensions/output_stream.rb
632
632
  - lib/capistrano_multiconfig_parallel/extensions/rake.rb
633
633
  - lib/capistrano_multiconfig_parallel/extensions/rake_hook_actor.rb
634
- - lib/capistrano_multiconfig_parallel/helper.rb
635
634
  - lib/capistrano_multiconfig_parallel/initializers/conf.rb
636
635
  - lib/capistrano_multiconfig_parallel/initializers/default.yml
637
636
  - lib/capistrano_multiconfig_parallel/managers/base_manager.rb
@@ -639,7 +638,6 @@ files:
639
638
  - lib/capistrano_multiconfig_parallel/multi_app_helpers/dependency_tracker.rb
640
639
  - lib/capistrano_multiconfig_parallel/multi_app_helpers/interactive_menu.rb
641
640
  - lib/capistrano_multiconfig_parallel/version.rb
642
- - spec/spec_helper.rb
643
641
  homepage: http://github.com/bogdanRada/capistrano_multiconfig_parallel/
644
642
  licenses:
645
643
  - MIT
@@ -666,6 +664,5 @@ specification_version: 4
666
664
  summary: CapistranoMulticonfigParallel is a simple ruby implementation that allows
667
665
  you to run multiple tasks in parallel and uses websockets for inter-process communication
668
666
  and has a interactive menu
669
- test_files:
670
- - spec/spec_helper.rb
667
+ test_files: []
671
668
  has_rdoc:
@@ -1,30 +0,0 @@
1
- # module used for feching gem information
2
- module Helper
3
- # function that makes the methods incapsulated as utility functions
4
-
5
- module_function
6
-
7
- def find_loaded_gem_property(gem_name, property)
8
- gem_spec = Gem.loaded_specs.values.find { |repo| repo.name == gem_name }
9
- gem_spec.respond_to?(property) ? gem_spec.send(property) : nil
10
- end
11
-
12
- def fetch_gem_version(gem_name, options = {})
13
- version = find_loaded_gem_property(gem_name, 'version')
14
- version.blank? ? nil : get_parsed_version(version.to_s, options)
15
- end
16
-
17
- def get_parsed_version(version, options)
18
- parsing_options = { optional_fields: [:tiny] }.merge(options.fetch('unparse', {}))
19
- Versionomy.parse(version).unparse(parsing_options)
20
- rescue Versionomy::Errors::ParseError
21
- nil
22
- end
23
-
24
- def verify_gem_version(gem_name, version, options = {})
25
- options.stringify_keys!
26
- version = get_parsed_version(version, options)
27
- gem_version = fetch_gem_version(gem_name, options)
28
- gem_version.blank? ? false : gem_version.send(options.fetch('operator', '<='), version)
29
- end
30
- end
data/spec/spec_helper.rb DELETED
@@ -1,48 +0,0 @@
1
- # Configure Rails Envinronment
2
- ENV['RAILS_ENV'] = 'test'
3
-
4
- require 'simplecov'
5
- require 'simplecov-summary'
6
- require 'coveralls'
7
-
8
- # require "codeclimate-test-reporter"
9
- formatters = [SimpleCov::Formatter::HTMLFormatter]
10
-
11
- formatters << Coveralls::SimpleCov::Formatter # if ENV['TRAVIS']
12
- # formatters << CodeClimate::TestReporter::Formatter # if ENV['CODECLIMATE_REPO_TOKEN'] && ENV['TRAVIS']
13
-
14
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[*formatters]
15
-
16
- Coveralls.wear!
17
- SimpleCov.start 'rails' do
18
- add_filter 'spec'
19
-
20
- at_exit {}
21
- end
22
-
23
- # CodeClimate::TestReporter.configure do |config|
24
- # config.logger.level = Logger::WARN
25
- # end
26
- # CodeClimate::TestReporter.start
27
-
28
- require 'bundler/setup'
29
- require 'celluloid_pubsub'
30
-
31
- require 'rspec/autorun'
32
-
33
- RSpec.configure do |config|
34
- require 'rspec/expectations'
35
- config.include RSpec::Matchers
36
-
37
- config.mock_with :mocha
38
-
39
- config.after(:suite) do
40
- if SimpleCov.running
41
- silence_stream(STDOUT) do
42
- SimpleCov::Formatter::HTMLFormatter.new.format(SimpleCov.result)
43
- end
44
-
45
- SimpleCov::Formatter::SummaryFormatter.new.format(SimpleCov.result)
46
- end
47
- end
48
- end