elm_install 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/elm_install/git_source.rb +13 -1
- data/lib/elm_install/version.rb +1 -1
- data/package.json +1 -1
- data/packaging/Gemfile.lock +2 -2
- 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: 2eef6ee3e76e1ac9e302cc1a1a2776925f3bd553
|
4
|
+
data.tar.gz: 3e139982a61ea46d381a7dcc3183ff14fd207062
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad1ad2907b5d3d41e8d09466460cdd2d808664ded82bfffde02f9e477afc21e4432ac6e2af7ea59c71b3ce4eb78a5a909cd185c08bb3f62b89f886e35244ec03
|
7
|
+
data.tar.gz: 821de6566529eb7223913d51c88609b26dfece98a0bdceccbdebc60b3624afe8aaaf34033f48a5c7be38740da4b0e6549dee3658ba60964c6f20d97246d0efe1
|
data/Gemfile.lock
CHANGED
@@ -68,6 +68,18 @@ module ElmInstall
|
|
68
68
|
nil
|
69
69
|
end
|
70
70
|
|
71
|
+
Contract String => String
|
72
|
+
# Returns the supported Elm version the given ref.
|
73
|
+
#
|
74
|
+
# @param ref [String] The ref
|
75
|
+
#
|
76
|
+
# @return [Array] The version
|
77
|
+
def elm_version_of(ref)
|
78
|
+
@@elm_versions ||= {}
|
79
|
+
@@elm_versions[url] ||= {}
|
80
|
+
@@elm_versions[url][ref] ||= identifier.elm_version(fetch(ref))
|
81
|
+
end
|
82
|
+
|
71
83
|
Contract ArrayOf[Solve::Constraint], String => ArrayOf[Semverse::Version]
|
72
84
|
# Returns the available versions for a repository
|
73
85
|
#
|
@@ -101,7 +113,7 @@ module ElmInstall
|
|
101
113
|
repository
|
102
114
|
.versions
|
103
115
|
.select do |version|
|
104
|
-
|
116
|
+
elm_version_of(version.to_s) == elm_version &&
|
105
117
|
constraints.all? { |constraint| constraint.satisfies?(version) }
|
106
118
|
end
|
107
119
|
.sort
|
data/lib/elm_install/version.rb
CHANGED
data/package.json
CHANGED
data/packaging/Gemfile.lock
CHANGED
@@ -5,7 +5,7 @@ GEM
|
|
5
5
|
commander (4.4.3)
|
6
6
|
highline (~> 1.7.2)
|
7
7
|
contracts (0.16.0)
|
8
|
-
elm_install (1.
|
8
|
+
elm_install (1.4.0)
|
9
9
|
adts (~> 0.1.2)
|
10
10
|
commander (~> 4.4, >= 4.4.2)
|
11
11
|
contracts (~> 0.16.0)
|
@@ -32,7 +32,7 @@ PLATFORMS
|
|
32
32
|
ruby
|
33
33
|
|
34
34
|
DEPENDENCIES
|
35
|
-
elm_install (= 1.
|
35
|
+
elm_install (= 1.4.0)
|
36
36
|
|
37
37
|
RUBY VERSION
|
38
38
|
ruby 2.2.2p95
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elm_install
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gusztáv Szikszai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|