ds_doc_wrapper 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/doc_wrapper/base.rb +10 -4
- data/lib/doc_wrapper/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzhmMmFlMDU2NTgyYzdjYzkzZTUzNTZiMTY1NTM0ZWQ3YWMyMDNjYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzIxMmI1MzQwNjNkOGZmMjkwOTIyOWZlZTFmZGRkNDZlNjcyNDdhMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmZlNzRkMWQyYWE1MDEwM2VjYWZkZjE3ZjYyZGI1MWNhMzA1MTE0YzBkMzdj
|
10
|
+
YjdjNzgwZWI4MDYzNDhlMGU2Y2Y0ZDNjZTUzMTQ4MzM0NGFhODkwOTQ5Nzdi
|
11
|
+
ZTdhOTkwMmE4OTE4YjNjZmZkNGE5NjNjYjIxMDdhYTY0M2Y0YjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTg0ZDNmZDBkYjhkMThmNGUxODg0NjUzMTM0MDNmZjliOTZhYzhhNThlNGM5
|
14
|
+
YTYyMjFmNmJkYzI5MzAyOWFjMTI1ZWIzNzM1MDZhNjMyZWM5OTRkY2VmMDM4
|
15
|
+
Zjg1OWFiNzFhNGViZmQ4NmE1MmM4ZTc2OTY0NDI3NmQzNGQwYWU=
|
data/lib/doc_wrapper/base.rb
CHANGED
@@ -22,15 +22,21 @@ private
|
|
22
22
|
|
23
23
|
opts = def_opts.merge(opts) if def_opts
|
24
24
|
|
25
|
-
modulle = "#{opts[:module].to_s.underscore}
|
25
|
+
modulle = "#{opts[:module].to_s.underscore}" if opts[:module]
|
26
26
|
prefix = "#{opts[:prefix]}_" if opts[:prefix]
|
27
27
|
sufix = "_#{opts[:sufix]}" if opts[:sufix]
|
28
28
|
|
29
29
|
|
30
|
-
prefix = "
|
31
|
-
modulle = "
|
30
|
+
prefix = "doc_By_" unless prefix
|
31
|
+
modulle = "doc_wrapper" unless modulle
|
32
32
|
|
33
|
-
|
33
|
+
modulle_arr = origem.split('/')
|
34
|
+
origem = modulle_arr.pop
|
35
|
+
|
36
|
+
modulle_arr.insert(0, modulle)
|
37
|
+
modulle = modulle_arr.join('/') + '/'
|
38
|
+
|
39
|
+
"#{modulle}#{prefix}#{origem}#{sufix}".camelize
|
34
40
|
end
|
35
41
|
|
36
42
|
def self.infer_doc_origem src, opts
|
data/lib/doc_wrapper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ds_doc_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nardele salomon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.2'
|
41
41
|
description: A doc converter to another doc. Doc is a data structure like a hash,
|
42
42
|
array or a simple string
|
43
43
|
email:
|