rim 2.11.1 → 2.12.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: fa768e00934069a19359c9ef30a4dd0a3986cb51
4
- data.tar.gz: d0c318b897e3f4c270fae929b9584ee988c67be1
3
+ metadata.gz: 3e78a0d003362f835e65b8e86c9d60fdc6857042
4
+ data.tar.gz: 1cf4ec58e9249f76e1d1bbf53cc96a0a470f8e0e
5
5
  SHA512:
6
- metadata.gz: 15942b97b6aeadace2073452c67380c95ffa034a967856770651c3461bec8e983f57d10f5e6009933565b830d99691909fa13d7260371a97de04c06e2b2acf22
7
- data.tar.gz: 23c541b5bd9a0a831265715207582de4ab1678368883b5c2f2b2ac374aece3e7aee40458fba7afc9aa7db38e5fded4d456e2052c04928c6c6c187094566a6ff4
6
+ metadata.gz: c18b3a53de31d32bf9f5c42b0db95f4a4bc196d1fbae3dd8f2ba989bbca894825bf5da4321058f7e259c6164e2ecf71bb033281284c78a7acf9fadab1b9a5465
7
+ data.tar.gz: 905d83723eefeebbd2e06ef2274cb8e04fcc062e0b0134103bee2bc5b7f396fce842f4a32da35ee9194dfb8f8c2e8358a73cc40e7a05be91e457c40db620fcee
data/Changelog CHANGED
@@ -1,3 +1,8 @@
1
+ 2.12.0
2
+ Upgrade development_dependency for regtest to version 1.0.
3
+ Add rake >0 and < 100 to default development_dependencies.
4
+ Some internal improvements.
5
+
1
6
  2.11.1
2
7
  Fix including .gemspec file into gem.
3
8
 
data/Rakefile CHANGED
@@ -22,4 +22,5 @@ Rim.setup do
22
22
  Goal is to have a project managing that just works on as many Ruby
23
23
  versions as possible and is easy to extend. Feel free to dislike it. ;)
24
24
  END
25
+ development_dependencies << %w(test-unit ~>3)
25
26
  end
data/lib/rim/core.rb CHANGED
@@ -11,6 +11,9 @@ class Rim
11
11
 
12
12
  # Paths for require to load the lib (default: <code>['lib']</code>
13
13
  attr_accessor :require_paths
14
+
15
+ alias author authors
16
+ alias author= authors=
14
17
  end
15
18
 
16
19
  Rim.defaults do |r|
data/lib/rim/gem.rb CHANGED
@@ -10,7 +10,7 @@ class Rim
10
10
  attr_accessor :email
11
11
 
12
12
  # License imformation
13
- attr_accessor :license
13
+ attr_accessor :licenses
14
14
 
15
15
  # Project homepage
16
16
  attr_accessor :homepage
@@ -21,7 +21,7 @@ class Rim
21
21
  # Dependencies of the gem
22
22
  attr_accessor :dependencies
23
23
 
24
- # Dependencies for development (default: <code>[%W(rim ~>#{Rim::VERSION.split(/\./)[0..1].join('.')})]</code>)
24
+ # Dependencies for development (default: <code>[%w(rake >0 <100), %W(rim ~>#{Rim::VERSION.scan(/[^.]+\.[^.]+/).first})]</code>)
25
25
  attr_accessor :development_dependencies
26
26
 
27
27
  # Required Ruby version
@@ -33,6 +33,9 @@ class Rim
33
33
  # Requirements (external to rubygems)
34
34
  attr_accessor :requirements
35
35
 
36
+ alias license licenses
37
+ alias license= licenses=
38
+
36
39
  protected
37
40
 
38
41
  def gem_spec
@@ -78,7 +81,7 @@ end
78
81
 
79
82
  Rim.defaults do
80
83
  gem_files filelist(/^README/i, /^Changelog/i, /^COPYING/i, /^LICENSE/i, /^Rakefile/i, /^Gemfile$/, '*.gemspec', 'bin/*', 'lib/**/*', 'test/**/*')
