redmine_with_git 0.2.0 → 0.2.1

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: a34a6641c46dca0c41d62bdc1e816c9f4570092c09115b2e51976e6a42f27faf
4
- data.tar.gz: 4d4e3099dae281d66f3b8dd5fd6fa19dff1e9f460eae9edcd6778b0a9d851cd7
3
+ metadata.gz: 80b5993b7f9cd7f4dd77409d32c5307d61c8e71cac324d8a42d8a7ad2d0fd53e
4
+ data.tar.gz: 73e37b54440eb12781ab9f01c8f26ce946e09e232452539671331c705f36cc34
5
5
  SHA512:
6
- metadata.gz: e96d18022267e48569eb1b41195bb68b8684d6a7ce935ba22af72c28d37fb1377a48e152e1a8a00fd48f434fa6f27d2936602731811540b0126adc5679dcf08d
7
- data.tar.gz: 5d34f055c0a6ff833f242d63e520d0a9ec9bd2dff7cccf468a1acc8df7183017385b56cbc5b7beba449a4dff7d039ceaa8d65b5a446cc149de3c791feb4be772
6
+ metadata.gz: b9c3d738c11bb03b51c70d8ce9f6f02a44d793378a7019dbc64054bc230d849ef478eebc3fef71544f448ca20a7a34c65cb527dd424dc5b3715f02989da32027
7
+ data.tar.gz: d2194b4c8fcb6f7fa0510821263a143409a0b471948189b4ccdaf8629a22ea5bdc57002da0e7098e69384a8330fc160310125a6ac94f1c27383f4966b1ebf33f
@@ -1,6 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- patches_root = ::File.dirname(::File.dirname(__dir__))
4
- Dir["#{patches_root}/lib/**/*.rb"].each do |f|
5
- load(f)
6
- end
3
+ require 'redmine_with_git/patches/redmine_git_hosting/cache/database_patch'
4
+ require 'redmine_with_git/patches/redmine_git_hosting/commands/git/git_patch'
@@ -15,7 +15,7 @@ module RedmineWithGit
15
15
  end
16
16
 
17
17
  def build_sub(resource)
18
- resource_class(resource).new(resource_file_path(resource), overwrite)
18
+ resource_class(resource).new(resource_file_path(resource), options)
19
19
  end
20
20
 
21
21
  def build_command
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/files/rotate'
4
+ require 'eac_ruby_utils/patches/object/asserts'
4
5
  require 'eac_ruby_utils/listable'
5
6
 
6
7
  module RedmineWithGit
@@ -10,7 +11,10 @@ module RedmineWithGit
10
11
 
11
12
  lists.add_integer :overwrite, 1 => :denied, 2 => :allowed, 3 => :rotate
12
13
 
14
+ attr_reader :options
15
+
13
16
  def initialize(path, options = {})
17
+ options.assert_argument ::Hash, 'options'
14
18
  @options = options
15
19
  validate_overwrite
16
20
  super(path)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedmineWithGit
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_with_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-09 00:00:00.000000000 Z
11
+ date: 2019-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-tools
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.7'
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: '0.2'
26
+ version: '0.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: eac_rails_utils
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -45,6 +45,9 @@ dependencies:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.10'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.10.1
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,6 +55,9 @@ dependencies:
52
55
  - - "~>"
53
56
  - !ruby/object:Gem::Version
54
57
  version: '0.10'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.10.1
55
61
  description:
56
62
  email:
57
63
  executables: []