cts-mpx-aci 2.0.0 → 2.0.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
  SHA1:
3
- metadata.gz: c2330410fedd76354fa2ce4c6504378a2c1deca8
4
- data.tar.gz: 9cb1400c476e01bfce0434adb8a07544ef53516d
3
+ metadata.gz: e101e098b237a72d3f6417e16fdfe00faa3de9b8
4
+ data.tar.gz: 365b58d1d6a163e6fbc88cdf995d6efc7e18e3d5
5
5
  SHA512:
6
- metadata.gz: ec5e3c1cb3a8a9bcadf981f8d4911e3685568f3753553e74d0ab5170fb62c4f41f3c6161349360ba5858b5b02a4bc913ce0149b3887efb00f5fad618e1beaba1
7
- data.tar.gz: 897c486b9d9e063c251458dfc6a926b3a27ed05229b25a6f1bbd152184384ef18bf9b709f8844b483c5f9ba76221aee88c4e4f0e26fe20f75f7da901dbf7c8c0
6
+ metadata.gz: 5e19f4f730bec955a9226130bb714013347c813e84426270dd7fd8cbdf5cfc629126ff6d3c0398c37f1af30ca8ce1bc73be1de49bb7f26173ccf3d2fe6776ec7
7
+ data.tar.gz: bad84623e4f029958e3ea29ab8ab7b13834c189ca2f2c76fc09261571d972ea3917e2f669762bf04ce6a1d2d82c9b83dea706e3c50121202126d56b4e29632b0
@@ -0,0 +1,96 @@
1
+ require: rubocop-rspec
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.4.0
5
+ Exclude:
6
+ - 'vendor/**/*'
7
+ - 'tmp/**/*'
8
+ - 'spec/spec_helper.rb'
9
+
10
+ # The defaults for these seem to be based on a rails env, this is not rails.
11
+ Metrics/ModuleLength:
12
+ CountComments: false
13
+ Max: 250
14
+
15
+ Metrics/ClassLength:
16
+ Max: 250
17
+
18
+ Metrics/MethodLength:
19
+ Max: 20
20
+
21
+ Metrics/AbcSize:
22
+ Max: 25
23
+
24
+ Metrics/CyclomaticComplexity:
25
+ Max: 8
26
+
27
+ Metrics/PerceivedComplexity:
28
+ Max: 10
29
+
30
+ # it's 2016, people have wide monitors.
31
+ Metrics/LineLength:
32
+ Enabled: false
33
+
34
+ Metrics/BlockLength:
35
+ Exclude:
36
+ - 'spec/**/*'
37
+ - '*.gemspec'
38
+ - 'Rakefile'
39
+ - 'Guardfile'
40
+
41
+ Metrics/ParameterLists:
42
+ Exclude:
43
+ - 'lib/cts/mpx/services/data.rb'
44
+ - 'lib/cts/mpx/driver/assemblers.rb'
45
+ - 'lib/cts/mpx/services/ingest.rb'
46
+ - 'lib/cts/mpx/services/web.rb'
47
+
48
+ # we exclude these two files since they are generated, the rest of our projects
49
+ # should use // style regexps.
50
+ Style/RegexpLiteral:
51
+ EnforcedStyle: slashes
52
+ AllowInnerSlashes: true
53
+ Exclude:
54
+ - 'Guardfile'
55
+ - '*.gemspec'
56
+
57
+ # Prefer single-quoted strings when you don't need string interpolation or special symbols
58
+ Style/StringLiterals:
59
+ Enabled: false
60
+
61
+ Style/WordArray:
62
+ EnforcedStyle: brackets
63
+
64
+ Style/FrozenStringLiteralComment:
65
+ Enabled: false
66
+
67
+ Style/MixinUsage:
68
+ Exclude:
69
+ - 'bin/*'
70
+
71
+ # Specs don't need inline documentation.
72
+ Style/Documentation:
73
+ Enabled: true
74
+ Exclude:
75
+ - 'spec/**/*'
76
+
77
+ RSpec/NamedSubject:
78
+ Enabled: false
79
+
80
+ RSpec/DescribeSymbol:
81
+ Enabled: false
82
+
83
+ Lint/Debugger:
84
+ Enabled: false
85
+
86
+ # Purty hashes.
87
+ Layout/AlignHash:
88
+ EnforcedHashRocketStyle: table
89
+ EnforcedColonStyle: table
90
+
91
+ Style/ClassAndModuleChildren:
92
+ Enabled: false
93
+
94
+ Style/MixinUsage:
95
+ Exclude:
96
+ - "spec/*"
@@ -3,7 +3,7 @@ PATH
3
3
  specs:
4
4
  cts-mpx-aci (2.0.0)
5
5
  creatable
6
- cts-mpx
6
+ cts-mpx (~> 1.1.2)
7
7
  diffy
8
8
  logging
9
9
  oj
@@ -19,11 +19,11 @@ GEM
19
19
  coderay (1.1.2)
20
20
  colored (1.2)
21
21
  concurrent-ruby (1.1.2)
22
- creatable (2.1.1)
22
+ creatable (2.3.1)
23
23
  cri (2.15.2)
24
24
  colored (~> 1.2)
25
- cts-mpx (1.0.3)
26
- creatable
25
+ cts-mpx (1.1.2)
26
+ creatable (~> 2.3.1)
27
27
  excon
28
28
  oj (= 3.5.0)
29
29
  ddmemoize (1.0.0)
@@ -32,7 +32,7 @@ GEM
32
32
  ddmetrics (1.0.1)
33
33
  ddplugin (1.0.2)
34
34
  diff-lcs (1.3)
35
- diffy (3.2.1)
35
+ diffy (3.3.0)
36
36
  docile (1.3.1)
37
37
  excon (0.62.0)
38
38
  ffi (1.9.25)
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.required_ruby_version = '>= 2.4.0'
17
17
 
18
18
  spec.add_runtime_dependency "creatable"
19
- spec.add_runtime_dependency "cts-mpx"
19
+ spec.add_runtime_dependency "cts-mpx", "~> 1.1.2"
20
20
  spec.add_runtime_dependency "diffy"
21
21
  spec.add_runtime_dependency 'logging'
22
22
  spec.add_runtime_dependency "oj"
@@ -11,6 +11,7 @@ module Theplatform
11
11
  Cts::Mpx::Aci::Transformations.traverse_for(to_hash['entry'], :transform) do |_k, v|
12
12
  next if v.start_with? "http://access.auth.theplatform.com/data/Account"
13
13
  next if v == "urn:cts:aci:target-account"
14
+
14
15
  dependencies.push v
15
16
  v
16
17
  end
@@ -46,6 +47,7 @@ module Theplatform
46
47
  # @return [String] computed filename of the entry.
47
48
  def filename
48
49
  raise 'Entry must include an guid field' unless fields.include? 'guid'
50
+
49
51
  "#{entry['guid']}.json"
50
52
  end
51
53
 
@@ -69,6 +71,7 @@ module Theplatform
69
71
  raise ArgumentError, 'an entry must be supplied' unless other_entry.class == self.class
70
72
  raise ArgumentError, 'both entries must have the same service' unless service == other_entry.service
71
73
  raise ArgumentError, 'both entries must have the same endpoint' unless endpoint == other_entry.endpoint
74
+
72
75
  Diffy::Diff.new(to_s, other_entry.to_s).to_s
73
76
  end
74
77
 
@@ -1,7 +1,7 @@
1
1
  module Cts
2
2
  module Mpx
3
3
  module Aci
4
- VERSION = "2.0.0".freeze # Current version of Cts::Mpx::ACI
4
+ VERSION = "2.0.1".freeze # Current version of Cts::Mpx::ACI
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cts-mpx-aci
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernie Brodeur
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-21 00:00:00.000000000 Z
11
+ date: 2019-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: creatable
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: cts-mpx
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 1.1.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 1.1.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: diffy
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -87,6 +87,7 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
+ - ".rubocop.yml"
90
91
  - CHANGELOG.md
91
92
  - Gemfile
92
93
  - Gemfile.lock