epf-rails 1.0.0
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.
- data/.gitignore +6 -0
- data/Gemfile +2 -0
- data/README.md +46 -0
- data/Rakefile +1 -0
- data/epf-rails.gemspec +28 -0
- data/lib/epf/rails/engine.rb +6 -0
- data/lib/epf/rails/version.rb +5 -0
- data/lib/epf-rails.rb +15 -0
- metadata +87 -0
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# epf-rails
|
2
|
+
|
3
|
+
`epf-rails` provides rails integration for [`epf`].
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
`Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'epf-rails'
|
11
|
+
gem 'epf-source' # specify versioning here to ensure compatibility
|
12
|
+
```
|
13
|
+
|
14
|
+
```sh
|
15
|
+
$ bundle update
|
16
|
+
```
|
17
|
+
|
18
|
+
Or install directly:
|
19
|
+
|
20
|
+
```sh
|
21
|
+
$ gem install epf-rails
|
22
|
+
$ gem install epf-source --version '(your desired version)'
|
23
|
+
```
|
24
|
+
|
25
|
+
Add `epf` to sprockets. `application.js`:
|
26
|
+
|
27
|
+
```javascript
|
28
|
+
//= require epf
|
29
|
+
```
|
30
|
+
|
31
|
+
## Usage
|
32
|
+
|
33
|
+
Read the [docs][epf site].
|
34
|
+
|
35
|
+
See [README][`epf`] at the main `epf` site.
|
36
|
+
|
37
|
+
## Contributing
|
38
|
+
|
39
|
+
1. Fork it
|
40
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
41
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
42
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
43
|
+
5. Create new Pull Request
|
44
|
+
|
45
|
+
[`epf`]: https://github.com/GroupTalent/epf
|
46
|
+
[epf site]: http://epf.io
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
data/epf-rails.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'epf/rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = 'epf-rails'
|
8
|
+
gem.version = Epf::Rails::VERSION
|
9
|
+
gem.authors = ['heartsentwined']
|
10
|
+
gem.email = ['heartsentwined.me@gmail.com']
|
11
|
+
gem.date = Time.now.strftime('%Y-%m-%d')
|
12
|
+
gem.summary = 'Epf for Rails'
|
13
|
+
gem.description = <<-EOS
|
14
|
+
Epf is a robust and stable framework for syncing client state with a
|
15
|
+
persistent backend such as a REST API or socket connection.
|
16
|
+
EOS
|
17
|
+
gem.homepage = 'https://github.com/heartsentwined/epf-rails'
|
18
|
+
|
19
|
+
gem.add_dependency 'epf-source'
|
20
|
+
gem.add_dependency 'rails'
|
21
|
+
|
22
|
+
gem.files = `git ls-files`.split($/)
|
23
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
24
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
25
|
+
gem.require_paths = ['lib']
|
26
|
+
|
27
|
+
gem.license = 'MIT'
|
28
|
+
end
|
data/lib/epf-rails.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails'
|
2
|
+
require 'epf/source'
|
3
|
+
require 'epf/rails/version'
|
4
|
+
require 'epf/rails/engine'
|
5
|
+
|
6
|
+
module Epf
|
7
|
+
module Rails
|
8
|
+
class Railtie < ::Rails::Railtie
|
9
|
+
initializer 'epf.setup-vendor', :group => :all do |app|
|
10
|
+
app.assets.append_path \
|
11
|
+
File.expand_path('../', ::Epf::Source.bundled_path)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: epf-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- heartsentwined
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-07-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: epf-source
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rails
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: ! " Epf is a robust and stable framework for syncing client state
|
47
|
+
with a\n persistent backend such as a REST API or socket connection.\n"
|
48
|
+
email:
|
49
|
+
- heartsentwined.me@gmail.com
|
50
|
+
executables: []
|
51
|
+
extensions: []
|
52
|
+
extra_rdoc_files: []
|
53
|
+
files:
|
54
|
+
- .gitignore
|
55
|
+
- Gemfile
|
56
|
+
- README.md
|
57
|
+
- Rakefile
|
58
|
+
- epf-rails.gemspec
|
59
|
+
- lib/epf-rails.rb
|
60
|
+
- lib/epf/rails/engine.rb
|
61
|
+
- lib/epf/rails/version.rb
|
62
|
+
homepage: https://github.com/heartsentwined/epf-rails
|
63
|
+
licenses:
|
64
|
+
- MIT
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ! '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubyforge_project:
|
83
|
+
rubygems_version: 1.8.25
|
84
|
+
signing_key:
|
85
|
+
specification_version: 3
|
86
|
+
summary: Epf for Rails
|
87
|
+
test_files: []
|