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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c24a27cea503e28dc7213b777a88feed4945571f
4
- data.tar.gz: 934dd71846492df18f6848a115166ecd883ff5f7
3
+ metadata.gz: 547fca221d04dc83b57b2aa5dfe64d02c0707a85
4
+ data.tar.gz: 3b69bf15676c15ddbc0aacd588ab34817e7a63c8
5
5
  SHA512:
6
- metadata.gz: 46c25d86f4c28d5e75d0528a692f9fe6dc6ed1c88ec087db06003cf9fa0cb5392a2602e8b1fc3b27128efbeda331fd84595468352644c05f74a0d98f3ab05c8f
7
- data.tar.gz: 90b6790804141298cc316b3f1e64f6f614407ff3843f4ffee1a67bc1f5c9b96a3c0e7cb5cc559b30970987350627e11f4cfb983e7e6da4b492ffa95153a646df
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
- STDERR.puts "[YOMIKOMU:INFO] (pid:#{Process.pid}) " +
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{ "[RUBY_COMPILED_FILE] compile #{fname} into #{iseq_key}" }
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))
@@ -1,3 +1,3 @@
1
1
  module Yomikomu
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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 = '~> 2.3.0dev'
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.2.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: 2015-12-12 00:00:00.000000000 Z
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.0dev
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.5.0
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).