latest_ruby 0.0.7 → 1.0.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: a2a69497947599ba38fc887211166e1d852ad9cd
4
- data.tar.gz: '090785b95126fbbe38d4c9a5b74333124c25a900'
3
+ metadata.gz: cc46c14e32169e09a87f3e22d2d1b4ff8bab6e1d
4
+ data.tar.gz: 0cdd3c83c7ea42bd892b384e91990aafde6ccad6
5
5
  SHA512:
6
- metadata.gz: d8c7000d56d9469ceb9b30ba200bfcb04ea9569e9cb8c7a5ce2dc6bac0fddb2f1e5a87a714279de9224e632b42271bc44360119cf365192c3aa13fe77eecd4eb
7
- data.tar.gz: 2307087ea2a51b90bb871b70e05dd03fc00bad7f8ad3093e42944447b047ce767a213e5dd10b91994688a02acb2ed2c562268c812a52174dbaeb457502729222
6
+ metadata.gz: 821a689257fcc60d4084b0aabd3f9c74e9f04f9b469bea699fae5c152e3a350edfd8053fae0288e461bc4ee6d9ccad69355c397c4e6d44bcb93883d49837ec67
7
+ data.tar.gz: ce0d2ae848215bfd1aeba97f7792bcbb22372e67bea235b800a11356172913666e5e5709f9c08b08b0c4c0c240f9fd4652b39861e6aa52d7121ca16195dfd8b9
@@ -1,6 +1,13 @@
1
1
  Latest Ruby changelog
2
2
  =====================
3
3
 
4
+ ### v1.0.0 (December 24, 2018)
5
+
6
+ * Added support for Ruby 2.6
7
+ ([#9](https://github.com/kyrylo/latest_ruby/pull/9))
8
+ * Dropped Versionomy dependency
9
+ ([#11](https://github.com/kyrylo/latest_ruby/pull/11))
10
+
4
11
  ### v0.0.7 (January 1, 2018)
5
12
 
6
13
  * Added support for Ruby 2.5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 1.0.0
@@ -12,9 +12,6 @@ Gem::Specification.new do |s|
12
12
  s.require_path = 'lib'
13
13
  s.files = `git ls-files`.split("\n")
14
14
 
15
- s.add_runtime_dependency 'versionomy'
16
-
17
- s.add_development_dependency 'bacon'
18
15
  s.add_development_dependency 'rake'
19
16
  s.add_development_dependency 'pry'
20
17
  end
@@ -21,12 +21,16 @@ module Latest
21
21
  File.read(VERSION_FILE).chomp : '(could not find VERSION file)'
22
22
 
23
23
  class << self
24
+ def ruby26
25
+ Ruby.new(MRI.new('2.6', MRIRetriever.new))
26
+ end
27
+
24
28
  def ruby25
25
29
  Ruby.new(MRI.new('2.5', MRIRetriever.new))
26
30
  end
27
31
 
28
32
  # The latest Ruby version by default.
29
- alias_method :ruby, :ruby25
33
+ alias_method :ruby, :ruby26
30
34
 
31
35
  def ruby24
32
36
  Ruby.new(MRI.new('2.4', MRIRetriever.new))
@@ -1,5 +1,4 @@
1
1
  require 'forwardable'
2
- require 'versionomy'
3
2
 
4
3
  module Latest
5
4
  class RubyVersion
@@ -19,7 +18,7 @@ module Latest
19
18
  private
20
19
 
21
20
  def get_version(ver)
22
- Versionomy.parse(ver)
21
+ Gem::Version.new(ver)
23
22
  end
24
23
 
25
24
  end
metadata CHANGED
@@ -1,43 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: latest_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyrylo Silin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-01 00:00:00.000000000 Z
11
+ date: 2018-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: versionomy
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bacon
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: rake
43
15
  requirement: !ruby/object:Gem::Requirement
@@ -77,7 +49,6 @@ files:
77
49
  - Gemfile
78
50
  - LICENCE
79
51
  - README.md
80
- - Rakefile
81
52
  - VERSION
82
53
  - latest_ruby.gemspec
83
54
  - lib/latest_ruby.rb
@@ -93,8 +64,6 @@ files:
93
64
  - lib/latest_ruby/rubies/rubinius.rb
94
65
  - lib/latest_ruby/ruby.rb
95
66
  - lib/latest_ruby/ruby_version.rb
96
- - spec/helper.rb
97
- - spec/latest_ruby_spec.rb
98
67
  homepage: https://github.com/kyrylo/latest_ruby
99
68
  licenses:
100
69
  - zlib
data/Rakefile DELETED
@@ -1,15 +0,0 @@
1
- def quiet
2
- ENV['VERBOSE'] ? '' : '-q'
3
- end
4
-
5
- def test_files
6
- paths = FileList['spec/**/*_spec.rb']
7
- paths.shuffle!.join(' ')
8
- end
9
-
10
- desc "Run tests"
11
- task :test do
12
- exec "bacon -Ispec #{ quiet } #{ test_files }"
13
- end
14
-
15
- task :default => :test
@@ -1,6 +0,0 @@
1
- require 'bacon'
2
- require 'pry'
3
-
4
- require_relative '../lib/latest_ruby'
5
-
6
- puts "Ruby: #{ RUBY_VERSION }; Latest Ruby version: #{ Latest::VERSION }"
@@ -1,7 +0,0 @@
1
- require_relative 'helper'
2
-
3
- describe Latest do
4
- it "works" do
5
- true.should == true
6
- end
7
- end