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 +4 -4
- data/.travis.yml +18 -2
- data/Changelog.md +11 -1
- data/Dockerfile.ci +7 -0
- data/commutator.gemspec +1 -1
- data/lib/commutator/model.rb +6 -1
- data/lib/commutator/simple_client.rb +3 -3
- data/lib/commutator/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d755915bc083e5284eab1bb344451d3df94c7a07
|
4
|
+
data.tar.gz: 123bf055ba739c6ac627e7c60d0a420d64109f8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
4
|
-
|
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
|
+
[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
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.
|
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"
|
data/lib/commutator/model.rb
CHANGED
@@ -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
|
-
"
|
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
|
23
|
-
|
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
|
data/lib/commutator/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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
|