mandrill-rails 1.4.0 → 1.4.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
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzFmMGRhZjkyMWJkZjE2ODhmZTQ3YTRlMWI5MDNiNzk0NjY4OGI5MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWM5MDJiNzJlMDUwMDQ5NzRkZDE2MmQ3NGM2NjYxNjA5N2JhNTE3Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTAzMTlhM2FiYjAxMTk0OWI5ZjJkZDljODQ1ZDgyNTllMGE2NzFiZjliZTcz
|
10
|
+
OTBiYWY1MDA0MWY0ZWE1ZTMyMDc3NTgwYTllMjJhZDYxMTNmMjA1NjA2YWMz
|
11
|
+
NGUwZmFhMDRhMDgzYmQyYWE2NDlkNmMwOTVmZTU1YjUyOTQ4Yzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjMzMDUzNTMzMjM3MDRjMzAwODQzM2JhOWE2YTgwYjZjNWJiZDVmYzIwNTll
|
14
|
+
ZDNhYWRiODZlMmE3NDk2YTI1ZTM3Y2U2YmM1YWE5NjVmZDY5ZGE5YzhlMDkw
|
15
|
+
ODI1OGM4ZGIxOTdjMzEzNDJkOGIwNGRkOGYwNjVmMTViMmZlMGI=
|
@@ -3,7 +3,7 @@ require 'rails/generators/named_base'
|
|
3
3
|
module Mandrill
|
4
4
|
module Rails
|
5
5
|
module Generators
|
6
|
-
class
|
6
|
+
class MandrillGenerator < ::Rails::Generators::NamedBase
|
7
7
|
namespace 'mandrill'
|
8
8
|
desc 'Generates a controller and routes for Mandrill web hooks.'
|
9
9
|
argument :name, type: :string
|
@@ -14,7 +14,7 @@ module Mandrill
|
|
14
14
|
class_option :controller, type: :boolean, default: true,
|
15
15
|
desc: 'Creates a controller for web hooks'
|
16
16
|
|
17
|
-
source_root File.expand_path("
|
17
|
+
source_root File.expand_path("../../templates", __FILE__)
|
18
18
|
|
19
19
|
def initialize(args, *options)
|
20
20
|
args[0] = args[0].dup if args[0].is_a?(String) && args[0].frozen?
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'generator_spec'
|
3
|
-
require 'generators/
|
3
|
+
require 'generators/mandrill/mandrill_generator'
|
4
4
|
|
5
|
-
describe Mandrill::Rails::Generators::
|
5
|
+
describe Mandrill::Rails::Generators::MandrillGenerator, type: :generator do
|
6
6
|
destination File.expand_path("../../tmp", __FILE__)
|
7
7
|
|
8
8
|
before do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mandrill-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Gallagher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -124,8 +124,8 @@ files:
|
|
124
124
|
- LICENSE
|
125
125
|
- README.rdoc
|
126
126
|
- Rakefile
|
127
|
+
- lib/generators/mandrill/mandrill_generator.rb
|
127
128
|
- lib/generators/templates/controller.rb
|
128
|
-
- lib/generators/web_hook_generator.rb
|
129
129
|
- lib/mandrill-rails.rb
|
130
130
|
- lib/mandrill-rails/errors.rb
|
131
131
|
- lib/mandrill-rails/version.rb
|
@@ -157,7 +157,7 @@ files:
|
|
157
157
|
- spec/fixtures/webhook_examples/send.json
|
158
158
|
- spec/fixtures/webhook_examples/sync_blacklist.json
|
159
159
|
- spec/fixtures/webhook_examples/sync_whitelist.json
|
160
|
-
- spec/generators/
|
160
|
+
- spec/generators/mandrill_generator_spec.rb
|
161
161
|
- spec/mandrill-rails/web_hook_processor_spec.rb
|
162
162
|
- spec/mandrill/web_hook/attachment_spec.rb
|
163
163
|
- spec/mandrill/web_hook/event_decorator_spec.rb
|
@@ -213,7 +213,7 @@ test_files:
|
|
213
213
|
- spec/fixtures/webhook_examples/send.json
|
214
214
|
- spec/fixtures/webhook_examples/sync_blacklist.json
|
215
215
|
- spec/fixtures/webhook_examples/sync_whitelist.json
|
216
|
-
- spec/generators/
|
216
|
+
- spec/generators/mandrill_generator_spec.rb
|
217
217
|
- spec/mandrill-rails/web_hook_processor_spec.rb
|
218
218
|
- spec/mandrill/web_hook/attachment_spec.rb
|
219
219
|
- spec/mandrill/web_hook/event_decorator_spec.rb
|