Skip to content

Commit

Permalink
Packaged for rails assets
Browse files Browse the repository at this point in the history
  • Loading branch information
teamon committed May 14, 2013
1 parent 2f21453 commit eaddc13
Show file tree
Hide file tree
Showing 13 changed files with 72 additions and 366 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
*.gem
*.rbc
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
doc/
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
8 changes: 2 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
source "http://rubygems.org"

gem "sinatra"
gem "slim"
gem "faye"
gem "coffee-script"
gem "httparty"

# Specify your gem's dependencies in angular-faye-rails.gemspec
gemspec
59 changes: 9 additions & 50 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,58 +1,17 @@
PATH
remote: .
specs:
angular-faye-rails (0.1.0)

GEM
remote: http://rubygems.org/
specs:
addressable (2.3.4)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.2)
cookiejar (0.3.0)
em-http-request (1.0.3)
addressable (>= 2.2.3)
cookiejar
em-socksify
eventmachine (>= 1.0.0.beta.4)
http_parser.rb (>= 0.5.3)
em-socksify (0.2.1)
eventmachine (>= 1.0.0.beta.4)
eventmachine (1.0.3)
execjs (1.4.0)
multi_json (~> 1.0)
faye (0.8.9)
cookiejar (>= 0.3.0)
em-http-request (>= 0.3.0)
eventmachine (>= 0.12.0)
faye-websocket (>= 0.4.0)
rack (>= 1.0.0)
yajl-ruby (>= 1.0.0)
faye-websocket (0.4.7)
eventmachine (>= 0.12.0)
http_parser.rb (0.5.3)
httparty (0.11.0)
multi_json (~> 1.0)
multi_xml (>= 0.5.2)
multi_json (1.7.2)
multi_xml (0.5.3)
rack (1.5.2)
rack-protection (1.5.0)
rack
sinatra (1.4.2)
rack (~> 1.5, >= 1.5.2)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
slim (1.3.8)
temple (~> 0.6.3)
tilt (~> 1.3.3)
temple (0.6.4)
tilt (1.3.7)
yajl-ruby (1.1.0)
rake (10.0.4)

PLATFORMS
ruby

DEPENDENCIES
coffee-script
faye
httparty
sinatra
slim
angular-faye-rails!
bundler (~> 1.3)
rake
31 changes: 15 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# Angular.js + Faye example

[Download angular-faye.js](https://github.com/teamon/angular-faye/raw/master/public/js/angular-faye.js)
# Angular.js + Faye

## Usage

Add the following to your gemfile:

```ruby
gem "angular-faye-rails"
```

Add the following directive to your Javascript manifest file (application.js):

```js
//= require angular-faye
```

## Example

### HTML

```html
Expand Down Expand Up @@ -61,19 +73,6 @@ app.factory 'Faye', ['$faye', ($faye) ->



## Run example

```bash
$ bundle
$ bundle exec ruby app.rb

# In different shell
$ bundle exec ruby faye.rb
```




## Contributing

1. Fork it
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require "bundler/gem_tasks"
23 changes: 23 additions & 0 deletions angular-faye-rails.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'angular-faye-rails/version'

Gem::Specification.new do |spec|
spec.name = "angular-faye-rails"
spec.version = AngularFaye::Rails::VERSION
spec.authors = ["Tymon Tobolski"]
spec.email = ["[email protected]"]
spec.description = %q{Angular + Faye, packaged for Rails assets pipeline}
spec.summary = %q{Angular + Faye, packaged for Rails assets pipeline}
spec.homepage = "http://github.com/rails-assets/angular-faye-rails"
spec.license = "MIT"

spec.files = `git ls-files`.split($/)
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
end
44 changes: 0 additions & 44 deletions app.rb

This file was deleted.

37 changes: 0 additions & 37 deletions coffee/app.coffee

This file was deleted.

25 changes: 0 additions & 25 deletions faye.rb

This file was deleted.

5 changes: 5 additions & 0 deletions lib/angular-faye-rails/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module AngularFaye
module Rails
VERSION = "0.1.0"
end
end
Loading

0 comments on commit eaddc13

Please sign in to comment.