ruby_slime 0.0.4 → 0.0.5

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: d97fde901999a9c590e81817687191021260b13e1ef6fc825886ded4b4e211e0
4
- data.tar.gz: 735dfa78ce4ccf683982ba8950b318c00a4515f06be6a2a1b2d7e2698c58700d
3
+ metadata.gz: ea8812f3507f0651e25f840bc1646df7af34d36220834c78ae0385010b11922e
4
+ data.tar.gz: 0cacb7c612658c59ee2c8145c829eee971595fea3db11847d2d624ba7fdb2c44
5
5
  SHA512:
6
- metadata.gz: 96760cd3e0762f269684738f7dae2fce7d47d416716f806e4138e6135188a50fcad05a4f646f77edbb0c077eaaaad605822ef33f818dd86be1d9faa258dc989b
7
- data.tar.gz: f4f0a5f06d4808eefaa4f1c04b1b182a6180740cb85ec480cd40c15f758e8483b7176441dd21688daf2bf585d1de9f425b187ee06e65ddd8f099bd77adf1f7c1
6
+ metadata.gz: 63efb42a72ec6a4f633a4234a8483e4e000ae80d1dd5fc1b9aa6f3b44463bdc28cd61cb7e277cad21fb0af23ec7359909c70342feb3780c69d40dde03e610a06
7
+ data.tar.gz: ff33185300266cea33ba70849e8ef5f17d24155a41ed03f90e8771dfbfa8b3961faa8f3c5bec1f3209822f6edd5a13bc952929e298559f7a0732ea09858306e5
@@ -10,7 +10,8 @@ module RubySlime
10
10
  path_prefix: '',
11
11
  path_namespace:,
12
12
  rclone_conf: 'sync.rclone.conf',
13
- rclone_remote: 'sync'
13
+ rclone_remote: 'sync',
14
+ process_paths: lambda(&:itself)
14
15
  )
15
16
  initialize_context(rake_context)
16
17
  @rclone_conf = rclone_conf
@@ -21,6 +22,7 @@ module RubySlime
21
22
  @check_rclone_conf = lambda do
22
23
  raise "\"#{@rclone_conf}\" not found!" unless ::File.file?(@rclone_conf)
23
24
  end
25
+ @process_paths = process_paths
24
26
  end
25
27
 
26
28
  def declare
@@ -38,18 +40,8 @@ module RubySlime
38
40
  .each_line
39
41
  .map(&:strip)
40
42
  .select(&:present?)
41
- .reject do |filename|
42
- filename.split(%r{[/\\]}).then do |path_sections|
43
- path_sections.include?('.terraform') || \
44
- path_sections.include?('.idea') || \
45
- path_sections.last.then do |file_name|
46
- file_name.end_with?('rclone.conf') || \
47
- file_name.end_with?('tfstate.backup')
48
- end
49
- end
50
- end.map do |file_path|
51
- "--include=#{file_path}"
52
- end
43
+ .then(&@process_paths)
44
+ .map { |file_path| "--include=#{file_path}" }
53
45
  @check_rclone_conf.call
54
46
  sh(
55
47
  'rclone',
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubySlime
4
- VERSION = '0.0.4'
4
+ VERSION = '0.0.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_slime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sarun Rattanasiri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-28 00:00:00.000000000 Z
11
+ date: 2023-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel