binfinity-rails 0.0.2 → 0.0.4

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
- YjU4ZDU1ZjQ0Yzk1YzJhZmUwMDRmMzRkYmFkYzBiMTJjMWQzY2Q1Nw==
4
+ ZDIyNzU2YWQzMzRhYmFiZGY0NGNiOGZiNTM0ZDEwZjUxNjc3N2QxYQ==
5
5
  data.tar.gz: !binary |-
6
- NjQzZWMxYmE1ZGMxOGNiMTBmMzAwYTMzNzI4ZGRiOTBmNTUzMGNlZg==
6
+ ZWNkMGQzYjFiMTVhMTI0MjdiY2E3MjVkNDg4NmRjMWFkOTZhMzExYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- M2Y5MmEwM2RmMzgyMzJmMDE1MDM3Y2MwMDE3OGUyYzA2YTUwMzJiNzcxMTdk
10
- MWM5MjY5NWJhZGY4ZWVlMGFlMzUxYTVmZGJjZjY3MjZiNGU5N2I5NWVkMzdl
11
- NmU2ZDc5ZjQ4OTJlODAwNjIzYmY0MGUwNmU4OGUzOWJhMjVjYTY=
9
+ NzA3MzYxOTdjOTNkMGM2Y2Q5ODA1ZjM2YWVkMTE3ZjE4MWQ5NTRmOTBlMDU1
10
+ MDc4NzAyZjk5MDJmNTVjOWZjYmMzZDcyZWE2OTY2YmY5ZDI4NzBjY2I1MzA3
11
+ MTEzMjQ0OGU4NjY2NzBhYTYyZjhjZDFjMmZiNWM1ODNmZWZhMDk=
12
12
  data.tar.gz: !binary |-
13
- ZjAzMjY0NTU0YmJkMWJmMTkyNWI2YjE3MGI1YWYwMGNlMTU5NmI3YTkyMzI2
14
- Y2I2NDFiMTA5MzQ2NGQ1YWY3OGVmYjE3ODFmN2VkNTM5NDFmNjQ1MTFkYjgw
15
- ODEyOTVmMmFjZGE4MTgyYzkwN2EwZTNlZDEzZTA3NTRkYmRlNjA=
13
+ MzIwYjc1OGZjMmY0ZThiMzE4ZmUzMjg4Yzg4N2YwODllNWNjNzYxNjc3MDA5
14
+ ZTViNTU0OWVhZTVkZjk1ODJlZDI5ZjY5ODUyYjIzNDc1MTRiOWRhMGI0MDdh
15
+ MWZlN2FmY2ZlZDEzOTI5YTc1Mzg2ZDAyZjU0OTg3NzlmZDBjMDg=
data/README.md CHANGED
@@ -3,7 +3,7 @@ Binfinity Scroll Gem
3
3
 
4
4
  ### Installation
5
5
 
6
- In your Gemfile
6
+ In your Gemfile:
7
7
 
8
8
  `gem "binfinity-rais"`
9
9
 
@@ -32,14 +32,16 @@ $(function(){
32
32
  ```
33
33
 
34
34
  ### Contributing
35
- > Feel free to fork and contribute:
35
+ > This project originated as one of twelve 1-day projects of [12 appy days](12days.github.io).
36
+ >
37
+ > Please feel free to fork and contribute:
36
38
 
37
39
  1. Fork the repo
38
- 2. Clone the fork
40
+ 2. Clone the fork $`git clone`
39
41
  3. Create a feature branch `git checkout -b YOUR_BRANCH_NAME`
40
- 4. Commit
42
+ 4. Commit & push
41
43
  5. Create a pull request
42
44
 
43
45
  ### Authors
44
- * Joshua Wilborn
45
- * David Kim
46
+ * Joshua Wilborn <JoshuaJWilborn@gmail.com>
47
+ * David Kim <daviddarden11@gmail.com>
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "binfinity-rails"
5
- s.version = "0.0.2"
5
+ s.version = "0.0.4"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Joshua Wilborn", "David Kim"]
8
8
  s.email = ["joshua.j.wilborn@gmail.com", "daviddarden11@gmail.com"]
@@ -1,21 +1,8 @@
1
1
  $(function(){
2
2
  scroller = {
3
3
  initialize : function(callback, options) {
4
- if (options) {
5
- if (typeof(options.upwardScroll) == 'function') {
6
- scroller.upscroll = true;
7
- scroller.upCallback = options.upwardScroll;
8
- } else {
9
- scroller.upscroll = false;
10
- };
11
- if (options.cushion) {
12
- scroller.cushion = options.cushion;
13
- } else {
14
- scroller.cushion = 50;
15
- }
16
- } else {
17
- scroller.cushion = 50;
18
- };
4
+ scroller.upCallback = options.upwardScroll;
5
+ scroller.cushion = options.cushion || 50
19
6
  scroller.downCallback = callback;
20
7
  scroller.start();
21
8
  },
@@ -25,7 +12,7 @@ $(function(){
25
12
  window.onscroll = scroller.iscroll;
26
13
  },
27
14
  iscroll : function() {
28
- if (scroller.upscroll == true) {
15
+ if (scroller.upCallback) {
29
16
  if (window.pageYOffset < 0) {
30
17
  scroller.upCallback();
31
18
  }
@@ -36,13 +23,4 @@ $(function(){
36
23
  }
37
24
  }
38
25
  }
39
- var scroll_func = function() {
40
- add_div();
41
- }
42
-
43
- // you can add your own callbacks
44
- var add_div = function() { $('body').append('<div>this is more stuff</div>'); };
45
- var prepend_func = function() { $($('body').children()[0]).prepend($('<div>PREPEND TEH DATA</div> '))};
46
-
47
- scroller.initialize(scroll_func, {upwardScroll: prepend_func })
48
26
  });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binfinity-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Wilborn
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-10 00:00:00.000000000 Z
12
+ date: 2013-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties