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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTA3ZDRmMTM5OTVmMGQ3ZmQwZTRmMmVjN2NhOGI5ZjU2NjdiYjI3NQ==
4
+ MzhmMmFlMDU2NTgyYzdjYzkzZTUzNTZiMTY1NTM0ZWQ3YWMyMDNjYQ==
5
5
  data.tar.gz: !binary |-
6
- ODZjMmYxOTNhYjk2MTFiNTZlNDg1YjkzMzE1YzZkMzUzMjQ3NmIzMA==
6
+ MzIxMmI1MzQwNjNkOGZmMjkwOTIyOWZlZTFmZGRkNDZlNjcyNDdhMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTZjZmYwMjU0Yzg4ZjI1OWVlNzJmMmNiNDdmODc2MGIyMzUxZDBiYmMzNGY1
10
- ODliNjBjOWQ4OGQ2N2U3NDM3NWFhYjAxOTM2M2QyNGNkYWNmMzU2NmZjNGY0
11
- NzQ3ODUzMmViOGQyZGVlNThiNjQxYzIzZWE2ZDRhNzFlN2FiZTU=
9
+ ZmZlNzRkMWQyYWE1MDEwM2VjYWZkZjE3ZjYyZGI1MWNhMzA1MTE0YzBkMzdj
10
+ YjdjNzgwZWI4MDYzNDhlMGU2Y2Y0ZDNjZTUzMTQ4MzM0NGFhODkwOTQ5Nzdi
11
+ ZTdhOTkwMmE4OTE4YjNjZmZkNGE5NjNjYjIxMDdhYTY0M2Y0YjY=
12
12
  data.tar.gz: !binary |-
13
- ZWNmZWY0NjZmMzhhOTI1YzhhNWNmMjdiMDIxOWFlMzliNzhmMGNhYTA4ZThl
14
- YWEyYzQwN2NlZjUxNjU2NjUxYWQyYjQyNDU4MDA1NTJjY2EyNjNjM2JiNDc2
15
- MWU1MjRhZTk3ZjQ1OTEyYjQ0NDI2M2Y0MzJmY2IyYzRiMzcwZjg=
13
+ MTg0ZDNmZDBkYjhkMThmNGUxODg0NjUzMTM0MDNmZjliOTZhYzhhNThlNGM5
14
+ YTYyMjFmNmJkYzI5MzAyOWFjMTI1ZWIzNzM1MDZhNjMyZWM5OTRkY2VmMDM4
15
+ Zjg1OWFiNzFhNGViZmQ4NmE1MmM4ZTc2OTY0NDI3NmQzNGQwYWU=
@@ -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}::" if opts[:module]
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 = "DocBy" unless prefix
31
- modulle = "DocWrapper::" unless modulle
30
+ prefix = "doc_By_" unless prefix
31
+ modulle = "doc_wrapper" unless modulle
32
32
 
33
- "#{modulle}#{prefix.camelize}#{origem.camelize}#{sufix}".camelize
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
@@ -1,3 +1,3 @@
1
1
  module DocWrapper
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
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.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: 2014-09-09 00:00:00.000000000 Z
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.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.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: