iseq_rails_tools 0.0.8 → 0.0.9

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: f17837f590c7f4f347ec560a045f53732b150603
4
- data.tar.gz: 91c1f149db5f88065772008805a7b4653dc973be
3
+ metadata.gz: 97b8bdf55e622b23d60019974118c37a08bb7d35
4
+ data.tar.gz: dddabdd08d26b1901794ea97b49788c2d5d7ba77
5
5
  SHA512:
6
- metadata.gz: e81011b96601d7a57dc8fbb4430b1f51abfeef13736d33ce223c61084f87def455d1205d03c44da6ccc31a2a52826f3753e590274467b59d676558bbe4dcd536
7
- data.tar.gz: 308b9aa0e2b5bbf38851593f6dfddbe105d136bde61f9dcfbefa2d3008de0f496c234dd3f9f59980cf2b417ec5e6d47b686e610666fa121bd0454cc01c4de1a6
6
+ metadata.gz: 12b142a61ff8e4b9a281296efbbdff2fa350fe9552ac1cd9c07c169d22ff98e0fd311f6f1bc091a766014b01c9f51a573b9525d522d8b4c565b0a761f9faa7dc
7
+ data.tar.gz: 0dc309265d5ad8def4138313a1e23fa2bf6f6c4b32d46fa60ed33d8baa374bec6b36d0024eabfd8ccf8a229543049461b8a8001050d8b07231745b41b1a647bc
@@ -1,2 +1,10 @@
1
- require 'mkmf'
2
- create_makefile 'iseq_rails_tools/iseq_rails_tools'
1
+ begin
2
+ require 'mkmf'
3
+ create_makefile 'iseq_rails_tools/iseq_rails_tools'
4
+ rescue StandardError => error
5
+ File.open('Makefile', 'wb') do |file|
6
+ file.puts '.PHONY: install'
7
+ file.puts 'install:'
8
+ file.puts "\t" + '@echo "[iseq_rails_tools] not installed, falling back to pure Ruby version."'
9
+ end
10
+ end
@@ -5,7 +5,14 @@ end
5
5
  # like simplecov will continue to function as expected. Also people do weird
6
6
  # stuff in test mode, so who knows.
7
7
  if !Rails.env.test? || IseqRailsTools.respond_to?(:internal?)
8
- require 'iseq_rails_tools/iseq_rails_tools'
8
+ begin
9
+ # Extension target
10
+ require 'iseq_rails_tools/iseq_rails_tools'
11
+ rescue LoadError
12
+ # Pure ruby fallback, in case installation failed
13
+ require 'iseq_rails_tools/extension_fallback'
14
+ end
15
+
9
16
  require 'iseq_rails_tools/railtie'
10
17
  require 'iseq_rails_tools/source_file'
11
18
 
@@ -0,0 +1,5 @@
1
+ module IseqRailsTools
2
+ def self.iseq_path_for(source_path)
3
+ source_path.gsub(/[^A-Za-z0-9\._-]/) { |c| '%02x' % c.ord }
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module IseqRailsTools
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iseq_rails_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Deisz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-01 00:00:00.000000000 Z
11
+ date: 2017-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: '1.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.9'
40
+ version: '1.0'
41
41
  description: |2
42
42
  Allows you to take advantage of ruby's AOT bytecode generation
43
43
  within a Rails project.
@@ -55,6 +55,7 @@ files:
55
55
  - ext/iseq_rails_tools/iseq_rails_tools.c
56
56
  - ext/iseq_rails_tools/iseq_rails_tools.h
57
57
  - lib/iseq_rails_tools.rb
58
+ - lib/iseq_rails_tools/extension_fallback.rb
58
59
  - lib/iseq_rails_tools/iseq_rails_tools.bundle
59
60
  - lib/iseq_rails_tools/railtie.rb
60
61
  - lib/iseq_rails_tools/source_file.rb