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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b1e678d254994b393bf131f52f05c328076bf32
4
- data.tar.gz: fc5293641b8930c0f8a0040d7d0654ccbbbc4a5b
3
+ metadata.gz: 60b4633b1480d4d22a11afdbd3201ef2bb01dd0d
4
+ data.tar.gz: 395dca862111578e47cfe39f31e6b9cca7220ef2
5
5
  SHA512:
6
- metadata.gz: 73deff7315385d0f873e8d63a079c12916c6c7fd83d5e9ed626af586e948694c657cf90168dd047ee67871d492b0ef8b19e037f1accd4a9fdb07f2ffb0684f28
7
- data.tar.gz: 8e2977144acba537d7cbd864c0bfb7085f2711a7dee8ab58f400d0d16c9418c5287e5310cbf6de9f9800c23e827ce3d3331923d5ab33aae13795ebbda8312424
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
- * Transparent icon
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 image support for Weibo share.
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], :size => options[:size]
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
@@ -1,3 +1,3 @@
1
1
  module IconSocialShareButton
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-08-12 00:00:00.000000000 Z
11
+ date: 2015-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails