aws_sns_manager 0.0.2.pre.alpha.pre.31 → 0.0.3.pre.alpha.pre.40

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDdlYWY4MjE3OGQwZWZlYzllYzAwYjkwZmY0NzI5YzMyZTkzZWJlNg==
4
+ N2Q2OTRiOWNmZjBkZTVlNzhlNmU1MGIzMjliZGQ5OTBlZDRiODc2OA==
5
5
  data.tar.gz: !binary |-
6
- NjgxOTMwNjNjNmQxMWNlOTQ4MTIzN2I1MDBjYjE0NmNkOTcyNzA5NA==
6
+ ZTc5M2I2NDA1ODg2ZDFlOWRiZWQ4ODBiOTVlYmQyYzczOTFiZDJiZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDc5YmQxODAzNTQxYTJiZWE1ZjMzNTEzYzEwMjI4N2FmN2M0ZjcyMmY2NTk5
10
- NTIyMzUxNjYyZDA1NmJlMzYzMTk3ZGJiNWIwYTRlNzA2ZjIwNDA4NzQzM2Fm
11
- YTZjMWJlYTJkMmExZDU4NmZhOTg2NTk1YjdlODlmZTA2Y2RmNjU=
9
+ ZDFjMjYzZmY0YmFlNWVhMTAzNTZkZmFmYjNjOWFkYmY5Y2NmNTQwNzcxZGNl
10
+ ZWZjMDU1NGRiMDY2M2NmZmY4ZDVmNTcxMzFlYTFjOWRiYjM5MTdlN2MzNTg2
11
+ ZDlmNjhmNThkMzNiYWU2ODhiMmU5M2Q1OTkzYWQwZmZkYjBhYzU=
12
12
  data.tar.gz: !binary |-
13
- ZGMyZjBkMjUzMDVkZmFjOWQ3M2NjNWMwM2ZiYzVlNjgyMGEyYjQxYTMxNjQ3
14
- YmNkYWY0MDUyZDgwYmJlY2RkYzNkZjlkZTZiMmU5MTY5MTQzNjdmNmRmNDZi
15
- ZTNkZGQ2ZDk0MjQ1OGJjY2JhMzdhY2ZkMTVkMDAyNDJmNTZjYjg=
13
+ NzQ0ZTI1ZGM4M2RmNzAyNDg5MGUxZGFkN2Q3N2IzNTI3YmY0ZTIzOWNjNzc0
14
+ M2IyNTdjNzU0OTI3ODFkMWVhOWQ4MWU0ZGI4YWM3MDdhYmFkYmEyYmJlNWRh
15
+ NjRjZTYwYmE3NzA3MmUwMzRmMTRkMjM4MDNiYzY4MzNjY2MwMmM=
@@ -1,3 +1,6 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.3
3
+
1
4
  Lint/HandleExceptions:
2
5
  Exclude:
3
6
  - spec/aws_sns_manager/client_spec.rb
@@ -2,13 +2,12 @@ language: ruby
2
2
  before_install:
3
3
  - gem install bundler
4
4
  - "rm ${BUNDLE_GEMFILE}.lock"
5
- before_script:
6
- - bundle update
7
5
  cache: bundler
8
6
  rvm:
9
7
  - 2.2.0
10
8
  - 2.2.1
11
9
  - 2.2.2
10
+ - 2.3.1
12
11
  deploy:
13
12
  provider: rubygems
14
13
  api_key:
data/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  source 'https://rubygems.org'
2
3
 
3
4
  gemspec
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aws_sns_manager (0.0.2.pre.alpha.pre.31)
4
+ aws_sns_manager (0.0.3.pre.alpha.pre.40)
5
5
  aws-sdk (~> 2)
6
6
  bundler (>= 1.3.0, < 2.0)
7
7
  json (~> 1.8)
@@ -9,53 +9,50 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- ast (2.1.0)
13
- astrolabe (1.3.1)
14
- parser (~> 2.2)
15
- aws-sdk (2.2.7)
16
- aws-sdk-resources (= 2.2.7)
17
- aws-sdk-core (2.2.7)
12
+ ast (2.3.0)
13
+ aws-sdk (2.5.11)
14
+ aws-sdk-resources (= 2.5.11)
15
+ aws-sdk-core (2.5.11)
18
16
  jmespath (~> 1.0)
19
- aws-sdk-resources (2.2.7)
20
- aws-sdk-core (= 2.2.7)
21
- codeclimate-test-reporter (0.4.8)
17
+ aws-sdk-resources (2.5.11)
18
+ aws-sdk-core (= 2.5.11)
19
+ codeclimate-test-reporter (0.6.0)
22
20
  simplecov (>= 0.7.1, < 1.0.0)
23
21
  diff-lcs (1.2.5)
24
22
  docile (1.1.5)
25
- jmespath (1.1.3)
23
+ jmespath (1.3.1)
26
24
  json (1.8.3)
