meta_commit_contracts 0.3.2 → 0.3.3

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
  SHA1:
3
- metadata.gz: fe975c77c3e9cfc327f00780ab628d6a55bb5deb
4
- data.tar.gz: 25587416b042053bbf3ad8594c26547affd4f595
3
+ metadata.gz: dad1875a349b9d96003a05034c8dd801193c185a
4
+ data.tar.gz: fc71d8741c28bef6606723b1e794730ef5707d23
5
5
  SHA512:
6
- metadata.gz: 6dc07e521ee8088c3a938c45a9c0946d9856f8b42d2d1dfc010968602c45f695172a836ca4490fae133672d4d7add2ff31bee60d45e77caa48d811bbdd36498e
7
- data.tar.gz: 84d1b8e2bfcd30a73813c9bd1cd084cd80b4e8b60a537abd7f757862564dda9d7f92264e53f816bc5cc7e0df04960142dabf538637dd327e70c81ebdbbbbb644
6
+ metadata.gz: fb2f307a7bca8658ce4514d841455358775f8c05105662a4f28ed767faf56b7221b2b7e9a19c116857cdd3e8edb4a998b92895cfc2cdcc0f8465593cc2141cf4
7
+ data.tar.gz: 4dfc8be5eb4e3c05227d27cd08c1ed3d35d25f0506156ae461a660a89db8849a52881a70c5287d43042bd37d01300396f4520960902aefe32af6489bb2f2af9d
@@ -1,16 +1,19 @@
1
1
  module MetaCommit::Contracts
2
2
  # DTO that keeps data of context of change
3
- # @attr [Symbol] type
4
- # @attr [Numeric] line
5
- # @attr [String] commit_id_old
6
- # @attr [String] commit_id_new
7
- # @attr [MetaCommit::Contracts::ContextualAst] old_contextual_ast
8
- # @attr [MetaCommit::Contracts::ContextualAst] new_contextual_ast
9
- # @attr [String] old_file_path
10
- # @attr [String] new_file_path
3
+ # @attr [Symbol] type operation that was performed :addition, :deletion, :replace
4
+ # @attr [String] old_lineno line number in the old file
5
+ # @attr [String] new_lineno line number in the new file
6
+ # @attr [Numeric, Nil] column position of the first character in the new line that is different from character at the same position in the old line (it has meaning only when type == :replace)
7
+ # @attr [Numeric, Nil] column the position (with value >= 1) from which the values differ (it has meaning only when type == :replace)
8
+ # @attr [String] commit_id_old hash of the old commit
9
+ # @attr [String] commit_id_new hash of the new commit
10
+ # @attr [MetaCommit::Contracts::ContextualAst] old_contextual_ast stores ast and context from the old file
11
+ # @attr [MetaCommit::Contracts::ContextualAst] new_contextual_ast stores ast and context from the new file
12
+ # @attr [String] old_file_path path to old file
13
+ # @attr [String] new_file_path path to new file
11
14
  class ChangeContext
12
15
  attr_accessor :type,
13
- :old_lineno, :new_lineno,
16
+ :old_lineno, :new_lineno, :column,
14
17
  :commit_id_old, :commit_id_new,
15
18
  :old_contextual_ast, :new_contextual_ast,
16
19
  :old_file_path, :new_file_path
@@ -1,5 +1,5 @@
1
1
  module MetaCommit
2
2
  module Contracts
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meta_commit_contracts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav Dobrovolskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-24 00:00:00.000000000 Z
11
+ date: 2018-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler