aws_sam_yarn_builder 0.1.4 → 0.1.5

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
- SHA256:
3
- metadata.gz: 62f3211679b815c84f3515e43184280e7b3d10306b8723f6e39251a59722efbb
4
- data.tar.gz: 97e66bea8513d34358edcf99ca89e6b688be4508b3d727072c4da592a5927ff3
2
+ SHA1:
3
+ metadata.gz: 2540ed6bbdd9bfff7222124da1b6feaecbe13e69
4
+ data.tar.gz: d88b69ef4644e2fd65cc671b08854dc5015f8504
5
5
  SHA512:
6
- metadata.gz: abc5a330057f7792794ff1deabcdd253fa78dc99eed79909ee6b8326c32c3b5f62ebe84597b5376e94065db032f2c022856a3d944c66d916245e5570b41ae736
7
- data.tar.gz: d987f78e00b06a5bed5bd5134ac396be0082013b15dd1661341109d5a68ec841912b53e6917bfa69a3840114583ebe41835c99ae9775dd6a8b66209e15113d48
6
+ metadata.gz: 593fd08c6c34ec550bf0c1899664eead38b61a20114ed2bb903a5ce580c32690fcb67a2a3f6be5f6f6b89b3928939d547b575a751534bdc30c8c585b7aa8745b
7
+ data.tar.gz: a6d0b424e36881e7a22a89342b87d2f4961ad2c178dccde5dee84d04f721be5b01a35c9bc3ab06d51e14a3fc6783738df58934f1166b417b3281085014a463bc
@@ -54,6 +54,10 @@ module AwsSamYarnBuilder
54
54
  contents[:version]
55
55
  end
56
56
 
57
+ def org?
58
+ name.include?("/")
59
+ end
60
+
57
61
  def dependencies
58
62
  @dependencies ||= contents[:dependencies].map { |name, version| Dependency.new(self, name, version) }
59
63
  end
@@ -121,11 +125,11 @@ module AwsSamYarnBuilder
121
125
  def overrite_local_dependencies
122
126
  result = Marshal.load(Marshal.dump(contents))
123
127
 
124
- result[:dependencies] = contents[:dependencies].inject({}) do |deps, (name, version)|
128
+ result[:dependencies] = contents[:dependencies].inject({}) do |deps, (depName, version)|
125
129
  if version.start_with?("file:")
126
- deps[name] = "file:../#{name}"
130
+ deps[depName] = "file:#{org? ? "../" : ""}../#{depName}"
127
131
  else
128
- deps[name] = version
132
+ deps[depName] = version
129
133
  end
130
134
 
131
135
  deps
@@ -1,3 +1,3 @@
1
1
  module AwsSamYarnBuilder
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_sam_yarn_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Allam
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-02 00:00:00.000000000 Z
11
+ date: 2019-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.7.6
111
+ rubygems_version: 2.6.11
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: A command line program to produce builds for aws-sam-cli for nodejs/yarn