sendgrid_webapi 0.0.6 → 0.0.8

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
- SHA1:
3
- metadata.gz: 2606be3393f22f3c3232828d711f981bc754048c
4
- data.tar.gz: eaa623267e8d529e75c3978b4e5089ce3b6fd956
2
+ SHA256:
3
+ metadata.gz: c318215ba8b2b1023891b605e2b47857d7af9ab5592b0f741fa9947b1815af45
4
+ data.tar.gz: b39d21419377d4808a0dcd3bddebf838d30f00534cc95fefa5850ac06ab13fc3
5
5
  SHA512:
6
- metadata.gz: 0fee7b15044d551cc1147857d545c12e26f76a73fd50d1b9c4a7221204ca8f0089b9280723c30317c39e3c1593d9dbf5e5b03c56f2a04c15cfad1eb742b3be2a
7
- data.tar.gz: 5c3afaa1ef3fd6220be811a91cd3dd8bfca148faf8280c7e088552dfedcd6e31ba060e4caf1a25b38d95895dd8ec7400162787021581b13306b640f9535738fc
6
+ metadata.gz: 969e60cd620a4397735a996e01050e07300083c09eaa0ac13f7f175262b62d09cf0c282ea28b6bb457ca8a24bb91d5616ef21a1f51f17438d2aa58c4a07696da
7
+ data.tar.gz: eac4a40143a43526a572289cedc047dd3813ca3aacd3760cc36437913110945f6222e9a74204d142a1a26a5ed3529084b35b96f7ea40ae457c3ce77a7fae6b94
@@ -0,0 +1,132 @@
1
+ # Ruby CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-ruby/ for more details
4
+ #
5
+ defaults: &defaults
6
+ working_directory: ~/repo
7
+ docker:
8
+ - image: circleci/ruby:2.3.6-stretch-node
9
+ environment:
10
+ # - DBHOST: localhost
11
+ # - DBNAME: sendgrid_webapi_test
12
+ # - DBPASSWORD: Vdm9omJt8Z3MCV4N
13
+ # - DBUSER: test_user
14
+ - RACK_ENV: test
15
+ - RAILS_ENV: test
16
+ # - image: circleci/postgres:10.3-alpine-ram
17
+ # environment:
18
+ # - POSTGRES_DB: sendgrid_webapi_test
19
+ # - POSTGRES_USER: test_user
20
+ # - POSTGRES_PASSWORD: Vdm9omJt8Z3MCV4N
21
+
22
+ version: 2
23
+ jobs:
24
+ run_specs:
25
+ <<: *defaults
26
+
27
+ steps:
28
+ - run:
29
+ name: Set up environment
30
+ command: |
31
+ sudo apt-get update && sudo apt-get install -y apt-transport-https apt-utils
32
+
33
+ - checkout
34
+
35
+ - restore_cache:
36
+ keys:
37
+ - sendgrid_webapi-dependencies-v1-{{ checksum "sendgrid_webapi.gemspec" }}
38
+ - sendgrid_webapi-dependencies-v1-
39
+
40
+ - run:
41
+ name: Install dependencies
42
+ command: |
43
+ # curl -sS https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
44
+ # echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
45
+ # sudo apt-get update && sudo apt-get install postgresql-client-10
46
+ bundle check --path=./vendor/bundle || bundle install --path=./vendor/bundle --jobs=4 --retry=3
47
+
48
+ - save_cache:
49
+ key: sendgrid_webapi-dependencies-v1-{{ checksum "sendgrid_webapi.gemspec" }}
50
+ paths:
51
+ - ./vendor/bundle
52
+
53
+ # - run:
54
+ # name: Set up database
55
+ # command: |
56
+ # cp spec/internal/config/database.docker.yml spec/internal/config/database.yml
57
+
58
+ - run:
59
+ name: Run tests
60
+ command: |
61
+ mkdir /tmp/test-results
62
+ TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
63
+ bundle exec rspec --format progress --format RspecJunitFormatter --out /tmp/test-results/rspec.xml $TEST_FILES
64
+
65
+ - store_test_results:
66
+ path: /tmp/test-results
67
+
68
+ - store_artifacts:
69
+ path: /tmp/test-results
70
+ destination: test-results
71
+
72
+ build_gem:
73
+ <<: *defaults
74
+
75
+ steps:
76
+ - run:
77
+ name: Set up environment
78
+ command: |
79
+ sudo apt-get update && sudo apt-get install -y apt-transport-https apt-utils
80
+
81
+ - checkout
82
+
83
+ - restore_cache:
84
+ keys:
85
+ - sendgrid_webapi-dependencies-v1-{{ checksum "sendgrid_webapi.gemspec" }}
86
+ - sendgrid_webapi-dependencies-v1-
87
+
88
+ - run:
89
+ name: Install dependencies
90
+ command: |
91
+ gem install gemfury
92
+ bundle check --path=./vendor/bundle || bundle install --path=./vendor/bundle --jobs=4 --retry=3
93
+
94
+ - save_cache:
95
+ key: sendgrid_webapi-dependencies-v1-{{ checksum "sendgrid_webapi.gemspec" }}
96
+ paths:
97
+ - ./vendor/bundle
98
+
99
+ - run:
100
+ name: Build gem
101
+ command: |
102
+ gem build sendgrid_webapi.gemspec
103
+
104
+ - run:
105
+ name: Push gem
106
+ command: |
107
+ if [[ "${CIRCLE_PROJECT_USERNAME}" == "OneHQ" && "${CIRCLE_BRANCH}" == "master" && -n "${RUBYGEMS_API_KEY}" ]]; then
108
+ bash .circleci/setup-rubygems.sh
109
+ version=$(ruby -e 'load "lib/version.rb"; puts SendGridWebApi::VERSION')
110
+ grep -q "${version}" <(gem search sendgrid_api) || EXIT_CODE=$? && true
111
+ if [[ $EXIT_CODE == 1 ]]; then
112
+ gem push sendgrid_webapi-${version}.gem
113
+ git tag ${version}
114
+ git push --tags
115
+
116
+ [[ -n "$SLACK_TOKEN" ]] && curl -s -d "sendgrid_webapi ($version) released." "https://onehq.slack.com/services/hooks/slackbot?token=${SLACK_TOKEN}&channel=%23machines"
117
+ fi
118
+ fi
119
+
120
+ workflows:
121
+ version: 2
122
+ build-deploy:
123
+ jobs:
124
+ - run_specs
125
+ - build_gem:
126
+ requires:
127
+ - run_specs
128
+ filters:
129
+ branches:
130
+ only:
131
+ - master
132
+ - staging
@@ -0,0 +1,5 @@
1
+ #!/bin/sh
2
+
3
+ mkdir ~/.gem
4
+ echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
5
+ chmod 0600 /home/circleci/.gem/credentials
data/.gitignore CHANGED
@@ -1,5 +1,32 @@
1
1
  *.gem
