pullentity-client 0.1.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +2 -0
- data/README.md +1 -1
- data/lib/pullentity-client/cli.rb +1 -1
- data/lib/pullentity-client/generate/auth.rb +32 -18
- data/lib/pullentity-client/generate/exporter.rb +14 -2
- data/lib/pullentity-client/generate/theme.rb +3 -3
- data/lib/pullentity-client/templates/app/assets/javascripts/application.js.erb +2 -1
- data/lib/pullentity-client/templates/app/assets/javascripts/config.js.erb +6 -0
- data/lib/pullentity-client/templates/app/assets/stylesheets/customtheme.css.scss +14 -8
- data/lib/pullentity-client/templates/app/index.html.haml +5 -3
- data/lib/pullentity-client/templates/app/views/list.haml +6 -6
- data/lib/pullentity-client/templates/app/views/shared/body.haml +5 -5
- data/lib/pullentity-client/templates/app/views/shared/head.haml +1 -9
- data/lib/pullentity-client/templates/app/views/shared/js.haml +0 -3
- data/lib/pullentity-client/templates/app/views/themes/home.haml +0 -1
- data/lib/pullentity-client/templates/app/views/themes/list-2.haml +13 -0
- data/lib/pullentity-client/templates/app/views/themes/theme1.haml +7 -8
- data/lib/pullentity-client/version.rb +1 -1
- data/spec/pullentity-client/generate/exporter_spec.rb +3 -3
- data/vendor/.DS_Store +0 -0
- data/vendor/assets/javascripts/{pullentity → backbone}/.DS_Store +0 -0
- data/vendor/assets/javascripts/backbone/backbone.js +1571 -0
- data/vendor/assets/javascripts/backbone/underscore.js +1227 -0
- data/vendor/assets/javascripts/bootstrap.js +1964 -0
- data/vendor/assets/javascripts/bootstrap.min.js +6 -0
- data/vendor/assets/javascripts/galleria/LICENSE +21 -0
- data/vendor/assets/javascripts/galleria/galleria-1.2.9.js +6121 -0
- data/vendor/assets/javascripts/galleria/galleria-1.2.9.min.js +9 -0
- data/vendor/assets/javascripts/galleria/plugins/flickr/flickr-demo.html +62 -0
- data/vendor/assets/javascripts/galleria/plugins/flickr/flickr-loader.gif +0 -0
- data/vendor/assets/javascripts/galleria/plugins/flickr/galleria.flickr.js +383 -0
- data/vendor/assets/javascripts/galleria/plugins/flickr/galleria.flickr.min.js +8 -0
- data/vendor/assets/javascripts/galleria/plugins/flickr/loader.gif +0 -0
- data/vendor/assets/javascripts/galleria/plugins/history/galleria.history.js +146 -0
- data/vendor/assets/javascripts/galleria/plugins/history/galleria.history.min.js +8 -0
- data/vendor/assets/javascripts/galleria/plugins/history/history-demo.html +100 -0
- data/vendor/assets/javascripts/galleria/plugins/picasa/galleria.picasa.js +320 -0
- data/vendor/assets/javascripts/galleria/plugins/picasa/galleria.picasa.min.js +8 -0
- data/vendor/assets/javascripts/galleria/plugins/picasa/loader.gif +0 -0
- data/vendor/assets/javascripts/galleria/plugins/picasa/picasa-demo.html +55 -0
- data/vendor/assets/javascripts/galleria/themes/classic/classic-demo.html +124 -0
- data/vendor/assets/javascripts/galleria/themes/classic/classic-loader.gif +0 -0
- data/vendor/assets/javascripts/galleria/themes/classic/classic-map.png +0 -0
- data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.css +220 -0
- data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.js +95 -0
- data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.min.js +8 -0
- data/vendor/assets/javascripts/handlebars.js +2278 -0
- data/vendor/assets/javascripts/jquery.infinite-scroll.min.js +1 -0
- data/vendor/assets/javascripts/jquery.isotope.min.js +11 -0
- data/vendor/assets/javascripts/jquery.loadimage.js +3 -0
- data/vendor/assets/javascripts/jquery.masonry.min.js +10 -0
- data/vendor/assets/javascripts/jquery.waitforimages.js +4 -0
- data/vendor/assets/javascripts/pullentity-backbone/.DS_Store +0 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/helpers/app_helper.js.coffee +12 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/models/project.js.coffee +11 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/models/section.js.coffee +13 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/models/site.js.coffee +7 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/routers/router.coffee +7 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/site.js.coffee +33 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/views/main.js.coffee +123 -0
- data/vendor/assets/javascripts/pullentity-backbone/application.js.coffee +8 -0
- data/vendor/assets/javascripts/pullentity.js +3 -0
- data/vendor/assets/stylesheets/bootstrap.css +4677 -0
- data/vendor/assets/stylesheets/bootstrap.min.css +9 -0
- data/vendor/assets/stylesheets/galleria/LICENSE +21 -0
- data/vendor/assets/stylesheets/galleria/galleria-1.2.9.js +6121 -0
- data/vendor/assets/stylesheets/galleria/galleria-1.2.9.min.js +9 -0
- data/vendor/assets/stylesheets/galleria/plugins/flickr/flickr-demo.html +62 -0
- data/vendor/assets/stylesheets/galleria/plugins/flickr/flickr-loader.gif +0 -0
- data/vendor/assets/stylesheets/galleria/plugins/flickr/galleria.flickr.js +383 -0
- data/vendor/assets/stylesheets/galleria/plugins/flickr/galleria.flickr.min.js +8 -0
- data/vendor/assets/stylesheets/galleria/plugins/flickr/loader.gif +0 -0
- data/vendor/assets/stylesheets/galleria/plugins/history/galleria.history.js +146 -0
- data/vendor/assets/stylesheets/galleria/plugins/history/galleria.history.min.js +8 -0
- data/vendor/assets/stylesheets/galleria/plugins/history/history-demo.html +100 -0
- data/vendor/assets/stylesheets/galleria/plugins/picasa/galleria.picasa.js +320 -0
- data/vendor/assets/stylesheets/galleria/plugins/picasa/galleria.picasa.min.js +8 -0
- data/vendor/assets/stylesheets/galleria/plugins/picasa/loader.gif +0 -0
- data/vendor/assets/stylesheets/galleria/plugins/picasa/picasa-demo.html +55 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/classic-demo.html +124 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/classic-loader.gif +0 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/classic-map-original.png +0 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.css +217 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.js +95 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.min.js +8 -0
- metadata +70 -8
- data/lib/pullentity-client/templates/defaults/test-data.js.erb +0 -193
- data/vendor/assets/javascripts/mustache.js +0 -535
- data/vendor/assets/javascripts/pullentity/development.js.coffee +0 -222
- data/vendor/assets/javascripts/pullentity.js.erb +0 -3
- data/vendor/assets/javascripts/underscore-min.js +0 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzNhYzdmMTNkZTRhMjQzN2U5YzNhNTk2Mjk4MTQ5OWQyYTQ5MGRiZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWNiMTFiZDlkNGYwYjgzZjVmNjU4ZGFmMWUzNDE2NzdiYTVhNDkzOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWExM2Y2YTRlMmI1MDU0OTM1NmJhOGQxMDYwMWEyOTczZTVhYTM4ZGQ4OGFh
|
10
|
+
NmNjZDMzZTNjM2I3MjRmYWYyM2NiZDBiNzQxOGQzMjgxYjNjOWFiOGE4NTdk
|
11
|
+
NjE2MWM2NzViYTg4M2I2NWQwM2ZjODNiYmUwODA1ZWJlY2NlNDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjkzMGJkODcxZGI3NDU0OTNjNThlOWU3MWY1ZDQ5OGNkZWVkYTc4YTY5Njk0
|
14
|
+
NjMyNDhmOTE1YjQ1MDQwNzgxMjVmNjQyN2NlYjczMDMyZDg1MGZiZGQwYjUx
|
15
|
+
Zjk0NDk0ZDZhYjZiNjk1OTJjYzAxZTZlOTBiYzNmZjEyODdmMWY=
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
|
2
|
+
# -*- encoding: utf-8 -*-
|
1
3
|
require 'session'
|
2
4
|
|
3
5
|
module Pullentity
|
@@ -45,12 +47,14 @@ module Pullentity
|
|
45
47
|
def check_for_yaml
|
46
48
|
begin
|
47
49
|
hsh = YAML.load_file(location + "pullentity.yml")
|
50
|
+
|
48
51
|
@token = hsh["auth_token"]
|
49
52
|
@site = hsh["site"]
|
50
53
|
@theme_name = hsh["theme_name"]
|
51
54
|
if hsh["auth_token"].empty?
|
52
55
|
say "Error, the auth_token is empty", :red
|
53
|
-
say "run: pullentity login" , :
|
56
|
+
say "run: $ pullentity login your@email" , :magenta
|
57
|
+
exit(1)
|
54
58
|
end
|
55
59
|
rescue => e
|
56
60
|
say "Error, make sure you are inside a pullentity project", :red
|
@@ -59,6 +63,15 @@ module Pullentity
|
|
59
63
|
end
|
60
64
|
end
|
61
65
|
|
66
|
+
def check_for_json_build
|
67
|
+
begin
|
68
|
+
@json_hsh = JSON.parse( IO.read("#{location}/pullentity_build.json") )
|
69
|
+
rescue => e
|
70
|
+
say "error #{e}", :red
|
71
|
+
raise
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
62
75
|
def write_site_in_yaml(site)
|
63
76
|
begin
|
64
77
|
hsh = YAML.load_file(location + "pullentity.yml")
|
@@ -82,6 +95,7 @@ module Pullentity
|
|
82
95
|
|
83
96
|
def export_api_call()
|
84
97
|
check_for_yaml
|
98
|
+
check_for_json_build
|
85
99
|
|
86
100
|
conn = Faraday.new(:url => domain) do |f|
|
87
101
|
f.request :multipart
|
@@ -103,32 +117,32 @@ module Pullentity
|
|
103
117
|
end
|
104
118
|
|
105
119
|
def upload_assets()
|
106
|
-
|
120
|
+
|
121
|
+
@conn = Faraday.new(:url => domain) do |f|
|
107
122
|
f.request :multipart
|
108
123
|
f.request :url_encoded # form-encode POST params
|
109
124
|
#f.response :logger # log requests to STDOUT
|
110
125
|
f.adapter Faraday.default_adapter # make requests with Net::HTTP
|
111
126
|
end
|
112
127
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
say "upload application.css...", :green
|
120
|
-
payload = { :file => Faraday::UploadIO.new("#{location}/build/assets/stylesheets/application.css", 'text/json') }
|
121
|
-
response = conn.put("/api/v1/upload_assets?auth_token=#{@token}&subdomain=#{@site}&theme_name=#{@theme_name}", payload )
|
128
|
+
{"js" => "javascripts", "css"=>"stylesheets", "images"=> "images", "fonts"=>"fonts"}.each do |k, v|
|
129
|
+
@json_hsh["assets"]["#{k}"].each do |file|
|
130
|
+
say "upload #{k}: #{file}", :magenta
|
131
|
+
upload_file("#{location}/build/assets/#{v}/#{file}", "text/json")
|
132
|
+
end
|
133
|
+
end
|
122
134
|
|
123
|
-
|
135
|
+
end
|
124
136
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
137
|
+
def upload_file(file, mime_type="text/json")
|
138
|
+
payload = { :file => Faraday::UploadIO.new("#{file}", mime_type) }
|
139
|
+
response = @conn.put("/api/v1/upload_assets?auth_token=#{@token}&subdomain=#{@site}&theme_name=#{@theme_name}", payload )
|
140
|
+
status = JSON.parse(response.body)
|
141
|
+
if status.keys.include?("error")
|
142
|
+
say status["message"], :red
|
143
|
+
else
|
144
|
+
say status["message"], :green
|
130
145
|
end
|
131
|
-
|
132
146
|
end
|
133
147
|
|
134
148
|
def images
|
@@ -62,14 +62,26 @@ module Pullentity
|
|
62
62
|
Dir.foreach(location.join("build/assets/images") ).grep(/.jpg|.jpeg|.png|.gif|.ico/).each do |image|
|
63
63
|
images << image
|
64
64
|
end
|
65
|
+
|
65
66
|
fonts = []
|
66
67
|
Dir.foreach(location.join("build/assets/fonts") ).grep(/.eot|.svg|.ttf|.woff/).each do |font|
|
67
68
|
fonts << font
|
68
69
|
end
|
70
|
+
|
71
|
+
jss = []
|
72
|
+
Dir.foreach(location.join("build/assets/javascripts") ).grep(/.js$/).each do |js|
|
73
|
+
jss << js
|
74
|
+
end
|
75
|
+
|
76
|
+
styles = []
|
77
|
+
Dir.foreach(location.join("build/assets/stylesheets") ).grep(/.css/).each do |css|
|
78
|
+
styles << css
|
79
|
+
end
|
80
|
+
|
69
81
|
js = File.open(location.join("build/assets/javascripts/application.js")).readlines.join("")
|
70
82
|
css = File.open(location.join("build/assets/stylesheets/application.css")).readlines.join("")
|
71
83
|
|
72
|
-
{ :images => images , :js =>
|
84
|
+
{ :images => images , :js => jss, :css => styles , :fonts=> fonts }
|
73
85
|
|
74
86
|
end
|
75
87
|
|
@@ -84,7 +96,7 @@ module Pullentity
|
|
84
96
|
|
85
97
|
end
|
86
98
|
|
87
|
-
map %(
|
99
|
+
map %(ex) => 'export'
|
88
100
|
desc "export", "exports a new Pullentity Client project."
|
89
101
|
long_desc "Exports a new Pullentity project"
|
90
102
|
def export
|
@@ -29,7 +29,7 @@ module Pullentity
|
|
29
29
|
end
|
30
30
|
|
31
31
|
#map %(n) => 'select'
|
32
|
-
desc "
|
32
|
+
desc "make_default", "needs auth_token."
|
33
33
|
long_desc "make default site"
|
34
34
|
def make_default
|
35
35
|
::Pullentity::Client::Generate::Exporter.start(['export'])
|
@@ -37,9 +37,9 @@ module Pullentity
|
|
37
37
|
end
|
38
38
|
|
39
39
|
#map %(n) => 'select'
|
40
|
-
desc "
|
40
|
+
desc "show theme", "needs auth_token."
|
41
41
|
long_desc "make default site"
|
42
|
-
def
|
42
|
+
def show_theme
|
43
43
|
::Pullentity::Client::Generate::Auth.start(['show_theme'])
|
44
44
|
end
|
45
45
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
@import 'pullentity';
|
2
|
+
@import 'bootstrap.min';
|
2
3
|
@import "compass";
|
3
4
|
|
4
5
|
// Responsive
|
@@ -17,11 +18,11 @@ h2{
|
|
17
18
|
|
18
19
|
#content h2 {
|
19
20
|
font-family: "Helvetica Neue",Helvetica,"pragmatica-web",Arial,sans-serif;
|
20
|
-
font-size:
|
21
|
-
font-weight:
|
22
|
-
letter-spacing:
|
23
|
-
line-height:
|
24
|
-
margin-bottom:
|
21
|
+
font-size: 58px;
|
22
|
+
font-weight: lighter;
|
23
|
+
letter-spacing: 0.01em;
|
24
|
+
line-height: 60px;
|
25
|
+
margin-bottom: 39px;
|
25
26
|
}
|
26
27
|
|
27
28
|
#loader{
|
@@ -34,6 +35,7 @@ h2{
|
|
34
35
|
float: left;
|
35
36
|
list-style: none outside none;
|
36
37
|
margin: 0 0 7px;
|
38
|
+
padding:0px;
|
37
39
|
li{
|
38
40
|
/*float:left;*/
|
39
41
|
margin:5px;
|
@@ -59,6 +61,10 @@ h2{
|
|
59
61
|
a:focus { outline: none; }
|
60
62
|
}
|
61
63
|
|
64
|
+
ul{
|
65
|
+
padding: 0;
|
66
|
+
}
|
67
|
+
|
62
68
|
#sidebar {
|
63
69
|
background: none repeat scroll 0 0 #FFFFFF;
|
64
70
|
border-right: 1px solid #BBBBBB;
|
@@ -93,7 +99,7 @@ h2{
|
|
93
99
|
}
|
94
100
|
|
95
101
|
#content {
|
96
|
-
margin:16px 0 50px
|
102
|
+
margin:16px 0 50px 225px;
|
97
103
|
position: relative;
|
98
104
|
width: 750px;
|
99
105
|
@media screen and (max-width: $break-small) {
|
@@ -110,8 +116,8 @@ h2{
|
|
110
116
|
|
111
117
|
p{
|
112
118
|
font-family: Georgia,Times,"Times New Roman",serif;
|
113
|
-
font-size:
|
114
|
-
font-weight: 400;
|
119
|
+
font-size: 22px;
|
120
|
+
//font-weight: 400;
|
115
121
|
line-height: 39px;
|
116
122
|
margin-bottom: 40px;
|
117
123
|
}
|
@@ -1,12 +1,14 @@
|
|
1
1
|
|
2
|
+
|
3
|
+
|
2
4
|
= content_for :principal do
|
3
5
|
|
4
6
|
- theme_list = Dir.foreach(Dir.pwd + ("/source/views/themes") ).grep(/.haml/)
|
5
7
|
|
6
8
|
- theme_list.each do |o|
|
7
|
-
%script{ type: "template
|
8
|
-
%div{ id: "#{o.gsub(".haml", "")}"
|
9
|
+
%script{ type: "text/x-handlebars-template", id: "#{o.gsub(".haml", "")}", class: "pullentity-themes"}
|
10
|
+
%div{ id: "#{o.gsub(".haml", "")}" }
|
9
11
|
= partial "views/themes/#{o.gsub(".haml", "")}"
|
10
12
|
|
11
|
-
%script{ type: "template
|
13
|
+
%script{ type: "text/x-handlebars-template", id: "list", class: "pullentity-themes"}
|
12
14
|
= partial "views/list"
|
@@ -1,13 +1,13 @@
|
|
1
1
|
%h2 {{section.title}}´s projects
|
2
2
|
|
3
3
|
%ul.thumbnails
|
4
|
-
{{#projects}}
|
4
|
+
{{#each projects}}
|
5
5
|
%li.span3
|
6
6
|
.thumbnail
|
7
|
-
%a{ :href=>"{{
|
8
|
-
%img{:alt => "{{title}}", :src => "{{
|
7
|
+
%a{ :href=> "{{ProjectUrl this}}" }
|
8
|
+
%img{ :alt => "{{title}}", :src => "{{ProjectImg 'url'}}" }
|
9
9
|
.caption
|
10
10
|
%h5
|
11
|
-
%a.pjax{:href => "{{
|
12
|
-
|
13
|
-
{{/
|
11
|
+
%a.pjax{:href => "{{ProjectUrl this}}"} {{ title }}
|
12
|
+
|
13
|
+
{{/each}}
|
@@ -1,16 +1,16 @@
|
|
1
|
-
%script{ type: "template
|
1
|
+
%script{ type: "text/x-handlebars-template", id: "layout"}
|
2
2
|
|
3
3
|
#sidebar
|
4
4
|
%h2
|
5
|
-
%a.pjax{:href => "
|
5
|
+
%a.pjax{:href => ""} {{name}}
|
6
6
|
|
7
7
|
%ul#menu
|
8
|
-
{{#sections}}
|
8
|
+
{{#each sections}}
|
9
9
|
{{#show_in_menu}}
|
10
10
|
%li
|
11
|
-
%a
|
11
|
+
%a{:href => "{{SectionUrl this}}"} {{title}}
|
12
12
|
{{/show_in_menu}}
|
13
|
-
{{/
|
13
|
+
{{/each}}
|
14
14
|
|
15
15
|
#content.row-fluid{"data-pjax-container" => ""}
|
16
16
|
/ Don't remove this line
|
@@ -3,18 +3,10 @@
|
|
3
3
|
%meta{:content => "t", :name => "keywords"}
|
4
4
|
%meta{:content => "INDEX,FOLLOW", :name => "ROBOTS"}
|
5
5
|
|
6
|
-
%link{:href => "http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css", :rel => "stylesheet"}
|
7
|
-
%script{:src => "http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"}
|
8
6
|
%script{:src => "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"}
|
9
|
-
%script{:src => "https://raw.github.com/desandro/masonry/master/jquery.masonry.min.js"}
|
10
|
-
%script{:src => "http://malsup.github.com/jquery.cycle.all.js"}
|
11
|
-
%script{:src => "https://raw.github.com/defunkt/jquery-pjax/master/jquery.pjax.js"}
|
12
7
|
%script{:src => "https://raw.github.com/brandonaaron/livequery/master/jquery.livequery.js"}
|
13
8
|
|
14
9
|
= javascript_include_tag "application"
|
15
10
|
= stylesheet_link_tag "application"
|
16
11
|
|
17
|
-
=
|
18
|
-
|
19
|
-
= yield_content(:application_js)
|
20
|
-
|
12
|
+
= yield_content(:application_js)
|
@@ -1,17 +1,16 @@
|
|
1
|
-
|
2
|
-
%h2 {{project.title}}
|
1
|
+
%h2 {{title}}
|
3
2
|
|
4
3
|
.myCarousel.carousel.slide
|
5
4
|
.carousel-inner
|
6
|
-
{{#photos}}
|
5
|
+
{{#each photos}}
|
7
6
|
|
8
7
|
.item
|
9
|
-
%img{:alt => "", :src => "{{
|
8
|
+
%img{:alt => "", :src => "{{PhotoImg 'xlarge'}}"}/
|
10
9
|
.carousel-caption
|
11
|
-
%h4 {{title}}
|
12
|
-
%p {{caption}}
|
10
|
+
%h4 {{image.title}}
|
11
|
+
%p {{image.caption}}
|
13
12
|
|
14
|
-
{{/
|
13
|
+
{{/each}}
|
15
14
|
|
16
15
|
%a.left.carousel-control{"data-slide" => "prev", :href => ".myCarousel"} ‹
|
17
16
|
|
@@ -19,6 +18,6 @@
|
|
19
18
|
|
20
19
|
|
21
20
|
|
22
|
-
%p {{{
|
21
|
+
%p {{{ body }}}
|
23
22
|
|
24
23
|
{{{fb_comments}}}
|
@@ -8,7 +8,7 @@ describe "Creating of a new Pullentity Client Project" do
|
|
8
8
|
|
9
9
|
context "Directories should be created" do
|
10
10
|
before :all do
|
11
|
-
system("cd dailyfocus && bundle exec pullentity export
|
11
|
+
system("cd dailyfocus && bundle exec pullentity theme export")
|
12
12
|
end
|
13
13
|
|
14
14
|
it "should generate the export build json" do
|
@@ -17,9 +17,9 @@ describe "Creating of a new Pullentity Client Project" do
|
|
17
17
|
|
18
18
|
it "should be a valid json" do
|
19
19
|
json = JSON.parse( IO.read("dailyfocus/pullentity_build.json") )
|
20
|
-
json["themes"].size.should ==
|
20
|
+
json["themes"].size.should == 3
|
21
21
|
json["theme_name"].should_not be_empty
|
22
|
-
json["theme_name"].should == "
|
22
|
+
json["theme_name"].should == "dailyfocus"
|
23
23
|
json["layout"].should_not be_empty
|
24
24
|
json["list"].should_not be_empty
|
25
25
|
json["css"].should_not be_empty
|
data/vendor/.DS_Store
ADDED
Binary file
|
File without changes
|