vidibus-core_extensions 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +1 -1
- data/README.md +2 -4
- data/lib/vidibus/core_extensions/object.rb +0 -15
- data/lib/vidibus/core_extensions/version.rb +1 -1
- metadata +24 -41
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fc959a4f11afee264f5f7a1ec9b6417d57b75d3d
|
4
|
+
data.tar.gz: 5de530a937eac950279c8d80e8ce48665e9342e6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4e2de161eefbcbae5e54bbdf71016a1f900c11bd59e924d1c93b15785d243360429a0d01abf92c153f6d4401e96ef7bdf0c340740c365b1cc346f1df91d55f25
|
7
|
+
data.tar.gz: 475a1f1ac617bc00f968485b1950b686c478dabe70399ed50cc7ccaf85f15e13653d3f3e9fbd2ab1753714a5d4d0f05b7858baf26d9eefc5e2a7d82c0f72e603
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,13 +1,11 @@
|
|
1
1
|
# Vidibus::CoreExtensions [![Build Status](https://travis-ci.org/vidibus/vidibus-core_extensions.png)](https://travis-ci.org/vidibus/vidibus-core_extensions)
|
2
2
|
|
3
|
-
This gem is part of the open source SOA framework Vidibus: http://vidibus.org
|
4
|
-
|
5
3
|
It provides some extensions to the ruby core.
|
6
4
|
|
7
5
|
|
8
6
|
## Installation
|
9
7
|
|
10
|
-
Add `gem "vidibus-
|
8
|
+
Add `gem "vidibus-core_extensions"` to your Gemfile. Then call `bundle install` on your console.
|
11
9
|
|
12
10
|
|
13
11
|
# Usage
|
@@ -88,4 +86,4 @@ Returns a string that may be used as permalink. Example:
|
|
88
86
|
|
89
87
|
## Copyright
|
90
88
|
|
91
|
-
Copyright (c) 2010-
|
89
|
+
Copyright (c) 2010-2019 Andre Pankratz. See LICENSE for details.
|
@@ -1,19 +1,4 @@
|
|
1
1
|
class Object
|
2
|
-
|
3
|
-
# Tries to use a method on object.
|
4
|
-
#
|
5
|
-
# Example:
|
6
|
-
# something.try!(:else) # => nil
|
7
|
-
#
|
8
|
-
def try!(method)
|
9
|
-
begin
|
10
|
-
send(method)
|
11
|
-
rescue NoMethodError
|
12
|
-
rescue => e
|
13
|
-
raise e
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
2
|
# Turns object into a key-value pair.
|
18
3
|
# Stolen from active_support/core_ext
|
19
4
|
def to_query(key)
|
metadata
CHANGED
@@ -1,110 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidibus-core_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.5.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- André Pankratz
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2019-11-24 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.0.0
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 1.0.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rdoc
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rspec
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- - ~>
|
59
|
+
- - "~>"
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '2'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- - ~>
|
66
|
+
- - "~>"
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '2'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rr
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - ">="
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: simplecov
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - ">="
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - ">="
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
description: Provides some extensions of the Ruby core
|
@@ -113,43 +100,39 @@ executables: []
|
|
113
100
|
extensions: []
|
114
101
|
extra_rdoc_files: []
|
115
102
|
files:
|
103
|
+
- LICENSE
|
104
|
+
- README.md
|
105
|
+
- Rakefile
|
106
|
+
- lib/vidibus-core_extensions.rb
|
107
|
+
- lib/vidibus/core_extensions.rb
|
116
108
|
- lib/vidibus/core_extensions/array.rb
|
117
109
|
- lib/vidibus/core_extensions/file_utils.rb
|
118
110
|
- lib/vidibus/core_extensions/hash.rb
|
119
111
|
- lib/vidibus/core_extensions/object.rb
|
120
112
|
- lib/vidibus/core_extensions/string.rb
|
121
113
|
- lib/vidibus/core_extensions/version.rb
|
122
|
-
- lib/vidibus/core_extensions.rb
|
123
|
-
- lib/vidibus-core_extensions.rb
|
124
|
-
- LICENSE
|
125
|
-
- README.md
|
126
|
-
- Rakefile
|
127
114
|
homepage: https://github.com/vidibus/vidibus-core_extensions
|
128
115
|
licenses:
|
129
116
|
- MIT
|
117
|
+
metadata: {}
|
130
118
|
post_install_message:
|
131
119
|
rdoc_options: []
|
132
120
|
require_paths:
|
133
121
|
- lib
|
134
122
|
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
-
none: false
|
136
123
|
requirements:
|
137
|
-
- -
|
124
|
+
- - ">="
|
138
125
|
- !ruby/object:Gem::Version
|
139
126
|
version: '0'
|
140
|
-
segments:
|
141
|
-
- 0
|
142
|
-
hash: -2201467609233622024
|
143
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
|
-
none: false
|
145
128
|
requirements:
|
146
|
-
- -
|
129
|
+
- - ">="
|
147
130
|
- !ruby/object:Gem::Version
|
148
131
|
version: 1.3.6
|
149
132
|
requirements: []
|
150
133
|
rubyforge_project: vidibus-core_extensions
|
151
|
-
rubygems_version:
|
134
|
+
rubygems_version: 2.6.11
|
152
135
|
signing_key:
|
153
|
-
specification_version:
|
136
|
+
specification_version: 4
|
154
137
|
summary: Provides some extensions of the Ruby core
|
155
138
|
test_files: []
|