qqface 0.0.1 → 0.1.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.
@@ -0,0 +1,35 @@
1
+ # Qqface tag
2
+
3
+ This is a gem to helper you quick add qqface function to your application.
4
+
5
+ This is a wrapper for the jquery.qqFace.js plugin, and add two action view helper method for use easy.
6
+
7
+ ## Install
8
+
9
+ in your `Gemfile`:
10
+
11
+ gem 'qqface'
12
+
13
+ an install it:
14
+
15
+ $ bundle install
16
+
17
+ ## Usage
18
+
19
+ you need add require css,js file in your app assets files:
20
+
21
+ `app/assets/javascripts/application.js`
22
+
23
+ //= require jquery.qqFace
24
+
25
+ `app/assets/stylesheets/application.css`
26
+
27
+ *= require qqface
28
+
29
+ then you can use `qqface_button_tag` helper in views, for example:
30
+
31
+ <%= qqface_button_tag('post_content') %>
32
+
33
+ and display the qq face images:
34
+
35
+ <%= simple_format(qqface_format(@post.content)) %>
@@ -1,4 +1,4 @@
1
1
  # coding: utf-8
2
2
  module Qqface
3
- VERSION = "0.0.1"
3
+ VERSION = "0.1.0"
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qqface
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 0
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - WeekFace
@@ -144,7 +144,7 @@ files:
144
144
  - lib/tasks/qqface_tasks.rake
145
145
  - MIT-LICENSE
146
146
  - Rakefile
147
- - README.rdoc
147
+ - README.markdown
148
148
  - test/qqface_test.rb
149
149
  - test/test_helper.rb
150
150
  - test/dummy/public/500.html
@@ -1,50 +0,0 @@
1
- # Qqface tag
2
-
3
- This is a gem to helper you quick create a share feature in you Rails apps.
4
-
5
- ## Screenshot
6
-
7
- ![img](http://l.ruby-china.org/photo/00cc56853b29b5d90458d39e855a936d.png)
8
-
9
- ## Install
10
-
11
- in your `Gemfile`:
12
-
13
- gem 'social_share_button'
14
-
15
- an install it:
16
-
17
- $ bundle install
18
- $ rails generate social_share_button:install
19
-
20
- ## Configure
21
-
22
- you can create this content in `config/initializes/social_share_button.rb`:
23
-
24
- SocialShareButton.configure do |config|
25
- config.allow_sites = %w(twitter facebook weibo douban)
26
- end
27
-
28
- ## Usage
29
-
30
- you need add require css,js file in your app assets files:
31
-
32
- `app/assets/javascripts/application.js`
33
-
34
- //= require social-share-button
35
-
36
- `app/assets/stylesheets/application.css`
37
-
38
- *= require social-share-button
39
-
40
- then you can use `social_share_button_tag` helper in views, for example `app/views/posts/show.html.erb`
41
-
42
- <%= social_share_button_tag(@post.title) %>
43
-
44
- and you can custom rel attribute:
45
-
46
- <%= social_share_button_tag(@post.title, :rel => "twipsy") %>
47
-
48
- ## Demo
49
-
50
- [http://ruby-china.org/wiki/about](http://ruby-china.org/wiki/about)