spaghetti 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,38 @@
1
+ We love pull requests. Here's a quick guide:
2
+
3
+ 1. Fork the repo.
4
+
5
+ 2. Run the tests. We only take pull requests with passing tests, and it's great
6
+ to know that you have a clean slate: `bundle && rake`
7
+
8
+ 3. Add a test for your change. Only refactoring and documentation changes
9
+ require no new tests. If you are adding functionality or fixing a bug, we need
10
+ a test!
11
+
12
+ 4. Make the test pass.
13
+
14
+ 5. Push to your fork and submit a pull request.
15
+
16
+
17
+ At this point you're waiting on us. We like to at least comment on, if not
18
+ accept, pull requests within three business days (and, typically, one business
19
+ day). We may suggest some changes or improvements or alternatives.
20
+
21
+ Some things that will increase the chance that your pull request is accepted,
22
+ taken straight from the Ruby on Rails guide:
23
+
24
+ * Use Rails idioms and helpers
25
+ * Include tests that fail without your code, and pass with it
26
+ * Update the documentation, the surrounding one, examples elsewhere, guides,
27
+ whatever is affected by your contribution
28
+
29
+ Syntax:
30
+
31
+ * Two spaces, no tabs.
32
+ * No trailing whitespace. Blank lines should not have any space.
33
+ * Prefer &&/|| over and/or.
34
+ * MyClass.my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
35
+ * a = b and not a=b.
36
+ * Follow the conventions you see used in the source already.
37
+
38
+ And in case we didn't emphasize it enough: we love tests!
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Omar Abdel-Wahab
1
+ Copyright (c) 2012 Raya Social Media
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -23,6 +23,12 @@ Make sure you add spaghetti JavaScript to your `application.js`:
23
23
 
24
24
  //= require spaghetti
25
25
 
26
+ And spaghetti CSS to your `application.css`
27
+
28
+ *= require spaghetti
29
+
30
+ A Throbber will be displayed to indicate that more items are being loaded, spaghetti uses throbber.gif file in assets/images
31
+
26
32
  Then add spaghetti markup to your view (example: posts/index.html):
27
33
 
28
34
  <%= spaghetti 'posts', posts_path %>
@@ -34,8 +40,14 @@ You need to have your `posts_controller` responding with the following `index.js
34
40
 
35
41
  ## Contributing
36
42
 
37
- 1. Fork it
38
- 2. Create your feature branch (`git checkout -b my-new-feature`)
39
- 3. Commit your changes (`git commit -am 'Add some feature'`)
40
- 4. Push to the branch (`git push origin my-new-feature`)
41
- 5. Create new Pull Request
43
+ Please see CONTRIBUTING.md for details.
44
+
45
+ ## Credits
46
+ spaghetti was originally written by Omar Abdel-Wahab.
47
+
48
+ ![RSM](http://rayasocialmedia.com/images/logo.png)
49
+
50
+ spaghetti is maintained and funded by Raya Social Media.
51
+
52
+ ## License
53
+ spaghetti is Copyright © 2013 Raya Social Media. It is free software, and may be redistributed under the terms specified in the LICENSE file.
@@ -1,3 +1,3 @@
1
1
  module Spaghetti
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -21,7 +21,10 @@ $(function() {
21
21
  $.ajax({
22
22
  url: $(this).data('spaghetti-url') + '?page=' + $(this).data('spaghetti-next-page'),
23
23
  type: 'get',
24
- dataType: 'script'
24
+ dataType: 'script',
25
+ success: function() {
26
+ triggerHooks('post');
27
+ }
25
28
  });
26
29
  });
27
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spaghetti
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-30 00:00:00.000000000 Z
12
+ date: 2013-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-rails
@@ -35,6 +35,7 @@ extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
37
  - .gitignore
38
+ - CONTRIBUTING.md
38
39
  - Gemfile
39
40
  - LICENSE.txt
40
41
  - README.md
@@ -61,21 +62,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
62
  - - ! '>='
62
63
  - !ruby/object:Gem::Version
63
64
  version: '0'
64
- segments:
65
- - 0
66
- hash: -2308180961251975086
67
65
  required_rubygems_version: !ruby/object:Gem::Requirement
68
66
  none: false
69
67
  requirements:
70
68
  - - ! '>='
71
69
  - !ruby/object:Gem::Version
72
70
  version: '0'
73
- segments:
74
- - 0
75
- hash: -2308180961251975086
76
71
  requirements: []
77
72
  rubyforge_project:
78
- rubygems_version: 1.8.24
73
+ rubygems_version: 1.8.22
79
74
  signing_key:
80
75
  specification_version: 3
81
76
  summary: Spaghetti - Rails Endless Page