util_pack 0.1.0 → 0.1.1

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: 9ade7def795eb1e7a3c9d34dee534b5b38da3c73
4
- data.tar.gz: cfd3cdc16ea9f9efa1053e16b806dc776b5d535a
3
+ metadata.gz: 64e3b81d6d9d4bc12f9d3f47b080f12d323920be
4
+ data.tar.gz: 43da78e938d96ff12a5d16fc85ddc0c4f2f1b817
5
5
  SHA512:
6
- metadata.gz: 8cec7a8dfc0c403922bfcc6bf7e28970258b8c97db7db01fd5ac2fc6ceb5348eb98f73868e61cce2c2ecfc0603a9115c870ad8cd5a29f2e3b6ddf39076f96cb3
7
- data.tar.gz: f59059de53f8b19563737bf8fd10b63e882ac0975e8fc4b78f2c9747cc2e9d55c7f086952c0955a0e9eb6aaf34533db93e635c798c268466fb2521936dc93ce7
6
+ metadata.gz: 603fe79bef7495a5de22b1a14b89dc87fea15a22bf00600882d85575228288f207d4c45145a6fcb2734ac102ce32c106985fcc58f2929308c1cf49bf0ee270c3
7
+ data.tar.gz: 2c0bdb1632d9a01dd3f082be7e32773cd0438c1f3d556552f34d0ac268126059f58b6aab7f8317feb82e886fa5b6770f11b60a3406035c39b12925a985ab2d0a
@@ -1,3 +1,3 @@
1
1
  module UtilPack
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/util_pack.rb CHANGED
@@ -11,4 +11,11 @@ module UtilPack
11
11
  }
12
12
  end
13
13
  end
14
+
15
+ module_function
16
+
17
+ def constantize(class_name)
18
+ return nil unless /\A(?:::)?([A-Z]\w*(?:::[A-Z]\w*)*)\z/ =~ class_name
19
+ Object.module_eval("::#{$1}", __FILE__, __LINE__)
20
+ end
14
21
  end
data/util_pack.gemspec CHANGED
@@ -18,4 +18,5 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.add_development_dependency "bundler", "~> 1.9"
20
20
  spec.add_development_dependency "rake", "~> 10.0"
21
+ spec.add_development_dependency "rspec", "~> 3"
21
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: util_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - inre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-03 00:00:00.000000000 Z
11
+ date: 2015-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
41
55
  description:
42
56
  email:
43
57
  - inre.storm@gmail.com
@@ -75,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
89
  version: '0'
76
90
  requirements: []
77
91
  rubyforge_project:
78
- rubygems_version: 2.4.3
92
+ rubygems_version: 2.4.6
79
93
  signing_key:
80
94
  specification_version: 4
81
95
  summary: UtilPack is a collection utility classes