81
- development_dependencies [%W(rim ~>#{Rim::VERSION.split(/\./)[0..1].join('.')})]
84
+ development_dependencies [%w(rake >0 <100),%W(rim ~>#{Rim::VERSION.scan(/[^.]+\.[^.]+/).first})]
82
85
  requirements []
83
86
  end
84
87
 
@@ -112,7 +115,6 @@ Rim.after_setup do
112
115
  gem_files_without_gemspec = gem_files.clone
113
116
  gem_files_without_gemspec.exclude('*.gemspec')
114
117
  file gemspec_file => gem_files_without_gemspec do
115
- puts gem_files
116
118
  gem_files << gemspec_file
117
119
  File.write(gemspec_file, gem_spec)
118
120
  end
data/lib/rim/regtest.rb CHANGED
@@ -13,6 +13,6 @@ end
13
13
  Rim.after_setup do
14
14
  if feature_loaded? 'rim/gem'
15
15
  self.gem_files += ::REGTEST_FILES
16
- development_dependencies << %w(regtest ~>0.4)
16
+ development_dependencies << %w(regtest ~>1.0)
17
17
  end
18
18
  end
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.11.1'
12
+ VERSION = '2.12.0'
13
13
 
14
14
  begin
15
15
  require 'rake/dsl_definition'
@@ -25,7 +25,7 @@ class Rim
25
25
  def self.defaults(&blk)
26
26
  rim = Rim.instance
27
27
  if blk.arity < 1
28
- rim.instance_eval &blk
28
+ rim.instance_eval(&blk)
29
29
  else
30
30
  yield rim
31
31
  end
@@ -38,7 +38,7 @@ class Rim
38
38
  def self.setup(&blk)
39
39
  rim = Rim.instance
40
40
  if blk.arity < 1
41
- rim.instance_eval &blk
41
+ rim.instance_eval(&blk)
42
42
  else
43
43
  yield rim
44
44
  end
@@ -91,7 +91,7 @@ class Rim
91
91
 
92
92
  def self.execute_definitions
93
93
  @definitions.each do |blk|
94
- Rim.instance.instance_eval &blk
94
+ Rim.instance.instance_eval(&blk)
95
95
  end
96
96
  end
97
97
 
data/regtest/execution.rb CHANGED
@@ -1,11 +1,12 @@
1
1
  # -- encoding: utf-8 --
2
2
  require 'regtest'
3
3
 
4
+ `rake clobber`
4
5
  `rake -T`.split(/\n/).map {|line| line.split(/#/).first.strip}.each do |cmd|
5
6
  next if cmd =~ /(regtest)|(irb)|(pry)|(ripl)/
6
7
  cmd.sub! /rake/, 'rake -n'
7
8
  Regtest.sample cmd do
8
- res = `#{cmd} 2>&1`
9
+ res = `#{cmd} 2>&1`.gsub %r{(?<=pkg/rim-)(.+)(?=\.gem)}, 'x.x.x'
9
10
  res.split(/\n/).grep(/Execute/)
10
11
  end
11
12
  end
@@ -23,22 +23,30 @@ result:
23
23
  ---
24
24
  sample: rake -n gem
25
25
  result:
26
- - "** Execute (dry run) pkg/rim-2.4.0.gem"
27
- - "** Execute (dry run) gem:build"
26
+ - "** Execute (dry run) gem:spec"
28
27
  - "** Execute (dry run) test"
28
+ - "** Execute (dry run) pkg"
29
+ - "** Execute (dry run) pkg/rim-x.x.x.gem"
30
+ - "** Execute (dry run) gem:build"
29
31
  - "** Execute (dry run) gem"
30
32
  ---
31
33
  sample: rake -n gem:push
32
34
  result:
33
35
  - "** Execute (dry run) aspell:check"
34
36
  - "** Execute (dry run) git:check"
35
- - "** Execute (dry run) pkg/rim-2.4.0.gem"
36
- - "** Execute (dry run) gem:build"
37
+ - "** Execute (dry run) gem:spec"
37
38
  - "** Execute (dry run) test"
39
+ - "** Execute (dry run) pkg"
40
+ - "** Execute (dry run) pkg/rim-x.x.x.gem"
41
+ - "** Execute (dry run) gem:build"
38
42
  - "** Execute (dry run) gem"
39
43
  - "** Execute (dry run) version:check"
40
44
  - "** Execute (dry run) gem:push"
41
45
  ---
46
+ sample: rake -n gem:spec
47
+ result:
48
+ - "** Execute (dry run) gem:spec"
49
+ ---
42
50
  sample: rake -n git:check
43
51
  result:
44
52
  - "** Execute (dry run) aspell:check"
@@ -54,9 +62,11 @@ sample: rake -n git:tag
54
62
  result:
55
63
  - "** Execute (dry run) aspell:check"
56
64
  - "** Execute (dry run) git:check"
57
- - "** Execute (dry run) pkg/rim-2.4.0.gem"
58
- - "** Execute (dry run) gem:build"
65
+ - "** Execute (dry run) gem:spec"
59
66
  - "** Execute (dry run) test"
67
+ - "** Execute (dry run) pkg"
68
+ - "** Execute (dry run) pkg/rim-x.x.x.gem"
69
+ - "** Execute (dry run) gem:build"
60
70
  - "** Execute (dry run) gem"
61
71
  - "** Execute (dry run) version:check"
62
72
  - "** Execute (dry run) gem:push"
@@ -68,34 +78,31 @@ result:
68
78
  ---
69
79
  sample: rake -n install
70
80
  result:
71
- - "** Execute (dry run) pkg/rim-2.4.0.gem"
72
- - "** Execute (dry run) gem:build"
81
+ - "** Execute (dry run) gem:spec"
73
82
  - "** Execute (dry run) test"
83
+ - "** Execute (dry run) pkg"
84
+ - "** Execute (dry run) pkg/rim-x.x.x.gem"
85
+ - "** Execute (dry run) gem:build"
74
86
  - "** Execute (dry run) gem"
75
87
  - "** Execute (dry run) install"
76
88
  ---
77
- sample: rake -n rdoc
78
- result:
79
- - "** Execute (dry run) doc/index.html"
80
- - "** Execute (dry run) rdoc"
81
- ---
82
- sample: rake -n release
89
+ sample: rake -n prepare_release
83
90
  result:
84
91
  - "** Execute (dry run) aspell:check"
85
- - "** Execute (dry run) git:check"
86
- - "** Execute (dry run) pkg/rim-2.4.0.gem"
87
- - "** Execute (dry run) gem:build"
88
92
  - "** Execute (dry run) test"
89
- - "** Execute (dry run) gem"
93
+ - "** Execute (dry run) gem:spec"
90
94
  - "** Execute (dry run) version:check"
91
- - "** Execute (dry run) gem:push"
92
- - "** Execute (dry run) git:tag"
93
- - "** Execute (dry run) release"
95
+ - "** Execute (dry run) prepare_release"
96
+ ---
97
+ sample: rake -n rdoc
98
+ result:
99
+ - "** Execute (dry run) doc/created.rid"
100
+ - "** Execute (dry run) rdoc"
94
101
  ---
95
102
  sample: rake -n rerdoc
96
103
  result:
97
104
  - "** Execute (dry run) clobber_rdoc"
98
- - "** Execute (dry run) doc/index.html"
105
+ - "** Execute (dry run) doc/created.rid"
99
106
  - "** Execute (dry run) rdoc"
100
107
  - "** Execute (dry run) rerdoc"
101
108
  ---
@@ -109,4 +116,5 @@ result:
109
116
  ---
110
117
  sample: rake -n version:check
111
118
  result:
119
+ - "** Execute (dry run) gem:spec"
112
120
  - "** Execute (dry run) version:check"
@@ -2,5 +2,5 @@
2
2
  require 'regtest'
3
3
 
4
4
  Regtest.sample 'rake -P' do
5
- `rake -P SELFTEST=true`
5
+ `rake -P SELFTEST=true`.gsub %r{(?<=pkg/rim-)(.+)(?=\.gem)}, 'x.x.x'
6
6
  end
@@ -11,7 +11,7 @@ result: |
11
11
  rake default
12
12
  test
13
13
  rake doc
14
- rake doc/index.html
14
+ rake doc/created.rid
15
15
  README.rdoc
16
16
  lib/rim
17
17
  lib/rim.rb
@@ -38,11 +38,15 @@ result: |
38
38
  gem:build
39
39
  test
40
40
  rake gem:build
41
- pkg/rim-2.4.0.gem
41
+ spec
42
+ test
43
+ pkg/rim-x.x.x.gem
42
44
  rake gem:push
43
45
  gem
44
46
  git:check
45
47
  version:check
48
+ rake gem:spec
49
+ rim.gemspec
46
50
  rake git:check
47
51
  aspell:check
48
52
  rake git:push
@@ -53,12 +57,33 @@ result: |
53
57
  rake install
54
58
  gem
55
59
  rake pkg
56
- rake pkg/rim-2.4.0.gem
60
+ rake pkg/rim-x.x.x.gem
57
61
  pkg
62
+ rim.gemspec
63
+ rake prepare_release
64
+ aspell:check
65
+ test
66
+ version:check
67
+ rake rdoc
68
+ doc/created.rid
69
+ rake regtest
70
+ rake release
71
+ aspell:check
72
+ gem:push
73
+ gem:spec
74
+ git:check
75
+ git:tag
76
+ test
77
+ version:check
78
+ rake rerdoc
79
+ clobber_rdoc
80
+ rdoc
81
+ rake rim.gemspec
58
82
  README.rdoc
59
83
  Changelog
60
84
  LICENSE
61
85
  Rakefile
86
+ Gemfile
62
87
  lib/rim
63
88
  lib/rim.rb
64
89
  lib/rim/aspell.rb
@@ -80,19 +105,7 @@ result: |
80
105
  lib/rim/version.rb
81
106
  lib/rim/yard.rb
82
107
  test/test_helper_methods.rb
83
- rake rdoc
84
- doc/index.html
85
- rake regtest
86
- rake release
87
- aspell:check
88
- gem:push
89
- git:check
90
- git:tag
91
- test
92
- version:check
93
- rake rerdoc
94
- clobber_rdoc
95
- rdoc
96
108
  rake test
97
109
  rake uninstall
98
110
  rake version:check
111
+ gem:spec
data/regtest/mod_deps.rb CHANGED
@@ -15,12 +15,18 @@ Rim.setup do
15
15
  end
16
16
  END
17
17
 
18
+ Changelog = <<-END
19
+ 0.0.1
20
+ First Version
21
+ END
22
+
18
23
  lib_path = File.expand_path('lib')
19
24
 
20
- Dir['lib/rim/*.rb'].each do |fn|
25
+ Dir['lib/rim/*.rb'].sort.each do |fn|
21
26
  next if fn =~/rimrc/
22
27
  Regtest.sample fn do
23
28
  Dir.chdir(Dir.tmpdir) do
29
+ File.write 'Changelog', Changelog
24
30
  FileUtils.mkdir_p('test')
25
31
  FileUtils.touch('test/test.rb')
26
32
  File.open('Rakefile', 'w') do |f|
data/regtest/mod_deps.yml CHANGED
@@ -28,17 +28,24 @@ result: |
28
28
  rake gem
29
29
  gem:build
30
30
  rake gem:build
31
+ spec
32
+ test
31
33
  pkg/xxx-0.0.1.gem
32
34
  rake gem:push
33
35
  gem
36
+ rake gem:spec
37
+ xxx.gemspec
34
38
  rake install
35
39
  gem
36
40
  rake pkg
37
41
  rake pkg/xxx-0.0.1.gem
38
42
  pkg
43
+ xxx.gemspec
44
+ rake uninstall
45
+ rake xxx.gemspec
46
+ Changelog
39
47
  Rakefile
40
48
  test/test.rb
41
- rake uninstall
42
49
  ---
43
50
  sample: lib/rim/git.rb
44
51
  result: |
@@ -75,10 +82,10 @@ result: |
75
82
  clobber_rdoc
76
83
  rake clobber_rdoc
77
84
  rake doc
78
- rake doc/index.html
85
+ rake doc/created.rid
79
86
  Rakefile
80
87
  rake rdoc
81
- doc/index.html
88
+ doc/created.rid
82
89
  rake rerdoc
83
90
  clobber_rdoc
84
91
  rdoc
@@ -95,6 +102,7 @@ result: |
95
102
  rake clean
96
103
  rake clobber
97
104
  clean
105
+ rake prepare_release
98
106
  rake release
99
107
  ---
100
108
  sample: lib/rim/ripl.rb
@@ -130,22 +138,31 @@ result: |
130
138
  gem:build
131
139
  test
132
140
  rake gem:build
141
+ spec
142
+ test
133
143
  pkg/xxx-0.0.1.gem
134
144
  rake gem:push
135
145
  gem
146
+ rake gem:spec
147
+ xxx.gemspec
136
148
  rake info
137
149
  rake install
138
150
  gem
139
151
  rake pkg
140
152
  rake pkg/xxx-0.0.1.gem
141
153
  pkg
142
- Rakefile
143
- test/test.rb
154
+ xxx.gemspec
155
+ rake prepare_release
156
+ test
144
157
  rake release
145
158
  gem:push
146
159
  test
147
160
  rake test
148
161
  rake uninstall
162
+ rake xxx.gemspec
163
+ Changelog
164
+ Rakefile
165
+ test/test.rb
149
166
  ---
150
167
  sample: lib/rim/version.rb
151
168
  result: |
data/rim.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: rim 2.11.1 ruby lib
2
+ # stub: rim 2.12.0 ruby lib
3
3
  #
4
4
  # This file is automatically generated by rim.
5
5
  # PLEASE DO NOT EDIT IT DIRECTLY!
@@ -7,12 +7,12 @@
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
  s.name = "rim"
10
- s.version = "2.11.1"
10
+ s.version = "2.12.0"
11
11
 
12
12
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
13
13
  s.require_paths = ["lib"]
14
14
  s.authors = ["Jan Friedrich"]
15
- s.date = "2017-08-19"
15
+ s.date = "2017-08-22"
16
16
  s.description = "Goal is to have a project managing that just works on as many Ruby\nversions as possible and is easy to extend. Feel free to dislike it. ;)\n"
17
17
  s.email = "janfri26@gmail.com"
18
18
  s.files = ["Changelog", "Gemfile", "LICENSE", "README.rdoc", "Rakefile", "lib/rim", "lib/rim.rb", "lib/rim/aspell.rb", "lib/rim/check_version.rb", "lib/rim/core.rb", "lib/rim/gem.rb", "lib/rim/git.rb", "lib/rim/info.rb", "lib/rim/irb.rb", "lib/rim/pry.rb", "lib/rim/rdoc.rb", "lib/rim/regtest.rb", "lib/rim/release.rb", "lib/rim/rimrc.rb", "lib/rim/ripl.rb", "lib/rim/rspec.rb", "lib/rim/test.rb", "lib/rim/tire.rb", "lib/rim/version.rb", "lib/rim/yard.rb", "regtest/execution.rb", "regtest/execution.yml", "regtest/global_deps.rb", "regtest/global_deps.yml", "regtest/mod_deps.rb", "regtest/mod_deps.yml", "rim.gemspec", "test/test_helper_methods.rb"]
@@ -25,14 +25,20 @@ Gem::Specification.new do |s|
25
25
  s.specification_version = 4
26
26
 
27
27
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28
- s.add_development_dependency(%q<rim>, ["~> 2.11"])
29
- s.add_development_dependency(%q<regtest>, ["~> 0.4"])
28
+ s.add_development_dependency(%q<rake>, ["< 100", "> 0"])
29
+ s.add_development_dependency(%q<rim>, ["~> 2.12"])
30
+ s.add_development_dependency(%q<test-unit>, ["~> 3"])
31
+ s.add_development_dependency(%q<regtest>, ["~> 1.0"])
30
32
  else
31
- s.add_dependency(%q<rim>, ["~> 2.11"])
32
- s.add_dependency(%q<regtest>, ["~> 0.4"])
33
+ s.add_dependency(%q<rake>, ["< 100", "> 0"])
34
+ s.add_dependency(%q<rim>, ["~> 2.12"])
35
+ s.add_dependency(%q<test-unit>, ["~> 3"])
36
+ s.add_dependency(%q<regtest>, ["~> 1.0"])
33
37
  end
34
38
  else
35
- s.add_dependency(%q<rim>, ["~> 2.11"])
36
- s.add_dependency(%q<regtest>, ["~> 0.4"])
39
+ s.add_dependency(%q<rake>, ["< 100", "> 0"])
40
+ s.add_dependency(%q<rim>, ["~> 2.12"])
41
+ s.add_dependency(%q<test-unit>, ["~> 3"])
42
+ s.add_dependency(%q<regtest>, ["~> 1.0"])
37
43
  end
38
44
  end
metadata CHANGED
@@ -1,43 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rim
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.1
4
+ version: 2.12.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: 2017-08-19 00:00:00.000000000 Z
11
+ date: 2017-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "<"
18
+ - !ruby/object:Gem::Version
19
+ version: '100'
20
+ - - ">"
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "<"
28
+ - !ruby/object:Gem::Version
29
+ version: '100'
30
+ - - ">"
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
13
33
  - !ruby/object:Gem::Dependency
14
34
  name: rim
15
35
  requirement: !ruby/object:Gem::Requirement
16
36
  requirements:
17
37
  - - "~>"
18
38
  - !ruby/object:Gem::Version
19
- version: '2.11'
39
+ version: '2.12'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.12'
47
+ - !ruby/object:Gem::Dependency
48
+ name: test-unit
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '3'
20
54
  type: :development
21
55
  prerelease: false
22
56
  version_requirements: !ruby/object:Gem::Requirement
23
57
  requirements:
24
58
  - - "~>"
25
59
  - !ruby/object:Gem::Version
26
- version: '2.11'
60
+ version: '3'
27
61
  - !ruby/object:Gem::Dependency
28
62
  name: regtest
29
63
  requirement: !ruby/object:Gem::Requirement
30
64
  requirements:
31
65
  - - "~>"
32
66
  - !ruby/object:Gem::Version
33
- version: '0.4'
67
+ version: '1.0'
34
68
  type: :development
35
69
  prerelease: false
36
70
  version_requirements: !ruby/object:Gem::Requirement
37
71
  requirements:
38
72
  - - "~>"
39
73
  - !ruby/object:Gem::Version
40
- version: '0.4'
74
+ version: '1.0'
41
75
  description: |
42
76
  Goal is to have a project managing that just works on as many Ruby
43
77
  versions as possible and is easy to extend. Feel free to dislike it. ;)