pinkman 0.9.1.11 → 0.9.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38e882d9c685233af48ac44341399f82887fa17a
4
- data.tar.gz: 40d26868be54490fc0b51ad11539341f1cf2d797
3
+ metadata.gz: 6e467fb877ec17548f15e41d4938095f3871a2ab
4
+ data.tar.gz: 23e589e765aae2cf3d8608b036fac19241e061c1
5
5
  SHA512:
6
- metadata.gz: 70d8e01b3f4f326a8b9af982e449c6f78fe1169daee622ff03877132b83cf50fa48ff72db01689e8e20168de633ec8aeabe470ea344e0b0f9d200c4df699930f
7
- data.tar.gz: 0b1d2a5e927ece49523e564a8fbbbb5953387da0fcefbb7826c3a13e0187ecb2649c8dd155db2eb257cce27a7e78d9c69660a0bdcc3f442fffe0c36bfe45940d
6
+ metadata.gz: 0c460440b15566913d8dfeb6b28f7d35bdc6a20c97d372f095b7bfe4010dd8a861321104dc9860e2bb506fc988856da18be1bcca21c7a31691f470947afb11a9
7
+ data.tar.gz: e430e4d4ae0a21d302b15b8d0e936540304b8747599404c50e1f67cd496b189f71418777e0065fbfbfcd2357c1044010e53d10653678ed9b00c283a9be05d9ab
@@ -41,20 +41,12 @@ module PinkmanHelper
41
41
  w('pinkey')
42
42
  end
43
43
 
44
- def p_if condition, &block
45
- raw "\n{{#if #{condition}}}\n \t #{capture(&block)} \n{{/if}}\n" if block_given?
44
+ def _if condition, &block
45
+ wrap_in(condition,&block)
46
46
  end
47
47
 
48
- def p_then &block
49
- capture(&block)
48
+ def _unless condition, &block
49
+ raw "\n{{^ #{condition} }}\n \t #{capture(&block)} \n{{/ #{condition} }}\n" if block_given?
50
50
  end
51
51
 
52
- def p_else &block
53
- raw "\n{{else}}\n \t #{capture(&block)}" if block_given?
54
- end
55
-
56
- def p_unless
57
- end
58
-
59
-
60
52
  end
@@ -21,15 +21,15 @@ module Pinkman
21
21
  end
22
22
 
23
23
  def app_name
24
- Rails.application.class.parent_name
24
+ 'App'
25
25
  end
26
26
 
27
27
  def app_object_name
28
- app_name.camelize + 'Object'
28
+ app_name + 'Object'
29
29
  end
30
30
 
31
31
  def app_collection_name
32
- app_name.camelize + 'Collection'
32
+ app_name + 'Collection'
33
33
  end
34
34
 
35
35
  end
@@ -38,15 +38,15 @@ module Pinkman
38
38
  end
39
39
 
40
40
  def app_name
41
- Rails.application.class.parent_name
41
+ 'App'
42
42
  end
43
43
 
44
44
  def app_object_name
45
- app_name.camelize + 'Object'
45
+ app_name + 'Object'
46
46
  end
47
47
 
48
48
  def app_collection_name
49
- app_name.camelize + 'Collection'
49
+ app_name + 'Collection'
50
50
  end
51
51
 
52
52
  end
@@ -1,3 +1,3 @@
1
1
  module Pinkman
2
- VERSION = "0.9.1.11"
2
+ VERSION = "0.9.1.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinkman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1.11
4
+ version: 0.9.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agilso Oliveira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-28 00:00:00.000000000 Z
11
+ date: 2017-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler