jssignals-rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ /Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --color
2
+ --format documentation
3
+ --tty
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (C) 2012 Phil Ostler
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # js-signals for Rails ![Build Status][travis_ci_build_status]
2
+
3
+ Provides js-signals (0.7.4) for use with Rails 3
4
+
5
+ [RubyGems][ruby_gems] | [Ruby Toolbox][ruby_toolbox] | [GitHub][github] | [Travis CI][travis_ci] | [RubyDoc][ruby_doc]
6
+
7
+ ## Installation
8
+ ### Rails 3.1+
9
+ To use js-signals with your Rails 3.1+ application, add the following to your Gemfile
10
+
11
+ ```
12
+ gem "jssignals-rails"
13
+ ```
14
+ Run ```bundle install``` and js-signals will be available for you to use via the asset pipeline. Add the following line into your ```app/assets/javascripts/application.js``` file...
15
+
16
+ ```
17
+ //= require signals
18
+ ```
19
+ ...or for the minified version in development
20
+
21
+ ```
22
+ //= require signals.min
23
+ ```
24
+ js-signals is now installed. Woop!
25
+
26
+ ### Rails 3.0
27
+ To use js-signals with your Rails 3.0 application, add the following to your Gemfile
28
+
29
+ ```
30
+ gem "jssignals-rails"
31
+ ```
32
+ Run ```bundle install``` followed by the install generator
33
+
34
+ ```
35
+ rails generate jssignals:install
36
+ ```
37
+ js-signals is now installed. Woop!
38
+
39
+ ##js-signals Resources
40
+ [Project Page][jssignals_project_page] | [GitHub][jssignals_github]
41
+
42
+ [github]: http://github.com/philostler/jssignals-rails
43
+ [ruby_doc]: http://rubydoc.info/github/philostler/jssignals-rails/master/frames
44
+ [ruby_gems]: http://rubygems.org/gems/jssignals-rails
45
+ [travis_ci]: http://travis-ci.org/philostler/jssignals-rails
46
+ [travis_ci_build_status]: https://secure.travis-ci.org/philostler/jssignals-rails.png
47
+ [ruby_toolbox]: http://www.ruby-toolbox.com/projects/jssignals-rails
48
+ [jssignals_project_page]: http://millermedeiros.github.com/js-signals
49
+ [jssignals_github]: http://github.com/millermedeiros/js-signals
data/Rakefile ADDED
@@ -0,0 +1,5 @@
1
+ require "rspec/core/rake_task"
2
+
3
+ task :default => :spec
4
+
5
+ RSpec::Core::RakeTask.new :spec
@@ -0,0 +1,27 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path("../lib/jssignals/rails/version", __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "jssignals-rails"
6
+ s.version = Jssignals::Rails::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.author = "Phil Ostler"
9
+ s.email = "philostler@gmail.com"
10
+ s.homepage = "http://github.com/philostler/jssignals-rails"
11
+ s.summary = %q{js-signals for Rails}
12
+ s.description = %q{Provides js-signals for use with Rails 3}
13
+
14
+ s.add_dependency "railties", "~> 3.0"
15
+
16
+ s.add_development_dependency "rspec", "~> 2.0"
17
+
18
+ s.files = Dir[".gitignore"] +
19
+ Dir[".rspec"] +
20
+ Dir["Gemfile"] +
21
+ Dir["jssignals-rails.gemspec"] +
22
+ Dir["LICENSE"] +
23
+ Dir["Rakefile"] +
24
+ Dir["README.md"] +
25
+ Dir["**/*.rb"]
26
+ s.require_paths = ["lib"]
27
+ end
@@ -0,0 +1,17 @@
1
+ require "rails"
2
+
3
+ module Jssignals
4
+ module Generators
5
+ class InstallGenerator < Rails::Generators::Base
6
+ desc "This generator installs js-signals (#{Jssignals::Rails::JSSIGNALS_VERSION})"
7
+ source_root File.expand_path "../../../../../vendor/assets/javascripts", __FILE__
8
+
9
+ def copy_jssignals
10
+ say_status "copying", "js-signals (#{Jssignals::Rails::JSSIGNALS_VERSION})", :green
11
+
12
+ copy_file "signals.js", "public/javascripts/signals.js"
13
+ copy_file "signals.min.js", "public/javascripts/signals.min.js"
14
+ end
15
+ end
16
+ end
17
+ end if ::Rails.version < 3.1
@@ -0,0 +1 @@
1
+ require "jssignals/rails"
@@ -0,0 +1,10 @@
1
+ module Jssignals
2
+ module Rails
3
+ if ::Rails.version < "3.1"
4
+ require "jssignals/rails/railtie"
5
+ else
6
+ require "jssignals/rails/engine"
7
+ end
8
+ require "jssignals/rails/version"
9
+ end
10
+ end
@@ -0,0 +1,6 @@
1
+ module Jssignals
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module Jssignals
2
+ module Rails
3
+ class Railtie < ::Rails::Railtie
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module Jssignals
2
+ module Rails
3
+ VERSION = "1.0.0"
4
+ JSSIGNALS_VERSION = "0.7.4";
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ require "spec_helper"
2
+
3
+ describe Jssignals::Rails do
4
+ it { Jssignals::Rails::VERSION.should == "1.0.0" }
5
+ it { Jssignals::Rails::JSSIGNALS_VERSION.should == "0.7.4" }
6
+ end
@@ -0,0 +1,3 @@
1
+ require "rails/all"
2
+
3
+ require "jssignals-rails"
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jssignals-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Phil Ostler
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-03-02 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: &23104200 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *23104200
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &23103732 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *23103732
36
+ description: Provides js-signals for use with Rails 3
37
+ email: philostler@gmail.com
38
+ executables: []
39
+ extensions: []
40
+ extra_rdoc_files: []
41
+ files:
42
+ - .gitignore
43
+ - .rspec
44
+ - Gemfile
45
+ - jssignals-rails.gemspec
46
+ - LICENSE
47
+ - Rakefile
48
+ - README.md
49
+ - lib/generators/jssignals/install/install_generator.rb
50
+ - lib/jssignals/rails/engine.rb
51
+ - lib/jssignals/rails/railtie.rb
52
+ - lib/jssignals/rails/version.rb
53
+ - lib/jssignals/rails.rb
54
+ - lib/jssignals-rails.rb
55
+ - spec/jssignals/rails/version_spec.rb
56
+ - spec/spec_helper.rb
57
+ homepage: http://github.com/philostler/jssignals-rails
58
+ licenses: []
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ! '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 1.8.15
78
+ signing_key:
79
+ specification_version: 3
80
+ summary: js-signals for Rails
81
+ test_files: []