commutator 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: 766de21e41f676b70a6e194f7097aa0b91b454c8
4
- data.tar.gz: af121ad0fde4d8fae2b883ab253924c8f76da8ce
3
+ metadata.gz: d755915bc083e5284eab1bb344451d3df94c7a07
4
+ data.tar.gz: 123bf055ba739c6ac627e7c60d0a420d64109f8b
5
5
  SHA512:
6
- metadata.gz: 6356a69f9da48c77dee2d0bc67ac4a27ede9f13132e3a9b7b1c76a9b6f2e94b75a22f123ead454011621cb2fa818d02d99db6085fbd1e72ef4be0c5967cbb16b
7
- data.tar.gz: 42aa5af78ab1a00c5524f040a78f551093f67b50f8356f55adf5d244543885da32d5b00be59e4ae79317fa3dbf8fe24a3f1a3be6b4a85881a63c3f018a728d84
6
+ metadata.gz: ebd8fe4e9917dcbfce3384d2434d82a62d51a2ffa4c085a9ec25ec8736fd8b21d2326470dd50c87b2666226550b75f8fd05933d32ae1187fef61e1769c6a3dee
7
+ data.tar.gz: 81572ef7b74dddb73d217cbc17b3c9d2ae141cb5dc0aa1fefa3319cd14aebc3fe89bed142f13c9f40fd40b734eb91082ead0ddcbb7f7e93c61ccef00d86a818a
data/.travis.yml CHANGED
@@ -1,4 +1,20 @@
1
+ sudo: required
2
+
1
3
  language: ruby
4
+
2
5
  rvm:
3
- - 2.2.1
4
- before_install: gem install bundler -v 1.11.2
6
+ - 2.3.1
7
+ - 2.2.5
8
+ - 2.1.9
9
+
10
+ services:
11
+ - docker
12
+
13
+ before_install:
14
+ - docker build -t commutator/dynamo-local -f Dockerfile.ci .
15
+ - docker run -d -p 127.0.0.1:8000:8000 commutator/dynamo-local -inMemory -port 8000
16
+ - export AWS_ACCESS_KEY_ID=123
17
+ - export AWS_SECRET_ACCESS_KEY=abc
18
+
19
+ script:
20
+ - bundle exec rspec
data/Changelog.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/tablexi/commutator/compare/v0.2.2...master)
2
+ [Full Changelog](http://github.com/tablexi/commutator/compare/v0.2.3...master)
3
+
4
+ ### 0.2.3 / 2016-06-02
5
+ [Full Changelog](http://github.com/tablexi/commutator/compare/v0.2.2...v0.2.3)
6
+
7
+ Bug fixes:
8
+
9
+ * Return meaningful string from Commutator::Proxy::Options#inspect rather
10
+ than raising an error. Fixes #7 (Bradley Schaefer)
11
+ * Support Ruby 2.3+ - a compatibility issue was exposed by implementing
12
+ TravisCI integration. (Bradley Schaefer)
3
13
 
4
14
  ### 0.2.2 / 2016-03-07
5
15
  [Full Changelog](http://github.com/tablexi/commutator/compare/v0.2.1...v0.2.2)
data/Dockerfile.ci ADDED
@@ -0,0 +1,7 @@
1
+ FROM java:8
2
+
3
+ RUN /usr/bin/curl -L http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest | /bin/tar xz
4
+
5
+ ENTRYPOINT ["/usr/bin/java", "-Djava.library.path=./DynamoDBLocal_lib", "-jar", "DynamoDBLocal.jar"]
6
+
7
+ CMD ["-help"]
data/commutator.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.11"
22
+ spec.add_development_dependency "bundler", "~> 1.8"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_development_dependency "rspec", "~> 3.3"
25
25
  spec.add_dependency "activesupport", "~> 4.0"
@@ -220,8 +220,13 @@ module Commutator
220
220
  fluent_accessor :_proxy
221
221
  delegate :context, to: :_proxy
222
222
 
223
+ @action = const_name
224
+ def self.action
225
+ @action
226
+ end
227
+
223
228
  def inspect
224
- "#{const_name}Proxy (#{(public_methods.sort - Object.methods).join(", ")})"
229
+ "#<#{self.class.action}Options #{to_h}>"
225
230
  end
226
231
  end
227
232
  end
@@ -17,10 +17,10 @@ module Commutator
17
17
  super Aws::DynamoDB::Client.new(options)
18
18
  end
19
19
 
20
- # `**kwargs` automatically calls `to_hash` on Options instances
21
20
  API_OPERATIONS.each do |operation|
22
- define_method(operation) do |**kwargs|
23
- super kwargs
21
+ define_method(operation) do |kwargs|
22
+ kwargs = kwargs.to_hash if kwargs.respond_to? :to_hash
23
+ __getobj__.send(operation, kwargs)
24
24
  end
25
25
  end
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module Commutator
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commutator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bradley Schaefer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-03-11 00:00:00.000000000 Z
12
+ date: 2016-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '1.11'
20
+ version: '1.8'
21
21
  type: :development
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: '1.11'
27
+ version: '1.8'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -134,6 +134,7 @@ files:
134
134
  - ".rspec"
135
135
  - ".travis.yml"
136
136
  - Changelog.md
137
+ - Dockerfile.ci
137
138
  - Gemfile
138
139
  - LICENSE.txt
139
140
  - README.md