rim 2.18.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +10 -0
- data/README.md +111 -0
- data/lib/rim/aspell.rb +2 -3
- data/lib/rim/check_version.rb +2 -0
- data/lib/rim/gem.rb +24 -117
- data/lib/rim/gemspec.rb +22 -0
- data/lib/rim/git.rb +3 -4
- data/lib/rim/info.rb +2 -0
- data/lib/rim/irb.rb +5 -4
- data/lib/rim/pry.rb +4 -2
- data/lib/rim/rdoc.rb +2 -0
- data/lib/rim/regtest.rb +2 -12
- data/lib/rim/release.rb +3 -0
- data/lib/rim/ripl.rb +4 -2
- data/lib/rim/rspec.rb +2 -0
- data/lib/rim/test.rb +2 -0
- data/lib/rim/tire.rb +5 -5
- data/lib/rim/version.rb +5 -20
- data/lib/rim/yard.rb +1 -0
- data/lib/rim.rb +2 -2
- metadata +6 -31
- data/.aspell.pws +0 -29
- data/Gemfile +0 -3
- data/README.rdoc +0 -70
- data/Rakefile +0 -27
- data/lib/rim/core.rb +0 -21
- data/regtest/execution.rb +0 -15
- data/regtest/execution.yml +0 -135
- data/regtest/global_deps.rb +0 -6
- data/regtest/global_deps.yml +0 -112
- data/regtest/mod_deps.rb +0 -41
- data/regtest/mod_deps.yml +0 -179
- data/rim.gemspec +0 -31
- data/test/test_helper_methods.rb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d6a9301cf2bd657059f0a2d0f52b1f68493e3c331e4dcd4adbcd3bfad6e6763
|
4
|
+
data.tar.gz: 980272cd29d0b3d336ebfbbad3dbf584d01c24f2afc88723f58ac14199b3b9a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86195c13a7382bcf6db85f64feb0d7e16843c847d44e4e9662bc5f6cc5b4f5b5e66bee0c963b4fdc2d3314c386ce0c6329a380d4a947ec9bfbb7febac8cf65be
|
7
|
+
data.tar.gz: 79af1f0eab514667c317eec3d86d6a7d916dbf15e6d3972d1d1ad193f375b3c85a3a387499246f7c54f78572b333b056b661eeecc5d09a41524f0a9fe9ae3ed8
|
data/Changelog
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
3.0.0
|
2
|
+
In older versions of rim the gemspec file was generated by rim from values
|
3
|
+
defined in Rim.setup in Rakefile. Now it is the other way around: all values
|
4
|
+
which could be defined in the gemspec file must be defined there. Therefore
|
5
|
+
all according accessor methods are no longer relevant. Rim emits a warning
|
6
|
+
when such a method is called and does not use these values any longer. It is
|
7
|
+
necessary to set those in the gemspec file.
|
8
|
+
|
9
|
+
There is also added a new Rake task gem:files.
|
10
|
+
|
1
11
|
2.18.0
|
2
12
|
Add new accessors Rim#bindir and Rim#executables to gem plugin.
|
3
13
|
|
data/README.md
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
# Rim a super simple ruby project / gem manager
|
2
|
+
|
3
|
+
Goal is to have a project managing that just works on many Ruby
|
4
|
+
versions as possible and is easy to extend. Feel free to dislike it. ;)
|
5
|
+
|
6
|
+
|
7
|
+
## Use for project management
|
8
|
+
|
9
|
+
Since rim version 3.0.0 it is necessary to create a gemspec file with the basic
|
10
|
+
configuration of the project. See [online
|
11
|
+
documentation](https://guides.rubygems.org/specification-reference/) for more
|
12
|
+
information. The rest is done in Rakefile.
|
13
|
+
|
14
|
+
Example of a minimal Rakefile:
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'rim'
|
18
|
+
require 'rim/gem'
|
19
|
+
# require 'rim/...'
|
20
|
+
|
21
|
+
Rim.setup do
|
22
|
+
# set up things of necessary
|
23
|
+
end
|
24
|
+
```
|
25
|
+
|
26
|
+
For advanced usage have a look at the Rakefile of rim.
|
27
|
+
|
28
|
+
|
29
|
+
## Upgrading from Rim before version 3.0.0
|
30
|
+
|
31
|
+
In rim before 3.0.0 the gemspec file was generated by rim from values defined
|
32
|
+
in <code>Rim.setup</code> in Rakefile. Now it is the other way around: all
|
33
|
+
values which could be defined in the gemspec file must be defined there.
|
34
|
+
Therefore all according accessor methods are no longer relevant. Rim emits a
|
35
|
+
warning when such a method is called and <em>does not</em> use these values any
|
36
|
+
longer. It is necessary to set those in the gemspec file.
|
37
|
+
|
38
|
+
|
39
|
+
## Writing an extension
|
40
|
+
|
41
|
+
* Extend the class Rim with <code>attr_accessors</code> for new attributes if needed.
|
42
|
+
* Set default values use <code>Rim.defaults</code>.
|
43
|
+
* Define tasks with <code>Rim.after_setup</code>.
|
44
|
+
|
45
|
+
A very simple example extension:
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
# require other extensions if necessary
|
49
|
+
|
50
|
+
require 'rim/another_extension'
|
51
|
+
|
52
|
+
# Extend the class
|
53
|
+
|
54
|
+
class Rim
|
55
|
+
# Attribute for somewhat (default: 42)
|
56
|
+
attr_accessor :my_attr
|
57
|
+
end
|
58
|
+
|
59
|
+
# Setting default values
|
60
|
+
|
61
|
+
Rim.defaults do
|
62
|
+
my_attr 42
|
63
|
+
end
|
64
|
+
|
65
|
+
# Stuff to execute after setting the defaults and calling Rim.setup in Rakefile.
|
66
|
+
# Usual for defining tasks.
|
67
|
+
|
68
|
+
Rim.after_setup do
|
69
|
+
task :my_task => :another_task do
|
70
|
+
# stuff
|
71
|
+
end
|
72
|
+
end
|
73
|
+
```
|
74
|
+
|
75
|
+
For more examples have a look at the tasks coming with rim in <code>lib/rim/*.rb</code>
|
76
|
+
|
77
|
+
|
78
|
+
## Similar projects
|
79
|
+
|
80
|
+
* https://github.com/seattlerb/hoe
|
81
|
+
* https://github.com/evan/echoe
|
82
|
+
|
83
|
+
|
84
|
+
## Credits
|
85
|
+
|
86
|
+
<em>Jim Weirich</em> For written the great Rake. (Sad that he is already gone.)
|
87
|
+
|
88
|
+
<em>Ryan Davis</em> and <em>Evan Weaver</em> For their inspirations in Hoe respectively Echoe.
|
89
|
+
|
90
|
+
|
91
|
+
## Contribution
|
92
|
+
|
93
|
+
The code is also hosted in a git repository at [github](http://github.com/janfri/rim) and [bitbucket](https://bitbucket.org/janfri/rim)
|
94
|
+
|
95
|
+
Feel free to contribute!
|
96
|
+
|
97
|
+
|
98
|
+
## Versioning
|
99
|
+
|
100
|
+
Rim follows [Semantic Versioning](https://semver.org/), both SemVer and
|
101
|
+
SemVerTag.
|
102
|
+
|
103
|
+
|
104
|
+
## Author
|
105
|
+
|
106
|
+
Jan Friedrich <janfri26@gmail.com>
|
107
|
+
|
108
|
+
|
109
|
+
## License
|
110
|
+
|
111
|
+
MIT-style license, see file LICENSE.
|
data/lib/rim/aspell.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
require_relative '../rim'
|
3
|
+
|
2
4
|
class Rim
|
3
5
|
# Encoding of spell checked files (default: 'UTF-8')
|
4
6
|
attr_accessor :aspell_encoding
|
@@ -51,7 +53,4 @@ Rim.after_setup do
|
|
51
53
|
task :prepare_release => 'aspell:check'
|
52
54
|
task :release => 'aspell:check'
|
53
55
|
end
|
54
|
-
if feature_loaded? 'rim/gem'
|
55
|
-
gem_files << aspell_word_list
|
56
|
-
end
|
57
56
|
end
|
data/lib/rim/check_version.rb
CHANGED
data/lib/rim/gem.rb
CHANGED
@@ -1,142 +1,49 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
|
3
|
-
# Project / gem description
|
4
|
-
attr_accessor :description
|
5
|
-
|
6
|
-
# Project / gem summary
|
7
|
-
attr_accessor :summary
|
8
|
-
|
9
|
-
# E-Mail address
|
10
|
-
attr_accessor :email
|
11
|
-
|
12
|
-
# License imformation
|
13
|
-
attr_accessor :licenses
|
14
|
-
|
15
|
-
# Project homepage
|
16
|
-
attr_accessor :homepage
|
17
|
-
|
18
|
-
# Files included in the gem (default: <code>/^README/i, /^Changelog/i, /^COPYING/i, /^LICENSE/i, /^Rakefile/i, /^Gemfile$/, '*.gemspec', 'bin/*', 'exe/*', 'lib/**/*', 'test/**/*'</code>)
|
19
|
-
attr_accessor :gem_files
|
20
|
-
|
21
|
-
# The path in the gem for executable scripts (default: <code>exe</code>)
|
22
|
-
attr_accessor :bindir
|
23
|
-
|
24
|
-
# Executables included in the gem (default: all files in <code>bindir</code>)
|
25
|
-
attr_accessor :executables
|
26
|
-
|
27
|
-
# Dependencies of the gem
|
28
|
-
attr_accessor :dependencies
|
29
|
-
|
30
|
-
# Dependencies for development (default: <code>['rake', %W(rim ~>#{Rim::VERSION.scan(/[^.]+\.[^.]+/).first})]</code>)
|
31
|
-
attr_accessor :development_dependencies
|
32
|
-
|
33
|
-
# Required Ruby version
|
34
|
-
attr_accessor :ruby_version
|
35
|
-
|
36
|
-
# Installation message
|
37
|
-
attr_accessor :install_message
|
38
|
-
|
39
|
-
# Requirements (external to rubygems)
|
40
|
-
attr_accessor :requirements
|
41
|
-
|
42
|
-
alias license licenses
|
43
|
-
alias license= licenses=
|
44
|
-
|
45
|
-
protected
|
46
|
-
|
47
|
-
def gem_spec
|
48
|
-
spec = Gem::Specification.new do |s|
|
49
|
-
s.authors = authors
|
50
|
-
s.email = email
|
51
|
-
s.platform = Gem::Platform::RUBY
|
52
|
-
s.description = description
|
53
|
-
s.license = license if license
|
54
|
-
s.homepage = homepage
|
55
|
-
s.name = name
|
56
|
-
s.summary = summary
|
57
|
-
s.version = version
|
58
|
-
s.require_paths = Array(require_paths)
|
59
|
-
s.files = Array(gem_files)
|
60
|
-
s.bindir = bindir if bindir
|
61
|
-
s.executables = Array(executables) if executables
|
62
|
-
s.required_ruby_version = ruby_version if ruby_version
|
63
|
-
s.post_install_message = install_message
|
64
|
-
s.requirements = Array(requirements)
|
65
|
-
Array(dependencies).each do |dep|
|
66
|
-
s.add_dependency *Array(dep)
|
67
|
-
end
|
68
|
-
Array(development_dependencies).each do |dep|
|
69
|
-
s.add_development_dependency *Array(dep)
|
70
|
-
end
|
71
|
-
end
|
72
|
-
disclaimer = <<-END
|
73
|
-
#
|
74
|
-
# This file is automatically generated by rim.
|
75
|
-
# PLEASE DO NOT EDIT IT DIRECTLY!
|
76
|
-
# Change the values in Rim.setup in Rakefile instead.
|
77
|
-
|
78
|
-
END
|
79
|
-
disclaimer.gsub!(/^\s+/, '')
|
80
|
-
spec_string = spec.to_ruby.gsub(/([)>"])\.freeze\b/, '\1')
|
81
|
-
spec_string.sub(/^$/, disclaimer)
|
82
|
-
end
|
83
|
-
|
84
|
-
def gemspec_file
|
85
|
-
"#{name}.gemspec"
|
86
|
-
end
|
87
|
-
|
88
|
-
end
|
89
|
-
|
90
|
-
Rim.defaults do
|
91
|
-
gem_files filelist(/^README/i, /^Changelog/i, /^COPYING/i, /^LICENSE/i, /^Rakefile/i, /^Gemfile$/, '*.gemspec', 'bin/*', 'exe/*', 'lib/**/*', 'test/**/*')
|
92
|
-
bindir 'exe'
|
93
|
-
if File.exist?(bindir)
|
94
|
-
Dir.chdir(bindir) do
|
95
|
-
executables filelist('*')
|
96
|
-
end
|
97
|
-
end
|
98
|
-
dependencies []
|
99
|
-
development_dependencies ['rake',%W(rim ~>#{Rim::VERSION.scan(/[^.]+\.[^.]+/).first})]
|
100
|
-
requirements []
|
101
|
-
end
|
2
|
+
require_relative '../rim'
|
102
3
|
|
103
4
|
Rim.after_setup do
|
104
5
|
|
105
6
|
require 'rubygems/package'
|
106
7
|
|
107
|
-
|
8
|
+
directory PKG_DIR = 'pkg'
|
9
|
+
|
10
|
+
name = gemspec.name
|
11
|
+
version = gemspec.version
|
12
|
+
gem_file = File.join(PKG_DIR, "#{name}-#{version}.gem")
|
108
13
|
|
109
|
-
directory 'pkg'
|
110
14
|
|
111
|
-
CLOBBER.include(FileList[
|
15
|
+
CLOBBER.include(FileList[PKG_DIR].existing)
|
112
16
|
|
113
17
|
desc "Build the gem file #{gem_file}"
|
114
18
|
task :gem => 'gem:build'
|
115
19
|
|
116
20
|
namespace :gem do
|
117
21
|
|
118
|
-
file gem_file => [
|
119
|
-
sh "gem build #{gemspec_file}"
|
120
|
-
|
22
|
+
file gem_file => [PKG_DIR, gemspec_file] + gemspec.files do
|
23
|
+
sh "gem build #{gemspec_file} -o #{gem_file}"
|
24
|
+
end
|
25
|
+
|
26
|
+
if feature_loaded? 'rim/test'
|
27
|
+
task :build => [:test, gem_file]
|
28
|
+
else
|
29
|
+
task :build => [gem_file]
|
121
30
|
end
|
122
31
|
|
123
|
-
|
32
|
+
desc "Show files included and files not included in gem"
|
33
|
+
task :files do
|
34
|
+
gemspec_files = gemspec.files
|
35
|
+
all_files = filelist('**/*') + filelist('**/.*')
|
36
|
+
all_files.select! {|fn| File.file?(fn)}
|
37
|
+
puts '===== Files included in gem =====', gemspec_files.sort.join("\n")
|
38
|
+
puts
|
39
|
+
puts '=== Files NOT included in gem ===', (all_files - gemspec_files).sort.join("\n")
|
40
|
+
end
|
124
41
|
|
125
42
|
desc "Push the gem #{name} version #{version} to rubygems.org"
|
126
43
|
task :push => :gem do
|
127
44
|
sh "gem push #{gem_file}"
|
128
45
|
end
|
129
46
|
|
130
|
-
gem_files_without_gemspec = gem_files.clone
|
131
|
-
gem_files_without_gemspec.exclude('*.gemspec')
|
132
|
-
file gemspec_file => gem_files_without_gemspec do
|
133
|
-
gem_files << gemspec_file
|
134
|
-
File.write(gemspec_file, gem_spec)
|
135
|
-
end
|
136
|
-
|
137
|
-
desc "Generate #{gemspec_file}"
|
138
|
-
task :spec => gemspec_file
|
139
|
-
|
140
47
|
end
|
141
48
|
|
142
49
|
desc "Install version #{version}"
|
data/lib/rim/gemspec.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
class Rim
|
4
|
+
|
5
|
+
# Deprecate accessors of older Rim versions (< 3.0)
|
6
|
+
%w(author authors bindir dependencies description development_dependencies email executables gem_files homepage install_message license name require_paths requirements ruby_version summary version).each do |attr|
|
7
|
+
define_method attr do |*args|
|
8
|
+
warn "WARNING: Rim accessor #{attr} is not longer supported, define the value in #{gemspec_file}"
|
9
|
+
[]
|
10
|
+
end
|
11
|
+
alias_method "#{attr}=", attr
|
12
|
+
end
|
13
|
+
|
14
|
+
def gemspec_file
|
15
|
+
@gemspec_file ||= Dir['*.gemspec'].first or fail 'no gemspec file found'
|
16
|
+
end
|
17
|
+
|
18
|
+
def gemspec
|
19
|
+
@gemspec ||= eval(File.read(gemspec_file), binding, gemspec_file)
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
data/lib/rim/git.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
require_relative '../rim'
|
3
|
+
|
2
4
|
class Rim
|
3
5
|
# Git push commands (default: <tt>['--tags origin master']</tt>)
|
4
6
|
attr_accessor :git_push_commands
|
@@ -10,7 +12,7 @@ end
|
|
10
12
|
|
11
13
|
Rim.after_setup do
|
12
14
|
if File.exist?('.git') && File.directory?('.git')
|
13
|
-
tag_name = "v#{version}"
|
15
|
+
tag_name = "v#{gemspec.version}"
|
14
16
|
namespace :git do
|
15
17
|
desc "Create git tag #{tag_name}"
|
16
18
|
task :tag do
|
@@ -34,9 +36,6 @@ Rim.after_setup do
|
|
34
36
|
if feature_loaded? 'rim/gem'
|
35
37
|
task 'gem:push' => 'git:check'
|
36
38
|
task 'git:tag' => 'gem:push'
|
37
|
-
if feature_loaded? 'rim/release'
|
38
|
-
task :release => 'gem:spec'
|
39
|
-
end
|
40
39
|
end
|
41
40
|
if feature_loaded? 'rim/release'
|
42
41
|
task :release => %w(git:check git:tag)
|
data/lib/rim/info.rb
CHANGED
data/lib/rim/irb.rb
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
require_relative '../rim'
|
3
|
+
|
2
4
|
class Rim
|
3
5
|
# Required files for irb (default: Rim#name)
|
4
6
|
attr_accessor :irb_requires
|
5
7
|
end
|
6
8
|
|
7
|
-
# Use Rim.after_setup because
|
8
|
-
# in Rim.defaults
|
9
|
+
# Use Rim.after_setup because gemspec may not yet be set in Rim.defaults
|
9
10
|
Rim.after_setup do |r|
|
10
|
-
r.irb_requires ||= r.name
|
11
|
+
r.irb_requires ||= r.gemspec.name
|
11
12
|
end
|
12
13
|
|
13
14
|
Rim.after_setup do
|
14
15
|
desc 'Start an irb session and loading lib'
|
15
16
|
task :irb do
|
16
|
-
i_params = Array(require_paths).map {|e| '-I ' << e}.join(' ')
|
17
|
+
i_params = Array(gemspec.require_paths).map {|e| '-I ' << e}.join(' ')
|
17
18
|
r_params = Array(irb_requires).map {|e| '-r ' << e}.join(' ')
|
18
19
|
sh "irb #{i_params} #{r_params}"
|
19
20
|
end
|
data/lib/rim/pry.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
require_relative '../rim'
|
3
|
+
|
2
4
|
Rim.after_setup do
|
3
5
|
desc 'Start a pry session and loading lib'
|
4
6
|
task :pry do
|
5
|
-
i_params = Array(require_paths).map {|e| '-I ' << e}.join(' ')
|
6
|
-
sh "pry #{i_params} -r #{name}"
|
7
|
+
i_params = Array(gemspec.require_paths).map {|e| '-I ' << e}.join(' ')
|
8
|
+
sh "pry #{i_params} -r #{gemspec.name}"
|
7
9
|
end
|
8
10
|
end
|
data/lib/rim/rdoc.rb
CHANGED
data/lib/rim/regtest.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
require_relative '../rim'
|
3
|
+
|
2
4
|
require 'regtest/task'
|
3
5
|
|
4
6
|
class Rim
|
@@ -21,18 +23,6 @@ Rim.defaults do
|
|
21
23
|
end
|
22
24
|
|
23
25
|
Rim.after_setup do
|
24
|
-
if feature_loaded? 'rim/gem'
|
25
|
-
self.gem_files += regtest_files
|
26
|
-
unless development_dependencies.flatten.include? 'regtest'
|
27
|
-
begin
|
28
|
-
require 'regtest/version'
|
29
|
-
v = Regtest::VERSION.sub(/\.\d+(?:\.?\w+)?$/, '')
|
30
|
-
development_dependencies << %W(regtest ~>#{v})
|
31
|
-
rescue LoadError
|
32
|
-
development_dependencies << %w(regtest ~>1.0)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
26
|
if regtest_files_rb != REGTEST_FILES_RB
|
37
27
|
(::REGTEST_FILES_RB.clear << regtest_files_rb).flatten!
|
38
28
|
end
|
data/lib/rim/release.rb
CHANGED
data/lib/rim/ripl.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
require_relative '../rim'
|
3
|
+
|
2
4
|
Rim.after_setup do
|
3
5
|
desc 'Start a ripl session and loading lib'
|
4
6
|
task :ripl do
|
5
|
-
i_params = Array(require_paths).map {|e| '-I ' << e}.join(' ')
|
6
|
-
sh "ripl #{i_params} -r #{name}"
|
7
|
+
i_params = Array(gemspec.require_paths).map {|e| '-I ' << e}.join(' ')
|
8
|
+
sh "ripl #{i_params} -r #{gemspec.name}"
|
7
9
|
end
|
8
10
|
end
|
data/lib/rim/rspec.rb
CHANGED
data/lib/rim/test.rb
CHANGED
data/lib/rim/tire.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
|
3
|
+
require_relative 'gem'
|
4
|
+
require_relative 'info'
|
5
|
+
require_relative 'release'
|
6
|
+
require_relative 'test'
|
data/lib/rim/version.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
+
require_relative '../rim'
|
3
|
+
|
2
4
|
Rim.after_setup do
|
3
5
|
namespace :version do
|
4
6
|
changelog = filelist(/^Changelog/i).first
|
5
7
|
fail 'No Changelog file found' unless changelog
|
6
8
|
if feature_loaded? 'rim/gem'
|
7
|
-
desc "Check if
|
8
|
-
else
|
9
|
-
desc "Check if Rim#version is equal to version in #{changelog}."
|
9
|
+
desc "Check if version in #{gemspec_file} is equal to version in #{changelog}."
|
10
10
|
end
|
11
11
|
task :check do
|
12
12
|
version_re = /^(\d+\.\d+(?:\.\d+)+(?:\.?\S+)?)/
|
@@ -14,30 +14,15 @@ Rim.after_setup do
|
|
14
14
|
line = File.open(changelog) do |f|
|
15
15
|
f.readline
|
16
16
|
end
|
17
|
+
version = gemspec.version.to_s
|
17
18
|
if line =~ version_re
|
18
19
|
if $1 != version
|
19
|
-
fail "Version mismatch (#{changelog}: #$1,
|
20
|
+
fail "Version mismatch (#{changelog}: #$1, #{gemspec_file}: #{version})"
|
20
21
|
end
|
21
22
|
else
|
22
23
|
fail "No version information in #{changelog}"
|
23
24
|
end
|
24
|
-
if feature_loaded? 'rim/gem'
|
25
|
-
# gemspec
|
26
|
-
fail 'No gemspec file found' unless File.exist? gemspec_file
|
27
|
-
spec = eval File.read(gemspec_file)
|
28
|
-
unless spec.version
|
29
|
-
fail "No version information in #{gemspec_file}"
|
30
|
-
end
|
31
|
-
if version != spec.version.to_s
|
32
|
-
fail "Version mismatch (#{gemspec_file}: #{spec.version}, Rim#version: #{version})\nTry rake gem:spec"
|
33
|
-
end
|
34
|
-
end
|
35
25
|
end
|
36
|
-
|
37
|
-
if feature_loaded? 'rim/release'
|
38
|
-
task :check => 'gem:spec'
|
39
|
-
end
|
40
|
-
|
41
26
|
end
|
42
27
|
if feature_loaded? 'rim/gem'
|
43
28
|
task 'gem:push' => 'version:check'
|
data/lib/rim/yard.rb
CHANGED
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 = '
|
12
|
+
VERSION = '3.0.0'
|
13
13
|
|
14
14
|
begin
|
15
15
|
require 'rake/dsl_definition'
|
@@ -95,5 +95,5 @@ class Rim
|
|
95
95
|
|
96
96
|
end
|
97
97
|
|
98
|
-
require 'rim/
|
98
|
+
require 'rim/gemspec'
|
99
99
|
require 'rim/rimrc' unless ENV['SELFTEST']
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Friedrich
|
8
|
-
bindir:
|
8
|
+
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2024-
|
10
|
+
date: 2024-11-05 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|
@@ -23,20 +23,6 @@ dependencies:
|
|
23
23
|
- - ">="
|
24
24
|
- !ruby/object:Gem::Version
|
25
25
|
version: '0'
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: rim
|
28
|
-
requirement: !ruby/object:Gem::Requirement
|
29
|
-
requirements:
|
30
|
-
- - "~>"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '2.18'
|
33
|
-
type: :development
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '2.18'
|
40
26
|
- !ruby/object:Gem::Dependency
|
41
27
|
name: test-unit
|
42
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,17 +59,14 @@ executables: []
|
|
73
59
|
extensions: []
|
74
60
|
extra_rdoc_files: []
|
75
61
|
files:
|
76
|
-
- "./.aspell.pws"
|
77
62
|
- Changelog
|
78
|
-
- Gemfile
|
79
63
|
- LICENSE
|
80
|
-
- README.
|
81
|
-
- Rakefile
|
64
|
+
- README.md
|
82
65
|
- lib/rim.rb
|
83
66
|
- lib/rim/aspell.rb
|
84
67
|
- lib/rim/check_version.rb
|
85
|
-
- lib/rim/core.rb
|
86
68
|
- lib/rim/gem.rb
|
69
|
+
- lib/rim/gemspec.rb
|
87
70
|
- lib/rim/git.rb
|
88
71
|
- lib/rim/info.rb
|
89
72
|
- lib/rim/irb.rb
|
@@ -98,14 +81,6 @@ files:
|
|
98
81
|
- lib/rim/tire.rb
|
99
82
|
- lib/rim/version.rb
|
100
83
|
- lib/rim/yard.rb
|
101
|
-
- regtest/execution.rb
|
102
|
-
- regtest/execution.yml
|
103
|
-
- regtest/global_deps.rb
|
104
|
-
- regtest/global_deps.yml
|
105
|
-
- regtest/mod_deps.rb
|
106
|
-
- regtest/mod_deps.yml
|
107
|
-
- rim.gemspec
|
108
|
-
- test/test_helper_methods.rb
|
109
84
|
homepage: https://github.com/janfri/rim
|
110
85
|
licenses:
|
111
86
|
- MIT
|
@@ -117,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
92
|
requirements:
|
118
93
|
- - ">="
|
119
94
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
95
|
+
version: 2.4.0
|
121
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
97
|
requirements:
|
123
98
|
- - ">="
|