deadpull 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9746519a34dc5962bd60f2453d8b9a9080a231b151f82bb18a07a8160992b3d3
4
- data.tar.gz: ea7c4d54bf24a03417e019496f979239fca1d7a02fac8fc983806333b67cb805
3
+ metadata.gz: 58ef52eb5108d21f1300afbcfe5b925b8b04b477c491389676662847ccd735fc
4
+ data.tar.gz: 152da87e6725df55b96b141281c15129afda4b5075f7f302d9c1e6a69bb7e1ee
5
5
  SHA512:
6
- metadata.gz: 46527b410c7c2449876aa84a302122bcf358fee52e2fc4a367446a5471b38f45c51e5d702afb157b94514570f480eab628c11ba3a254960f98f65610d402f208
7
- data.tar.gz: a1dff71358a2485f0011fc2fc95e9f8460a9026c2d87704474b179bbe0580ed6e6d3df6d567e77976442eb6b01e6680142dc0bbc5ffc20c30358a7538e9c54bc
6
+ metadata.gz: 54f63291d5d2f2d8fc9fc9ea5157232a030694eb57e55c2febb99601c6fe707cd232f76a426f878e8ef906fc813088e9627e69699b3ea8269ea32eb4b0af6b15
7
+ data.tar.gz: 669a71c952223192a268075cbf271a3592daf526c03dce0c5019d3b9001d7b20c3254c97ac487816f911cc79d92a4ac84a208e82e44a0823ebf839889e889b1e
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deadpull (0.1.0)
5
- activesupport (~> 5.2)
4
+ deadpull (0.1.1)
5
+ activesupport (>= 5.0)
6
6
  aws-sdk-s3 (~> 1)
7
7
  dry-initializer (~> 2.4)
8
8
  dry-transaction (~> 0.13)
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
- spec.add_dependency 'activesupport', '~> 5.2'
24
+ spec.add_dependency 'activesupport', '>= 5.0'
25
25
  spec.add_dependency 'aws-sdk-s3', '~> 1'
26
26
  spec.add_dependency 'dry-initializer', '~> 2.4'
27
27
  spec.add_dependency 'dry-transaction', '~> 0.13'
@@ -1,3 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'capistrano'
4
+ require 'deadpull'
5
+
3
6
  load File.expand_path('tasks/deadpull.rake', __dir__)
@@ -26,9 +26,7 @@ namespace :deadpull do
26
26
  Deadpull::Commands::Pull.call(dir, deadpull_config, deadpull_environment)
27
27
  on roles(deadpull_roles) do
28
28
  within release_path do
29
- Dir[Pathname.new(dir).join('**', '*')].each do |local_path|
30
- upload! local_path, Deadpull::Values::RootRelativePath.concretize(dir, local_path)
31
- end
29
+ upload! File.join(dir, '.'), release_path, recursive: true
32
30
  end
33
31
  end
34
32
  end
@@ -25,7 +25,7 @@ module Deadpull
25
25
  @paths ||= if File.file?(path)
26
26
  [path]
27
27
  else
28
- Dir[path.join('**', '*')]
28
+ Dir[path.join('**', '*')].select { |item| File.file?(item) }
29
29
  end
30
30
  end
31
31
 
@@ -5,7 +5,7 @@ module Deadpull
5
5
  class Environment < Base
6
6
  extend Dry::Initializer
7
7
 
8
- option :environment, optional: true
8
+ param :environment, optional: true
9
9
 
10
10
  def concretize
11
11
  environment || ENV['DEADPULL_ENV'] || ENV['RAILS_ENV'] || 'development'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deadpull
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deadpull
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paweł J. Wal
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-01 00:00:00.000000000 Z
11
+ date: 2018-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.2'
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sdk-s3
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -174,11 +174,11 @@ files:
174
174
  - config.reek
175
175
  - deadpull.gemspec
176
176
  - exe/deadpull
177
+ - lib/capistrano/deadpull.rb
178
+ - lib/capistrano/tasks/deadpull.rake
177
179
  - lib/deadpull.rb
178
180
  - lib/deadpull/builders.rb
179
181
  - lib/deadpull/builders/configuration.rb
180
- - lib/deadpull/capistrano/deadpull.rb
181
- - lib/deadpull/capistrano/tasks/deadpull.rake
182
182
  - lib/deadpull/commands.rb
183
183
  - lib/deadpull/commands/base.rb
184
184
  - lib/deadpull/commands/pull.rb