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.
Files changed (92) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG.md +2 -0
  3. data/README.md +1 -1
  4. data/lib/pullentity-client/cli.rb +1 -1
  5. data/lib/pullentity-client/generate/auth.rb +32 -18
  6. data/lib/pullentity-client/generate/exporter.rb +14 -2
  7. data/lib/pullentity-client/generate/theme.rb +3 -3
  8. data/lib/pullentity-client/templates/app/assets/javascripts/application.js.erb +2 -1
  9. data/lib/pullentity-client/templates/app/assets/javascripts/config.js.erb +6 -0
  10. data/lib/pullentity-client/templates/app/assets/stylesheets/customtheme.css.scss +14 -8
  11. data/lib/pullentity-client/templates/app/index.html.haml +5 -3
  12. data/lib/pullentity-client/templates/app/views/list.haml +6 -6
  13. data/lib/pullentity-client/templates/app/views/shared/body.haml +5 -5
  14. data/lib/pullentity-client/templates/app/views/shared/head.haml +1 -9
  15. data/lib/pullentity-client/templates/app/views/shared/js.haml +0 -3
  16. data/lib/pullentity-client/templates/app/views/themes/home.haml +0 -1
  17. data/lib/pullentity-client/templates/app/views/themes/list-2.haml +13 -0
  18. data/lib/pullentity-client/templates/app/views/themes/theme1.haml +7 -8
  19. data/lib/pullentity-client/version.rb +1 -1
  20. data/spec/pullentity-client/generate/exporter_spec.rb +3 -3
  21. data/vendor/.DS_Store +0 -0
  22. data/vendor/assets/javascripts/{pullentity → backbone}/.DS_Store +0 -0
  23. data/vendor/assets/javascripts/backbone/backbone.js +1571 -0
  24. data/vendor/assets/javascripts/backbone/underscore.js +1227 -0
  25. data/vendor/assets/javascripts/bootstrap.js +1964 -0
  26. data/vendor/assets/javascripts/bootstrap.min.js +6 -0
  27. data/vendor/assets/javascripts/galleria/LICENSE +21 -0
  28. data/vendor/assets/javascripts/galleria/galleria-1.2.9.js +6121 -0
  29. data/vendor/assets/javascripts/galleria/galleria-1.2.9.min.js +9 -0
  30. data/vendor/assets/javascripts/galleria/plugins/flickr/flickr-demo.html +62 -0
  31. data/vendor/assets/javascripts/galleria/plugins/flickr/flickr-loader.gif +0 -0
  32. data/vendor/assets/javascripts/galleria/plugins/flickr/galleria.flickr.js +383 -0
  33. data/vendor/assets/javascripts/galleria/plugins/flickr/galleria.flickr.min.js +8 -0
  34. data/vendor/assets/javascripts/galleria/plugins/flickr/loader.gif +0 -0
  35. data/vendor/assets/javascripts/galleria/plugins/history/galleria.history.js +146 -0
  36. data/vendor/assets/javascripts/galleria/plugins/history/galleria.history.min.js +8 -0
  37. data/vendor/assets/javascripts/galleria/plugins/history/history-demo.html +100 -0
  38. data/vendor/assets/javascripts/galleria/plugins/picasa/galleria.picasa.js +320 -0
  39. data/vendor/assets/javascripts/galleria/plugins/picasa/galleria.picasa.min.js +8 -0
  40. data/vendor/assets/javascripts/galleria/plugins/picasa/loader.gif +0 -0
  41. data/vendor/assets/javascripts/galleria/plugins/picasa/picasa-demo.html +55 -0
  42. data/vendor/assets/javascripts/galleria/themes/classic/classic-demo.html +124 -0
  43. data/vendor/assets/javascripts/galleria/themes/classic/classic-loader.gif +0 -0
  44. data/vendor/assets/javascripts/galleria/themes/classic/classic-map.png +0 -0
  45. data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.css +220 -0
  46. data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.js +95 -0
  47. data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.min.js +8 -0
  48. data/vendor/assets/javascripts/handlebars.js +2278 -0
  49. data/vendor/assets/javascripts/jquery.infinite-scroll.min.js +1 -0
  50. data/vendor/assets/javascripts/jquery.isotope.min.js +11 -0
  51. data/vendor/assets/javascripts/jquery.loadimage.js +3 -0
  52. data/vendor/assets/javascripts/jquery.masonry.min.js +10 -0
  53. data/vendor/assets/javascripts/jquery.waitforimages.js +4 -0
  54. data/vendor/assets/javascripts/pullentity-backbone/.DS_Store +0 -0
  55. data/vendor/assets/javascripts/pullentity-backbone/app/helpers/app_helper.js.coffee +12 -0
  56. data/vendor/assets/javascripts/pullentity-backbone/app/models/project.js.coffee +11 -0
  57. data/vendor/assets/javascripts/pullentity-backbone/app/models/section.js.coffee +13 -0
  58. data/vendor/assets/javascripts/pullentity-backbone/app/models/site.js.coffee +7 -0
  59. data/vendor/assets/javascripts/pullentity-backbone/app/routers/router.coffee +7 -0
  60. data/vendor/assets/javascripts/pullentity-backbone/app/site.js.coffee +33 -0
  61. data/vendor/assets/javascripts/pullentity-backbone/app/views/main.js.coffee +123 -0
  62. data/vendor/assets/javascripts/pullentity-backbone/application.js.coffee +8 -0
  63. data/vendor/assets/javascripts/pullentity.js +3 -0
  64. data/vendor/assets/stylesheets/bootstrap.css +4677 -0
  65. data/vendor/assets/stylesheets/bootstrap.min.css +9 -0
  66. data/vendor/assets/stylesheets/galleria/LICENSE +21 -0
  67. data/vendor/assets/stylesheets/galleria/galleria-1.2.9.js +6121 -0
  68. data/vendor/assets/stylesheets/galleria/galleria-1.2.9.min.js +9 -0
  69. data/vendor/assets/stylesheets/galleria/plugins/flickr/flickr-demo.html +62 -0
  70. data/vendor/assets/stylesheets/galleria/plugins/flickr/flickr-loader.gif +0 -0
  71. data/vendor/assets/stylesheets/galleria/plugins/flickr/galleria.flickr.js +383 -0
  72. data/vendor/assets/stylesheets/galleria/plugins/flickr/galleria.flickr.min.js +8 -0
  73. data/vendor/assets/stylesheets/galleria/plugins/flickr/loader.gif +0 -0
  74. data/vendor/assets/stylesheets/galleria/plugins/history/galleria.history.js +146 -0
  75. data/vendor/assets/stylesheets/galleria/plugins/history/galleria.history.min.js +8 -0
  76. data/vendor/assets/stylesheets/galleria/plugins/history/history-demo.html +100 -0
  77. data/vendor/assets/stylesheets/galleria/plugins/picasa/galleria.picasa.js +320 -0
  78. data/vendor/assets/stylesheets/galleria/plugins/picasa/galleria.picasa.min.js +8 -0
  79. data/vendor/assets/stylesheets/galleria/plugins/picasa/loader.gif +0 -0
  80. data/vendor/assets/stylesheets/galleria/plugins/picasa/picasa-demo.html +55 -0
  81. data/vendor/assets/stylesheets/galleria/themes/classic/classic-demo.html +124 -0
  82. data/vendor/assets/stylesheets/galleria/themes/classic/classic-loader.gif +0 -0
  83. data/vendor/assets/stylesheets/galleria/themes/classic/classic-map-original.png +0 -0
  84. data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.css +217 -0
  85. data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.js +95 -0
  86. data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.min.js +8 -0
  87. metadata +70 -8
  88. data/lib/pullentity-client/templates/defaults/test-data.js.erb +0 -193
  89. data/vendor/assets/javascripts/mustache.js +0 -535
  90. data/vendor/assets/javascripts/pullentity/development.js.coffee +0 -222
  91. data/vendor/assets/javascripts/pullentity.js.erb +0 -3
  92. 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
