embargo 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/embargo +1 -1
- data/boilerplate/project/Procfile +1 -1
- data/boilerplate/project/{assets → app/assets}/gulpfile.js +0 -0
- data/boilerplate/project/{assets → app/assets}/package.json +0 -0
- data/boilerplate/project/{assets → app/assets}/src/apple-touch-icon-precomposed.png +0 -0
- data/boilerplate/project/{assets → app/assets}/src/coffee/_site_init.coffee +0 -0
- data/boilerplate/project/{assets → app/assets}/src/favicon.ico +0 -0
- data/boilerplate/project/{assets → app/assets}/src/humans.txt +0 -0
- data/boilerplate/project/{assets → app/assets}/src/robots.txt +0 -0
- data/boilerplate/project/app/controllers/home_controller.rb +7 -0
- data/boilerplate/project/app/models/my_model.rb +5 -0
- data/boilerplate/project/{views → app/views}/index.haml +0 -0
- data/boilerplate/project/{views → app/views}/layout.haml +0 -0
- data/boilerplate/project/{views → app/views}/partials/_footer.haml +0 -0
- data/boilerplate/project/{views → app/views}/partials/_nav-homepage.haml +0 -0
- data/lib/content_for.rb +1 -16
- data/lib/embargo.rb +23 -11
- metadata +69 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 196ac5f0d1765636a593dd451a42a129a31c5209
|
4
|
+
data.tar.gz: 23b3bae98b17431b46b1977fea444fcbfa98bdd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bff10ee2610952cf82627ff8ed1aa82b40c8f377b480e5f053377f05b0c5eec71440dec44d17b53957c18fe11c5a375b590443f34d133c399e22a49edfac6090
|
7
|
+
data.tar.gz: 99426115787f90c700b3a2f9515fdbb6928821de1fac1e00129f5c1daca514dc62396efd52eb780daa6314a18117e526a8e21e15a08295e225f54277c60cc65a
|
data/bin/embargo
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
server: shotgun --server=thin --port=$PORT config.ru
|
2
|
-
gulp: sh -c 'cd ./assets && gulp'
|
2
|
+
gulp: sh -c 'cd ./app/assets && gulp'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/content_for.rb
CHANGED
@@ -1,16 +1 @@
|
|
1
|
-
|
2
|
-
module Render
|
3
|
-
def content_for(key, &block)
|
4
|
-
if block
|
5
|
-
@_content_for ||= {}
|
6
|
-
buf_was = @haml_buffer.buffer
|
7
|
-
@haml_buffer.buffer = ''
|
8
|
-
yield
|
9
|
-
@_content_for[key] = @haml_buffer.buffer
|
10
|
-
@haml_buffer.buffer = buf_was
|
11
|
-
elsif @_content_for
|
12
|
-
@_content_for[key]
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
1
|
+
|
data/lib/embargo.rb
CHANGED
@@ -3,6 +3,13 @@ require 'cuba/render'
|
|
3
3
|
require 'tilt/haml'
|
4
4
|
require 'haml'
|
5
5
|
|
6
|
+
Cuba.settings[:render] = {
|
7
|
+
template_engine: "haml",
|
8
|
+
views: "./app/views"
|
9
|
+
}
|
10
|
+
|
11
|
+
Cuba.plugin(Cuba::Render)
|
12
|
+
|
6
13
|
class Embargo
|
7
14
|
def self.application
|
8
15
|
Cuba
|
@@ -31,18 +38,23 @@ class Embargo
|
|
31
38
|
end
|
32
39
|
end
|
33
40
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
41
|
+
class Cuba
|
42
|
+
module Render
|
43
|
+
def content_for(key, &block)
|
44
|
+
if block
|
45
|
+
@_content_for ||= {}
|
46
|
+
buf_was = @haml_buffer.buffer
|
47
|
+
@haml_buffer.buffer = ''
|
48
|
+
yield
|
49
|
+
@_content_for[key] = @haml_buffer.buffer
|
50
|
+
@haml_buffer.buffer = buf_was
|
51
|
+
elsif @_content_for
|
52
|
+
@_content_for[key]
|
53
|
+
end
|
42
54
|
end
|
43
55
|
end
|
44
56
|
end
|
45
57
|
|
46
|
-
Dir[Embargo.app_directory+"/
|
47
|
-
|
48
|
-
Dir[Embargo.app_directory+"/
|
58
|
+
Dir[Embargo.app_directory+"/config/initializers/*.rb"].each {|file| require file }
|
59
|
+
Dir[Embargo.app_directory+"/app/models/*.rb"].each {|file| require file }
|
60
|
+
Dir[Embargo.app_directory+"/app/controllers/*_controller.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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Fleming
|
@@ -10,176 +10,176 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-12-
|
13
|
+
date: 2014-12-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: cuba
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 3.3.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 3.3.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
|
-
name:
|
30
|
+
name: foreman
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 0.76.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 0.76.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
|
-
name:
|
44
|
+
name: haml
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
49
|
+
version: 4.0.6
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
56
|
+
version: 4.0.6
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
|
-
name:
|
58
|
+
name: sass
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
63
|
+
version: 3.4.9
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
70
|
+
version: 3.4.9
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
72
|
+
name: i18n
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: 0.6.11
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - '='
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
84
|
+
version: 0.6.11
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
86
|
+
name: activesupport-inflector
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- -
|
89
|
+
- - '='
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
91
|
+
version: 0.1.0
|
92
92
|
type: :runtime
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
|
-
- -
|
96
|
+
- - '='
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
98
|
+
version: 0.1.0
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: unicorn
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - '='
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
105
|
+
version: 4.8.3
|
106
106
|
type: :runtime
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- -
|
110
|
+
- - '='
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
112
|
+
version: 4.8.3
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: pry
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- -
|
117
|
+
- - '='
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
119
|
+
version: 0.10.1
|
120
120
|
type: :development
|
121
121
|
prerelease: false
|
122
122
|
version_requirements: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
|
-
- -
|
124
|
+
- - '='
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
126
|
+
version: 0.10.1
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: rb-fsevent
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
|
-
- -
|
131
|
+
- - '='
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
133
|
+
version: 0.9.4
|
134
134
|
type: :runtime
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
|
-
- -
|
138
|
+
- - '='
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version:
|
140
|
+
version: 0.9.4
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: shotgun
|
143
143
|
requirement: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- -
|
145
|
+
- - '='
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version: '0'
|
147
|
+
version: '0.9'
|
148
148
|
type: :runtime
|
149
149
|
prerelease: false
|
150
150
|
version_requirements: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- -
|
152
|
+
- - '='
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: '0'
|
154
|
+
version: '0.9'
|
155
155
|
- !ruby/object:Gem::Dependency
|
156
156
|
name: thin
|
157
157
|
requirement: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
|
-
- -
|
159
|
+
- - '='
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version:
|
161
|
+
version: 1.6.3
|
162
162
|
type: :runtime
|
163
163
|
prerelease: false
|
164
164
|
version_requirements: !ruby/object:Gem::Requirement
|
165
165
|
requirements:
|
166
|
-
- -
|
166
|
+
- - '='
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
version:
|
168
|
+
version: 1.6.3
|
169
169
|
- !ruby/object:Gem::Dependency
|
170
170
|
name: rack-livereload
|
171
171
|
requirement: !ruby/object:Gem::Requirement
|
172
172
|
requirements:
|
173
|
-
- -
|
173
|
+
- - '='
|
174
174
|
- !ruby/object:Gem::Version
|
175
|
-
version:
|
175
|
+
version: 0.3.15
|
176
176
|
type: :runtime
|
177
177
|
prerelease: false
|
178
178
|
version_requirements: !ruby/object:Gem::Requirement
|
179
179
|
requirements:
|
180
|
-
- -
|
180
|
+
- - '='
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version:
|
182
|
+
version: 0.3.15
|
183
183
|
description: Embargo framework!
|
184
184
|
email:
|
185
185
|
- eric@traitify.com
|
@@ -198,23 +198,25 @@ files:
|
|
198
198
|
- boilerplate/project/Procfile
|
199
199
|
- boilerplate/project/Procfile.prod
|
200
200
|
- boilerplate/project/README.md
|
201
|
-
- boilerplate/project/assets/gulpfile.js
|
202
|
-
- boilerplate/project/assets/package.json
|
203
|
-
- boilerplate/project/assets/src/apple-touch-icon-precomposed.png
|
204
|
-
- boilerplate/project/assets/src/coffee/_site_init.coffee
|
205
|
-
- boilerplate/project/assets/src/favicon.ico
|
206
|
-
- boilerplate/project/assets/src/humans.txt
|
207
|
-
- boilerplate/project/assets/src/robots.txt
|
201
|
+
- boilerplate/project/app/assets/gulpfile.js
|
202
|
+
- boilerplate/project/app/assets/package.json
|
203
|
+
- boilerplate/project/app/assets/src/apple-touch-icon-precomposed.png
|
204
|
+
- boilerplate/project/app/assets/src/coffee/_site_init.coffee
|
205
|
+
- boilerplate/project/app/assets/src/favicon.ico
|
206
|
+
- boilerplate/project/app/assets/src/humans.txt
|
207
|
+
- boilerplate/project/app/assets/src/robots.txt
|
208
|
+
- boilerplate/project/app/controllers/home_controller.rb
|
209
|
+
- boilerplate/project/app/models/my_model.rb
|
210
|
+
- boilerplate/project/app/views/index.haml
|
211
|
+
- boilerplate/project/app/views/layout.haml
|
212
|
+
- boilerplate/project/app/views/partials/_footer.haml
|
213
|
+
- boilerplate/project/app/views/partials/_nav-homepage.haml
|
208
214
|
- boilerplate/project/config.ru
|
209
215
|
- boilerplate/project/config/local_variables.rb
|
210
216
|
- boilerplate/project/public/apple-touch-icon-precomposed.png
|
211
217
|
- boilerplate/project/public/favicon.ico
|
212
218
|
- boilerplate/project/public/humans.txt
|
213
219
|
- boilerplate/project/public/robots.txt
|
214
|
-
- boilerplate/project/views/index.haml
|
215
|
-
- boilerplate/project/views/layout.haml
|
216
|
-
- boilerplate/project/views/partials/_footer.haml
|
217
|
-
- boilerplate/project/views/partials/_nav-homepage.haml
|
218
220
|
- lib/config/environments/development.rb
|
219
221
|
- lib/config/init.rb
|
220
222
|
- lib/config/unicorn.rb
|