yomikomu 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yomikomu.rb +7 -3
- data/lib/yomikomu/version.rb +1 -1
- data/yomikomu.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 547fca221d04dc83b57b2aa5dfe64d02c0707a85
|
4
|
+
data.tar.gz: 3b69bf15676c15ddbc0aacd588ab34817e7a63c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 822c25e871fefe58dcdcbed67739fcf9157d59e8011981bff9c3ea3b51f3c47d5fe7c01db9397076035716038c7ffeb96640e5b41c69fea443b26a4669a66883
|
7
|
+
data.tar.gz: 86db6de8c2ac86e679fde45a4ef1de8f4f48bc406adf55e7fe64a568d5cca0c6e128d38f7d05f49651d1dc72832eea43cb9db28dccd4f9e903eb24f46e158413
|
data/lib/yomikomu.rb
CHANGED
@@ -13,13 +13,17 @@ module Yomikomu
|
|
13
13
|
YOMIKOMU_AUTO_COMPILE = ENV['YOMIKOMU_AUTO_COMPILE'] == 'true'
|
14
14
|
YOMIKOMU_USE_MMAP = ENV['YOMIKOMU_USE_MMAP']
|
15
15
|
|
16
|
+
def self.status
|
17
|
+
STDERR.puts "[YOMIKOMU:INFO] (pid:#{Process.pid}) " +
|
18
|
+
::Yomikomu::STATISTICS.map{|k, v| "#{k}: #{v}"}.join(' ,')
|
19
|
+
end
|
20
|
+
|
16
21
|
if $VERBOSE
|
17
22
|
def self.info
|
18
23
|
STDERR.puts "[YOMIKOMU:INFO] (pid:#{Process.pid}) #{yield}"
|
19
24
|
end
|
20
25
|
at_exit{
|
21
|
-
|
22
|
-
::Yomikomu::STATISTICS.map{|k, v| "#{k}: #{v}"}.join(' ,')
|
26
|
+
status
|
23
27
|
}
|
24
28
|
else
|
25
29
|
def self.info
|
@@ -72,7 +76,7 @@ module Yomikomu
|
|
72
76
|
|
73
77
|
def compile_and_store_iseq fname, iseq_key = iseq_key_name(fname)
|
74
78
|
::Yomikomu::STATISTICS[:compiled] += 1
|
75
|
-
::Yomikomu.debug{ "
|
79
|
+
::Yomikomu.debug{ "compile #{fname} into #{iseq_key}" }
|
76
80
|
iseq = RubyVM::InstructionSequence.compile_file(fname)
|
77
81
|
|
78
82
|
binary = iseq.to_binary(extra_data(fname))
|
data/lib/yomikomu/version.rb
CHANGED
data/yomikomu.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.required_ruby_version = '
|
22
|
+
spec.required_ruby_version = '>= 2.3.0'
|
23
23
|
spec.add_runtime_dependency 'mmapped_string' if /linux/ =~ RUBY_PLATFORM
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.10"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yomikomu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Koichi Sasada
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mmapped_string
|
@@ -110,9 +110,9 @@ require_paths:
|
|
110
110
|
- lib
|
111
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
- - "
|
113
|
+
- - ">="
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: 2.3.
|
115
|
+
version: 2.3.0
|
116
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
118
|
- - ">="
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.6.3
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Dump compiled iseq by binary (kakidasu) and load binary (yomidasu).
|