scrolltojs-rails 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f1a30e94f5dcab8ef9d8338d84efda30482f213d
4
+ data.tar.gz: 478d4e45fb48f73e783a6ab474686e76bf648cf7
5
+ SHA512:
6
+ metadata.gz: 9fcbb3473f9eeb4b449e627717dd4e9f17f67df238ac6c118679f4e9e2dd595e0cba0da51b9ec4b040d8b9f5094725e46911294894029a8be49cfc95e040d86d
7
+ data.tar.gz: 807a9f0525f260feea2f6f1edb5911f07ff22800e0ba80f2d0da0dfea8dd44dc5734878a6008442868f82713b668a9ec475767bcdb6195dec5b4fd9fa2430584
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Scrolltojs::Rails
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/scrolltojs/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'scrolltojs-rails'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install scrolltojs-rails
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ 1. Fork it ( https://github.com/[my-github-username]/scrolltojs-rails/fork )
36
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
37
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
38
+ 4. Push to the branch (`git push origin my-new-feature`)
39
+ 5. Create a new Pull Request
@@ -0,0 +1,5 @@
1
+ module Scrolltojs
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ require "scrolltojs/rails/version"
2
+
3
+ module Scrolltojs
4
+ module Rails
5
+ # Your code goes here...
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ require "scrolltojs/rails/version"
2
+
3
+ module ScrollTojs
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,2 @@
1
+ (function(a){a.fn.scrollTo=function(b){var c={offset:0,speed:"slow",override:null,easing:null};b&&(b.override&&(b.override=-1!=override("#")?b.override:"#"+b.override),a.extend(c,b));return this.each(function(b,e){a(e).click(function(b){var d;null!==a(e).attr("href").match(/#/)&&(b.preventDefault(),d=c.override?c.override:a(e).attr("href"),history.pushState?(history.pushState(null,null,d),a("html,body").stop().animate({scrollTop:a(d).offset().top+c.offset},c.speed,c.easing)):a("html,body").stop().animate({scrollTop:a(d).offset().top+
2
+ c.offset},c.speed,c.easing,function(a){window.location.hash=d}))})})}})(jQuery);
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scrolltojs-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ilton Garcia dos Santos Silveira
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-03-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: railties
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.1'
55
+ description: 'For more infos & how to use the jQuery ScrollTo PlugIn visit: http://jquery-plugins.net/scroll-to-simple-way-to-animate-to-anchors'
56
+ email:
57
+ - ilton_unb@hotmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - README.md
63
+ - lib/scrolltojs-rails.rb
64
+ - lib/scrolltojs/rails.rb
65
+ - lib/scrolltojs/rails/version.rb
66
+ - vendor/assets/javascripts/scrollTo.min.js
67
+ homepage: https://github.com/PageRentS
68
+ licenses:
69
+ - MIT
70
+ metadata: {}
71
+ post_install_message:
72
+ rdoc_options: []
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements: []
86
+ rubyforge_project:
87
+ rubygems_version: 2.4.5
88
+ signing_key:
89
+ specification_version: 4
90
+ summary: 'For more infos & how to use the jQuery ScrollTo PlugIn visit: http://jquery-plugins.net/scroll-to-simple-way-to-animate-to-anchors'
91
+ test_files: []