pullentity-client 0.0.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTJiZDY3OWY5MWZiNzFmYzZmYjYxOWZhMjFkMmY3Y2VhNjYxZGVjMQ==
4
+ NjA0OTg3ZDRmZTJiNmM3ZjlkNzdhYzEzNWYyMzNlMDk5ZjkyY2NmMw==
5
5
  data.tar.gz: !binary |-
6
- ZTQ4M2M0NWQyZjdkOWM1M2Y1NzM4ZWI4OGNmMTVlYjE0MTRhODY3Mw==
6
+ Mjg5MWFhYzZmY2JhMzM1NGY1MmRjNjhlMGM5YTA3ZWY0ZjVmMTE0Yw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MTMwNTQzNDk5ODg2ZmRkMzE4ZDljNjQ3N2E1OGI0MjhlNjAzMmJmNTRmNjIz
10
- ZTM1MTNkNDk2YjZiMTliODljMmU5NDA5Yjg3MTFjZTk2ODVhYTU0NWVlODg4
11
- MjJlYTI4MzU0MDEzOWM4YjU1Mzg5N2MzYTE0Njc4YTgzMzM0ZTM=
9
+ NjQzNmE0MzE4ZGZmMzRkY2I0MjBjYzAxYWM5YjRkNmRlZmUzODA5MDMwM2Y0
10
+ YWU2MTE2MjY4MjFlYzBkNzIzZTdkZTk3NjRlN2IzZTI5MTEwZWIzZDUyMjhk
11
+ NTgxNzJiYjRkYzE2ZWUyNWY4NjY3NTM4Y2RjNTM1NDRlMjg1OTc=
12
12
  data.tar.gz: !binary |-
13
- ZjkyNTM0MWVkYzY2ZTY3OWZmOWZmNWI0MWEyY2Q2MjZjM2ZjNzllYTM2Zjdm
14
- MjM4MTdlZjlkZTE4NWQ4ZDgzMzc5NjAyMmQ1YzBlMWE1ZWE2ZDAwZmE3NmZi
15
- Yjc3MmVkYTMwYjU0MTFkODQ4YmUwYjUzMzI0OTg5ZDFlNjdlY2E=
13
+ YzY2OTJjMGE5NmNkOGI3ZWVlNjU1NjZlZGFkMjAwMjZjNTU0MDZkYTBiMjdm
14
+ YmFkYmE2NDAzOGU5NDc2ODlhZjJmMjczMmEzNTM0MDBjOWE1YjE3NjllYTFm
15
+ OWZlZTIxMWZmNzAwZDhkZGQ4N2NiODllNjMzMTIyMjU1OWUyNDE=
data/README.md CHANGED
@@ -58,9 +58,9 @@ Export and install the theme for your site.
58
58
  4. Push to the branch (`git push origin my-new-feature`)
59
59
  5. Create new Pull Request
60
60
 
61
- # TODO , path for 0.1.0
61
+ # TODO , path for 1.0.0
62
62
 
63
- 1. upload assets.
63
+ 1. OK upload assets.
64
64
  2. import data
65
65
  3. OK setup task (login + select site)
66
66
  4. OK make default task
@@ -1,11 +1,13 @@
1
1
  require "middleman"
2
2
  require 'middleman-target'
3
+ URL_REMOTE = "http://pullentity.s3.amazonaws.com"
3
4
 
4
5
  module Pullentity::Client::Helpers
5
6
 
7
+
6
8
  def javascript_include_tag(file)
7
9
  if target?(:pullentity)
8
- path = "/uploads/theme_asset/#{site_name}/theme/#{theme_name}/assets/#{file}"
10
+ path = "#{URL_REMOTE}/uploads/theme_asset/#{site_name}/theme/#{theme_name}/assets/#{file}"
9
11
  "<script src='#{path}.js' type='text/javascript'></script>"
10
12
  else
11
13
  super