2
+ *.pgz
3
+ *.tmproj
2
4
  .bundle
5
+ .DS_Store
6
+ .gitconfig
7
+ .idea
3
8
  .rvmrc
9
+ .sass-cache
10
+ /.ey_local_data
11
+ /.ruby-gemset
12
+ /.ruby-version
13
+ /.vagrant
14
+ bin/*
15
+ config/*.sphinx.conf
16
+ config/database.yml
17
+ config/sphinx.yml
18
+ db/sphinx/
19
+ Gemfile.lock
20
+ log
21
+ log/*.log
22
+ project.rvmrc
23
+ public/assets
24
+ public/flash/*.swf
25
+ public/javascripts/packaged/*.js
26
+ public/packages/*
27
+ public/stylesheets/packaged/*.css
28
+ spec/internal/config/database.yml
29
+ sphinx/**/*
30
+ tmp
31
+ tmp/**/*
4
32
  Gemfile.lock
5
- pkg/*
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
- --colour
2
- --format nested
1
+ --format Fuubar
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1 @@
1
+ ruby 2.3.6
@@ -1,3 +1,3 @@
1
1
  module SendGridWebApi
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["kylejginavan", "chebyte"]
10
10
  s.email = ["kylejginavan@gmail.com", "maurotorres@gmail.com"]
11
- s.homepage = "https://github.com/kylejginavan/sendgrid_smtpapi"
11
+ s.homepage = "https://github.com/kylejginavan/sendgrid_webapi"
12
12
  s.summary = %q{SendGrid WEB API gem fo Rails}
13
13
  s.description = %q{Gem for access to SendGrid WEB API from rails}
14
14
 
@@ -19,12 +19,12 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
+ s.add_dependency "faraday", "~> 0.12"
23
+ s.add_dependency "faraday_middleware", "~> 0.12"
24
+ s.add_dependency "json", "~> 1.8.0"
25
+
22
26
  s.add_development_dependency "rspec", "~> 2.10.0"
23
27
  s.add_development_dependency "webmock", "~> 1.8.7"
24
- s.add_development_dependency "vcr", "~> 2.8.0"
25
-
26
- s.add_dependency "faraday", "~> 0.9.0"
27
- s.add_dependency "faraday_middleware", "~> 0.9.0"
28
- s.add_dependency "json", "~> 1.8.0"
29
-
28
+ s.add_development_dependency "vcr", "~> 2.8.0"
29
+ s.add_development_dependency "rspec_junit_formatter", "~> 0.3", ">= 0.3.0"
30
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendgrid_webapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - kylejginavan
@@ -9,92 +9,112 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-11-21 00:00:00.000000000 Z
12
+ date: 2018-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rspec
15
+ name: faraday
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 2.10.0
21
- type: :development
20
+ version: '0.12'
21
+ type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 2.10.0
27
+ version: '0.12'
28
28
  - !ruby/object:Gem::Dependency
29
- name: webmock
29
+ name: faraday_middleware
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 1.8.7
35
- type: :development
34
+ version: '0.12'
35
+ type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 1.8.7
41
+ version: '0.12'
42
42
  - !ruby/object:Gem::Dependency
43
- name: vcr
43
+ name: json
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 2.8.0
48
+ version: 1.8.0
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: 1.8.0
56
+ - !ruby/object:Gem::Dependency
57
+ name: rspec
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: 2.10.0
49
63
  type: :development
50
64
  prerelease: false
51
65
  version_requirements: !ruby/object:Gem::Requirement
52
66
  requirements:
53
- - - ~>
67
+ - - "~>"
54
68
  - !ruby/object:Gem::Version
55
- version: 2.8.0
69
+ version: 2.10.0
56
70
  - !ruby/object:Gem::Dependency
57
- name: faraday
71
+ name: webmock
58
72
  requirement: !ruby/object:Gem::Requirement
59
73
  requirements:
60
- - - ~>
74
+ - - "~>"
61
75
  - !ruby/object:Gem::Version
62
- version: 0.9.0
63
- type: :runtime
76
+ version: 1.8.7
77
+ type: :development
64
78
  prerelease: false
65
79
  version_requirements: !ruby/object:Gem::Requirement
66
80
  requirements:
67
- - - ~>
81
+ - - "~>"
68
82
  - !ruby/object:Gem::Version
69
- version: 0.9.0
83
+ version: 1.8.7
70
84
  - !ruby/object:Gem::Dependency
71
- name: faraday_middleware
85
+ name: vcr
72
86
  requirement: !ruby/object:Gem::Requirement
73
87
  requirements:
74
- - - ~>
88
+ - - "~>"
75
89
  - !ruby/object:Gem::Version
76
- version: 0.9.0
77
- type: :runtime
90
+ version: 2.8.0
91
+ type: :development
78
92
  prerelease: false
79
93
  version_requirements: !ruby/object:Gem::Requirement
80
94
  requirements:
81
- - - ~>
95
+ - - "~>"
82
96
  - !ruby/object:Gem::Version
83
- version: 0.9.0
97
+ version: 2.8.0
84
98
  - !ruby/object:Gem::Dependency
85
- name: json
99
+ name: rspec_junit_formatter
86
100
  requirement: !ruby/object:Gem::Requirement
87
101
  requirements:
88
- - - ~>
102
+ - - "~>"
89
103
  - !ruby/object:Gem::Version
90
- version: 1.8.0
91
- type: :runtime
104
+ version: '0.3'
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: 0.3.0
108
+ type: :development
92
109
  prerelease: false
93
110
  version_requirements: !ruby/object:Gem::Requirement
94
111
  requirements:
95
- - - ~>
112
+ - - "~>"
96
113
  - !ruby/object:Gem::Version
97
- version: 1.8.0
114
+ version: '0.3'
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 0.3.0
98
118
  description: Gem for access to SendGrid WEB API from rails
99
119
  email:
100
120
  - kylejginavan@gmail.com
@@ -103,9 +123,11 @@ executables: []
103
123
  extensions: []
104
124
  extra_rdoc_files: []
105
125
  files:
106
- - .gitignore
107
- - .rspec
108
- - .travis.yml
126
+ - ".circleci/config.yml"
127
+ - ".circleci/setup-rubygems.sh"
128
+ - ".gitignore"
129
+ - ".rspec"
130
+ - ".tool-versions"
109
131
  - Gemfile
110
132
  - README.rdoc
111
133
  - Rakefile
@@ -217,7 +239,7 @@ files:
217
239
  - spec/spec_helper.rb
218
240
  - spec/sub_user_spec.rb
219
241
  - test.rb
220
- homepage: https://github.com/kylejginavan/sendgrid_smtpapi
242
+ homepage: https://github.com/kylejginavan/sendgrid_webapi
221
243
  licenses: []
222
244
  metadata: {}
223
245
  post_install_message:
@@ -226,89 +248,18 @@ require_paths:
226
248
  - lib
227
249
  required_ruby_version: !ruby/object:Gem::Requirement
228
250
  requirements:
229
- - - '>='
251
+ - - ">="
230
252
  - !ruby/object:Gem::Version
231
253
  version: '0'
232
254
  required_rubygems_version: !ruby/object:Gem::Requirement
233
255
  requirements:
234
- - - '>='
256
+ - - ">="
235
257
  - !ruby/object:Gem::Version
236
258
  version: '0'
237
259
  requirements: []
238
260
  rubyforge_project: sendgrid_webapi
239
- rubygems_version: 2.0.14
261
+ rubygems_version: 2.7.6
240
262
  signing_key:
241
263
  specification_version: 4
242
264
  summary: SendGrid WEB API gem fo Rails
243
- test_files:
244
- - spec/cassettes/client/_modules/_block/should_get_block_emails.yml
245
- - spec/cassettes/client/_modules/_block/should_get_totals_blocks.yml
246
- - spec/cassettes/client/_modules/_block/should_try_delete_not_existing_block_email.yml
247
- - spec/cassettes/client/_modules/_bounce/should_get_bounce_emails.yml
248
- - spec/cassettes/client/_modules/_bounce/should_get_totals_bounces.yml
249
- - spec/cassettes/client/_modules/_bounce/should_try_delete_not_existing_bounce_email.yml
250
- - spec/cassettes/client/_modules/_event_notification/should_delete_event_notification_url.yml
251
- - spec/cassettes/client/_modules/_event_notification/should_get_event_notification_url.yml
252
- - spec/cassettes/client/_modules/_event_notification/should_set_event_notification_url.yml
253
- - spec/cassettes/client/_modules/_invalid_email/should_get_invalid_emails.yml
254
- - spec/cassettes/client/_modules/_invalid_email/should_try_delete_not_existing_invalid_emails.yml
255
- - spec/cassettes/client/_modules/_parse_email/should_delete_parse_email.yml
256
- - spec/cassettes/client/_modules/_parse_email/should_get_parse_email.yml
257
- - spec/cassettes/client/_modules/_parse_email/should_set_parse_email.yml
258
- - spec/cassettes/client/_modules/_profile/should_get_profile.yml
259
- - spec/cassettes/client/_modules/_profile/should_set_first_name.yml
260
- - spec/cassettes/client/_modules/_spam/should_get_spam_emails.yml
261
- - spec/cassettes/client/_modules/_spam/should_try_delete_not_existing_spam_emails.yml
262
- - spec/cassettes/client/_modules/_unsubscribe/should_add_unsubscribe_emails.yml
263
- - spec/cassettes/client/_modules/_unsubscribe/should_delete_unsubscribe_email.yml
264
- - spec/cassettes/client/_modules/_unsubscribe/should_get_unsubscribe_emails.yml
265
- - spec/cassettes/client/_modules/_unsubscribe/should_try_delete_not_existing_unsubscribe_emails.yml
266
- - spec/cassettes/helper/_create_sub_user_account/should_create_sub_user_account.yml
267
- - spec/cassettes/helper/_run_sendgrid_query/should_raise_with_unsucessfull_request.yml
268
- - spec/cassettes/helper/_run_sendgrid_query/should_run_sendgrid_request.yml
269
- - spec/cassettes/sub_user/_apps/should_activate_app.yml
270
- - spec/cassettes/sub_user/_apps/should_deactivate_app.yml
271
- - spec/cassettes/sub_user/_apps/should_get_current_setting_from_one_app.yml
272
- - spec/cassettes/sub_user/_apps/should_return_available_apps.yml
273
- - spec/cassettes/sub_user/_apps/should_set_current_app.yml
274
- - spec/cassettes/sub_user/_authentication/should_auth_a_sub_user.yml
275
- - spec/cassettes/sub_user/_authentication/should_return_error_with_a_bad_sub_user.yml
276
- - spec/cassettes/sub_user/_bounces/should_returns_bounce_emails.yml
277
- - spec/cassettes/sub_user/_bounces/should_tries_to_delete_unexisting_bounce_emails.yml
278
- - spec/cassettes/sub_user/_event_notification/should_add_event_notification_url.yml
279
- - spec/cassettes/sub_user/_event_notification/should_delete_event_notification_url.yml
280
- - spec/cassettes/sub_user/_event_notification/should_get_event_notification_url.yml
281
- - spec/cassettes/sub_user/_invalid_emails/should_return_invalid_emails.yml
282
- - spec/cassettes/sub_user/_invalid_emails/should_tries_to_delete_unexisting_invalid_mail.yml
283
- - spec/cassettes/sub_user/_ip_management/should_return_all_ips_available.yml
284
- - spec/cassettes/sub_user/_ip_management/should_show_ip_subuser.yml
285
- - spec/cassettes/sub_user/_limits/should_decrements_credits_for_a_sub_user.yml
286
- - spec/cassettes/sub_user/_limits/should_delete_all_limits_for_a_sub_user.yml
287
- - spec/cassettes/sub_user/_limits/should_increments_credits_for_a_sub_user.yml
288
- - spec/cassettes/sub_user/_limits/should_list_the_limits_for_a_sub_user.yml
289
- - spec/cassettes/sub_user/_limits/should_reset_all_limits_for_a_sub_user.yml
290
- - spec/cassettes/sub_user/_limits/should_returns_limits_for_a_sub_user.yml
291
- - spec/cassettes/sub_user/_limits/should_set_total_credits.yml
292
- - spec/cassettes/sub_user/_management/should_add_new_subuser.yml
293
- - spec/cassettes/sub_user/_management/should_disable_sub_user_for_send_email.yml
294
- - spec/cassettes/sub_user/_management/should_enable_sub_user_for_access_to_website.yml
295
- - spec/cassettes/sub_user/_management/should_enable_sub_user_for_send_email.yml
296
- - spec/cassettes/sub_user/_management/should_update_sub_user.yml
297
- - spec/cassettes/sub_user/_monitor_records/should_add_existing_sub_user_to_monitor_record.yml
298
- - spec/cassettes/sub_user/_monitor_records/should_create_a_new_monitor_record.yml
299
- - spec/cassettes/sub_user/_monitor_records/should_delete_a_monitor_record.yml
300
- - spec/cassettes/sub_user/_monitor_records/should_edit_a_monitor_record.yml
301
- - spec/cassettes/sub_user/_monitor_records/should_remove_existing_sub_user_from_monitor_record.yml
302
- - spec/cassettes/sub_user/_parse_email/should_delete_parse_email.yml
303
- - spec/cassettes/sub_user/_parse_email/should_get_parse_email.yml
304
- - spec/cassettes/sub_user/_parse_email/should_set_parse_email.yml
305
- - spec/cassettes/sub_user/_spam/should_return_spam_mails.yml
306
- - spec/cassettes/sub_user/_spam/should_tries_to_delete_unexisting_spam_mail.yml
307
- - spec/cassettes/sub_user/_unsubscribes/should_add_bounce_email.yml
308
- - spec/cassettes/sub_user/_unsubscribes/should_delete_existing_bounce_email.yml
309
- - spec/cassettes/sub_user/_unsubscribes/should_delete_unexisting_bounce_email.yml
310
- - spec/cassettes/sub_user/_unsubscribes/should_returns_bounce_emails.yml
311
- - spec/client_spec.rb
312
- - spec/helper_spec.rb
313
- - spec/spec_helper.rb
314
- - spec/sub_user_spec.rb
265
+ test_files: []
@@ -1,2 +0,0 @@
1
- rvm: "2.2.2"
2
- script: rake spec