spackle-ruby 0.0.9 → 0.0.10

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: 37a22d9b15d774ddc9c4b938ca3da7129d4eb823bdeeafd81e5b4b83258b446d
4
- data.tar.gz: 803919ddd0b82cb6b63ac7f8f49a3f704833929806be9e11e09ffcae291d2928
3
+ metadata.gz: bceed0a6e18422d4f123a62f516c7b1916bcba6461d414aa40c127bb46d81b5e
4
+ data.tar.gz: 23519eb5e17fd09b6a39c811e782b8370dd082977ad26571fa0771c521200c5c
5
5
  SHA512:
6
- metadata.gz: 35085f40e0e208bf54b7feb94035cee3f53b3d2ba405be92a752c91881b3e508bf64d0ed051c277ee166e74437891f1d963ce2d54ccd9b8e5f9d58e31999860b
7
- data.tar.gz: 0e59733fb2d26288f1e60651107356f32900e398df9ede5b30ac62488a0091d9248164011a9b0db887dec9a8e90350712b97438eec8e8602cecb527a9860070a
6
+ metadata.gz: 23cf93c13b32c59c7eb3f648593bf675775a9c64b61aead3feac79737114966c8852ff6c9dac923fa00251661f2f13b0c0827ce03300dbe9c17204caa470961a
7
+ data.tar.gz: d2542df5584b5246fb342e8331df34e7c3d716cb84aeb9b9a913167d103c639474d065dd90a063df2714a08b9665ebe15d7615147d36519baf689ce893c990db
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ gem "aws-sdk", "~> 3"
8
+ gem "rake", "~> 13.0"
9
+ gem "nokogiri", "~> 1.13"
10
+ gem "minitest", "~> 5.18"
11
+ gem "stripe", "~> 8.3"
@@ -58,7 +58,8 @@ module Spackle
58
58
  @store_config = data['adapter']
59
59
  credentials = SpackleCredentials.new(
60
60
  @store_config['role_arn'],
61
- @store_config['token']
61
+ @store_config['token'],
62
+ @store_config['region'],
62
63
  )
63
64
 
64
65
  Aws::DynamoDB::Client.new(
@@ -71,13 +72,18 @@ module Spackle
71
72
  include Aws::CredentialProvider
72
73
  include Aws::RefreshingCredentials
73
74
 
75
+ @region = nil
74
76
  @role_arn = nil
75
77
  @token = nil
76
78
 
77
- def initialize(role_arn, token)
78
- @client = Aws::STS::Client.new(:credentials => false)
79
+ def initialize(role_arn, token, region)
80
+ @region = region
79
81
  @role_arn = role_arn
80
82
  @token = token
83
+ @client = Aws::STS::Client.new(
84
+ region: @region,
85
+ credentials: false,
86
+ )
81
87
  super()
82
88
  end
83
89
 
data/spackle.gemspec CHANGED
@@ -2,7 +2,7 @@ $LOAD_PATH.unshift(::File.join(::File.dirname(__FILE__), "lib"))
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "spackle-ruby"
5
- s.version = "0.0.9"
5
+ s.version = "0.0.10"
6
6
  s.summary = "Spackle Ruby gem"
7
7
  s.description = "Spackle is the easiest way to integrate your Ruby app with Stripe Billing. " \
8
8
  "See https://www.spackle.so for details."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spackle-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spackle
@@ -88,6 +88,7 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
+ - Gemfile
91
92
  - LICENSE
92
93
  - README.md
93
94
  - Rakefile