embargo 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/embargo.rb +33 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6fe305bc963bb3d8c06ca14cc26d86714f4cd00
|
4
|
+
data.tar.gz: 576e202902a2eba26e45442df8d5c5c0c55fa23e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06f4a15ec3b2acef5a2991b712420b5f8dd10c8b38f3266485847d814c8719870d2177ebfe0d812edb1ddc677b4afe34cafc3fb99c8350fa86a63a4c8db5837b
|
7
|
+
data.tar.gz: 19770197e89acc90f134f385551a64487ef53367027d02c3691671ff2b69be530c25cc7b2e6aec58e642f3315e13e5d623094c07888c18cabe671983bd29fd58
|
data/lib/embargo.rb
CHANGED
@@ -38,6 +38,9 @@ class Embargo
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
#################
|
42
|
+
# Content For
|
43
|
+
#################
|
41
44
|
class Cuba
|
42
45
|
module Render
|
43
46
|
def content_for(key, &block)
|
@@ -54,6 +57,36 @@ class Cuba
|
|
54
57
|
end
|
55
58
|
end
|
56
59
|
end
|
60
|
+
|
61
|
+
#################
|
62
|
+
# Blank
|
63
|
+
#################
|
64
|
+
class Object
|
65
|
+
def blank?
|
66
|
+
respond_to?(:empty?) ? !!empty? : !self
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
#################
|
71
|
+
# Humanize
|
72
|
+
#################
|
73
|
+
class String
|
74
|
+
def humanize
|
75
|
+
sub(/\A_+/, '')
|
76
|
+
.tr('_', ' ')
|
77
|
+
.sub(/\A\w/) { |match| match.upcase }
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
class Symbol
|
82
|
+
def humanize
|
83
|
+
to_s.humanize
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
#################
|
88
|
+
# Project Files
|
89
|
+
#################
|
57
90
|
Dir[Embargo.app_directory+"/lib/*.rb"].each {|file| require file }
|
58
91
|
Dir[Embargo.app_directory+"/config/initializers/*.rb"].each {|file| require file }
|
59
92
|
Dir[Embargo.app_directory+"/app/models/*.rb"].each {|file| require file }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embargo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Fleming
|
@@ -184,7 +184,7 @@ description: Embargo framework!
|
|
184
184
|
email:
|
185
185
|
- eric@traitify.com
|
186
186
|
- carson@traitify.com
|
187
|
-
-
|
187
|
+
- katie@traitify.com
|
188
188
|
executables:
|
189
189
|
- embargo
|
190
190
|
extensions: []
|