sega 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rubocop.yml +1 -0
- data/README.md +27 -0
- data/lib/sega/installer.erb +3 -3
- data/lib/sega/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d796310f30f180e3bc93c8b31794b27a346cda5
|
4
|
+
data.tar.gz: 710bf2a1b2e56f8076959cb0ee4b3af42c5198f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df89d1ed2d5978d1cfc4ae35d1032233bba87ec92ba1a431a8e4d4c5ce820470a85616a2f98bbfa80dbd0eee4b1bf64017c3e2f2e797cfc260df236568fa4b39
|
7
|
+
data.tar.gz: fe6716a34278e3a6544bc836a1b7b4eeb4671d34f5cc1cc9555b8ed072f8ce7e4d62b877e89e6baef65a8516452725d780265dd2a6ca84bec6371a5ebbd0aff8
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -7,6 +7,33 @@ Similar in concept to [traveling-ruby](https://github.com/phusion/traveling-ruby
|
|
7
7
|
For example:
|
8
8
|
|
9
9
|
```
|
10
|
+
# create new gem
|
11
|
+
# create exe/<whatever>
|
12
|
+
# git add -A
|
13
|
+
|
14
|
+
$ $EDITOR Gemfile
|
15
|
+
|
16
|
+
## Add
|
17
|
+
require 'sega/rake_task'
|
18
|
+
|
19
|
+
Sega::RakeTask.new() do |t|
|
20
|
+
t.bundler_version = '1.10.6' # uses gem version comparison operators
|
21
|
+
t.ruby_version = '~> 2.3.0' # uses gem version comparison operators
|
22
|
+
end
|
23
|
+
|
24
|
+
|
25
|
+
$ bundle install
|
26
|
+
|
27
|
+
$ bundle exec rake sega:package
|
28
|
+
Using rake 10.5.0
|
29
|
+
Using bundler 1.10.6
|
30
|
+
Using hello-sega 0.1.0 from source at .
|
31
|
+
Using sega 0.1.1
|
32
|
+
Updating files in vendor/cache
|
33
|
+
Bundle complete! 4 Gemfile dependencies, 4 gems now installed.
|
34
|
+
Use `bundle show [gemname]` to see where a bundled gem is installed.
|
35
|
+
Updating files in vendor/cache
|
36
|
+
Created Self-Extracting Gem Archive: hello-sega.run
|
10
37
|
```
|
11
38
|
|
12
39
|
|
data/lib/sega/installer.erb
CHANGED
@@ -37,7 +37,7 @@ file = DATA
|
|
37
37
|
Zlib::GzipReader.wrap(file) do |gz|
|
38
38
|
Gem::Package::TarReader.new(gz) do |tar|
|
39
39
|
tar.each do |entry|
|
40
|
-
puts entry.full_name
|
40
|
+
#puts entry.full_name
|
41
41
|
|
42
42
|
dir = File.dirname(File.join(target_dir, entry.full_name))
|
43
43
|
FileUtils.mkdir_p(dir) unless File.exists?(dir)
|
@@ -56,9 +56,9 @@ spec = Gem::Specification.load(Dir[File.join(File.dirname(__FILE__), "*.gemspec"
|
|
56
56
|
bundle_env = "BUNDLE_GEMFILE=#{File.join(target_dir, 'Gemfile')}"
|
57
57
|
|
58
58
|
Dir[File.join(spec.bindir, "*")].each do |exe_file|
|
59
|
-
puts "exe_file: #{exe_file}"
|
59
|
+
#puts "exe_file: #{exe_file}"
|
60
60
|
target_shim = File.join(exe_shim_dir, File.basename(exe_file))
|
61
|
-
puts "
|
61
|
+
puts "created target shim: #{target_shim}"
|
62
62
|
File.open(target_shim, "w+") do |f|
|
63
63
|
|
64
64
|
f.write(%Q(
|
data/lib/sega/version.rb
CHANGED