- Yzc1OTlmMmYwOTQ1N2E5Nzk0OTExMTU4YzVhZGNmMTg5OGY5NWI5Yg==
4
+ YzNhYzdmMTNkZTRhMjQzN2U5YzNhNTk2Mjk4MTQ5OWQyYTQ5MGRiZA==
5
5
  data.tar.gz: !binary |-
6
- ZmY5Zjg3MWU0ODllMTc3NTRkNGEzY2NjMDYzZDY0NmM0NWJiYzI0YQ==
6
+ MWNiMTFiZDlkNGYwYjgzZjVmNjU4ZGFmMWUzNDE2NzdiYTVhNDkzOA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OThmZTIwOGNmNjIzNDY2ODYzNWQ3MGVlNGEwNzZkNGE2NGMyMzUzNzBkY2Nh
10
- NGFiZTExY2VlZWU4NWI1Mjk4NjIyYWY5YmY1MDAwMzFlZjZjZTkwN2VlMzRk
11
- N2U4NTQ1MDExNTIxM2I2YjJiOTcyZmQxNzY0Njg1NTM4YWRjYWE=
9
+ MWExM2Y2YTRlMmI1MDU0OTM1NmJhOGQxMDYwMWEyOTczZTVhYTM4ZGQ4OGFh
10
+ NmNjZDMzZTNjM2I3MjRmYWYyM2NiZDBiNzQxOGQzMjgxYjNjOWFiOGE4NTdk
11
+ NjE2MWM2NzViYTg4M2I2NWQwM2ZjODNiYmUwODA1ZWJlY2NlNDk=
12
12
  data.tar.gz: !binary |-