@@ -14,7 +16,7 @@ module Pullentity::Client::Helpers
14
16
 
15
17
  def stylesheet_link_tag(file)
16
18
  if target?(:pullentity)
17
- path = "/uploads/theme_asset/#{site_name}/theme/#{theme_name}/assets/#{file}"
19
+ path = "#{URL_REMOTE}/uploads/theme_asset/#{site_name}/theme/#{theme_name}/assets/#{file}"
18
20
  "<link href='#{path}.css' media='screen' rel='stylesheet' type='text/css' />"
19
21
  else
20
22
  super
@@ -58,10 +60,21 @@ module Pullentity::Client::MiddlemanConfig
58
60
  app.helpers Pullentity::Client::Helpers
59
61
  app.set :site_name, site_name
60
62
  app.set :theme_name, theme_name
63
+ app.set :sass_assets_paths, []
64
+ app.set :relative_links, false
65
+ app.set :images_dir, "assets/images"
66
+ app.set :fonts_dir, "assets/fonts"
67
+ app.set :css_dir, "assets/stylesheets"
68
+ app.set :js_dir, "assets/javascripts"
69
+ app.set :markdown, :layout_engine => :haml
70
+ app.set :default_encoding, 'utf-8'
71
+
61
72
  app.compass_config do |config|
62
73
  # config is the Compass.configuration object
63
74
  config.output_style = :compact
64
- config.http_images_path = "/uploads/theme_asset/#{site_name}/theme/#{theme_name}/assets"
75
+ if target?(:pullentity)
76
+ config.http_images_path = "#{URL_REMOTE}/uploads/theme_asset/#{site_name}/theme/#{theme_name}/assets"
77
+ end
65
78
  end
66
79
  end
67
80
 
@@ -1,4 +1,3 @@
1
1
 
2
2
  //= require "pullentity"
3
3
 
4
-
@@ -1 +1 @@
1
- @import 'pullentity';
1
+ @import "customtheme";
@@ -1 +1,120 @@
1
- @import "compass";
1
+ @import 'pullentity';
2
+ @import "compass";
3
+
4
+ // Responsive
5
+
6
+ $break-small: 600px;
7
+ $break-large: 1200px;
8
+
9
+ body{
10
+ background: image-url("ps_neutral.png") repeat scroll 0 0 #F4F4F4;
11
+ }
12
+
13
+ h2{
14
+ /*font-family: "Oxygen", Helvetica, Arial;*/
15
+ font-size: 22.5px;
16
+ }
17
+
18
+ #content h2 {
19
+ 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;
25
+ }
26
+
27
+ #loader{
28
+ position: fixed;
29
+ right: 28px;
30
+ top: 33px;
31
+ display:none;
32
+ }
33
+ #menu{
34
+ float: left;
35
+ list-style: none outside none;
36
+ margin: 0 0 7px;
37
+ li{
38
+ /*float:left;*/
39
+ margin:5px;
40
+ a{
41
+ color: #888888;
42
+ font-size: 16px;
43
+ font-family: "Oxygen", Helvetica, Arial;
44
+ font-weight: lighter;
45
+ }
46
+ }
47
+ }
48
+
49
+ /*GALLERY*/
50
+
51
+ .nav { margin: 5px 0 }
52
+ #nav a, #s7 strong { margin: 0 5px; padding: 3px 5px; border: 1px solid #ccc; background: #fc0; text-decoration: none }
53
+
54
+ #output { text-align: left; }
55
+ #nav {
56
+ text-align: left;
57
+ margin: 3px;
58
+ a.activeSlide { background: #ea0 }
59
+ a:focus { outline: none; }
60
+ }
61
+
62
+ #sidebar {
63
+ background: none repeat scroll 0 0 #FFFFFF;
64
+ border-right: 1px solid #BBBBBB;
65
+ bottom: 0;
66
+ box-shadow: 0 0 20px #CCCCCC;
67
+ left: 0;
68
+ overflow-x: hidden;
69
+ overflow-y: auto;
70
+ padding: 15px 0 30px 30px;
71
+ position: fixed;
72
+ top: 0;
73
+ width: 200px;
74
+ z-index: 10;
75
+ @media screen and (max-width: $break-small) {
76
+ padding: 0 0 0 11px;
77
+ width: 100%;
78
+ float: none;
79
+ position: relative;
80
+ h2{
81
+ float:left;
82
+ }
83
+ li{
84
+ float:left;
85
+ }
86
+ #menu{
87
+ margin:15px 9px 11px;
88
+ }
89
+ }
90
+ @media screen and (min-width: $break-large) {
91
+ float: right;
92
+ }
93
+ }
94
+
95
+ #content {
96
+ margin:16px 0 50px 260px;
97
+ position: relative;
98
+ width: 750px;
99
+ @media screen and (max-width: $break-small) {
100
+ float: none;
101
+ margin: 9px 0 41px 10px;
102
+ width: 95%;
103
+ h2{
104
+ font-size: 46px;
105
+ }
106
+ }
107
+ @media screen and (min-width: $break-large) {
108
+ //float: right;
109
+ }
110
+
111
+ p{
112
+ font-family: Georgia,Times,"Times New Roman",serif;
113
+ font-size: 26px;
114
+ font-weight: 400;
115
+ line-height: 39px;
116
+ margin-bottom: 40px;
117
+ }
118
+ }
119
+
120
+
@@ -1,9 +1,11 @@
1
- %h2 List of projects in {{section.title}}
1
+ %h2 {{section.title}}´s projects
2
+
2
3
  %ul.thumbnails
