activity_notification 2.1.0 → 2.1.1
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/docs/Functions.md +1 -1
- data/lib/activity_notification.rb +1 -0
- data/lib/activity_notification/apis/notification_api.rb +1 -1
- data/lib/activity_notification/controllers/concerns/swagger/notifications_parameters.rb +2 -2
- data/lib/activity_notification/version.rb +1 -1
- data/spec/concerns/apis/notification_api_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20341262e3b9f892cd609a69a7f5130155592a5b3e43d8d905ec6210b31db68f
|
4
|
+
data.tar.gz: 4f8f627d667e712420b9ed1e2dccaaaa3fe00e74be3a7c84770a1aecbec39143
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f82266c7341114ac6e39aca9d7daee5734a204d7f4f0948d7f8ace6fa047ce1edc3ff3041b776ed32cf38cca343e6f0919b94a348b9c740e1efd4d5b82253e61
|
7
|
+
data.tar.gz: 725129b9714995fd1b70866e737b535cf2bca972d77ab12353bd1e7f9a11c752313f13d3f4a0d1c9699e60d70a192020b2948b717b38b6912445eb5f90178f6a
|
data/CHANGELOG.md
CHANGED
@@ -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/**
|
data/docs/Functions.md
CHANGED
@@ -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
|
|
@@ -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
|
@@ -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.
|
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-
|
11
|
+
date: 2020-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|