embargo 0.1.5 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/boilerplate/project/app/{controllers/home_controller.rb → api_controller.rb} +3 -0
- data/boilerplate/project/app/models/my_model.rb +4 -2
- data/boilerplate/project/app/pages_controller.rb +13 -0
- data/boilerplate/project/app/views/index.haml +2 -9
- data/boilerplate/project/app/views/partials/_nav-homepage.haml +0 -14
- data/lib/embargo.rb +28 -11
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54222070b2811497cacc7a3971671ddea9dd09f5
|
4
|
+
data.tar.gz: 0ed331cf8426646e967768374b62d50fca5249d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57e93668aa4e2d440d5cccca750d86bf67dc583f8cf90b4baee49af2ac0f3e1972c89ca3d3c6135d638c0a6dc51cf8017d138bd839d8ef6ec146e81d811256cb
|
7
|
+
data.tar.gz: bea9cf9de0781ea4d3ef88a2b4913830263e6b0e49b0dc3098d31d2219fc399a454e4a70e76c0fe81911673a5a0ab215d28574411ef014fd8b109170f073cf01
|
@@ -1,14 +0,0 @@
|
|
1
|
-
%header.header(role="banner")
|
2
|
-
.wrapper
|
3
|
-
.row
|
4
|
-
.header__icon
|
5
|
-
%div
|
6
|
-
%svg(version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" preserveAspectRatio="none")
|
7
|
-
%circle(cx="8" cy="8" r="6.24" transform="rotate(90 8 8)")
|
8
|
-
|
9
|
-
%nav.header__nav
|
10
|
-
%ul
|
11
|
-
%li
|
12
|
-
%a(href="#page" title="How It Works") how it works?
|
13
|
-
%li
|
14
|
-
%a(href="mailto:support@yoursite.com" title="Contact") contact
|
data/lib/embargo.rb
CHANGED
@@ -12,9 +12,8 @@ Cuba.plugin(Cuba::Render)
|
|
12
12
|
|
13
13
|
class Embargo
|
14
14
|
def self.application
|
15
|
-
|
15
|
+
Pages
|
16
16
|
end
|
17
|
-
|
18
17
|
def self.app_directory
|
19
18
|
@@magis_working_directory ||= Dir.pwd
|
20
19
|
end
|
@@ -27,15 +26,27 @@ class Embargo
|
|
27
26
|
project_file_name = Embargo.app_directory + "/" + file_name
|
28
27
|
project_file_exists = File.exist?(project_file_name)
|
29
28
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
29
|
+
if project_file_exists
|
30
|
+
require project_file_name
|
31
|
+
else
|
32
|
+
embargo_file_name = Embargo.directory + "/" + file_name
|
33
|
+
embargo_file_exists = File.exist?(embargo_file_name)
|
34
|
+
if embargo_file_exists
|
35
|
+
require embargo_file_name
|
36
|
+
end
|
37
|
+
end
|
38
38
|
end
|
39
|
+
|
40
|
+
def self.action(&block)
|
41
|
+
@@actions ||= Array.new
|
42
|
+
@@actions.push(block)
|
43
|
+
end
|
44
|
+
def self.actions
|
45
|
+
$actions ||= @@actions
|
46
|
+
end
|
47
|
+
def self.first_load?
|
48
|
+
!$actions
|
49
|
+
end
|
39
50
|
end
|
40
51
|
|
41
52
|
#################
|
@@ -84,10 +95,16 @@ class Symbol
|
|
84
95
|
end
|
85
96
|
end
|
86
97
|
|
98
|
+
class Api < Cuba; end
|
99
|
+
class Pages < Cuba; end
|
100
|
+
|
87
101
|
#################
|
88
102
|
# Project Files
|
89
103
|
#################
|
90
104
|
Dir[Embargo.app_directory+"/lib/*.rb"].each {|file| require file }
|
91
105
|
Dir[Embargo.app_directory+"/config/initializers/*.rb"].each {|file| require file }
|
92
106
|
Dir[Embargo.app_directory+"/app/models/*.rb"].each {|file| require file }
|
93
|
-
Dir[Embargo.app_directory+"/app/
|
107
|
+
Dir[Embargo.app_directory+"/app/serializers/*.rb"].each {|file| require file }
|
108
|
+
Embargo.require_file("app/pages_controller.rb")
|
109
|
+
Embargo.require_file("app/api_controller.rb")
|
110
|
+
Embargo.require_file("app/pages_controller.rb")
|
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.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Fleming
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-12-
|
13
|
+
date: 2014-12-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cuba
|
@@ -124,6 +124,20 @@ dependencies:
|
|
124
124
|
- - '='
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: 0.10.1
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: rack-test
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - '='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 0.10.1
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - '='
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: 0.10.1
|
127
141
|
- !ruby/object:Gem::Dependency
|
128
142
|
name: rb-fsevent
|
129
143
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,6 +212,7 @@ files:
|
|
198
212
|
- boilerplate/project/Procfile
|
199
213
|
- boilerplate/project/Procfile.prod
|
200
214
|
- boilerplate/project/README.md
|
215
|
+
- boilerplate/project/app/api_controller.rb
|
201
216
|
- boilerplate/project/app/assets/gulpfile.js
|
202
217
|
- boilerplate/project/app/assets/package.json
|
203
218
|
- boilerplate/project/app/assets/src/apple-touch-icon-precomposed.png
|
@@ -205,8 +220,8 @@ files:
|
|
205
220
|
- boilerplate/project/app/assets/src/favicon.ico
|
206
221
|
- boilerplate/project/app/assets/src/humans.txt
|
207
222
|
- boilerplate/project/app/assets/src/robots.txt
|
208
|
-
- boilerplate/project/app/controllers/home_controller.rb
|
209
223
|
- boilerplate/project/app/models/my_model.rb
|
224
|
+
- boilerplate/project/app/pages_controller.rb
|
210
225
|
- boilerplate/project/app/views/index.haml
|
211
226
|
- boilerplate/project/app/views/layout.haml
|
212
227
|
- boilerplate/project/app/views/partials/_footer.haml
|