dtk-common-core 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dtk-common-core/version.rb +1 -1
- data/lib/dtk_common_core.rb +6 -5
- data/lib/pretty_print_form.rb +31 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29af3e06865757af513fd4ed43868a2c76822935
|
4
|
+
data.tar.gz: d16daf324cabc533c3fb4bc80a4704f87a974ac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 004de8e0f6e8a04c5ef91f287207d5b71c68a982e1f9ce23ed0dafebb3085d2570955cf6e8755e48c8b7c69d94a4ef7028e6992876daecf457df92c2d60de483
|
7
|
+
data.tar.gz: b64939ed454248a9be9e75e339e9adeb9b74154234778bbb477c08ce76bf3a0bd12061ed3efb7776f69f756d1b819e44ff3c77c31139e5e8a35495fc9ec316ca
|
data/lib/dtk_common_core.rb
CHANGED
@@ -15,8 +15,9 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
-
require File.expand_path('auxiliary
|
19
|
-
require File.expand_path('errors
|
20
|
-
require File.expand_path('hash_object
|
21
|
-
require File.expand_path('log
|
22
|
-
require File.expand_path('response
|
18
|
+
require File.expand_path('auxiliary', File.dirname(__FILE__))
|
19
|
+
require File.expand_path('errors', File.dirname(__FILE__))
|
20
|
+
require File.expand_path('hash_object', File.dirname(__FILE__))
|
21
|
+
require File.expand_path('log', File.dirname(__FILE__))
|
22
|
+
require File.expand_path('response', File.dirname(__FILE__))
|
23
|
+
require File.expand_path('pretty_print_form', File.dirname(__FILE__))
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (C) 2010-2016 dtk contributors
|
3
|
+
#
|
4
|
+
# This file is part of the dtk project.
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
module DTK
|
19
|
+
module Common
|
20
|
+
module PrettyPrintForm
|
21
|
+
# opts can have terms:
|
22
|
+
# :namespace
|
23
|
+
# :version
|
24
|
+
def self.module_ref(module_name, opts = {})
|
25
|
+
ret = opts[:namespace] ? "#{opts[:namespace]}/#{module_name}" : module_name
|
26
|
+
ret << "(#{opts[:version]})" if opts[:version]
|
27
|
+
ret
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dtk-common-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rich PELAVIN
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09
|
11
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -31,8 +31,8 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
-
|
35
|
-
-
|
34
|
+
- .gitignore
|
35
|
+
- .license_header
|
36
36
|
- Gemfile
|
37
37
|
- LICENSE
|
38
38
|
- README.md
|
@@ -46,6 +46,7 @@ files:
|
|
46
46
|
- lib/errors/rest_error.rb
|
47
47
|
- lib/hash_object.rb
|
48
48
|
- lib/log.rb
|
49
|
+
- lib/pretty_print_form.rb
|
49
50
|
- lib/response.rb
|
50
51
|
homepage: https://github.com/rich-reactor8/dtk-common-repo
|
51
52
|
licenses:
|
@@ -57,17 +58,17 @@ require_paths:
|
|
57
58
|
- lib
|
58
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
59
60
|
requirements:
|
60
|
-
- -
|
61
|
+
- - '>='
|
61
62
|
- !ruby/object:Gem::Version
|
62
63
|
version: '0'
|
63
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
65
|
requirements:
|
65
|
-
- -
|
66
|
+
- - '>='
|
66
67
|
- !ruby/object:Gem::Version
|
67
68
|
version: '0'
|
68
69
|
requirements: []
|
69
70
|
rubyforge_project:
|
70
|
-
rubygems_version: 2.
|
71
|
+
rubygems_version: 2.0.14.1
|
71
72
|
signing_key:
|
72
73
|
specification_version: 4
|
73
74
|
summary: Common libraries used for DTK CLI client.
|