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 +4 -4
- data/lib/meta_commit_contracts/change_context.rb +12 -9
- data/lib/meta_commit_contracts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dad1875a349b9d96003a05034c8dd801193c185a
|
4
|
+
data.tar.gz: fc71d8741c28bef6606723b1e794730ef5707d23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 [
|
5
|
-
# @attr [String]
|
6
|
-
# @attr [
|
7
|
-
# @attr [
|
8
|
-
# @attr [
|
9
|
-
# @attr [String]
|
10
|
-
# @attr [
|
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
|
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.
|
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-
|
11
|
+
date: 2018-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|