y_support 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/lib/y_support/all.rb +40 -0
- data/lib/y_support/core_ext/array/misc.rb +45 -0
- data/lib/y_support/core_ext/array.rb +1 -0
- data/lib/y_support/core_ext/enumerable/misc.rb +32 -0
- data/lib/y_support/core_ext/enumerable.rb +1 -0
- data/lib/y_support/core_ext/hash/misc.rb +90 -0
- data/lib/y_support/core_ext/hash.rb +1 -0
- data/lib/y_support/core_ext/module/misc.rb +43 -0
- data/lib/y_support/core_ext/module.rb +2 -0
- data/lib/y_support/core_ext/numeric/misc.rb +13 -0
- data/lib/y_support/core_ext/numeric.rb +1 -0
- data/lib/y_support/core_ext/object/misc.rb +31 -0
- data/lib/y_support/core_ext/object.rb +1 -0
- data/lib/y_support/core_ext/string/misc.rb +80 -0
- data/lib/y_support/core_ext/string.rb +1 -0
- data/lib/y_support/core_ext/symbol/misc.rb +19 -0
- data/lib/y_support/core_ext/symbol.rb +1 -0
- data/lib/y_support/core_ext.rb +5 -0
- data/lib/y_support/inert_recorder.rb +51 -0
- data/lib/y_support/local_object.rb +39 -0
- data/lib/y_support/misc.rb +28 -0
- data/lib/y_support/name_magic.rb +373 -0
- data/lib/y_support/null_object.rb +96 -0
- data/lib/y_support/respond_to.rb +32 -0
- data/lib/y_support/stdlib_ext/matrix/misc.rb +134 -0
- data/lib/y_support/stdlib_ext/matrix.rb +2 -0
- data/lib/y_support/stdlib_ext.rb +3 -0
- data/lib/y_support/typing/array/typing.rb +17 -0
- data/lib/y_support/typing/array.rb +1 -0
- data/lib/y_support/typing/enumerable/typing.rb +75 -0
- data/lib/y_support/typing/enumerable.rb +1 -0
- data/lib/y_support/typing/hash/typing.rb +76 -0
- data/lib/y_support/typing/hash.rb +1 -0
- data/lib/y_support/typing/module/typing.rb +42 -0
- data/lib/y_support/typing/module.rb +1 -0
- data/lib/y_support/typing/object/typing.rb +178 -0
- data/lib/y_support/typing/object.rb +1 -0
- data/lib/y_support/typing.rb +43 -0
- data/lib/y_support/unicode.rb +76 -0
- data/lib/y_support/version.rb +3 -0
- data/lib/y_support.rb +33 -0
- data/test/inert_recorder_test.rb +34 -0
- data/test/local_object_test.rb +37 -0
- data/test/misc_test/test_module/fixture_class.rb +8 -0
- data/test/misc_test.rb +289 -0
- data/test/name_magic_test.rb +57 -0
- data/test/null_object_test.rb +50 -0
- data/test/respond_to_test.rb +46 -0
- data/test/typing_test.rb +213 -0
- data/test/unicode_test.rb +39 -0
- data/y_support.gemspec +22 -0
- metadata +137 -0
data/y_support.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
#encoding: utf-8
|
2
|
+
|
3
|
+
require File.expand_path('../lib/y_support/version', __FILE__)
|
4
|
+
|
5
|
+
Gem::Specification.new do |gem|
|
6
|
+
gem.authors = ["boris"]
|
7
|
+
gem.email = ["\"boris@iis.sinica.edu.tw\""]
|
8
|
+
gem.description = %q{Support library used by y_... gems.}
|
9
|
+
gem.summary = %q{LocalObject, RespondTo, InertRecorder, NullObject, NameMagic, core extensions, typing etc.}
|
10
|
+
gem.homepage = ""
|
11
|
+
|
12
|
+
gem.files = `git ls-files`.split($\)
|
13
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
14
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
15
|
+
gem.name = "y_support"
|
16
|
+
gem.require_paths = ["lib"]
|
17
|
+
gem.version = YSupport::VERSION
|
18
|
+
|
19
|
+
gem.add_dependency "activesupport"
|
20
|
+
|
21
|
+
gem.add_development_dependency "shoulda"
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,137 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: y_support
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- boris
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-04-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: shoulda
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: Support library used by y_... gems.
|
42
|
+
email:
|
43
|
+
- '"boris@iis.sinica.edu.tw"'
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- .gitignore
|
49
|
+
- Gemfile
|
50
|
+
- LICENSE
|
51
|
+
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- lib/y_support.rb
|
54
|
+
- lib/y_support/all.rb
|
55
|
+
- lib/y_support/core_ext.rb
|
56
|
+
- lib/y_support/core_ext/array.rb
|
57
|
+
- lib/y_support/core_ext/array/misc.rb
|
58
|
+
- lib/y_support/core_ext/enumerable.rb
|
59
|
+
- lib/y_support/core_ext/enumerable/misc.rb
|
60
|
+
- lib/y_support/core_ext/hash.rb
|
61
|
+
- lib/y_support/core_ext/hash/misc.rb
|
62
|
+
- lib/y_support/core_ext/module.rb
|
63
|
+
- lib/y_support/core_ext/module/misc.rb
|
64
|
+
- lib/y_support/core_ext/numeric.rb
|
65
|
+
- lib/y_support/core_ext/numeric/misc.rb
|
66
|
+
- lib/y_support/core_ext/object.rb
|
67
|
+
- lib/y_support/core_ext/object/misc.rb
|
68
|
+
- lib/y_support/core_ext/string.rb
|
69
|
+
- lib/y_support/core_ext/string/misc.rb
|
70
|
+
- lib/y_support/core_ext/symbol.rb
|
71
|
+
- lib/y_support/core_ext/symbol/misc.rb
|
72
|
+
- lib/y_support/inert_recorder.rb
|
73
|
+
- lib/y_support/local_object.rb
|
74
|
+
- lib/y_support/misc.rb
|
75
|
+
- lib/y_support/name_magic.rb
|
76
|
+
- lib/y_support/null_object.rb
|
77
|
+
- lib/y_support/respond_to.rb
|
78
|
+
- lib/y_support/stdlib_ext.rb
|
79
|
+
- lib/y_support/stdlib_ext/matrix.rb
|
80
|
+
- lib/y_support/stdlib_ext/matrix/misc.rb
|
81
|
+
- lib/y_support/typing.rb
|
82
|
+
- lib/y_support/typing/array.rb
|
83
|
+
- lib/y_support/typing/array/typing.rb
|
84
|
+
- lib/y_support/typing/enumerable.rb
|
85
|
+
- lib/y_support/typing/enumerable/typing.rb
|
86
|
+
- lib/y_support/typing/hash.rb
|
87
|
+
- lib/y_support/typing/hash/typing.rb
|
88
|
+
- lib/y_support/typing/module.rb
|
89
|
+
- lib/y_support/typing/module/typing.rb
|
90
|
+
- lib/y_support/typing/object.rb
|
91
|
+
- lib/y_support/typing/object/typing.rb
|
92
|
+
- lib/y_support/unicode.rb
|
93
|
+
- lib/y_support/version.rb
|
94
|
+
- test/inert_recorder_test.rb
|
95
|
+
- test/local_object_test.rb
|
96
|
+
- test/misc_test.rb
|
97
|
+
- test/misc_test/test_module/fixture_class.rb
|
98
|
+
- test/name_magic_test.rb
|
99
|
+
- test/null_object_test.rb
|
100
|
+
- test/respond_to_test.rb
|
101
|
+
- test/typing_test.rb
|
102
|
+
- test/unicode_test.rb
|
103
|
+
- y_support.gemspec
|
104
|
+
homepage: ''
|
105
|
+
licenses: []
|
106
|
+
metadata: {}
|
107
|
+
post_install_message:
|
108
|
+
rdoc_options: []
|
109
|
+
require_paths:
|
110
|
+
- lib
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - '>='
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0'
|
116
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
requirements: []
|
122
|
+
rubyforge_project:
|
123
|
+
rubygems_version: 2.0.0
|
124
|
+
signing_key:
|
125
|
+
specification_version: 4
|
126
|
+
summary: LocalObject, RespondTo, InertRecorder, NullObject, NameMagic, core extensions,
|
127
|
+
typing etc.
|
128
|
+
test_files:
|
129
|
+
- test/inert_recorder_test.rb
|
130
|
+
- test/local_object_test.rb
|
131
|
+
- test/misc_test.rb
|
132
|
+
- test/misc_test/test_module/fixture_class.rb
|
133
|
+
- test/name_magic_test.rb
|
134
|
+
- test/null_object_test.rb
|
135
|
+
- test/respond_to_test.rb
|
136
|
+
- test/typing_test.rb
|
137
|
+
- test/unicode_test.rb
|