13
- ZGM0NGIxOTFjNmU2NmM4N2Y4MzMxNTU3NjI1OGQzMTRiNWI0ZDJjNjlhMTE4
14
- NmUwNmM3ZDQ1ZmQzNmIxMDYyMDFlMzRlMWFmMTFlMzQ4NGFlMzA1MDlmZTU1
15
- N2IyMjQwZjk3ZWJlZDcyYjE3ZWZiOGQ5YmQwZDY3Y2FhODg4ZmI=
13
+ NjkzMGJkODcxZGI3NDU0OTNjNThlOWU3MWY1ZDQ5OGNkZWVkYTc4YTY5Njk0
14
+ NjMyNDhmOTE1YjQ1MDQwNzgxMjVmNjQyN2NlYjczMDMyZDg1MGZiZGQwYjUx
15
+ Zjk0NDk0ZDZhYjZiNjk1OTJjYzAxZTZlOTBiYzNmZjEyODdmMWY=
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  0.0.1
2
+ 2013/07/31
3
+ Add template layout for backbone client side app
2
4
  2013/03/23
3
5
  Add login interaction for api
4
6
  add select sites
data/README.md CHANGED
@@ -46,7 +46,7 @@ Choose the site you want to export theme.
46
46
 
47
47
  Export and install the theme for your site.
48
48
 
49
- pullentity export
49
+ pullentity theme export
50
50
 
51
51
 
52
52
 
@@ -28,7 +28,7 @@ module Pullentity
28
28
  say "Version #{::Pullentity::Client::VERSION}"
29
29
  end
30
30
 
31
- map %w(r) => 'server'
31
+ map %w(s) => 'server'
32
32
  desc "server ", "run middleman app"
33
33
  def server
34
34
  system "echo == :::pullentity-client STARTING::: =="
@@ -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" , :yellow
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
- conn = Faraday.new(:url => domain) do |f|
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
- say "upload application.js...", :green
114
- payload = { :file => Faraday::UploadIO.new("#{location}/build/assets/javascripts/application.js", 'text/json') }
115
- response = conn.put("/api/v1/upload_assets?auth_token=#{@token}&subdomain=#{@site}&theme_name=#{@theme_name}", payload )
116
-
117
- say JSON.parse(response.body)
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
- say JSON.parse(response.body)
135
+ end
124
136
 
125
- say "upload images", :green
126
- images.each do |image|
127
- payload = { :file => Faraday::UploadIO.new("#{image}", 'text/json') }
128
- response = conn.put("/api/v1/upload_assets?auth_token=#{@token}&subdomain=#{@site}&theme_name=#{@theme_name}", payload )
129
- say JSON.parse(response.body)
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 => js, :css => css , :fonts=> fonts }
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 %(n) => 'export'
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 "make_defalt", "needs auth_token."
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 "make_defalt", "needs auth_token."
40
+ desc "show theme", "needs auth_token."
41
41
  long_desc "make default site"
42
- def current
42
+ def show_theme
43
43
  ::Pullentity::Client::Generate::Auth.start(['show_theme'])
44
44
  end
45
45
 
@@ -1,3 +1,4 @@
1
1
 
2
- //= require "pullentity"
2
+ //= require 'config'
3
+ //= require 'pullentity'
3
4
 
@@ -0,0 +1,6 @@
1
+
2
+ <% config = YAML.load(File.open("./pullentity.yml")) %>
3
+ window.pullentity_domain = "http://<%= config['site'] %>";
4
+
5
+
6
+
@@ -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: 57px;
21
- font-weight: 700;
22
- letter-spacing: -0.04em;
23
- line-height: 64px;
24
- margin-bottom: 20px;
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 260px;
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: 26px;
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/text", id: "#{o.gsub(".haml", "")}", class: "pullentity-themes"}
8
- %div{ id: "#{o.gsub(".haml", "")}", style: "display:none"}
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/text", id: "list", class: "pullentity-themes"}
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=>"{{project_path}}" }
8
- %img{:alt => "{{title}}", :src => "{{project_photo}}"}/
7
+ %a{ :href=> "{{ProjectUrl this}}" }
8
+ %img{ :alt => "{{title}}", :src => "{{ProjectImg 'url'}}" }
9
9
  .caption
10
10
  %h5
11
- %a.pjax{:href => "{{project_path}}"} {{title}}
12
- %p
13
- {{/projects}}
11
+ %a.pjax{:href => "{{ProjectUrl this}}"} {{ title }}
12
+
13
+ {{/each}}
@@ -1,16 +1,16 @@
1
- %script{ type: "template/text", id: "layout"}
1
+ %script{ type: "text/x-handlebars-template", id: "layout"}
2
2
 
3
3
  #sidebar
4
4
  %h2
5
- %a.pjax{:href => "{{site_link}}"}{{site.name}}
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.pjax{:href => "{{public_url}}"} {{title}}
11
+ %a{:href => "{{SectionUrl this}}"} {{title}}
12
12
  {{/show_in_menu}}
13
- {{/sections}}
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
- = test_data_include_tag
18
-
19
- = yield_content(:application_js)
20
-
12
+ = yield_content(:application_js)
@@ -3,9 +3,6 @@
3
3
 
4
4
  $(function() {
5
5
 
6
- $.pjax.defaults.timeout = 5000;
7
- $('a.pjax').pjax('[data-pjax-container]');
8
-
9
6
  function onAfter(curr, next, opts) {
10
7
  var index = opts.currSlide;
11
8
  //$('#prev')[index == 0 ? 'hide' : 'show']();
@@ -1,4 +1,3 @@
1
-
2
1
  %h2 {{project.title}}
3
2
 
4
3
  .myCarousel.carousel.slide
@@ -0,0 +1,13 @@
1
+ %h2 {{section.title}}
2
+
3
+ {{#each projects}}
4
+ .list-project
5
+
6
+ %h3
7
+ %a.pjax{:href => "{{project_path}}"} {{title}}
8
+
9
+ %a.thumbnail{:href => "{{project_path}}"}
10
+ %img{:alt => "{{title}}", :src => "{{ProjectImg 'url'}}"}
11
+
12
+ %hr
13
+ {{/each}}
@@ -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 => "{{img_large}}"}/
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
- {{/photos}}
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 {{{project.body}}}
21
+ %p {{{ body }}}
23
22
 
24
23
  {{{fb_comments}}}
@@ -1,5 +1,5 @@
1
1
  module Pullentity
2
2
  module Client
3
- VERSION = "0.1.3"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -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 new name")
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 == 2
20
+ json["themes"].size.should == 3
21
21
  json["theme_name"].should_not be_empty
22
- json["theme_name"].should == "name"
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