bumbleworks-rails 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +53 -0
- data/lib/bumbleworks/rails/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea93b27298c26799c14a43451f07e6fe444e1502
|
4
|
+
data.tar.gz: a91f67a689e0ac438dc26b51c1fb3ed518282c75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 666b532fdab05b5996771ba8988aab82012717ef5da8fda1c630924be6077d21ee5757dbd3518f87a2713989a6deefed626ce241ff448f14fd5d6157bbadb465
|
7
|
+
data.tar.gz: f7270518954e811642db25ac394732b7ccb4e71ef170d7c4b725e5b38737942c64b507f6c446881d463a7084f991a0bea4e36f7b149bc8e9e87c728bfbba1a5a
|
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
## Bumbleworks::Rails
|
2
|
+
|
3
|
+
A Rails Engine to assist with integrating [Bumbleworks](http://github.com/bumbleworks/bumbleworks) into a Rails app.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'bumbleworks-rails'
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
There are quite a few ways to use this - the most common, if you're using Bumbleworks in a Rails app, would be to add the "tasks" resource to your routes:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
# config/routes.rb
|
17
|
+
Rails.application.routes.draw do
|
18
|
+
# ...
|
19
|
+
scope :module => 'bumbleworks/rails' do
|
20
|
+
resources :tasks do
|
21
|
+
member do
|
22
|
+
post 'complete'
|
23
|
+
post 'claim'
|
24
|
+
post 'release'
|
25
|
+
end
|
26
|
+
collection do
|
27
|
+
get 'launch'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
# ...
|
32
|
+
end
|
33
|
+
```
|
34
|
+
|
35
|
+
and to include Bumbleworks::User in your user model:
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
# app/models/user.rb
|
39
|
+
class User < ActiveRecord::Base
|
40
|
+
include Bumbleworks::User
|
41
|
+
# ...
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
More instructions to come.
|
46
|
+
|
47
|
+
## Contributing
|
48
|
+
|
49
|
+
1. Fork it
|
50
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
51
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
52
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
53
|
+
5. Create new Pull Request
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bumbleworks-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ravi Gadad
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.0
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bumbleworks
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,6 +116,7 @@ extensions: []
|
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
118
|
- MIT-LICENSE
|
119
|
+
- README.md
|
119
120
|
- Rakefile
|
120
121
|
- app/assets/javascripts/bumbleworks/rails/application.js
|
121
122
|
- app/assets/stylesheets/bumbleworks/rails/application.css
|