libyear-bundler 0.5.2 → 0.5.3

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
- SHA256:
3
- metadata.gz: b928c7b46ecc15833f753d4b5400becf3159bb01f89ce4dfca13f134e85dc214
4
- data.tar.gz: 84675a2d07aa5f953a0bb9521390ebf383005bcbf255ddfdac574e5b0a2b6de7
2
+ SHA1:
3
+ metadata.gz: 19cf55f9516aaf1b3ea4e870df4786d871844aec
4
+ data.tar.gz: 1f9ed94b7ce2d79bdebbb07fa8d59e2d7bfc6d5c
5
5
  SHA512:
6
- metadata.gz: d20b10024dcd680f6a598d889a17a0cf42fd7bd9e531de0badaaab74dd60728b76baa4091e9737cbd7452125f2b9f153349b8381ff6087a860fb52838e2072bb
7
- data.tar.gz: 51f690808ed6af0e8f36f84b54b13197873ecd4638948045f496fc1b555e54c4e02942a59279a0b1de1aaf9c332d70a637d50eb5df5cf2ebf29b0c1ba222043e
6
+ metadata.gz: '09111fa6dbb524adb6f3a6af71f2fcd4803451f22e3d6d289cb61d8ef926553c781ddd3b801f33d7bbb7d957ea8fac52388982d752bb96625feedb3fd304aca2'
7
+ data.tar.gz: 7c9f3884523e18478563d45d5f35ef4f34f8b5d60d5fca78c369420a32dd3de6d3070e298347cc15d486c80405e357e0926b140abaf07e3d8d7a515dd664a91e
@@ -43,7 +43,7 @@ module LibyearBundler
43
43
  end
44
44
 
45
45
  def newest_version
46
- ::Gem::Version.new(all_stable_versions.first['version'])
46
+ ::Gem::Version.new(all_stable_versions.first)
47
47
  end
48
48
 
49
49
  def newest_version_release_date
@@ -85,6 +85,7 @@ module LibyearBundler
85
85
  # YAML#safe_load
86
86
  # https://github.com/ruby/psych/issues/262
87
87
  ::YAML.safe_load(response.body, [Date])
88
+ .map { |release| release['version'] }
88
89
  end
89
90
  end
90
91
 
@@ -93,7 +94,7 @@ module LibyearBundler
93
94
  # default behavior
94
95
  def all_stable_versions
95
96
  all_versions.reject do |version|
96
- ::Gem::Version.new(version['version']).prerelease?
97
+ ::Gem::Version.new(version).prerelease?
97
98
  end
98
99
  end
99
100
 
@@ -102,11 +103,11 @@ module LibyearBundler
102
103
  end
103
104
 
104
105
  def newest_version_sequence_index
105
- all_stable_versions.index(newest_version.to_s)
106
+ all_stable_versions.find_index(newest_version.to_s)
106
107
  end
107
108
 
108
109
  def release_date(version)
109
- v = all_stable_versions.detect { |ver| ver['version'] == version }
110
+ v = all_stable_versions.detect { |ver| ver == version }
110
111
 
111
112
  if v.nil?
112
113
  raise format('Cannot determine release date for ruby %s', version)
@@ -93,16 +93,16 @@ module LibyearBundler
93
93
  def put_version_delta_summary(sum_major_version, sum_minor_version, sum_patch_version)
94
94
  puts format(
95
95
  "Major, minor, patch versions behind: %<major>d, %<minor>d, %<patch>d",
96
- major: sum_major_version,
97
- minor: sum_minor_version,
98
- patch: sum_patch_version
96
+ major: sum_major_version || 0,
97
+ minor: sum_minor_version || 0,
98
+ patch: sum_patch_version || 0
99
99
  )
100
100
  end
101
101
 
102
102
  def put_sum_seq_delta_summary(sum_seq_delta)
103
103
  puts format(
104
104
  "Total releases behind: %<seq_delta>d",
105
- seq_delta: sum_seq_delta
105
+ seq_delta: sum_seq_delta || 0
106
106
  )
107
107
  end
108
108
 
@@ -1,3 +1,3 @@
1
1
  module LibyearBundler
2
- VERSION = "0.5.2".freeze
2
+ VERSION = "0.5.3".freeze
3
3
  end
@@ -24,7 +24,14 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = ["libyear-bundler"]
25
25
  spec.require_paths = ["lib"]
26
26
  spec.required_ruby_version = ">= 2.1"
27
+
28
+ # We will support bundler 1 as long as we can. It's important that people
29
+ # with badly out-of-date systems can still measure how bad they are.
27
30
  spec.add_dependency "bundler", ">= 1.14", "< 3"
28
- spec.add_development_dependency "rspec", "~> 3.7"
29
- spec.add_development_dependency "rubocop", "~> 0.52.1"
31
+
32
+ spec.add_development_dependency "rspec", "~> 3.9"
33
+
34
+ # rubocop 0.57 drops support for ruby 2.1, so 0.56 is the highest we can
35
+ # use. We're going to support ruby 2.1 as long as possible. See above.
36
+ spec.add_development_dependency "rubocop", "~> 0.56.0"
30
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libyear-bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Beck
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-09 00:00:00.000000000 Z
11
+ date: 2020-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -36,28 +36,28 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '3.7'
39
+ version: '3.9'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '3.7'
46
+ version: '3.9'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rubocop
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 0.52.1
53
+ version: 0.56.0
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 0.52.1
60
+ version: 0.56.0
61
61
  description:
62
62
  email:
63
63
  - jared@jaredbeck.com
@@ -99,7 +99,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.0.3
102
+ rubyforge_project:
103
+ rubygems_version: 2.5.2.3
103
104
  signing_key:
104
105
  specification_version: 4
105
106
  summary: A simple measure of dependency freshness