fork_ribs 0.0.1
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 +15 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/README.md +70 -0
- data/Rakefile +1 -0
- data/app/assets/images/browsers.jpg +0 -0
- data/app/assets/stylesheets/fork_ribs.css +1813 -0
- data/fork_ribs.gemspec +20 -0
- data/lib/fork_ribs/version.rb +3 -0
- data/lib/fork_ribs.rb +12 -0
- metadata +101 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
ZjBhNTRhNTJmMDdkOWU5OTUxMGRkMWUwZjVhYzAzYTI1NjBiYWFhNg==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
NDhmM2Y2ODg5ZjlmYzJlZDE3OWQ5ZjhlZmU4ZTQzNTg0M2VhZDRiMw==
|
|
7
|
+
SHA512:
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
ZTU5OWFjZjE2NTY4NWFjZmFhMWJiMmViYzc1Yjk2MTEzMjI3Y2Q1NmMzNWM2
|
|
10
|
+
NTE1M2E5MmI3NzViZTE5NDYwZDZmM2UwN2JkMjYzYTRhNGVmZDAxMTI1ZjFi
|
|
11
|
+
YjE0N2Q1NDEwZjM0Y2UxMTdkMzRiYzc4ZTBhM2VjMjUwNmQzYTE=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
MDQ0ZGNiODI4ZTVlNjVlMGIzZjUxNTRlMzY5MDc5ZGFhZTFkMDljOTAwMzcz
|
|
14
|
+
OTNiYzViYjY2ZDJiMTkyYTc0ZmEyODZiMWY5OTM5ZTdkMGQ1NTg3ZDJiYTZi
|
|
15
|
+
OTc4NGY3OTQwYWYyZGM0NzliZDkyNTdhZWFjYjA2ZTcxNzlmMGU=
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# forkribs
|
|
2
|
+
|
|
3
|
+
[](http://badge.fury.io/gh/vipulchhabra%2Fforkme)
|
|
4
|
+
|
|
5
|
+
It gives your application a "fork me on github" stripe from where users of your application can fork your github repository !!
|
|
6
|
+
|
|
7
|
+
## Supports
|
|
8
|
+
|
|
9
|
+
Rails 3+
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Add this line to your application's `Gemfile`:
|
|
16
|
+
|
|
17
|
+
gem 'forkribs'
|
|
18
|
+
|
|
19
|
+
And then run:
|
|
20
|
+
|
|
21
|
+
$ bundle install
|
|
22
|
+
|
|
23
|
+
Or install it yourself by executing:
|
|
24
|
+
|
|
25
|
+
$ gem install forkribs
|
|
26
|
+
|
|
27
|
+
Once done, add below to application's `assets/stylesheets/application.css` file
|
|
28
|
+
|
|
29
|
+
*= require forkribs
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
This gem provides you with three different types of `github forkme ribbons` that you can use in your application.
|
|
34
|
+
|
|
35
|
+
Lets see how you can do that !!
|
|
36
|
+
|
|
37
|
+
Types of ribbons this gem provides:
|
|
38
|
+
- `classic_ribbon`
|
|
39
|
+
- `flat_forkme`
|
|
40
|
+
- `snazzy_forkme`
|
|
41
|
+
|
|
42
|
+
Where do you want your forkme ribbon to get placed on your application:
|
|
43
|
+
- `top--left`
|
|
44
|
+
- `top--right`
|
|
45
|
+
- `bottom--left`
|
|
46
|
+
- `bottom--right`
|
|
47
|
+
|
|
48
|
+
This gem provides with four color possibilities that you can give to your gem:
|
|
49
|
+
- `Red`
|
|
50
|
+
- `Blue`
|
|
51
|
+
- `Green`
|
|
52
|
+
- `Orange`
|
|
53
|
+
|
|
54
|
+
You just have to include a class on the anchor element: Refer the example below :
|
|
55
|
+
|
|
56
|
+
<a href="https://github.com/vipulchhabra/forkme" class="classic_ribbon---top--left-red">
|
|
57
|
+
|
|
58
|
+
That's it, this will place a `classic type ribbon` on your app at the `top left corner` which will be `red` in color.
|
|
59
|
+
|
|
60
|
+
NOTE: if you are using `snazzy ribbon` include a span element inside the anchor element with the `fontawesome-github` class applied on it. Refer the example below:
|
|
61
|
+
|
|
62
|
+
<span class="fontawesome-github"></span>
|
|
63
|
+
|
|
64
|
+
## Contributing
|
|
65
|
+
|
|
66
|
+
1. Fork it
|
|
67
|
+
2. Create your feature branch - `git checkout -b my-new-feature`
|
|
68
|
+
3. Commit your changes - `git commit -am 'Add some feature'`
|
|
69
|
+
4. Push to the branch - `git push origin my-new-feature`
|
|
70
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
|
Binary file
|