newton-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,47 @@
1
+ /* ========================================================================
2
+ * Bootstrap: transition.js v3.0.0
3
+ * http://twitter.github.com/bootstrap/javascript.html#transitions
4
+ * ========================================================================
5
+ * Copyright 2013 Twitter, Inc.
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * ======================================================================== */
19
+
20
+
21
+ +function ($) { "use strict";
22
+
23
+ // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
24
+ // ============================================================
25
+
26
+ function transitionEnd() {
27
+ var el = document.createElement('bootstrap')
28
+
29
+ var transEndEventNames = {
30
+ 'WebkitTransition' : 'webkitTransitionEnd'
31
+ , 'MozTransition' : 'transitionend'
32
+ , 'OTransition' : 'oTransitionEnd otransitionend'
33
+ , 'transition' : 'transitionend'
34
+ }
35
+
36
+ for (var name in transEndEventNames) {
37
+ if (el.style[name] !== undefined) {
38
+ return { end: transEndEventNames[name] }
39
+ }
40
+ }
41
+ }
42
+
43
+ $(function () {
44
+ $.support.transition = transitionEnd()
45
+ })
46
+
47
+ }(window.jQuery);
@@ -0,0 +1 @@
1
+ @import "newton/newton/newton";
@@ -0,0 +1,8 @@
1
+ require 'rails'
2
+ require 'newton-rails/version'
3
+
4
+ module Newton
5
+ module Rails
6
+ require 'newton-rails/engine'
7
+ end
8
+ end
@@ -0,0 +1,10 @@
1
+ module Newton
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ initializer 'newton-rails-setup', :group => :all do |app|
5
+ # Tune Sass options
6
+ Sass::Script::Number.precision = 15
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ module Newton
2
+ module Rails
3
+ VERSION = '0.0.1'
4
+ end
5
+ end
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/newton-rails/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Joseph Silvashy"]
6
+ gem.email = ["jpsilvashy@gmail.com"]
7
+ gem.description = %q{A lean and simple front-end}
8
+ gem.summary = %q{CSS and JavaScript for simple and lean front-end development}
9
+ gem.homepage = "https://github.com/jpsilvashy/newton-rails"
10
+ gem.license = "MIT"
11
+
12
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
13
+ gem.files = `git ls-files`.split("\n")
14
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
+ gem.name = "newton-rails"
16
+ gem.require_paths = ["lib"]
17
+ gem.version = Newton::Rails::VERSION
18
+
19
+ # gem.add_development_dependency "bundler", ">= 1.0"
20
+ end
@@ -0,0 +1,2 @@
1
+ require 'newton-rails'
2
+ require 'test/unit'
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: newton-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Joseph Silvashy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-06-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A lean and simple front-end
14
+ email:
15
+ - jpsilvashy@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - .gitignore
21
+ - .gitmodules
22
+ - Gemfile
23
+ - README.md
24
+ - Rakefile
25
+ - app/assets/javascripts/twitter/bootstrap.js
26
+ - app/assets/javascripts/twitter/bootstrap/affix.js
27
+ - app/assets/javascripts/twitter/bootstrap/alert.js
28
+ - app/assets/javascripts/twitter/bootstrap/button.js
29
+ - app/assets/javascripts/twitter/bootstrap/carousel.js
30
+ - app/assets/javascripts/twitter/bootstrap/collapse.js
31
+ - app/assets/javascripts/twitter/bootstrap/dropdown.js
32
+ - app/assets/javascripts/twitter/bootstrap/modal.js
33
+ - app/assets/javascripts/twitter/bootstrap/popover.js
34
+ - app/assets/javascripts/twitter/bootstrap/scrollspy.js
35
+ - app/assets/javascripts/twitter/bootstrap/tab.js
36
+ - app/assets/javascripts/twitter/bootstrap/tooltip.js
37
+ - app/assets/javascripts/twitter/bootstrap/transition.js
38
+ - app/assets/stylesheets/newton/newton.scss
39
+ - lib/newton-rails.rb
40
+ - lib/newton-rails/engine.rb
41
+ - lib/newton-rails/version.rb
42
+ - newton-rails.gemspec
43
+ - test/test_helper.rb
44
+ homepage: https://github.com/jpsilvashy/newton-rails
45
+ licenses:
46
+ - MIT
47
+ metadata: {}
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubyforge_project:
64
+ rubygems_version: 2.0.2
65
+ signing_key:
66
+ specification_version: 4
67
+ summary: CSS and JavaScript for simple and lean front-end development
68
+ test_files:
69
+ - test/test_helper.rb