3
4
  {{#projects}}
4
5
  %li.span3
5
6
  .thumbnail
6
- %img{:alt => "", :src => "{{project_photo}}"}/
7
+ %a{ :href=>"{{project_path}}" }
8
+ %img{:alt => "{{title}}", :src => "{{project_photo}}"}/
7
9
  .caption
8
10
  %h5
9
11
  %a.pjax{:href => "{{project_path}}"} {{title}}
@@ -1,20 +1,20 @@
1
1
  %script{ type: "template/text", id: "layout"}
2
2
 
3
- .container-fluid
4
- .page-header
5
- %h1
6
- %a.pjax{:href => "{{site_link}}"} Welcome to {{site.name}} site
7
- .row-fluid
8
- %ul#menu
9
- {{#sections}}
10
- {{#show_in_menu}}
11
- %li
12
- %a.pjax{:href => "{{public_url}}"} {{title}}
13
- {{/show_in_menu}}
14
- {{/sections}}
15
- #content.row-fluid{"data-pjax-container" => ""}
16
- / Don't remove this line
17
- {{{content}}}
3
+ #sidebar
4
+ %h2
5
+ %a.pjax{:href => "{{site_link}}"}{{site.name}}
6
+
7
+ %ul#menu
8
+ {{#sections}}
9
+ {{#show_in_menu}}
10
+ %li
11
+ %a.pjax{:href => "{{public_url}}"} {{title}}
12
+ {{/show_in_menu}}
13
+ {{/sections}}
14
+
15
+ #content.row-fluid{"data-pjax-container" => ""}
16
+ / Don't remove this line
17
+ {{{content}}}
18
18
 
19
19
  {{{loader}}}
20
20
 
@@ -1,48 +1,2 @@
1
1
  :css
2
- @import url(http://fonts.googleapis.com/css?family=Oxygen|Oleo+Script&subset=latin,latin-ext);
3
-
4
- h1{
5
- font-family: "Oxygen", Helvetica, Arial;
6
- }
7
- .page-header h1 {
8
- font-size: 5em;
9
- font-weight: lighter;
10
- line-height: 1;
11
- font-family: "Oleo Script", Helvetica, Arial;
12
- }
13
- h2{
14
- font-family: "Oxygen", Helvetica, Arial;
15
- font-weight: lighter;
16
- }
17
- #loader{
18
- position: fixed;
19
- right: 28px;
20
- top: 33px;
21
- display:none;
22
- }
23
- #menu{
24
- float: left;
25
- list-style: none outside none;
26
- margin: 0 0 7px;
27
- }
28
- #menu li{
29
- float:left;
30
- margin:5px;
31
- }
32
-
33
- #menu li a{
34
- color: #888888;
35
- font-size: 16px;
36
-
37
- font-family: "Oxygen", Helvetica, Arial;
38
- font-weight: lighter;
39
- }
40
-
41
- /*GALLERY*/
42
-
43
- .nav { margin: 5px 0 }
44
- #nav a, #s7 strong { margin: 0 5px; padding: 3px 5px; border: 1px solid #ccc; background: #fc0; text-decoration: none }
45
- #nav a.activeSlide { background: #ea0 }
46
- #nav a:focus { outline: none; }
47
- #output { text-align: left; }
48
- #nav { text-align: left; margin: 3px }
2
+ /* put inline css here or use sass in assets path */
@@ -1,4 +1,6 @@
1
1
  :javascript
2
+ // put inline js here or use assets path
3
+
2
4
  $(function() {
3
5
 
4
6
  $.pjax.defaults.timeout = 5000;
@@ -40,4 +42,4 @@
40
42
  }
41
43
  });
42
44
 
43
- });
45
+ });
@@ -1,21 +1,24 @@
1
- .span4
2
- %h2 {{project.title}}
3
- {{{project.body}}}
4
- .span8
5
- .myCarousel.carousel.slide{:style => "float:left"}
6
- .carousel-inner
7
- {{#photos}}
8
1
 
9
- .item
10
- %img{:alt => "", :src => "{{img_large}}"}/
11
- .carousel-caption
12
- %h4 {{title}}
13
- %p {{caption}}
2
+ %h2 {{project.title}}
14
3
 
15
- {{/photos}}
4
+ .myCarousel.carousel.slide
5
+ .carousel-inner
6
+ {{#photos}}
16
7
 
17
- %a.left.carousel-control{"data-slide" => "prev", :href => ".myCarousel"} ‹
8
+ .item
9
+ %img{:alt => "", :src => "{{img_large}}"}/
10
+ .carousel-caption
11
+ %h4 {{title}}
12
+ %p {{caption}}
18
13
 
19
- %a.right.carousel-control{"data-slide" => "next", :href => ".myCarousel"}
14
+ {{/photos}}
20
15
 
21
- {{{fb_comments}}}
16
+ %a.left.carousel-control{"data-slide" => "prev", :href => ".myCarousel"}
17
+
18
+ %a.right.carousel-control{"data-slide" => "next", :href => ".myCarousel"} ›
19
+
20
+
21
+
22
+ %p {{{project.body}}}
23
+
24
+ {{{fb_comments}}}
@@ -1,21 +1,24 @@
1
- .span4
2
- %h2 {{project.title}}
3
- {{{project.body}}}
4
- .span8
5
- #myCarousel.carousel.slide{:style => "float:left"}
6
- .carousel-inner
7
- {{#photos}}
8
1
 
9
- .item
10
- %img{:alt => "", :src => "{{img_large}}"}/
11
- .carousel-caption
12
- %h4 {{title}}
13
- %p {{caption}}
2
+ %h2 {{project.title}}
14
3
 
15
- {{/photos}}
4
+ .myCarousel.carousel.slide
5
+ .carousel-inner
6
+ {{#photos}}
16
7
 
17
- %a.left.carousel-control{"data-slide" => "prev", :href => "#myCarousel"} ‹
8
+ .item
9
+ %img{:alt => "", :src => "{{img_large}}"}/
10
+ .carousel-caption
11
+ %h4 {{title}}
12
+ %p {{caption}}
18
13
 
19
- %a.right.carousel-control{"data-slide" => "next", :href => "#myCarousel"}
14
+ {{/photos}}
20
15
 
21
- {{{fb_comments}}}
16
+ %a.left.carousel-control{"data-slide" => "prev", :href => ".myCarousel"}
17
+
18
+ %a.right.carousel-control{"data-slide" => "next", :href => ".myCarousel"} ›
19
+
20
+
21
+
22
+ %p {{{project.body}}}
23
+
24
+ {{{fb_comments}}}
@@ -4,28 +4,20 @@
4
4
 
5
5
  require "pullentity-client/helpers"
6
6
 
7
- set :sass_assets_paths, []
8
- set :relative_links, false
9
- set :images_dir, "assets/images"
10
- set :fonts_dir, "assets/fonts"
11
- set :css_dir, "assets/stylesheets"
12
- set :js_dir, "assets/javascripts"
13
- set :markdown, :layout_engine => :haml
14
- set :default_encoding, 'utf-8'
7
+ activate :target do |target|
8
+ target.build_targets = {
9
+ "pullentity" => {
10
+ :includes => %w[remote_theme]
11
+ }
12
+ }
13
+ end
14
+
15
+ activate :pullentity_config
15
16
 
16
17
  page "views/*", :layout => false
17
18
 
18
19
  configure :build do
19
20
  activate :minify_css
20
21
  activate :minify_javascript
21
- activate :relative_assets
22
22
  end
23
23
 
24
- activate :target do |target|
25
-
26
- target.build_targets = {
27
- "pullentity" => {
28
- :includes => %w[remote_theme]
29
- }
30
- }
31
- end
@@ -1,2 +1,4 @@
1
1
  # Generated by Pullentity Client Generator
2
2
  #
3
+
4
+ pullentity.yml
@@ -13,4 +13,3 @@
13
13
  = yield_content(:principal)
14
14
 
15
15
 
16
-
@@ -6,7 +6,7 @@
6
6
  $(document).ready ->
7
7
  template = undefined
8
8
  html = undefined
9
- window.base_image_path = "http://pullentity.com"
9
+ window.base_image_path = "http://pullentity.s3.amazonaws.com"
10
10
  window.theme = ""
11
11
  window.list_theme = ""
12
12
  window.mustache_themes = ""
@@ -106,7 +106,7 @@ $(document).ready ->
106
106
 
107
107
  # points path for remote image resources
108
108
  window.remote_path = (path)->
109
- "#{window.base_image_path}/#{path}"
109
+ "#{path}"
110
110
 
111
111
 
112
112
  # builds the project photos hsh
@@ -1,5 +1,5 @@
1
1
  module Pullentity
2
2
  module Client
3
- VERSION = "0.0.9"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pullentity-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - miguel michelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-31 00:00:00.000000000 Z
11
+ date: 2013-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script
@@ -271,6 +271,7 @@ files:
271
271
  - lib/pullentity-client/templates/app/assets/fonts/fontawesome-webfont.woff
272
272
  - lib/pullentity-client/templates/app/assets/images/.DS_Store
273
273
  - lib/pullentity-client/templates/app/assets/images/favicon.ico
274
+ - lib/pullentity-client/templates/app/assets/images/ps_neutral.png
274
275
  - lib/pullentity-client/templates/app/assets/javascripts/application.js.erb
275
276
  - lib/pullentity-client/templates/app/assets/javascripts/mustache.js
276
277
  - lib/pullentity-client/templates/app/assets/javascripts/underscore-min.js
@@ -309,6 +310,7 @@ files:
309
310
  - spec/pullentity-client/logger_spec.rb
310
311
  - spec/pullentity-client/utils_spec.rb
311
312
  - spec/spec_helper.rb
313
+ - vendor/assets/.DS_Store
312
314
  - vendor/assets/fonts/fontawesome-webfont.eot
313
315
  - vendor/assets/fonts/fontawesome-webfont.svg
314
316
  - vendor/assets/fonts/fontawesome-webfont.ttf