icon-social-share-button 0.0.4 → 0.0.5
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/Changelogs.md +2 -62
- data/lib/icon_social_share_button/helper.rb +11 -1
- data/lib/icon_social_share_button/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60b4633b1480d4d22a11afdbd3201ef2bb01dd0d
|
4
|
+
data.tar.gz: 395dca862111578e47cfe39f31e6b9cca7220ef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7835eaeeb8aeb38be57ea43251da79ded2c81c42931903550309ed506feece55be9c3b6c8af844e6d13480a31824a96d8dae9fc38403e50bf78d424ad0cd5abc
|
7
|
+
data.tar.gz: 9ae80dcbf415f6976f62eb770dd033bde000c88f41d7e4cb719d4f2df604f475ebb142ca9adc742abc6182b181f876fa0b545ac0905c313ef1fe3b4f26056eab
|
data/Changelogs.md
CHANGED
@@ -1,68 +1,8 @@
|
|
1
|
-
== 0.1.9
|
2
|
-
|
3
|
-
* Add `data-via` to allow `{ via: "MyTwitter" }`
|
4
|
-
* Add the special title for the corresponding social network by `{ 'data-twitter-title' => 'TheTitleForTwitter'}`
|
5
|
-
|
6
|
-
== 0.1.8
|
7
|
-
|
8
|
-
* Allow you custom appKey.
|
9
|
-
|
10
|
-
== 0.1.7
|
11
|
-
|
12
|
-
* Add desc support;
|
13
|
-
|
14
|
-
== 0.1.5
|
15
|
-
|
16
|
-
* Add Tumblr;
|
17
|
-
|
18
|
-
== 0.1.4
|
19
|
-
|
20
|
-
* Add Plurk support;
|
21
|
-
* Fix Renren share link;
|
22
|
-
|
23
|
-
== 0.1.3
|
24
|
-
|
25
|
-
* Support Rails 4;
|
26
|
-
|
27
|
-
== 0.1.2
|
28
|
-
|
29
|
-
* Add tumblr.
|
30
|
-
|
31
|
-
== 0.1.1
|
32
|
-
|
33
|
-
* Add delicious.
|
34
|
-
* Use new version of Weibo, Douban share URL to speed up page open.
|
35
|
-
|
36
|
-
== 0.1.0
|
37
|
-
|
38
|
-
* Retina support.
|
39
|
-
|
40
|
-
== 0.0.9
|
41
|
-
|
42
|
-
* Allow to give :url option to custom url.
|
43
|
-
|
44
|
-
== 0.0.8
|
45
|
-
|
46
|
-
* Add Google Bookmark;
|
47
|
-
* Improve Google+ icon.
|
48
|
-
|
49
|
-
== 0.0.7
|
50
|
-
|
51
|
-
* Douban, TQQ add image support.
|
52
|
-
|
53
|
-
== 0.0.6
|
54
|
-
|
55
|
-
* Transparent icon fix
|
56
1
|
|
57
2
|
== 0.0.5
|
58
3
|
|
59
|
-
*
|
60
|
-
* More site added (Renren,TQQ, Google+, Baidu, Kaixin001)
|
4
|
+
* Fix url too long cause overflow exception
|
61
5
|
|
62
6
|
== 0.0.4
|
63
7
|
|
64
|
-
* Add
|
65
|
-
|
66
|
-
== 0.0.3
|
67
|
-
|
68
|
-
* Facebook, Twitter, Weibo, Douban, QQZone 分享功能;
|
8
|
+
* Add `Wechat share` `Tencent-QQ friend share` `Tencent-QQ weibo share` `Sina weibo share` `Tencent-QQZone share`
|
@@ -31,7 +31,17 @@ module IconSocialShareButton
|
|
31
31
|
:url => 'http://t.cn/RLu4RKd'
|
32
32
|
}
|
33
33
|
options = default_img_options.merge(opts) # reverse_merge
|
34
|
-
image_tag generate_qr_code(options[:url]).as_png(:size => options[:size]).to_data_url, :class => options[:class]
|
34
|
+
# image_tag generate_qr_code(options[:url]).as_png(:size => options[:size]).to_data_url, :class => options[:class]
|
35
|
+
image_tag generate_qr_code(options[:url]).as_png(
|
36
|
+
resize_gte_to: true,
|
37
|
+
resize_exactly_to: true,
|
38
|
+
fill: 'white',
|
39
|
+
color: 'black',
|
40
|
+
size: options[:size],
|
41
|
+
border_modules: 2.3,
|
42
|
+
module_px_size: 2,
|
43
|
+
file: nil # path to write
|
44
|
+
).to_data_url, :class => options[:class], :size => options[:size]
|
35
45
|
end
|
36
46
|
|
37
47
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: icon-social-share-button
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matrixbirds
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|