pullentity-client 0.3.5 → 0.3.6

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.
Files changed (33) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/README.md +2 -13
  3. data/lib/pullentity-client/templates/app/assets/javascripts/application.js.erb +2 -0
  4. data/lib/pullentity-client/templates/app/assets/stylesheets/customtheme.css.scss +1 -3
  5. data/lib/pullentity-client/templates/app/views/list.haml +12 -11
  6. data/lib/pullentity-client/templates/app/views/shared/head.haml +4 -1
  7. data/lib/pullentity-client/templates/app/views/shared/js.haml +1 -31
  8. data/lib/pullentity-client/templates/app/views/themes/list-2.haml +10 -9
  9. data/lib/pullentity-client/templates/app/views/themes/theme-1.haml +24 -0
  10. data/lib/pullentity-client/templates/defaults/Gemfile.erb +1 -1
  11. data/lib/pullentity-client/version.rb +1 -1
  12. data/vendor/assets/.DS_Store +0 -0
  13. data/vendor/assets/javascripts/{backbone/.DS_Store → .DS_Store} +0 -0
  14. data/vendor/assets/javascripts/jquery.livequery.js +226 -0
  15. data/vendor/assets/stylesheets/.DS_Store +0 -0
  16. metadata +48 -22
  17. checksums.yaml +0 -15
  18. data/lib/pullentity-client/templates/app/views/themes/theme1.haml +0 -23
  19. data/vendor/assets/javascripts/backbone/backbone.js +0 -1571
  20. data/vendor/assets/javascripts/backbone/underscore.js +0 -1227
  21. data/vendor/assets/javascripts/handlebars.js +0 -2278
  22. data/vendor/assets/javascripts/pullentity-backbone/.DS_Store +0 -0
  23. data/vendor/assets/javascripts/pullentity-backbone/app/helpers/app_helper.js.coffee +0 -13
  24. data/vendor/assets/javascripts/pullentity-backbone/app/models/project.js.coffee +0 -11
  25. data/vendor/assets/javascripts/pullentity-backbone/app/models/section.js.coffee +0 -13
  26. data/vendor/assets/javascripts/pullentity-backbone/app/models/site.js.coffee +0 -7
  27. data/vendor/assets/javascripts/pullentity-backbone/app/routers/router.coffee +0 -7
  28. data/vendor/assets/javascripts/pullentity-backbone/app/site.js.coffee +0 -40
  29. data/vendor/assets/javascripts/pullentity-backbone/app/views/main.js.coffee +0 -155
  30. data/vendor/assets/javascripts/pullentity-backbone/application.js.coffee +0 -8
  31. data/vendor/assets/javascripts/pullentity.js +0 -3
  32. data/vendor/assets/stylesheets/pullentity.css.scss.erb +0 -0
  33. data/vendor/assets/stylesheets/pullentity/themes/default.css.scss +0 -0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.3.6
2
+ 2013/08/15
3
+ Move pullentity js backbone to pullentity-backbone gem
4
+ 0.3.3 / 0.3.4 / 0.3.5
5
+ Bug fixes
1
6
  0.3.2
2
7
  2013/08/01
3
8
  fix build helper
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Pullentity::Client
2
2
 
3
- This gem provides a simple builder workspace for make pullentity sites with haml and sass
3
+ This gem provides a simple builder workspace for make [pullentity](http://pullentity.com/) sites with haml and sass
4
4
 
5
5
  ## Installation
6
6
 
@@ -34,7 +34,7 @@ Run project
34
34
 
35
35
  Setup (login, site selection & import data)
36
36
 
37
- pullentity setup
37
+ pullentity setup your@email.com
38
38
 
39
39
  Setup your credentials
40
40
 
@@ -48,8 +48,6 @@ Export and install the theme for your site.
48
48
 
49
49
  pullentity theme export
50
50
 
51
-
52
-
53
51
  ## Contributing
54
52
 
55
53
  1. Fork it
@@ -57,12 +55,3 @@ Export and install the theme for your site.
57
55
  3. Commit your changes (`git commit -am 'Add some feature'`)
58
56
  4. Push to the branch (`git push origin my-new-feature`)
59
57
  5. Create new Pull Request
60
-
61
- # TODO , path for 1.0.0
62
-
63
- 1. OK upload assets.
64
- 2. import data
65
- 3. OK setup task (login + select site)
66
- 4. OK make default task
67
- 5. OK load remote data
68
- 6. use mustache server side
@@ -1,4 +1,6 @@
1
1
 
2
+ //= require "bootstrap.min"
2
3
  //= require 'config'
4
+ //= require "jquery.livequery"
3
5
  //= require 'pullentity'
4
6
 
@@ -99,7 +99,7 @@ ul{
99
99
  }
100
100
 
101
101
  #content {
102
- margin:16px 0 50px 225px;
102
+ margin:-37px 0 36px 217px;
103
103
  position: relative;
104
104
  width: 750px;
105
105
  @media screen and (max-width: $break-small) {
@@ -122,5 +122,3 @@ ul{
122
122
  margin-bottom: 40px;
123
123
  }
124
124
  }
125
-
126
-
@@ -1,13 +1,14 @@
1
- %h2 {{section.title}}´s projects
1
+ .col-12
2
+ %h2 {{section.title}}
2
3
 
3
- %ul.thumbnails
4
- {{#each projects}}
5
- %li.span3
6
- .thumbnail
7
- %a{ :href=> "{{ProjectUrl this}}" }
8
- %img{ :alt => "{{title}}", :src => "{{ProjectImg 'url'}}" }
9
- .caption
10
- %h5
11
- %a.pjax{:href => "{{ProjectUrl this}}"} {{ title }}
4
+ .thumbnails
5
+ {{#each projects}}
6
+ .col-lg-5.col-sm-3.col-4
7
+ .thumbnail
8
+ %a{ :href=> "{{ProjectUrl this}}" }
9
+ %img.img-responsive{ :alt => "{{title}}", :src => "{{ProjectImg 'medium'}}" }
10
+ .caption
11
+ %h4
12
+ %a.pjax{:href => "{{ProjectUrl this}}"} {{ title }}
12
13
 
13
- {{/each}}
14
+ {{/each}}
@@ -3,8 +3,11 @@
3
3
  %meta{:content => "t", :name => "keywords"}
4
4
  %meta{:content => "INDEX,FOLLOW", :name => "ROBOTS"}
5
5
 
6
+ %meta{ :name=>"apple-mobile-web-app-capable", :content=>"yes"}
7
+
8
+ %meta{ :name=>"viewport", :content=>"width=device-width, :initial-scale=>1.0"}
9
+
6
10
  %script{:src => "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"}
7
- %script{:src => "https://raw.github.com/brandonaaron/livequery/master/jquery.livequery.js"}
8
11
 
9
12
  = javascript_include_tag "application"
10
13
  = stylesheet_link_tag "application"
@@ -3,40 +3,10 @@
3
3
 
4
4
  $(function() {
5
5
 
6
- function onAfter(curr, next, opts) {
7
- var index = opts.currSlide;
8
- //$('#prev')[index == 0 ? 'hide' : 'show']();
9
- //$('#next')[index == opts.slideCount - 1 ? 'hide' : 'show']();
10
- }
11
- function onBefore(curr, next, opts) {
12
- $("#num").html("("+ (opts.currSlide + 1) + " of " + opts.slideCount + ")");
13
- }
14
- $('#slideshow')
15
- .livequery(function(){
16
- $(this).cycle({
17
- fx: 'fade',
18
- prev: '#prev',
19
- next: '#next',
20
- after: onAfter,
21
- before: onBefore,
22
- timeout: 0
23
- });
24
- });
25
-
26
- $('.myCarousel')
27
- .livequery(function(){
6
+ $('.carousel').livequery(function(){
28
7
  $(this).find(".item").first().addClass('active');
29
8
  $(this).carousel();
30
9
  });
31
10
 
32
- $.ajaxSetup({
33
- dataType: "script",
34
- beforeSend: function() {
35
- return $("#loader").fadeIn();
36
- },
37
- complete: function() {
38
- return $("#loader").fadeOut();
39
- }
40
- });
41
11
 
42
12
  });
@@ -1,13 +1,14 @@
1
- %h2 {{section.title}}
1
+ .col-12
2
+ %h2 {{section.title}}
2
3
 
3
- {{#each projects}}
4
- .list-project
4
+ {{#each projects}}
5
+ .list-project
5
6
 
6
- %h3
7
- %a.pjax{:href => "{{project_path}}"} {{title}}
7
+ %h3
8
+ %a.pjax{:href => "{{ProjectUrl this}}"} {{title}}
8
9
 
9
- %a.thumbnail{:href => "{{project_path}}"}
10
- %img{:alt => "{{title}}", :src => "{{ProjectImg 'url'}}"}
10
+ %a.thumbnail{:href => "{{ProjectUrl this}}"}
11
+ %img{:alt => "{{title}}", :src => "{{ProjectImg 'xlarge'}}"}
11
12
 
12
- %hr
13
- {{/each}}
13
+ %hr
14
+ {{/each}}
@@ -0,0 +1,24 @@
1
+ .col-sm-12
2
+ %h2 {{title}}
3
+
4
+ .myCarousel.carousel.slide
5
+ .carousel-inner
6
+ {{#each photos}}
7
+
8
+ .item
9
+ %img{:alt => "", :src => "{{PhotoImg 'xlarge'}}"}/
10
+ .carousel-caption
11
+ %h4 {{title}}
12
+ %p {{caption}}
13
+
14
+ {{/each}}
15
+
16
+ %a.left.carousel-control{"data-slide" => "prev", :href => ".myCarousel"}
17
+ %span.icon-prev
18
+
19
+ %a.right.carousel-control{"data-slide" => "next", :href => ".myCarousel"}
20
+ %span.icon-next
21
+
22
+ %p {{{ body }}}
23
+
24
+ {{{fb_comments}}}
@@ -1,8 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
-
4
3
  <% if ENV["pullentity_rspec"] == "test" %>
5
4
  gem "pullentity-client" , path: "<%= File.join(File.expand_path File.dirname(__FILE__)) %>"
6
5
  <% else %>
7
6
  gem "pullentity-client"
8
7
  <% end %>
8
+ gem "pullentity-backbone"
@@ -1,5 +1,5 @@
1
1
  module Pullentity
2
2
  module Client
3
- VERSION = "0.3.5"
3
+ VERSION = "0.3.6"
4
4
  end
5
5
  end
Binary file
@@ -0,0 +1,226 @@
1
+ /*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
2
+ * Dual licensed under the MIT (MIT_LICENSE.txt)
3
+ * and GPL Version 2 (GPL_LICENSE.txt) licenses.
4
+ *
5
+ * Version: 1.1.1
6
+ * Requires jQuery 1.3+
7
+ * Docs: http://docs.jquery.com/Plugins/livequery
8
+ */
9
+
10
+ (function($) {
11
+
12
+ $.extend($.fn, {
13
+ livequery: function(type, fn, fn2) {
14
+ var self = this, q;
15
+
16
+ // Handle different call patterns
17
+ if ($.isFunction(type))
18
+ fn2 = fn, fn = type, type = undefined;
19
+
20
+ // See if Live Query already exists
21
+ $.each( $.livequery.queries, function(i, query) {
22
+ if ( self.selector == query.selector && self.context == query.context &&
23
+ type == query.type && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) )
24
+ // Found the query, exit the each loop
25
+ return (q = query) && false;
26
+ });
27
+
28
+ // Create new Live Query if it wasn't found
29
+ q = q || new $.livequery(this.selector, this.context, type, fn, fn2);
30
+
31
+ // Make sure it is running
32
+ q.stopped = false;
33
+
34
+ // Run it immediately for the first time
35
+ q.run();
36
+
37
+ // Contnue the chain
38
+ return this;
39
+ },
40
+
41
+ expire: function(type, fn, fn2) {
42
+ var self = this;
43
+
44
+ // Handle different call patterns
45
+ if ($.isFunction(type))
46
+ fn2 = fn, fn = type, type = undefined;
47
+
48
+ // Find the Live Query based on arguments and stop it
49
+ $.each( $.livequery.queries, function(i, query) {
50
+ if ( self.selector == query.selector && self.context == query.context &&
51
+ (!type || type == query.type) && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) && !this.stopped )
52
+ $.livequery.stop(query.id);
53
+ });
54
+
55
+ // Continue the chain
56
+ return this;
57
+ }
58
+ });
59
+
60
+ $.livequery = function(selector, context, type, fn, fn2) {
61
+ this.selector = selector;
62
+ this.context = context;
63
+ this.type = type;
64
+ this.fn = fn;
65
+ this.fn2 = fn2;
66
+ this.elements = [];
67
+ this.stopped = false;
68
+
69
+ // The id is the index of the Live Query in $.livequery.queries
70
+ this.id = $.livequery.queries.push(this)-1;
71
+
72
+ // Mark the functions for matching later on
73
+ fn.$lqguid = fn.$lqguid || $.livequery.guid++;
74
+ if (fn2) fn2.$lqguid = fn2.$lqguid || $.livequery.guid++;
75
+
76
+ // Return the Live Query
77
+ return this;
78
+ };
79
+
80
+ $.livequery.prototype = {
81
+ stop: function() {
82
+ var query = this;
83
+
84
+ if ( this.type )
85
+ // Unbind all bound events
86
+ this.elements.unbind(this.type, this.fn);
87
+ else if (this.fn2)
88
+ // Call the second function for all matched elements
89
+ this.elements.each(function(i, el) {
90
+ query.fn2.apply(el);
91
+ });
92
+
93
+ // Clear out matched elements
94
+ this.elements = [];
95
+
96
+ // Stop the Live Query from running until restarted
97
+ this.stopped = true;
98
+ },
99
+
100
+ run: function() {
101
+ // Short-circuit if stopped
102
+ if ( this.stopped ) return;
103
+ var query = this;
104
+
105
+ var oEls = this.elements,
106
+ els = $(this.selector, this.context),
107
+ nEls = els.not(oEls);
108
+
109
+ // Set elements to the latest set of matched elements
110
+ this.elements = els;
111
+
112
+ if (this.type) {
113
+ // Bind events to newly matched elements
114
+ nEls.bind(this.type, this.fn);
115
+
116
+ // Unbind events to elements no longer matched
117
+ if (oEls.length > 0)
118
+ $.each(oEls, function(i, el) {
119
+ if ( $.inArray(el, els) < 0 )
120
+ $.event.remove(el, query.type, query.fn);
121
+ });
122
+ }
123
+ else {
124
+ // Call the first function for newly matched elements
125
+ nEls.each(function() {
126
+ query.fn.apply(this);
127
+ });
128
+
129
+ // Call the second function for elements no longer matched
130
+ if ( this.fn2 && oEls.length > 0 )
131
+ $.each(oEls, function(i, el) {
132
+ if ( $.inArray(el, els) < 0 )
133
+ query.fn2.apply(el);
134
+ });
135
+ }
136
+ }
137
+ };
138
+
139
+ $.extend($.livequery, {
140
+ guid: 0,
141
+ queries: [],
142
+ queue: [],
143
+ running: false,
144
+ timeout: null,
145
+
146
+ checkQueue: function() {
147
+ if ( $.livequery.running && $.livequery.queue.length ) {
148
+ var length = $.livequery.queue.length;
149
+ // Run each Live Query currently in the queue
150
+ while ( length-- )
151
+ $.livequery.queries[ $.livequery.queue.shift() ].run();
152
+ }
153
+ },
154
+
155
+ pause: function() {
156
+ // Don't run anymore Live Queries until restarted
157
+ $.livequery.running = false;
158
+ },
159
+
160
+ play: function() {
161
+ // Restart Live Queries
162
+ $.livequery.running = true;
163
+ // Request a run of the Live Queries
164
+ $.livequery.run();
165
+ },
166
+
167
+ registerPlugin: function() {
168
+ $.each( arguments, function(i,n) {
169
+ // Short-circuit if the method doesn't exist
170
+ if (!$.fn[n]) return;
171
+
172
+ // Save a reference to the original method
173
+ var old = $.fn[n];
174
+
175
+ // Create a new method
176
+ $.fn[n] = function() {
177
+ // Call the original method
178
+ var r = old.apply(this, arguments);
179
+
180
+ // Request a run of the Live Queries
181
+ $.livequery.run();
182
+
183
+ // Return the original methods result
184
+ return r;
185
+ }
186
+ });
187
+ },
188
+
189
+ run: function(id) {
190
+ if (id != undefined) {
191
+ // Put the particular Live Query in the queue if it doesn't already exist
192
+ if ( $.inArray(id, $.livequery.queue) < 0 )
193
+ $.livequery.queue.push( id );
194
+ }
195
+ else
196
+ // Put each Live Query in the queue if it doesn't already exist
197
+ $.each( $.livequery.queries, function(id) {
198
+ if ( $.inArray(id, $.livequery.queue) < 0 )
199
+ $.livequery.queue.push( id );
200
+ });
201
+
202
+ // Clear timeout if it already exists
203
+ if ($.livequery.timeout) clearTimeout($.livequery.timeout);
204
+ // Create a timeout to check the queue and actually run the Live Queries
205
+ $.livequery.timeout = setTimeout($.livequery.checkQueue, 20);
206
+ },
207
+
208
+ stop: function(id) {
209
+ if (id != undefined)
210
+ // Stop are particular Live Query
211
+ $.livequery.queries[ id ].stop();
212
+ else
213
+ // Stop all Live Queries
214
+ $.each( $.livequery.queries, function(id) {
215
+ $.livequery.queries[ id ].stop();
216
+ });
217
+ }
218
+ });
219
+
220
+ // Register core DOM manipulation methods
221
+ $.livequery.registerPlugin('append', 'prepend', 'after', 'before', 'wrap', 'attr', 'removeAttr', 'addClass', 'removeClass', 'toggleClass', 'empty', 'remove', 'html');
222
+
223
+ // Run Live Queries when the Document is ready
224
+ $(function() { $.livequery.play(); });
225
+
226
+ })(jQuery);