activity_notification 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1f6ad3e3fe40d4841cde7931cdc67065c87fd948db1674a1cbc3016f1338aba
4
- data.tar.gz: 0b15bf8fe764df0d3431543d29ec08b3f95548faf337a14b3c30f98379688742
3
+ metadata.gz: 20341262e3b9f892cd609a69a7f5130155592a5b3e43d8d905ec6210b31db68f
4
+ data.tar.gz: 4f8f627d667e712420b9ed1e2dccaaaa3fe00e74be3a7c84770a1aecbec39143
5
5
  SHA512:
6
- metadata.gz: 56c6fe87c9ab5444d02969775ca91d1c3054d1c63ff0e12f1308984b0b5c8f06c48f3dea8cd9bfa333f79f72f3951de99d028a1f586d2f485537104300346c07
7
- data.tar.gz: 309085505f26839eefdfed6a34a9d950af85013a1c161d384206e3c4a31e3156b80c1d37097d8c56dced7b10fea83715daaa10abf85e70185029e7df76fcc9d6
6
+ metadata.gz: f82266c7341114ac6e39aca9d7daee5734a204d7f4f0948d7f8ace6fa047ce1edc3ff3041b776ed32cf38cca343e6f0919b94a348b9c740e1efd4d5b82253e61
7
+ data.tar.gz: 725129b9714995fd1b70866e737b535cf2bca972d77ab12353bd1e7f9a11c752313f13d3f4a0d1c9699e60d70a192020b2948b717b38b6912445eb5f90178f6a
@@ -1,3 +1,9 @@
1
+ ## 2.1.1 / 2020-02-11
2
+ [Full Changelog](http://github.com/simukappu/activity_notification/compare/v2.1.0...v2.1.1)
3
+
4
+ Bug Fixes:
5
+ * Fix eager_load by autoloading VERSION - [#124](https://github.com/simukappu/activity_notification/issues/124) [#125](https://github.com/simukappu/activity_notification/pull/125)
6
+
1
7
  ## 2.1.0 / 2020-02-04
2
8
  [Full Changelog](http://github.com/simukappu/activity_notification/compare/v2.0.0...v2.1.0)
3
9
 
data/README.md CHANGED
@@ -68,7 +68,7 @@ The deployed demo application is included in this gem's source code as a test ap
68
68
  ### Public REST API reference as OpenAPI Specification
69
69
 
70
70
  REST API reference as OpenAPI Specification is published in SwaggerHub here:
71
- * **https://app.swaggerhub.com/apis/simukappu/activity-notification/**
71
+ * **https://app.swaggerhub.com/apis-docs/simukappu/activity-notification/**
72
72
 
73
73
  You can see sample single page application using [Vue.js](https://vuejs.org) as a part of example Rails application here:
74
74
  * **https://activity-notification-example.herokuapp.com/spa/**
@@ -422,7 +422,7 @@ You can see [sample single page application](/spec/rails_app/app/javascript/) us
422
422
 
423
423
  OpenAPI Specification in [online demo](https://activity-notification-example.herokuapp.com/) is published here: **https://activity-notification-example.herokuapp.com/api/v2/apidocs**
424
424
 
425
- Public API reference is also hosted in [SwaggerHub](https://swagger.io/tools/swaggerhub/) here: **https://app.swaggerhub.com/apis/simukappu/activity-notification/**
425
+ Public API reference is also hosted in [SwaggerHub](https://swagger.io/tools/swaggerhub/) here: **https://app.swaggerhub.com/apis-docs/simukappu/activity-notification/**
426
426
 
427
427
  You can also publish OpenAPI Specification in your own application using *[ActivityNotification::ApidocsController](/app/controllers/activity_notification/apidocs_controller.rb)* like this:
428
428
 
@@ -16,6 +16,7 @@ module ActivityNotification
16
16
  autoload :Common
17
17
  autoload :Config
18
18
  autoload :Renderable
19
+ autoload :VERSION
19
20
  autoload :GEM_VERSION
20
21
 
21
22
  module Mailers
@@ -454,7 +454,7 @@ module ActivityNotification
454
454
  #
455
455
  # @return [Array<Notificaion>] Available options for kinds of notify methods
456
456
  def available_options
457
- [:key, :group, :group_expiry_delay, :notifier, :parameters, :send_email, :send_later].freeze
457
+ [:key, :group, :group_expiry_delay, :notifier, :parameters, :send_email, :send_later, :pass_full_options].freeze
458
458
  end
459
459
 
460
460
  # Defines mailer class to send notification
@@ -75,7 +75,7 @@ module ActivityNotification
75
75
  key :required, false
76
76
  key :type, :string
77
77
  key :format, :'date-time'
78
- key :example, Time.current.iso8601(3)
78
+ key :example, Time.current.ago(10.years).iso8601(3)
79
79
  end
80
80
  base.parameter do
81
81
  key :name, :earlier_than
@@ -84,7 +84,7 @@ module ActivityNotification
84
84
  key :required, false
85
85
  key :type, :string
86
86
  key :format, :'date-time'
87
- key :example, Time.current.iso8601(3)
87
+ key :example, Time.current.since(10.years).iso8601(3)
88
88
  end
89
89
  end
90
90
  end
@@ -1,3 +1,3 @@
1
1
  module ActivityNotification
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -640,7 +640,7 @@ shared_examples_for :notification_api do
640
640
  describe ".available_options" do
641
641
  it "returns list of available options in notify api" do
642
642
  expect(described_class.available_options)
643
- .to eq([:key, :group, :group_expiry_delay, :notifier, :parameters, :send_email, :send_later])
643
+ .to eq([:key, :group, :group_expiry_delay, :notifier, :parameters, :send_email, :send_later, :pass_full_options])
644
644
  end
645
645
  end
646
646
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activity_notification
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Yamazaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-04 00:00:00.000000000 Z
11
+ date: 2020-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties