rubinjam 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/rubinjam/version.rb +1 -1
- data/lib/rubinjam.rb +16 -5
- metadata +32 -51
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 94a233c7365a6647d6ad02fa0afab140e2d6ffe2
|
4
|
+
data.tar.gz: 2a09dd1b089bb99a67f36d2eebc9288fbb33ba0d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 641e71bbd866756510e9ff0ee898477212fe490dc7f0e3bce037fac310aba7d7afe4f63fb25c94ec6df88fea87043b03434d663b81fa284d14d8032c82afe5e2
|
7
|
+
data.tar.gz: 2476f27e34b07142d483de3a5359372c31c0e322edc9525604255c364519cc37bf06b23eabe616a2ad0e3b2338ed14a1b24e1ec0fa0e981cf6bd4e58d57eff54
|
data/lib/rubinjam/version.rb
CHANGED
data/lib/rubinjam.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
require "tmpdir"
|
2
2
|
require "bundler"
|
3
3
|
require "rubinjam/version"
|
4
|
-
require "shellwords"
|
5
4
|
|
6
5
|
module Rubinjam
|
7
6
|
class << self
|
@@ -15,16 +14,27 @@ module Rubinjam
|
|
15
14
|
end
|
16
15
|
end
|
17
16
|
|
18
|
-
def pack_gem(gem, version)
|
17
|
+
def pack_gem(gem, version=nil)
|
18
|
+
require "shellwords"
|
19
|
+
require "rubygems/package"
|
20
|
+
|
19
21
|
Dir.mktmpdir do |dir|
|
20
22
|
Dir.chdir(dir) do
|
21
|
-
#
|
22
|
-
command = "gem
|
23
|
+
# fetch
|
24
|
+
command = "gem fetch #{Shellwords.escape(gem)}"
|
23
25
|
command << " -v" << version if version
|
24
26
|
IO.popen(command).read
|
25
27
|
|
28
|
+
# load spec
|
29
|
+
gem_ball = Dir["*.gem"].first
|
30
|
+
spec = Gem::Package.new(gem_ball).spec.to_ruby
|
31
|
+
IO.popen("gem unpack #{gem_ball}").read
|
32
|
+
|
26
33
|
# bundle
|
27
|
-
Dir.chdir(
|
34
|
+
Dir.chdir(gem_ball.sub(".gem", "")) do
|
35
|
+
File.open("#{gem}.gemspec", "w") { |f| f.write spec }
|
36
|
+
Rubinjam.pack(Dir.pwd)
|
37
|
+
end
|
28
38
|
end
|
29
39
|
end
|
30
40
|
end
|
@@ -42,6 +52,7 @@ module Rubinjam
|
|
42
52
|
Dir.mktmpdir do |dir|
|
43
53
|
sh "cp -R . #{dir}/"
|
44
54
|
Dir.chdir(dir) do
|
55
|
+
write gemspec, File.read(gemspec).gsub(/.*add_development_dependency.*/, "")
|
45
56
|
write "Gemfile", <<-RUBY.gsub(/^ /, "")
|
46
57
|
source "https://rubygems.org"
|
47
58
|
gemspec
|
metadata
CHANGED
@@ -1,81 +1,62 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubinjam
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
- 0
|
10
|
-
version: 0.3.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Michael Grosser
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
prerelease: false
|
11
|
+
date: 2014-12-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
23
20
|
type: :runtime
|
24
|
-
|
25
|
-
|
26
|
-
requirements:
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
27
24
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
33
|
-
requirement: *id001
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
34
27
|
description:
|
35
28
|
email: michael@grosser.it
|
36
|
-
executables:
|
29
|
+
executables:
|
37
30
|
- rubinjam
|
38
31
|
extensions: []
|
39
|
-
|
40
32
|
extra_rdoc_files: []
|
41
|
-
|
42
|
-
files:
|
33
|
+
files:
|
43
34
|
- MIT-LICENSE
|
44
35
|
- bin/rubinjam
|
45
36
|
- lib/rubinjam.rb
|
46
37
|
- lib/rubinjam/version.rb
|
47
38
|
homepage: https://github.com/grosser/rubinjam
|
48
|
-
licenses:
|
39
|
+
licenses:
|
49
40
|
- MIT
|
41
|
+
metadata: {}
|
50
42
|
post_install_message:
|
51
43
|
rdoc_options: []
|
52
|
-
|
53
|
-
require_paths:
|
44
|
+
require_paths:
|
54
45
|
- lib
|
55
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
-
|
57
|
-
requirements:
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
58
48
|
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
version: "0"
|
64
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
67
53
|
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
segments:
|
71
|
-
- 0
|
72
|
-
version: "0"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
73
56
|
requirements: []
|
74
|
-
|
75
57
|
rubyforge_project:
|
76
|
-
rubygems_version:
|
58
|
+
rubygems_version: 2.2.2
|
77
59
|
signing_key:
|
78
|
-
specification_version:
|
60
|
+
specification_version: 4
|
79
61
|
summary: Jam a gem into a universal binary that works with any ruby
|
80
62
|
test_files: []
|
81
|
-
|