27
- parser (2.2.3.0)
28
- ast (>= 1.1, < 3.0)
25
+ parser (2.3.1.2)
26
+ ast (~> 2.2)
29
27
  powerpack (0.1.1)
30
- rainbow (2.0.0)
31
- rake (10.4.2)
32
- rspec (3.4.0)
33
- rspec-core (~> 3.4.0)
34
- rspec-expectations (~> 3.4.0)
35
- rspec-mocks (~> 3.4.0)
36
- rspec-core (3.4.1)
37
- rspec-support (~> 3.4.0)
38
- rspec-expectations (3.4.0)
28
+ rainbow (2.1.0)
29
+ rake (10.5.0)
30
+ rspec (3.5.0)
31
+ rspec-core (~> 3.5.0)
32
+ rspec-expectations (~> 3.5.0)
33
+ rspec-mocks (~> 3.5.0)
34
+ rspec-core (3.5.3)
35
+ rspec-support (~> 3.5.0)
36
+ rspec-expectations (3.5.0)
39
37
  diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.4.0)
41
- rspec-mocks (3.4.0)
38
+ rspec-support (~> 3.5.0)
39
+ rspec-mocks (3.5.0)
42
40
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.4.0)
44
- rspec-support (3.4.1)
45
- rubocop (0.35.1)
46
- astrolabe (~> 1.3)
47
- parser (>= 2.2.3.0, < 3.0)
41
+ rspec-support (~> 3.5.0)
42
+ rspec-support (3.5.0)
43
+ rubocop (0.42.0)
44
+ parser (>= 2.3.1.1, < 3.0)
48
45
  powerpack (~> 0.1)
49
46
  rainbow (>= 1.99.1, < 3.0)
50
47
  ruby-progressbar (~> 1.7)
51
- tins (<= 1.6.0)
52
- ruby-progressbar (1.7.5)
53
- simplecov (0.11.1)
48
+ unicode-display_width (~> 1.0, >= 1.0.1)
49
+ ruby-progressbar (1.8.1)
50
+ simplecov (0.12.0)
54
51
  docile (~> 1.1.0)
55
- json (~> 1.8)
52
+ json (>= 1.8, < 3)
56
53
  simplecov-html (~> 0.10.0)
57
54
  simplecov-html (0.10.0)
58
- tins (1.6.0)
55
+ unicode-display_width (1.1.1)
59
56
 
60
57
  PLATFORMS
61
58
  ruby
@@ -69,4 +66,4 @@ DEPENDENCIES
69
66
  simplecov (~> 0.9)
70
67
 
71
68
  BUNDLED WITH
72
- 1.11.2
69
+ 1.13.0
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'bundler'
2
3
  Bundler::GemHelper.install_tasks
3
4
 
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+ # frozen_string_literal: true
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'aws_sns_manager/version'
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'aws-sdk'
2
3
  require 'json'
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module AwsSnsManager
2
3
  # = AwsSnsManager::Client
3
4
  class Client
@@ -44,37 +45,52 @@ module AwsSnsManager
44
45
  prod_json(data)
45
46
  end
46
47
 
48
+ # rubocop:disable Metrics/MethodLength
47
49
  def normal_notification(text, options = {})
48
50
  base = {
49
51
  aps: {
50
- alert: text,
52
+ alert: {
53
+ title: nil,
54
+ subtitle: nil,
55
+ body: text
56
+ },
51
57
  sound: 'default',
52
58
  badge: 1,
59
+ 'mutable-content': 1,
53
60
  'content-available': 1
54
61
  }
55
62
  }
56
63
  base.merge(options)
57
64
  end
65
+ # rubocop:enable Metrics/MethodLength
58
66
 
59
67
  def silent_notification(_text, options = {})
60
68
  base = {
61
69
  aps: {
70
+ 'mutable-content': 1,
62
71
  'content-available': 1
63
72
  }
64
73
  }
65
74
  base.merge(options)
66
75
  end
67
76
 
77
+ # rubocop:disable Metrics/MethodLength
68
78
  def nosound_notification(text, options = {})
69
79
  base = {
70
80
  aps: {
71
- alert: text,
81
+ alert: {
82
+ title: nil,
83
+ subtitle: nil,
84
+ body: text
85
+ },
72
86
  badge: 1,
87
+ 'mutable-content': 1,
73
88
  'content-available': 1
74
89
  }
75
90
  }
76
91
  base.merge(options)
77
92
  end
93
+ # rubocop:enable Metrics/MethodLength
78
94
 
79
95
  private
80
96
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module AwsSnsManager
2
3
  # = AwsSnsManager::Config
3
4
  module Config
@@ -1,4 +1,5 @@
1
+ # frozen_string_literal: true
1
2
  # = AwsSnsManager::VERSION
2
3
  module AwsSnsManager
3
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
4
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_sns_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.pre.alpha.pre.31
4
+ version: 0.0.3.pre.alpha.pre.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fumiya Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-18 00:00:00.000000000 Z
11
+ date: 2016-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler