dekiru 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 44c9a7e0ad3602d3e665926f79352c5c71d729c9
4
+ data.tar.gz: 844fbd4a34bd108f62eda72e28b0f72f70db8273
5
+ SHA512:
6
+ metadata.gz: b180e6b46f8564a097840027a9bae749c47dcad659ede9cb548c9009d451e6eeb5c5cfbb9e700f1cb572635b12f913511fbcb84f8de6ee0e1c8c6d968a75324b
7
+ data.tar.gz: 7635486c4d811bab103688851aef450cd36a01f08a076c7cea74a8d6db99b45f628234f6b89204f711dcaec3b07aab9a7e2f0cb7f70c138c4828a38da17d5020
data/lib/dekiru/helper.rb CHANGED
@@ -18,6 +18,11 @@ module Dekiru
18
18
  end
19
19
  end
20
20
 
21
+ def null_check_localization(time)
22
+ localize(time) if time.present?
23
+ end
24
+ alias nl null_check_localization
25
+
21
26
  def facebook_like(url = url_for(only_path: false), app_id = nil, width = 140)
22
27
  facebook_app_id = app_id || ENV["FACEBOOK_APP_ID"]
23
28
  html = %Q(<iframe src="//www.facebook.com/plugins/like.php?href=#{u(url)}&amp;send=false&amp;layout=button_count&amp;width=140&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=21&amp;appId=#{facebook_app_id}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:#{width}px; height:21px;" allowTransparency="true"></iframe>)
@@ -1,3 +1,3 @@
1
1
  module Dekiru
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dekiru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
5
- prerelease:
4
+ version: 0.0.12
6
5
  platform: ruby
7
6
  authors:
8
7
  - Akihiro Matsumura
@@ -14,33 +13,29 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: http_accept_language
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 2.0.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Usefull helper methods for Ruby on Rails
@@ -63,32 +58,25 @@ files:
63
58
  - lib/dekiru/version.rb
64
59
  homepage: ''
65
60
  licenses: []
61
+ metadata: {}
66
62
  post_install_message:
67
63
  rdoc_options: []
68
64
  require_paths:
69
65
  - lib
70
66
  required_ruby_version: !ruby/object:Gem::Requirement
71
- none: false
72
67
  requirements:
73
- - - ! '>='
68
+ - - '>='
74
69
  - !ruby/object:Gem::Version
75
70
  version: '0'
76
- segments:
77
- - 0
78
- hash: -2379654317634207356
79
71
  required_rubygems_version: !ruby/object:Gem::Requirement
80
- none: false
81
72
  requirements:
82
- - - ! '>='
73
+ - - '>='
83
74
  - !ruby/object:Gem::Version
84
75
  version: '0'
85
- segments:
86
- - 0
87
- hash: -2379654317634207356
88
76
  requirements: []
89
77
  rubyforge_project:
90
- rubygems_version: 1.8.23
78
+ rubygems_version: 2.2.2
91
79
  signing_key:
92
- specification_version: 3
80
+ specification_version: 4
93
81
  summary: Usefull helper methods for Ruby on Rails
94
82
  test_files: []