wpns 0.0.1 → 0.0.2

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.
@@ -47,15 +47,15 @@ module Wpns
47
47
  case type
48
48
  when :toast
49
49
  msg_body << "<wp:Text1>#{params[:title]}</wp:Text1>" +
50
- "<wp:Text2>#{params[:message]}</wp:Text2>" +
51
- "<wp:Param>#{params[:param]}</wp:Param>"
50
+ "<wp:Text2>#{params[:message]}</wp:Text2>"
51
+ msg_body << "<wp:Param>#{params[:param]}</wp:Param>" if params[:param]
52
52
  when :tile
53
- msg_body << "<wp:BackgroundImage>#{params[:image]}</wp:BackgroundImage>" +
54
- "<wp:Count>#{params[:count].to_s}</wp:Count>" +
55
- "<wp:Title>#{params[:title]}</wp:Title>" +
56
- "<wp:BackBackgroundImage>#{params[:back_image]}</wp:BackBackgroundImage>" +
57
- "<wp:BackTitle>#{params[:back_title]}</wp:BackTitle>" +
58
- "<wp:BackContent>#{params[:back_content]}</wp:BackContent>"
53
+ msg_body << "<wp:BackgroundImage>#{params[:image]}</wp:BackgroundImage>" if params[:image]
54
+ msg_body << "<wp:Count>#{params[:count].to_s}</wp:Count>" if params[:count]
55
+ msg_body << "<wp:Title>#{params[:title]}</wp:Title>" if params[:title]
56
+ msg_body << "<wp:BackBackgroundImage>#{params[:back_image]}</wp:BackBackgroundImage>" if params[:back_image]
57
+ msg_body << "<wp:BackTitle>#{params[:back_title]}</wp:BackTitle>" if params[:back_title]
58
+ msg_body << "<wp:BackContent>#{params[:back_content]}</wp:BackContent>" if params[:back_content]
59
59
  end
60
60
  msg_body << "</wp:#{wp_type}></wp:Notification>"
61
61
  else
@@ -1,3 +1,3 @@
1
1
  module Wpns
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wpns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: