sparkpost 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  RSpec.describe 'Sparkpost' do
4
4
  it 'has a version' do
5
- expect(SparkPost::VERSION).to eq('0.1.2')
5
+ expect(SparkPost::VERSION).to eq('0.1.4')
6
6
  end
7
7
  end
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,12 @@
1
1
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
2
2
  require 'simplecov'
3
3
  require 'coveralls'
4
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
5
- SimpleCov::Formatter::HTMLFormatter,
6
- Coveralls::SimpleCov::Formatter
7
- ])
4
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
5
+ [
6
+ SimpleCov::Formatter::HTMLFormatter,
7
+ Coveralls::SimpleCov::Formatter
8
+ ]
9
+ )
8
10
  SimpleCov.start
9
11
 
10
12
  require 'webmock/rspec'
@@ -23,7 +25,7 @@ RSpec.configure do |config|
23
25
  # # => "be bigger than 2 and smaller than 4"
24
26
  # ...rather than:
25
27
  # # => "be bigger than 2"
26
- expectations.syntax = :expect
28
+ expectations.syntax = :expect
27
29
  expectations.include_chain_clauses_in_custom_matcher_descriptions = true
28
30
  end
29
31
 
@@ -35,58 +37,4 @@ RSpec.configure do |config|
35
37
  # `true` in RSpec 4.
36
38
  mocks.verify_partial_doubles = true
37
39
  end
38
-
39
- # The settings below are suggested to provide a good initial experience
40
- # with RSpec, but feel free to customize to your heart's content.
41
- =begin
42
- # These two settings work together to allow you to limit a spec run
43
- # to individual examples or groups you care about by tagging them with
44
- # `:focus` metadata. When nothing is tagged with `:focus`, all examples
45
- # get run.
46
- config.filter_run :focus
47
- config.run_all_when_everything_filtered = true
48
-
49
- # Allows RSpec to persist some state between runs in order to support
50
- # the `--only-failures` and `--next-failure` CLI options. We recommend
51
- # you configure your source control system to ignore this file.
52
- config.example_status_persistence_file_path = "spec/examples.txt"
53
-
54
- # Limits the available syntax to the non-monkey patched syntax that is
55
- # recommended. For more details, see:
56
- # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
57
- # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
58
- # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
59
- config.disable_monkey_patching!
60
-
61
- # This setting enables warnings. It's recommended, but in some cases may
62
- # be too noisy due to issues in dependencies.
63
- config.warnings = true
64
-
65
- # Many RSpec users commonly either run the entire suite or an individual
66
- # file, and it's useful to allow more verbose output when running an
67
- # individual spec file.
68
- if config.files_to_run.one?
69
- # Use the documentation formatter for detailed output,
70
- # unless a formatter has already been configured
71
- # (e.g. via a command-line flag).
72
- config.default_formatter = 'doc'
73
- end
74
-
75
- # Print the 10 slowest examples and example groups at the
76
- # end of the spec run, to help surface which specs are running
77
- # particularly slow.
78
- config.profile_examples = 10
79
-
80
- # Run specs in random order to surface order dependencies. If you find an
81
- # order dependency and want to debug it, you can fix the order by providing
82
- # the seed, which is printed after each run.
83
- # --seed 1234
84
- config.order = :random
85
-
86
- # Seed global randomization in this process using the `--seed` CLI option.
87
- # Setting this allows you to use `--seed` to deterministically reproduce
88
- # test failures related to randomization by passing the same `--seed` value
89
- # as the one that triggered the failure.
90
- Kernel.srand config.seed
91
- =end
92
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparkpost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - SparkPost
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-12-22 00:00:00.000000000 Z
13
+ date: 2016-04-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http
@@ -44,16 +44,16 @@ dependencies:
44
44
  name: rake
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
47
+ - - "<"
48
48
  - !ruby/object:Gem::Version
49
- version: '0'
49
+ version: '11'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ">="
54
+ - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: '0'
56
+ version: '11'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: rspec
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -110,6 +110,20 @@ dependencies:
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
+ - !ruby/object:Gem::Dependency
114
+ name: rubocop
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: 0.37.2
120
+ type: :development
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - "~>"
125
+ - !ruby/object:Gem::Version
126
+ version: 0.37.2
113
127
  description:
114
128
  email: developers@sparkpost.com
115
129
  executables:
@@ -121,6 +135,7 @@ files:
121
135
  - ".coveralls.yml"
122
136
  - ".gitignore"
123
137
  - ".rspec"
138
+ - ".rubocop.yml"
124
139
  - ".travis.yml"
125
140
  - Gemfile
126
141
  - LICENSE
@@ -128,18 +143,27 @@ files:
128
143
  - Rakefile
129
144
  - bin/console
130
145
  - bin/setup
131
- - examples/transmission.rb
146
+ - examples/template/list.rb
147
+ - examples/transmission/attachment.txt
148
+ - examples/transmission/send.rb
149
+ - examples/transmission/with_attachment.rb
150
+ - examples/transmission/with_substitution.rb
151
+ - examples/transmission/with_template.rb
132
152
  - lib/core_extensions/object.rb
133
153
  - lib/sparkpost.rb
134
154
  - lib/sparkpost/client.rb
135
155
  - lib/sparkpost/exceptions.rb
156
+ - lib/sparkpost/helpers.rb
136
157
  - lib/sparkpost/request.rb
158
+ - lib/sparkpost/template.rb
137
159
  - lib/sparkpost/transmission.rb
138
160
  - lib/sparkpost/version.rb
139
161
  - sparkpost.gemspec
140
162
  - spec/lib/sparkpost/client_spec.rb
141
163
  - spec/lib/sparkpost/core_extensions/object_spec.rb
164
+ - spec/lib/sparkpost/helpers_spec.rb
142
165
  - spec/lib/sparkpost/request_spec.rb
166
+ - spec/lib/sparkpost/template_spec.rb
143
167
  - spec/lib/sparkpost/transmission_spec.rb
144
168
  - spec/lib/sparkpost/version_spec.rb
145
169
  - spec/spec_helper.rb
@@ -163,14 +187,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
187
  version: '0'
164
188
  requirements: []
165
189
  rubyforge_project:
166
- rubygems_version: 2.4.5.1
190
+ rubygems_version: 2.4.6
167
191
  signing_key:
168
192
  specification_version: 4
169
193
  summary: SparkPost Ruby API client
170
194
  test_files:
171
195
  - spec/lib/sparkpost/client_spec.rb
172
196
  - spec/lib/sparkpost/core_extensions/object_spec.rb
197
+ - spec/lib/sparkpost/helpers_spec.rb
173
198
  - spec/lib/sparkpost/request_spec.rb
199
+ - spec/lib/sparkpost/template_spec.rb
174
200
  - spec/lib/sparkpost/transmission_spec.rb
175
201
  - spec/lib/sparkpost/version_spec.rb
176
202
  - spec/spec_helper.rb
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require_relative '../lib/sparkpost'
4
-
5
- sp = SparkPost::Client.new() # gets api key from ENV
6
- response = sp.transmission.send_message('RECIPIENT_EMAIL', 'SENDER_EMAIL', 'test email', '<h1>HTML message</h1>')
7
-
8
- puts response