current_gem 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README +1 -1
- data/Rakefile +1 -1
- data/lib/current_gem.rb +5 -4
- data/lib/current_gem/version.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7950c6e383c2f05748365c5a52cc437f08004106
|
4
|
+
data.tar.gz: aa01f7748a236f9813b0b25e2de44777ead17a9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bad5b527bdc66d9f39613b6e93d16b756b1630f388ee90265b1475347c6d43a289e91f9849f0bc6261d5e1f0b080b4cf03b303c57fab4bb1519c0c027e720079
|
7
|
+
data.tar.gz: 7161dd3f5a9bf8179e8f2fc2d19c4432391997891faa28ced04fd4d37c773ab90d59683931428924d6adbb86d0e952ed2e82786f42b62d4f98b5526b69d475e1
|
data/README
CHANGED
data/Rakefile
CHANGED
data/lib/current_gem.rb
CHANGED
@@ -102,13 +102,14 @@ module CurrentGem
|
|
102
102
|
def find_by_name(name, req = nil)
|
103
103
|
req ||= Gem::Requirement.default
|
104
104
|
|
105
|
-
Gem::Specification.find_all_by_name(
|
106
|
-
spec.version.prerelease?
|
107
|
-
|
105
|
+
prereleases, releases = Gem::Specification.find_all_by_name(
|
106
|
+
name.to_s, req).partition { |spec| spec.version.prerelease? }
|
107
|
+
|
108
|
+
releases.last || prereleases.last
|
108
109
|
end
|
109
110
|
|
110
111
|
def symlink(spec, path = base_path_for(spec))
|
111
|
-
return unless can_symlink?
|
112
|
+
return unless can_symlink?
|
112
113
|
|
113
114
|
FileUtils.mkdir_p(path) unless File.exist?(path)
|
114
115
|
|
data/lib/current_gem/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: current_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Wille
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hen
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.8'
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 0.8.0
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.8'
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 0.8.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,7 +70,7 @@ metadata: {}
|
|
64
70
|
post_install_message:
|
65
71
|
rdoc_options:
|
66
72
|
- "--title"
|
67
|
-
- current_gem Application documentation (v0.
|
73
|
+
- current_gem Application documentation (v0.2.0)
|
68
74
|
- "--charset"
|
69
75
|
- UTF-8
|
70
76
|
- "--line-numbers"
|
@@ -85,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
91
|
version: 1.8.0
|
86
92
|
requirements: []
|
87
93
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.4.
|
94
|
+
rubygems_version: 2.4.2
|
89
95
|
signing_key:
|
90
96
|
specification_version: 4
|
91
97
|
summary: Maintain symlinks to the most recent versions of installed Ruby Gems.
|