vonage_rails 1.0.0 → 1.2.0

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: 1e57188ca719587ccc849ea056ba617f3765e4791725f46a2c9a35b678d3aa15
4
- data.tar.gz: a93c1f0c1f393db3b848acbaf79411920d8de7afbe18658cc2eaac9f64fbd63f
3
+ metadata.gz: 2bd1c1ffc04ff4fd5f5b06244358da2857be845d4fc5bdb07531a39563643ab8
4
+ data.tar.gz: f3dfb59a0af22bb11c96e73327426a75cd795798e1efda879b079e0fda61b000
5
5
  SHA512:
6
- metadata.gz: 45c47ada2204ab3223290f8f1df0e82cabe701ddccbdde70057ccb0197c9e2d74a421fa625dd2496f0b3453f294b7cf5e217478203f1dfa9d41060aa22319bc1
7
- data.tar.gz: 585125e6ddfb45c94bfabc8178ce4c5b44915479f6d48f19f9f9f7e13588cf84e7b45fd4eb7393c2e0ecb354a4ca736ba42eb355bef3d12819c6aeaf3e073563
6
+ metadata.gz: c88e6f6d9731a61bf64ade33aac76f74c4d8cc873d6c69c2fe403148dca8cfc1ff6827e943900ea48b5cd8457cb521f6ed68c865b35949497848cf8cf79983f2
7
+ data.tar.gz: 823fc886b980615f76fa80aea231b0a7260c98ae1ae60d34c9b5e529fe86c129a91353b6774d82a87cc0e237eabb4004f6c189a41c0eb1e86bd77ecbef637e45
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Vonage Rails Gem
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/vonage_rails.svg)](https://badge.fury.io/rb/vonage_rails) [![Coverage Status](https://coveralls.io/repos/github/Nexmo/nexmo-rails/badge.svg?branch=master)](https://coveralls.io/github/Nexmo/nexmo-rails?branch=master) [![Build Status](https://api.travis-ci.org/Nexmo/nexmo-rails.svg?branch=master)](https://travis-ci.org/Nexmo/nexmo-rails)
3
+ [![Gem Version](https://badge.fury.io/rb/vonage_rails.svg)](https://badge.fury.io/rb/vonage_rails) [![Coverage Status](https://coveralls.io/repos/github/Nexmo/nexmo-rails/badge.svg?branch=master)](https://coveralls.io/github/Nexmo/nexmo-rails?branch=master) [![Build Status](https://api.travis-ci.org/Nexmo/nexmo-rails.svg?branch=main)](https://travis-ci.org/Nexmo/nexmo-rails)
4
4
 
5
5
  <img src="https://developer.nexmo.com/assets/images/Vonage_Nexmo.svg" height="48px" alt="Nexmo is now known as Vonage" />
6
6
 
@@ -16,8 +16,8 @@ need a Vonage account. Sign up [for free at vonage.com](https://dashboard.nexmo.
16
16
 
17
17
  Vonage Rails requires:
18
18
 
19
- * Rails 5.2+
20
- * Ruby 2.5.3+
19
+ * Rails 6.1.0+
20
+ * Ruby 2.7.0+
21
21
  * To use the Vonage APIs, you [need an account](https://dashboard.nexmo.com/sign-up?utm_source=DEV_REL&utm_medium=github&utm_campaign=nexmo-rails)
22
22
 
23
23
  ## Installation
data/Rakefile CHANGED
@@ -15,14 +15,25 @@ RDoc::Task.new(:rdoc) do |rdoc|
15
15
  end
16
16
 
17
17
  require 'bundler/gem_tasks'
18
-
18
+ require 'rake/testtask'
19
19
  require 'rspec/core/rake_task'
20
- require 'coveralls/rake/task'
21
20
 
22
21
  RSpec::Core::RakeTask.new(:test)
23
22
 
24
- Coveralls::RakeTask.new
25
-
26
23
  task default: :test
27
24
 
28
- task :test_with_coveralls => [:test, 'coveralls:push']
25
+ desc "Build gem"
26
+ task :build_gem do
27
+ `rake build`
28
+ end
29
+
30
+ desc "Publish gem"
31
+ task publish_gem: [:build_gem] do
32
+ `gem push pkg/*.gem`
33
+ Rake::Task[:empty_pkg].invoke
34
+ end
35
+
36
+ desc "Empty pkg directory"
37
+ task :empty_pkg do
38
+ `rm -rf pkg/*`
39
+ end
@@ -1,5 +1,5 @@
1
1
  # :nocov:
2
2
  module VonageRails
3
- VERSION = '1.0.0'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  # :nocov:
data/lib/vonage_rails.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'vonage'
2
2
  require 'forwardable'
3
+ require 'ostruct'
3
4
 
4
5
  module Vonage
5
6
  class << self
@@ -7,11 +8,7 @@ module Vonage
7
8
 
8
9
  attr_accessor :client
9
10
 
10
- def_delegators :@client, :account, :alerts, :applications,
11
- :voice, :conversations, :conversions,
12
- :files, :messages, :numbers,
13
- :number_insight, :pricing, :redact, :secrets,
14
- :sms, :signature, :tfa, :verify
11
+ def_delegators :@client, *::Vonage::Client.instance_methods(false) - [:config]
15
12
 
16
13
  def setup(&block)
17
14
  config = OpenStruct.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vonage_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vonage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-15 00:00:00.000000000 Z
11
+ date: 2024-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 7.2.0
33
+ version: '7.19'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 7.2.0
40
+ version: '7.19'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dotenv-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -135,14 +135,14 @@ files:
135
135
  - lib/generators/vonage_initializer/vonage_initializer_generator.rb
136
136
  - lib/vonage_rails.rb
137
137
  - lib/vonage_rails/version.rb
138
- homepage: https://github.com/Nexmo/nexmo-rails
138
+ homepage: https://github.com/Vonage/vonage-rails
139
139
  licenses:
140
140
  - MIT
141
141
  metadata:
142
- homepage: https://github.com/Nexmo/nexmo-rails
143
- source_code_uri: https://github.com/Nexmo/nexmo-rails
144
- bug_tracker_uri: https://github.com/Nexmo/nexmo-rails/issues
145
- changelog_uri: https://github.com/Nexmo/nexmo-rails/blog/master/CHANGES.md
142
+ homepage: https://github.com/Vonage/vonage-rails
143
+ source_code_uri: https://github.com/Vonage/vonage-rails
144
+ bug_tracker_uri: https://github.com/Vonage/vonage-rails/issues
145
+ changelog_uri: https://github.com/Vonage/vonage-rails/blob/main/CHANGES.md
146
146
  post_install_message:
147
147
  rdoc_options: []
148
148
  require_paths:
@@ -158,9 +158,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.0.0
161
+ rubygems_version: 3.5.9
162
162
  signing_key:
163
163
  specification_version: 4
164
- summary: This is a Rails initializer for Vonage's Ruby Gem. To use it you'll need
164
+ summary: This is a Rails initializer for Vonage's Ruby SDK. To use it you'll need
165
165
  a Vonage account. Sign up for free at https://www.vonage.com
166
166
  test_files: []