safe_intern 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.travis.yml +5 -0
- data/History.md +8 -0
- data/README.md +9 -2
- data/Rakefile +10 -5
- data/certs/gem-jrusnack.pem +21 -0
- data/safe_intern.gemspec +4 -2
- data.tar.gz.sig +0 -0
- metadata +28 -3
- metadata.gz.sig +3 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3cf256f70b9ae599fb423636ba24327ae658750
|
4
|
+
data.tar.gz: ffd2319f7158e3f7f91f27715bc6fc76f362e562
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a93b40dde12461b67375cf7d556c5a4a9eaac8ec08c62ee28bda1711cf2013421c31d8f7fbd39acfcc0d1302b1658f76b4731ceaba0663562cee6dde0dfef587
|
7
|
+
data.tar.gz: 965d9287f00093585327fee86a66c624bc38195f8f213f35981d8b3a29cf2cf40ec7006495483350296be00e79b8646d458a9bacb0773b801b05b1cf13eae99f
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data/History.md
ADDED
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/safe_intern.png)](http://badge.fury.io/rb/safe_intern)
|
2
|
+
[![Build Status](https://travis-ci.org/jrusnack/safe_intern.svg?branch=master)](https://travis-ci.org/jrusnack/safe_intern)
|
3
|
+
[![Code Climate](https://codeclimate.com/github/jrusnack/safe_intern.png)](https://codeclimate.com/github/jrusnack/safe_intern)
|
4
|
+
|
1
5
|
# SafeIntern
|
2
6
|
|
3
|
-
Safe implemetation of String#intern and String#to_sym methods.
|
7
|
+
Safe implemetation of `String#intern` and `String#to_sym` methods.
|
4
8
|
|
5
9
|
## Description
|
6
10
|
|
@@ -107,10 +111,13 @@ This gem provides implementation of both in `SafeIntern::ExceptionPatch` and
|
|
107
111
|
Similar functionality is provided by [Symbol Lookup] gem. Read about addition
|
108
112
|
of new method to query for already allocated Symbols in [Issue 7854].
|
109
113
|
|
114
|
+
Kudos to [Martin Povolny] for the initial idea.
|
115
|
+
|
110
116
|
## License
|
111
117
|
[SafeIntern] is released under the MIT License.
|
112
118
|
|
113
119
|
[Ruby]: http://www.ruby-lang.org
|
114
120
|
[Symbol Lookup]: https://github.com/phluid61/symbol_lookup-gem
|
115
121
|
[Issue 7854]: https://bugs.ruby-lang.org/issues/7854
|
116
|
-
[SafeIntern] https://github.com/jrusnack/safe_intern
|
122
|
+
[SafeIntern]: https://github.com/jrusnack/safe_intern
|
123
|
+
[Martin Povolny]: https://github.com/martinpovolny
|
data/Rakefile
CHANGED
@@ -3,17 +3,22 @@ require 'rake/extensiontask'
|
|
3
3
|
require 'rubocop/rake_task'
|
4
4
|
require 'benchmark'
|
5
5
|
$:.unshift File.expand_path('../lib', __FILE__)
|
6
|
-
require 'safe_intern'
|
7
6
|
|
8
|
-
|
7
|
+
task :default => :spec
|
9
8
|
|
10
|
-
|
11
|
-
|
9
|
+
# :compile task
|
10
|
+
Rake::ExtensionTask.new "symbol_defined"
|
11
|
+
|
12
|
+
# :spec task
|
13
|
+
RSpec::Core::RakeTask.new
|
14
|
+
task :spec => :compile
|
12
15
|
|
16
|
+
# :rubocop task
|
13
17
|
Rubocop::RakeTask.new
|
14
18
|
|
15
19
|
desc 'Benchmark implemented methods'
|
16
|
-
task :benchmark do
|
20
|
+
task :benchmark => :compile do
|
21
|
+
require 'safe_intern'
|
17
22
|
i = 2000000
|
18
23
|
|
19
24
|
Benchmark.bm(22) do |bm|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRIwEAYDVQQDDAlydXNu
|
3
|
+
YWNrb2oxF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uVu2n9pDiLtIMiYYcGK
|
18
|
+
Y9pJY761LDuFfHvmfc5m0gW62w948VuKYqVcdB6+VB0TGx4OFt8pI/4vduWFRWp7
|
19
|
+
ydN7L4RPVeCtwP4tzLMPLmzB2c84vC+0PS3gnEGcxWR524MVQAWMJinYIX7ZeLju
|
20
|
+
P7zsEz7FMVB2vF/xiGSwMfk4JV+/FDS5
|
21
|
+
-----END CERTIFICATE-----
|
data/safe_intern.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'safe_intern'
|
3
|
-
gem.version = '1.0.
|
4
|
-
gem.date = '2014-03-
|
3
|
+
gem.version = '1.0.1'
|
4
|
+
gem.date = '2014-03-25'
|
5
5
|
gem.summary = 'Safe String#intern'
|
6
6
|
gem.description = 'Safe implementation of String#intern'
|
7
7
|
gem.authors = ["Jan Rusnacko"]
|
@@ -11,4 +11,6 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.required_ruby_version = ['>= 2.0']
|
12
12
|
gem.homepage = 'https://github.com/jrusnack/safe_intern'
|
13
13
|
gem.license = 'MIT'
|
14
|
+
gem.cert_chain = ['certs/gem-jrusnack.pem']
|
15
|
+
gem.signing_key = "/home/jrusnack/.ssh/gem-jrusnack-private.pem"
|
14
16
|
end
|
data.tar.gz.sig
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: safe_intern
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Rusnacko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUF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Oyv1yUgX8HyBlJNT0uhnL1Gv7Sk464tqhf4AYozPAuVu2n9pDiLtIMiYYcGK
|
29
|
+
Y9pJY761LDuFfHvmfc5m0gW62w948VuKYqVcdB6+VB0TGx4OFt8pI/4vduWFRWp7
|
30
|
+
ydN7L4RPVeCtwP4tzLMPLmzB2c84vC+0PS3gnEGcxWR524MVQAWMJinYIX7ZeLju
|
31
|
+
P7zsEz7FMVB2vF/xiGSwMfk4JV+/FDS5
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
12
34
|
dependencies: []
|
13
35
|
description: Safe implementation of String#intern
|
14
36
|
email: rusnackoj@gmail.com
|
@@ -17,10 +39,13 @@ extensions:
|
|
17
39
|
- ext/symbol_defined/extconf.rb
|
18
40
|
extra_rdoc_files: []
|
19
41
|
files:
|
42
|
+
- .travis.yml
|
20
43
|
- Gemfile
|
44
|
+
- History.md
|
21
45
|
- LICENSE
|
22
46
|
- README.md
|
23
47
|
- Rakefile
|
48
|
+
- certs/gem-jrusnack.pem
|
24
49
|
- ext/symbol_defined/extconf.rb
|
25
50
|
- ext/symbol_defined/symbol_defined.c
|
26
51
|
- lib/safe_intern.rb
|
metadata.gz.sig
ADDED