spackle-ruby 0.0.9 → 0.0.11

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: d370af3cb13da25635dff5eaee17972e6f540b3ab3ad949097abc0279ca64f88
4
+ data.tar.gz: 13fd6753a5dc9f8672cc5705cb13f8ebb8796b56ab685bed48921acc170f119d
5
5
  SHA512:
6
- metadata.gz: 35085f40e0e208bf54b7feb94035cee3f53b3d2ba405be92a752c91881b3e508bf64d0ed051c277ee166e74437891f1d963ce2d54ccd9b8e5f9d58e31999860b
7
- data.tar.gz: 0e59733fb2d26288f1e60651107356f32900e398df9ede5b30ac62488a0091d9248164011a9b0db887dec9a8e90350712b97438eec8e8602cecb527a9860070a
6
+ metadata.gz: c1ddcc3b1d6b16e37d4a8374d057ef6c312b2a9cac1934740bc8d237f038b1b5613a637d290ceadcc057a4f6176c07e152810a7577a0996c788d7c1c04e1b7d9
7
+ data.tar.gz: 1f4a29bddbb7c8d3ba73ebd5a760d424afa308b6f1c19819ef159d6a23dd32f4af329b8256561f067d0ee08df451762164dec8c5dc162aacbd30a6dbb1d7acbe
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,10 +58,12 @@ 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(
66
+ region: @store_config['region'],
65
67
  credentials: credentials,
66
68
  )
67
69
  end
@@ -71,13 +73,18 @@ module Spackle
71
73
  include Aws::CredentialProvider
72
74
  include Aws::RefreshingCredentials
73
75
 
76
+ @region = nil
74
77
  @role_arn = nil
75
78
  @token = nil
76
79
 
77
- def initialize(role_arn, token)
78
- @client = Aws::STS::Client.new(:credentials => false)
80
+ def initialize(role_arn, token, region)
81
+ @region = region
79
82
  @role_arn = role_arn
80
83
  @token = token
84
+ @client = Aws::STS::Client.new(
85
+ region: @region,
86
+ credentials: false,
87
+ )
81
88
  super()
82
89
  end
83
90
 
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.11"
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.11
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