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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8971224f3fe87b1cba795193f59550f6dfcb1c6
4
- data.tar.gz: b5e04718421465e5bc3d4a5a098fc7ad2c4e1724
3
+ metadata.gz: 7950c6e383c2f05748365c5a52cc437f08004106
4
+ data.tar.gz: aa01f7748a236f9813b0b25e2de44777ead17a9d
5
5
  SHA512:
6
- metadata.gz: e301a011b8b554410f7089229c5e628aa7759061070f524d1f588e66b40b5f7882a261c5c0bc9ee61c7d7933a236abbd28a947730d8f97b07f1503ad249864ab
7
- data.tar.gz: ae934417dcf74cbf72cb23df96def57041fac5fb3672306ef82c19decf1fb4d3dbdca55180c72408352adbe500c41ab7743d34c3e13c08da2c9b67c811f1c1ef
6
+ metadata.gz: bad5b527bdc66d9f39613b6e93d16b756b1630f388ee90265b1475347c6d43a289e91f9849f0bc6261d5e1f0b080b4cf03b303c57fab4bb1519c0c027e720079
7
+ data.tar.gz: 7161dd3f5a9bf8179e8f2fc2d19c4432391997891faa28ced04fd4d37c773ab90d59683931428924d6adbb86d0e952ed2e82786f42b62d4f98b5526b69d475e1
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to current_gem version 0.1.0
5
+ This documentation refers to current_gem version 0.2.0
6
6
 
7
7
 
8
8
  == DESCRIPTION
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- require File.expand_path(%q{../lib/current_gem/version}, __FILE__)
1
+ require_relative 'lib/current_gem/version'
2
2
 
3
3
  begin
4
4
  require 'hen'
@@ -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(name.to_s, req).reject { |spec|
106
- spec.version.prerelease?
107
- }.last
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? && !spec.version.prerelease?
112
+ return unless can_symlink?
112
113
 
113
114
  FileUtils.mkdir_p(path) unless File.exist?(path)
114
115
 
@@ -3,7 +3,7 @@ module CurrentGem
3
3
  module Version
4
4
 
5
5
  MAJOR = 0
6
- MINOR = 1
6
+ MINOR = 2
7
7
  TINY = 0
8
8
 
9
9
  class << self
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.1.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-09-17 00:00:00.000000000 Z
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: '0'
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: '0'
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.1.0)
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.1
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.