rim 2.5.1 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +3 -0
- data/lib/rim/gem.rb +50 -29
- data/lib/rim.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed0654e80cf821de0363da5c30c566c4b1635b38
|
4
|
+
data.tar.gz: a8101493964e49f37cc628652e3734a4dae49dc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07347171dad53f764cfd2ee24898b9065cf986e93dd664579ad0ec868c6ff1e34bbe93081f799e117fb40af9dba3bbe0586f85f7dde14f5b7655baefe4b41ed5
|
7
|
+
data.tar.gz: c4c7eab2e35d0b21bf78876e5c7a0bce9efcdd44c43b2f48b5f20bf0382cf4ddb96efe9fb61f2f37a4e6d9e6c4dccf4e2c353d8124925e888a4687fa5fb7c7c9
|
data/Changelog
CHANGED
data/lib/rim/gem.rb
CHANGED
@@ -32,6 +32,40 @@ class Rim
|
|
32
32
|
|
33
33
|
# Requirements (external to rubygems)
|
34
34
|
attr_accessor :requirements
|
35
|
+
|
36
|
+
def gem_spec
|
37
|
+
spec = Gem::Specification.new do |s|
|
38
|
+
s.authors = authors
|
39
|
+
s.email = email
|
40
|
+
s.platform = Gem::Platform::RUBY
|
41
|
+
s.description = description
|
42
|
+
s.license = license if license
|
43
|
+
s.homepage = homepage
|
44
|
+
s.name = name
|
45
|
+
s.summary = summary
|
46
|
+
s.version = version
|
47
|
+
s.require_paths = Array(require_paths)
|
48
|
+
s.files = Array(gem_files)
|
49
|
+
s.required_ruby_version = ruby_version if ruby_version
|
50
|
+
s.post_install_message = install_message
|
51
|
+
s.requirements = Array(requirements)
|
52
|
+
Array(dependencies).each do |dep|
|
53
|
+
s.add_dependency *Array(dep)
|
54
|
+
end
|
55
|
+
Array(development_dependencies).each do |dep|
|
56
|
+
s.add_development_dependency *Array(dep)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
disclaimer = <<-END
|
60
|
+
#
|
61
|
+
# This file is automatic generated by rim.
|
62
|
+
# PLEASE DO NOT EDIT IT DIRECTLY!
|
63
|
+
# Change instead the values in Rim.setup in Rakefile.
|
64
|
+
|
65
|
+
END
|
66
|
+
disclaimer.gsub!(/^\s+/, '')
|
67
|
+
spec.to_ruby.sub(/^$/, disclaimer)
|
68
|
+
end
|
35
69
|
end
|
36
70
|
|
37
71
|
Rim.defaults do
|
@@ -40,55 +74,42 @@ Rim.defaults do
|
|
40
74
|
requirements []
|
41
75
|
end
|
42
76
|
|
43
|
-
directory 'pkg'
|
44
|
-
CLOBBER.include(FileList['pkg'].existing)
|
45
|
-
|
46
|
-
|
47
77
|
Rim.after_setup do
|
48
78
|
|
49
79
|
require 'rubygems/package'
|
50
80
|
|
51
81
|
gem_file = "pkg/#{name}-#{version}.gem"
|
82
|
+
gemspec_file = "#{name}.gemspec"
|
83
|
+
|
84
|
+
directory 'pkg'
|
85
|
+
|
86
|
+
CLOBBER.include(FileList['pkg'].existing)
|
87
|
+
CLOBBER << gemspec_file
|
52
88
|
|
53
89
|
desc "Build the gem file #{gem_file}"
|
54
90
|
task :gem => 'gem:build'
|
55
91
|
|
56
92
|
namespace :gem do
|
57
93
|
|
58
|
-
file gem_file => ['pkg',
|
59
|
-
|
60
|
-
s.authors = authors
|
61
|
-
s.email = email
|
62
|
-
s.platform = Gem::Platform::RUBY
|
63
|
-
s.description = description
|
64
|
-
s.license = license if license
|
65
|
-
s.homepage = homepage
|
66
|
-
s.name = name
|
67
|
-
s.summary = summary
|
68
|
-
s.version = version
|
69
|
-
s.require_paths = Array(require_paths)
|
70
|
-
s.files = Array(gem_files)
|
71
|
-
s.required_ruby_version = ruby_version if ruby_version
|
72
|
-
s.post_install_message = install_message
|
73
|
-
s.requirements = Array(requirements)
|
74
|
-
Array(dependencies).each do |dep|
|
75
|
-
s.add_dependency *Array(dep)
|
76
|
-
end
|
77
|
-
Array(development_dependencies).each do |dep|
|
78
|
-
s.add_development_dependency *Array(dep)
|
79
|
-
end
|
80
|
-
end
|
81
|
-
Gem::Package.build spec
|
94
|
+
file gem_file => ['pkg', gemspec_file] do
|
95
|
+
sh "gem build #{gemspec_file}"
|
82
96
|
mv File.basename(gem_file), 'pkg'
|
83
97
|
end
|
84
98
|
|
85
|
-
task :build => gem_file
|
99
|
+
task :build => [:test, gem_file]
|
86
100
|
|
87
101
|
desc "Push the gem #{name} version #{version} to rubygems.org"
|
88
102
|
task :push => :gem do
|
89
103
|
sh "gem push #{gem_file}"
|
90
104
|
end
|
91
105
|
|
106
|
+
file gemspec_file => gem_files do
|
107
|
+
File.write(gemspec_file, gem_spec)
|
108
|
+
end
|
109
|
+
|
110
|
+
desc "Generate #{gemspec_file}"
|
111
|
+
task :spec => gemspec_file
|
112
|
+
|
92
113
|
end
|
93
114
|
|
94
115
|
desc "Install version #{version}"
|
data/lib/rim.rb
CHANGED
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.
|
4
|
+
version: 2.6.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: 2015-
|
11
|
+
date: 2015-07-07 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.
|
19
|
+
version: '2.6'
|
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.
|
26
|
+
version: '2.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: regtest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,8 +93,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
96
|
+
rubygems_version: 2.5.0
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: A simple project / gem manager
|
100
100
|
test_files: []
|
101
|
+
has_rdoc:
|