rim 2.6.3 → 2.7.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: a64e3070f71b7855c5bd63eb175895c207eea0c2
4
- data.tar.gz: 755273c4e3cfbb0eeb069272bb3dedefb23564e9
3
+ metadata.gz: d981ada26e193d1e32642c87b67d44111eb7a8a5
4
+ data.tar.gz: 7335584ff994c9579f661cf7e71662e31296375c
5
5
  SHA512:
6
- metadata.gz: 8f66ec9a4cd2e4defbf96019e016e23d862407649dfecf0d566ab2db2918c3df6b437858b1d5eb90c02f0cf2b44584301fd1ad166b4ea94548c2ee12f89c1139
7
- data.tar.gz: 11d3af2995b32d2cc244ac3563b1adddf2fbf557db52df17b0ee6133cb194316bb72127b33927a85d061350748acbddcb5cb5edf16fca0518c9852a7fc1e7498
6
+ metadata.gz: 933d9459b17dd224bd8e25d946c062320490e2959b10ce904063aa4d422655e4931ce1c77c1c700ff9178d0c704050d0cb1d3a7a9f82974415f8081bafb49801
7
+ data.tar.gz: fb4681aa17e7bc6b0bf6ca09ac0523062f88b2556a22d091eefa989c7c777d18980c273b48981a7e009c85fc1eb915b63471cb98923764139d6fd89934236331
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 2.7.0
2
+ Check version in gemspec file in version:check task if gem is used and improve error messages.
3
+ Fix disclaimer for gemspec.
4
+
1
5
  2.6.3
2
6
  Execute interactive aspell only for files with errors.
3
7
 
data/lib/rim/gem.rb CHANGED
@@ -33,6 +33,8 @@ class Rim
33
33
  # Requirements (external to rubygems)
34
34
  attr_accessor :requirements
35
35
 
36
+ protected
37
+
36
38
  def gem_spec
37
39
  spec = Gem::Specification.new do |s|
38
40
  s.authors = authors
@@ -58,7 +60,7 @@ class Rim
58
60
  end
59
61
  disclaimer = <<-END
60
62
  #
61
- # This file is automatic generated by rim.
63
+ # This file is automatically generated by rim.
62
64
  # PLEASE DO NOT EDIT IT DIRECTLY!
63
65
  # Change instead the values in Rim.setup in Rakefile.
64
66
 
@@ -66,6 +68,11 @@ class Rim
66
68
  disclaimer.gsub!(/^\s+/, '')
67
69
  spec.to_ruby.sub(/^$/, disclaimer)
68
70
  end
71
+
72
+ def gemspec_file
73
+ "#{name}.gemspec"
74
+ end
75
+
69
76
  end
70
77
 
71
78
  Rim.defaults do
@@ -79,7 +86,6 @@ Rim.after_setup do
79
86
  require 'rubygems/package'
80
87
 
81
88
  gem_file = "pkg/#{name}-#{version}.gem"
82
- gemspec_file = "#{name}.gemspec"
83
89
 
84
90
  directory 'pkg'
85
91
 
data/lib/rim/version.rb CHANGED
@@ -2,8 +2,14 @@
2
2
  Rim.after_setup do
3
3
  namespace :version do
4
4
  changelog = filelist(/^Changelog/i).first
5
- desc "Check if version in #{changelog} is equal to Rim#version."
5
+ fail 'No Changelog file found' unless changelog
6
+ if feature_loaded? 'rim/gem'
7
+ desc "Check if Rim#version is equal to version in #{changelog} and #{gemspec_file}."
8
+ else
9
+ desc "Check if Rim#version is equal to version in #{changelog}."
10
+ end
6
11
  task :check do
12
+ # changelog
7
13
  line = File.open(changelog) do |f|
8
14
  f.readline
9
15
  end
@@ -14,6 +20,21 @@ Rim.after_setup do
14
20
  else
15
21
  fail "No version information in #{changelog}"
16
22
  end
23
+ # gemspec
24
+ fail 'No gemspec file found' unless File.exist? gemspec_file
25
+ re = /s\.version ?= ['"](\d+\.\d+\.\d+.*)['"]/o
26
+ match = File.readlines(gemspec_file).grep(re)
27
+ case match.size
28
+ when 1
29
+ match[0] =~ re
30
+ if $1 != version
31
+ fail "Version error (#{gemspec_file}: #$1, Rim#version: #{version})\nTry rake gem:spec"
32
+ end
33
+ when 0
34
+ fail "No version information in #{gemspec_file}"
35
+ else
36
+ fail "More than one version information in #{gemspec_file}"
37
+ end
17
38
  end
18
39
  end
19
40
  if feature_loaded? 'rim/gem'
data/lib/rim.rb CHANGED
@@ -9,7 +9,7 @@ require 'singleton'
9
9
  # versions as possible and is easy to extend. Feel free to dislike it. ;)
10
10
  class Rim
11
11
 
12
- VERSION = '2.6.3'
12
+ VERSION = '2.7.0'
13
13
 
14
14
  begin
15
15
  require 'rake/dsl_definition'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rim
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Friedrich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-16 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rim
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.6'
19
+ version: '2.7'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.6'
26
+ version: '2.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: regtest
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -96,8 +96,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.5.2
99
+ rubygems_version: 2.6.4
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: A simple project / gem manager
103
103
  test_files: []
104
+ has_rdoc: