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 +5 -5
- data/lib/aws_sam_yarn_builder/package.rb +7 -3
- data/lib/aws_sam_yarn_builder/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2540ed6bbdd9bfff7222124da1b6feaecbe13e69
|
4
|
+
data.tar.gz: d88b69ef4644e2fd65cc671b08854dc5015f8504
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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, (
|
128
|
+
result[:dependencies] = contents[:dependencies].inject({}) do |deps, (depName, version)|
|
125
129
|
if version.start_with?("file:")
|
126
|
-
deps[
|
130
|
+
deps[depName] = "file:#{org? ? "../" : ""}../#{depName}"
|
127
131
|
else
|
128
|
-
deps[
|
132
|
+
deps[depName] = version
|
129
133
|
end
|
130
134
|
|
131
135
|
deps
|
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
|
+
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-
|
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.
|
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
|