Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
509 commits
Select commit Hold shift + click to select a range
cc7f965
Merge pull request #157 from andrykonchin/add-specs-for-table-creation
pboling Jun 22, 2017
23261a4
Merge pull request #156 from andrykonchin/fix-default-values
pboling Jun 22, 2017
80e0d2b
Merge pull request #154 from andrykonchin/remove-logger-option
pboling Jun 22, 2017
e242b56
Merge pull request #153 from andrykonchin/add-sti-declaration
pboling Jun 22, 2017
6c99e3a
fixes the issue of delete-table and create-table not waiting until ac…
Jun 29, 2017
609f723
Merge pull request #161 from mirokuxy/master
pboling Jun 30, 2017
5fc6dd0
Update readme with `save(validate: false)` descripton
andrykonchin Jul 12, 2017
b99cd92
Add specs for skipping validation
andrykonchin Jul 12, 2017
0edd657
Don’t override document timestamps
andrykonchin Jul 12, 2017
d16210d
Fix failed spec on CI.
andrykonchin Jul 12, 2017
7193bf7
Use Query if we can in `where` clause
andrykonchin Jul 5, 2017
c0ed405
Filter non-key attributes with Query
andrykonchin Jul 12, 2017
16bf415
Filter with all available operators in Scan request
andrykonchin Jul 12, 2017
c47ac06
Document available condition operators for `where` clause in readme
andrykonchin Jul 12, 2017
e9c3f9e
Merge pull request #167 from andrykonchin/improve-querying-with-scan-…
pboling Jul 24, 2017
1a0720e
Merge pull request #166 from andrykonchin/dont-override-timestamps
pboling Jul 24, 2017
564f42c
Merge pull request #165 from andrykonchin/document-skipping-validation
pboling Jul 24, 2017
c64ccad
Allow consistent reading for Scan request
andrykonchin Jul 5, 2017
99d9385
Merge pull request #164 from andrykonchin/allow-consistent-reading-fo…
pboling Jul 26, 2017
c3145c5
Fix storing empty array as nil
andrykonchin Jun 20, 2017
9e8e4ca
Fix unuseful warning
andrykonchin Jul 26, 2017
1348329
Merge pull request #171 from andrykonchin/remove-warning-about-limit-…
pboling Jul 27, 2017
8e1b71f
Merge pull request #169 from andrykonchin/fix-empty-array-saving
pboling Jul 27, 2017
c72a5f0
Type cast condition parameters in `where` clause
andrykonchin Jul 13, 2017
1fc0f54
Skip specs for custom field types
andrykonchin Jul 26, 2017
8b51b56
Merge pull request #170 from andrykonchin/add-type-casting-in-where
pboling Jul 28, 2017
428bdf5
AWS SDK: Update Query/Scan to obey limits
Aug 9, 2017
982c522
allow batch_get_item for integer partition key
Aug 10, 2017
ed9e351
Chain: Allow querying Global/Local Secondary Index
Aug 9, 2017
b2a3978
Merge pull request #174 from mudasirraza/batch-get-integer
pboling Aug 10, 2017
d02f84c
Merge pull request #172 from richardhsu/richardhsu/fix-query-scan-limits
pboling Aug 10, 2017
461ad3d
Merge pull request #173 from richardhsu/richardhsu/update-chain-to-ut…
pboling Aug 16, 2017
634d238
Add Configuration section in Readme
andrykonchin Jun 14, 2017
afe293c
Clean up default config example in Readme
andrykonchin Aug 18, 2017
e73b659
Remove not used config options `use_ssl` and `port`
andrykonchin Aug 18, 2017
4177d11
Merge pull request #177 from andrykonchin/document-some-configuration…
pboling Aug 19, 2017
55f539a
Chain: Only query on GSI if projects all
Aug 16, 2017
c785918
Merge pull request #176 from richardhsu/richardhsu/chain-index-only-f…
pboling Aug 21, 2017
0e67c41
Store dates as days count since 1970-01-01
andrykonchin Aug 21, 2017
2428fcc
Rename `eval_limit` -> `record_limit`
Aug 22, 2017
357092e
Update README for typo
Aug 22, 2017
111dfc2
@codereview Don’t instantiate “01-01-1970” date for every field dumpi…
andrykonchin Aug 23, 2017
3808e43
freeze constant
pboling Aug 23, 2017
24d7b3d
Merge pull request #179 from andrykonchin/fix-date-type-storing
pboling Aug 23, 2017
f8293cf
Merge pull request #181 from richardhsu/richardhsu/eval-limit-to-reco…
pboling Aug 23, 2017
ddb1296
AWS SDK V2 and Chain: Add `scan_limit`
Aug 22, 2017
eb88b98
Merge pull request #182 from richardhsu/richardhsu/scan-limit
pboling Aug 23, 2017
444564f
AWS SDK V2: Add batching to query and fix paging
Aug 24, 2017
fac7661
AWS SDK V2: Fix handling limits at end of paging
Aug 24, 2017
e2ae8e3
AWS SDK V2: Add note about limit reduction
Aug 24, 2017
e3d233c
Merge pull request #183 from richardhsu/richardhsu/batch-and-fix
andrykonchin Aug 26, 2017
eaabe7a
Chain: Fix batch_size for queries
Aug 30, 2017
c793a00
Vagrant: Development environment
Aug 9, 2017
6b77af0
Merge pull request #184 from richardhsu/richardhsu/vagrant-development
pboling Aug 30, 2017
041a48c
Merge pull request #188 from richardhsu/richardhsu/batch-size-for-query
pboling Aug 30, 2017
602e4dc
Update Changelog to prepare new release.
andrykonchin Sep 5, 2017
650fd8f
Update Rubies!
pboling Sep 6, 2017
9fa3464
Merge pull request #189 from andrykonchin/update-changelog
pboling Sep 6, 2017
f97dc16
Bump to 1.3.4
pboling Sep 6, 2017
ad009c8
Support Single Table Inheritance in `where` and other chained methods
andrykonchin Aug 25, 2017
81236ee
Query for parent class returns items of children classes too
andrykonchin Aug 25, 2017
97aa7d0
[codereview] Add specs
andrykonchin Aug 28, 2017
4db6869
Don’t materialize lazy loaded query result
andrykonchin Aug 25, 2017
8dfd05e
Update specs
andrykonchin Aug 25, 2017
29b6d30
Minor cleanup
andrykonchin Aug 25, 2017
3a49e87
[codereview] Fix typo/grammar
andrykonchin Aug 30, 2017
1cbe804
For version 1.3.x use the [1-3-stable branch](https://github.com/Dyna…
pboling Sep 6, 2017
073b1b9
Merge pull request #186 from andrykonchin/fix-query-result-lazy-pagin…
pboling Sep 6, 2017
2d098c9
Merge pull request #185 from andrykonchin/fix-sti-support
pboling Sep 6, 2017
63d4d5c
remove call for maintainers
pboling Sep 10, 2017
cb512d3
improve grammar [ci skip]
pboling Sep 10, 2017
4111007
Fix Ruby syntax in examples [ci skip]
pboling Sep 10, 2017
69babba
Improve testing infrastructure
pboling Sep 10, 2017
5011c5c
docker-compose
pboling Sep 11, 2017
5e78d21
Improve test suite
pboling Sep 11, 2017
b9053a5
Fix failing specs
pboling Sep 11, 2017
b4de217
restrict nokogiri to 1.6.8 for Ruby 2.0.0
pboling Sep 11, 2017
d31e4b8
Attempting to fix JRuby build
pboling Sep 11, 2017
9d8222a
gemfile.lock should not be committed
pboling Sep 11, 2017
0469e09
Badge Table
pboling Sep 11, 2017
70e2fe3
add code triage badge
pboling Sep 11, 2017
6e0d6a2
Fields: Add options for range method for Document
Sep 11, 2017
a33de98
Merge pull request #190 from richardhsu/richardhsu/range-field-with-o…
pboling Sep 12, 2017
4b42392
Field Defaults: Allow default primitive w/o Lambda
Sep 13, 2017
c211cc2
Refactor to reduce cyclomatic complexity in method
Sep 13, 2017
8bebbfd
Fix placement of private method
Sep 14, 2017
a24de49
Merge pull request #191 from richardhsu/richardhsu/persistence-defaul…
pboling Sep 14, 2017
c2fbd0c
Minor refactoring of default value’s specs
andrykonchin Sep 14, 2017
a79bb13
Use more suitable name for the `undump_default_value` method
andrykonchin Sep 14, 2017
dc34eea
Fix typo
pboling Sep 15, 2017
193bd52
Merge pull request #192 from andrykonchin/minor-changes-for-default-v…
pboling Sep 15, 2017
3328346
Raise `RecordNotFound` if any of ids do not match in `.find` method call
andrykonchin Sep 25, 2017
9469244
`Document#save` returns true if model saved instead of `self`
andrykonchin Sep 25, 2017
0e74f5f
`Document#save!` returns `self`
andrykonchin Sep 25, 2017
a7dc3b3
[codereview] Add exception messages
andrykonchin Sep 26, 2017
f21d988
Merge pull request #195 from andrykonchin/fix-finder-behaviour
pboling Sep 26, 2017
5a101be
Merge pull request #196 from andrykonchin/update-save-return-value
pboling Sep 26, 2017
6ea9007
Use .png for badges [ci skip]
pboling Sep 29, 2017
91f4361
Add `.import` method to create multiple documents efficiently
andrykonchin Oct 5, 2017
f0dfa38
Minor refactoring
andrykonchin Oct 5, 2017
f041d44
Add short description to readme
andrykonchin Oct 5, 2017
3133716
Merge pull request #199 from andrykonchin/add-efficient-creation-of-m…
andrykonchin Oct 5, 2017
a157f4a
Add `Document.create(array)`
andrykonchin Sep 29, 2017
116eb8a
Add `Document.create!(array)`
andrykonchin Sep 29, 2017
8ffe1ce
Add short description to readme
andrykonchin Oct 5, 2017
ebbed46
Merge pull request #198 from andrykonchin/create-multiple-objects
andrykonchin Oct 6, 2017
ab3b41f
Update changelog
andrykonchin Oct 26, 2017
c55c061
Remove `rspec-retry` gem
andrykonchin Oct 26, 2017
9c2f698
Replace `pry` with `pry-byebug` gem
andrykonchin Oct 26, 2017
ead745b
Prevent excessive loading and cache assigned value
andrykonchin Oct 30, 2017
fcabb31
Fix deleting in `belongs_to` and `has_one` associations
andrykonchin Oct 30, 2017
9a06be2
Fix setting of nil for `belongs_to`
andrykonchin Oct 30, 2017
b64d4b4
Code review. Replace " with ' in specs
andrykonchin Nov 1, 2017
16eba38
Code review. Fix `byebug` installation for jRuby
andrykonchin Nov 1, 2017
bbc08f9
Fix flaky spec
andrykonchin Nov 1, 2017
01f1a3e
Merge pull request #202 from andrykonchin/fix-assigning-nil-to-single…
pboling Nov 1, 2017
639ca76
Fix Dynamoid::Criteria::Chain#key_present?
andrykonchin Nov 2, 2017
4661bdc
Merge pull request #204 from andrykonchin/fix-scan-with-condition-on-…
andrykonchin Nov 2, 2017
754f10b
Add declaration of global secondary index to Readme
andrykonchin Nov 3, 2017
bf8b5f0
Fix `destroy_all` issue with deleting documents with Scan and sort key
andrykonchin Nov 3, 2017
aba4f48
Fix `destroy_all` issue with Scan and conditions
andrykonchin Nov 3, 2017
c1327ee
Fix `destroy_all` issue with Query and model without sort key
andrykonchin Nov 3, 2017
beb731b
Add missing specs
andrykonchin Nov 3, 2017
fb0c102
Implement batch deleting
andrykonchin Nov 3, 2017
89425a1
Remove excessive specs
andrykonchin Nov 3, 2017
2182039
Rename #destroy_all to #delete_all
andrykonchin Nov 3, 2017
8bf47fb
Add example of `delete_all` call in Readme
andrykonchin Nov 3, 2017
d445a3f
Add test helper `new_class` and refactor specs
andrykonchin Nov 3, 2017
aaa3d94
Code review. Move helper to spec/support directory
andrykonchin Nov 4, 2017
6b2df4c
Code review. Replace all " with ' in spec/dynamoid/criteria/chain_spe…
andrykonchin Nov 4, 2017
ae1c038
Code review. Move ids slicing to adapter plugin
andrykonchin Nov 5, 2017
7fa2a22
Merge pull request #205 from andrykonchin/fix-destroy-all
andrykonchin Nov 5, 2017
5875798
Remove trailing whitespaces
andrykonchin Nov 5, 2017
f2ef6e0
Remove excessive empty lines
andrykonchin Nov 5, 2017
ac9372d
Add space after comma
andrykonchin Nov 5, 2017
dcd8cb7
Add leading space in comments
andrykonchin Nov 5, 2017
31b078b
Replace ' with " if it's possible
andrykonchin Nov 5, 2017
2e13ce1
Use new Hash syntax style
andrykonchin Nov 5, 2017
74ff0b2
Fix intentation
andrykonchin Nov 5, 2017
bcffc7f
Remove braces around hash parameters
andrykonchin Nov 5, 2017
3cf6637
Merge pull request #206 from andrykonchin/correct-ruby-code-style
andrykonchin Nov 6, 2017
48dcb80
Move requests slicing to adapter plugin
andrykonchin Nov 6, 2017
c2135f3
Fix issue with deleting by multiple ids and single range key
andrykonchin Nov 6, 2017
2d5fdeb
Refactor `#delete` specs a little
andrykonchin Nov 6, 2017
3b24fbd
Fix specs for Ruby 2.0-2.1
andrykonchin Nov 6, 2017
40f20b9
Merge pull request #207 from andrykonchin/refactor-batch-write-item
pboling Nov 6, 2017
23ad621
Vagrant: gnupg2 for rvm verification
Nov 17, 2017
769a76a
Merge pull request #211 from richardhsu/richardhsu/vagrant-rvm-update
pboling Nov 19, 2017
19ec942
Add missing specs for associations
andrykonchin Nov 26, 2017
c2d2a71
Refactor associations
andrykonchin Nov 30, 2017
870d042
Fix issue with re-assigning has_many association
andrykonchin Dec 1, 2017
847883c
Add `foreign_key` option for `belongs_to` association
andrykonchin Dec 1, 2017
a35cf23
Add example to Readme.md
andrykonchin Dec 1, 2017
15e4467
[Code review] Fix typos
andrykonchin Dec 5, 2017
8273db6
Merge pull request #212 from andrykonchin/add-foreign-key-option-4-2
pboling Dec 5, 2017
adb5e0e
Support native boolean type
andrykonchin Dec 12, 2017
5328cba
Update Readme.md
andrykonchin Dec 12, 2017
2e638bc
More headings
pboling Dec 12, 2017
aea6be3
Update README.md
pboling Dec 12, 2017
af64294
[Code review] Fix type and rename option
andrykonchin Dec 12, 2017
23362c9
Merge pull request #213 from andrykonchin/support-boolean-type
andrykonchin Dec 12, 2017
4dd928d
Fix the setup script
pboling Dec 18, 2017
501f56d
Document test env setup
pboling Dec 19, 2017
32217e7
Update CHANGELOG for 1.4.0 release
pboling Dec 19, 2017
a05111d
Breaking changes mean MAJOR version bump
pboling Dec 19, 2017
c5a6793
Add one minor bug fix to the changelog
andrykonchin Dec 19, 2017
37fccc3
Merge pull request #215 from Dynamoid/changelog
pboling Dec 20, 2017
5642922
Bump to 2.0.0
pboling Dec 20, 2017
41da712
Link to CHANGELOG for breaking changes
pboling Dec 20, 2017
125951a
AWS SDK compatibility table
pboling Dec 20, 2017
5b45d6e
Fix global index detection
andrykonchin Dec 30, 2017
fb9db64
Merge pull request #216 from andrykonchin/fix-index-detection-in-where
pboling Jan 6, 2018
c54c259
Add option to store datetimes as ISO-8601 formatted strings
Jan 11, 2018
21376c9
typo
Jan 11, 2018
9813761
Disable type conversion for Set and Array condition values
andrykonchin Jan 11, 2018
a85fc93
[pr comments] - Add field options to convert datetime to iso-8601 for…
Jan 12, 2018
5035bfb
Merge pull request #224 from Dynamoid/fix-set-contains-condition
pboling Jan 12, 2018
2da2039
Fix EQ conditions for Set and Array
andrykonchin Jan 13, 2018
4a5b812
Remove outdated TODOs
andrykonchin Jan 13, 2018
f5282a6
rename option to store_as_native_string
Jan 15, 2018
be1b4ae
Merge pull request #225 from Dynamoid/fix-equal-conditions-for-collec…
andrykonchin Jan 16, 2018
451ff9a
Merge pull request #223 from pratik60/william/add_option_to_store_dat…
pboling Jan 16, 2018
37c9c36
Implementing fixed datatype for elements in set
pratik60 Jan 11, 2018
5b56a85
Merge pull request #221 from pratik60/pratik/set_persistence
andrykonchin Jan 17, 2018
7f25e09
Store date field in ISO 8601 format
andrykonchin Feb 4, 2018
9b9c4e2
Add global option `store_date_as_string`
andrykonchin Feb 4, 2018
fb186c8
Add global option `store_datetime_as_string`
andrykonchin Feb 4, 2018
cd4415c
Rename `store_as_native...` options to `store_as...`
andrykonchin Feb 4, 2018
b0902ea
Update Readme
andrykonchin Feb 4, 2018
b8106e4
Minor fix of :datetime serialization
andrykonchin Feb 4, 2018
5b7734c
Merge pull request #228 from Dynamoid/store-dates-as-string
andrykonchin Feb 6, 2018
fe9eed6
Support start() on scan and support hashes for both scan and query st…
mnussbaumer Feb 7, 2018
e4699d4
Fix badge image url
schneems Feb 7, 2018
8cabd5a
Merge pull request #231 from schneems/schneems/badge
andrykonchin Feb 7, 2018
0d95ebd
Use svg instead of png for badges
epistrephein Feb 7, 2018
648fe1c
Merge pull request #232 from epistrephein/svg-badges
pboling Feb 7, 2018
c6a5884
Change benchmark logging to debug
kicktheken Feb 15, 2018
34bdd39
Add Depfu Badge
pboling Feb 15, 2018
1f6aea2
fix(config): change `app/models` to `./app/models`
baloran Feb 16, 2018
dee0a6b
Merge pull request #236 from docsend/v2.0.0_benchmark-debug
pboling Feb 16, 2018
483760d
doc(models_dir): now models_dir default is `./app/models`
baloran Feb 18, 2018
21308a6
Merge pull request #238 from Dynamoid/fix/require-create_tables
pboling Feb 19, 2018
eb9d352
Add Document.update
andrykonchin Feb 24, 2018
2e62c7b
Add Document.update_fields
andrykonchin Feb 24, 2018
42742d6
Add Document.upsert
andrykonchin Feb 24, 2018
3e96bab
Add section 'Note on set type' to readme
andrykonchin Feb 24, 2018
6ce82b5
Add section 'Updating' to readme
andrykonchin Feb 24, 2018
1c3e349
[Code review] Fix typo
andrykonchin Feb 26, 2018
274031c
Align with MIT license formatting
pboling Feb 27, 2018
541ea57
Add URL for Dynamoid organization
pboling Feb 27, 2018
a11df0d
Make it clear: library must be required
pboling Feb 28, 2018
8382066
Merge pull request #239 from Dynamoid/add-update
pboling Mar 2, 2018
2607da4
Fix update attributes typo
yoonwaiyan Mar 7, 2018
46b1784
Merge pull request #242 from yoonwaiyan/fix-typo
andrykonchin Mar 7, 2018
a82e881
Support `NE` condition operator
andrykonchin Mar 10, 2018
77e1447
Allow to pass empty strings and sets to `.import` method
andrykonchin Mar 10, 2018
5343437
Merge pull request #244 from Dynamoid/fix-empty-strings-handling-in-i…
pboling Mar 13, 2018
56a1da8
Merge pull request #243 from Dynamoid/add-ne-operator
pboling Mar 13, 2018
cc9ff27
Handle unprocessed items in `batch_get_items`
andrykonchin Mar 17, 2018
2799920
Update outdated warning message about not efficient Scan operation.
andrykonchin Mar 23, 2018
d111fa0
Allow `batch_get_item` to accept optional block argument
andrykonchin Mar 18, 2018
66c9ed7
Add config option `backoff`
andrykonchin Mar 18, 2018
aed9d15
Use optional backoff in `find_all` method
andrykonchin Mar 18, 2018
193b85a
Handle unprocessed items in `batch_write_items`
andrykonchin Mar 23, 2018
597abb3
Allow `batch_write_item` to accept optional block argument
andrykonchin Mar 23, 2018
ffa43ae
Use optional backoff in `import` method
andrykonchin Mar 23, 2018
8aff0e4
Update readme
andrykonchin Mar 24, 2018
973c237
Merge pull request #250 from Dynamoid/fix-index-warning
andrykonchin Mar 26, 2018
446d0db
Code review. Update section in readme and comments
andrykonchin Mar 26, 2018
ae03d53
Code review. Reword documentation and add default values for built-in…
andrykonchin Mar 28, 2018
66c4e5d
Merge pull request #246 from Dynamoid/handle-unprocessed-items-in-bat…
andrykonchin Mar 31, 2018
04723eb
Avoid DateTime to Time converting with losing nanoseconds
andrykonchin Apr 5, 2018
b01f3d4
Update changelog
andrykonchin Apr 7, 2018
64a7a59
Merge pull request #252 from Dynamoid/251-fix-using-datetime-as-sort-key
andrykonchin Apr 11, 2018
06a64da
Update CHANGELOG.md
andrykonchin Apr 12, 2018
42f9517
Prepare CHANGELOG.md to 2.1.0 release
andrykonchin Apr 21, 2018
220ec9e
Add Andrew Konchin to the contributors list
andrykonchin Apr 21, 2018
c007dec
Bump to 2.1.0
andrykonchin Apr 21, 2018
0d95b81
Update autogenerated by appraisal gemfiles
andrykonchin Apr 25, 2018
0262a52
Add Rails 5.2 to test with appraisal
andrykonchin Apr 25, 2018
8deafbf
Quick and dirty fix of Dymanoid::Dirty and Rails 5.2
andrykonchin Apr 25, 2018
1437c1c
Vagrant/Salt: Update configuration for RVM (#255)
richardhsu Apr 25, 2018
bac743c
Fix builds for Rails 4.0 and 4.1
andrykonchin Apr 26, 2018
9bff6b6
Merge pull request #256 from Dynamoid/support-rails-5-2-2
andrykonchin Apr 30, 2018
41abf48
Prepare CHANGELOG.md to 2.2.0 release
andrykonchin May 2, 2018
a81bf04
Bump to 2.2.0
andrykonchin May 2, 2018
19ccc55
Merge remote-tracking branch 'upstream/master' into AC-461-test
May 16, 2018
f540e7b
Fix tests
May 16, 2018
ed9ec7a
Final cleanup
May 18, 2018
ae73561
AC-461: CR Comments
Jun 18, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
service_name: travis-ci
9 changes: 9 additions & 0 deletions .dev/vagrant/minion
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Masterless Minion Configuration File
master: localhost
id: development
file_client: local

# Where your salt state exists
file_roots:
base:
- /vagrant/.dev/vagrant/salt
13 changes: 13 additions & 0 deletions .dev/vagrant/salt/apt/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apt-pkgs:
pkg.latest:
- pkgs:
- daemontools
- git-core
- openjdk-8-jre-headless
- tmux
- vim

# JAVA_HOME
/home/vagrant/.bashrc:
file.append:
- text: export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
17 changes: 17 additions & 0 deletions .dev/vagrant/salt/dynamodb/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/opt/install/aws/dynamodb.tar.gz:
file.managed:
- source: https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_2017-02-16.tar.gz
- source_hash: sha256=d79732d7cd6e4b66fbf4bb7a7fc06cb75abbbe1bbbfb3d677a24815a1465a0b2
- makedirs: True

/vagrant/spec/DynamoDBLocal-latest:
file.directory:
- name: /vagrant/spec/DynamoDBLocal-latest
- user: vagrant
- group: vagrant

dynamodb.install:
cmd.wait:
- name: cd /vagrant/spec/DynamoDBLocal-latest && tar xfz /opt/install/aws/dynamodb.tar.gz
- watch:
- file: /opt/install/aws/dynamodb.tar.gz
1 change: 1 addition & 0 deletions .dev/vagrant/salt/rvm/.gemrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gem: --no-ri --no-rdoc
80 changes: 80 additions & 0 deletions .dev/vagrant/salt/rvm/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# https://docs.saltstack.com/en/latest/ref/states/all/salt.states.rvm.html
rvm-deps:
pkg.installed:
- pkgs:
- bash
- coreutils
- gzip
- bzip2
- gawk
- sed
- curl
- git-core
- subversion
- gnupg2

mri-deps:
pkg.installed:
- pkgs:
- build-essential
- openssl
- libreadline6
- libreadline6-dev
- curl
- git-core
- zlib1g
- zlib1g-dev
- libssl-dev
- libyaml-dev
- libsqlite3-0
- libsqlite3-dev
- sqlite3
- libxml2-dev
- libxslt1-dev
- autoconf
- libc6-dev
- libncurses5-dev
- automake
- libtool
- bison
- subversion
- ruby

gpg-trust:
cmd.run:
- cwd: /home/vagrant
- name: gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
- runas: vagrant

ruby-{{ pillar['ruby']['version'] }}:
rvm.installed:
- name: {{ pillar['ruby']['version'] }}
- default: True
- user: vagrant
- require:
- pkg: rvm-deps
- pkg: mri-deps

# Disable Documentation Installation
/home/vagrant/.gemrc:
file.managed:
- user: vagrant
- group: vagrant
- name: /home/vagrant/.gemrc
- source: salt://rvm/.gemrc
- makedirs: True

# Bundler
bundler.install:
gem.installed:
- user: vagrant
- name: bundler
- ruby: ruby-{{ pillar['ruby']['version'] }}
- rdoc: false
- ri: false

bundle:
cmd.run:
- cwd: /vagrant
- name: bundle install
- runas: vagrant
5 changes: 5 additions & 0 deletions .dev/vagrant/salt/top.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
base:
'development':
- apt
- dynamodb
- rvm
20 changes: 17 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ rdoc

# yardoc generated
.yardoc
/_yardoc/

# bundler
.bundle
/.bundle/

# jeweler generated
pkg
/pkg/

# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
#
Expand Down Expand Up @@ -52,9 +53,22 @@ pkg
.rvmrc

# For RubyMine:
.idea
/.idea/

# For Ctags
.gemtags
.tags
.tags_sorted_by_file

Gemfile.lock
/doc/
/spec/reports/
/tmp/
/spec/DynamoDBLocal-latest/
/vendor/

# For vagrant
.vagrant

# For Appraisals
gemfiles/*.gemfile.lock
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--format documentation
--color
65 changes: 59 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,61 @@
sudo: required

language: ruby
rvm:
- ruby-1.9.3-p551
- ruby-2.2.2
- jruby-1.7.11
- jruby-head
- rbx-2
script: bundle exec rake unattended_spec
- ruby-2.0.0-p648
- ruby-2.1.10
- ruby-2.2.7
- ruby-2.3.4
- ruby-2.4.1
- jruby-9.1.9.0
gemfile:
gemfile:
- gemfiles/rails_4_0.gemfile
- gemfiles/rails_4_1.gemfile
- gemfiles/rails_4_2.gemfile
- gemfiles/rails_5_0.gemfile
- gemfiles/rails_5_1.gemfile
- gemfiles/rails_5_2.gemfile
matrix:
exclude:
- rvm: ruby-2.0.0-p648
gemfile: gemfiles/rails_5_0.gemfile
- rvm: ruby-2.0.0-p648
gemfile: gemfiles/rails_5_1.gemfile
- rvm: ruby-2.0.0-p648
gemfile: gemfiles/rails_5_2.gemfile
- rvm: ruby-2.1.10
gemfile: gemfiles/rails_5_0.gemfile
- rvm: ruby-2.1.10
gemfile: gemfiles/rails_5_1.gemfile
- rvm: ruby-2.1.10
gemfile: gemfiles/rails_5_2.gemfile
- rvm: ruby-2.4.1
gemfile: gemfiles/rails_4_0.gemfile
- rvm: ruby-2.4.1
gemfile: gemfiles/rails_4_1.gemfile

### BUILD LIFECYCLE STEPS ###

before_install:
# Debugging: Print out the current docker-compose version.
- docker-compose --version

# If one of your containers does not build for
# whatever reason it's best to report that now before your tests start
# otherwise it can be really tricky to debug why tests are failing sometimes.
- docker ps

after_install:
- gem install bundler -v 1.15.4
- bundle install

before_script:
# Start Docker Compose as a daemon
- docker-compose up -d

script:
- bundle exec rake spec

after_script:
- docker-compose down
26 changes: 26 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
appraise "rails-4-0" do
gem "rails", "~> 4.0.0"
gem "nokogiri", "~> 1.6.8" # can be removed once we drop support for Ruby 2.0.0
end

appraise "rails-4-1" do
gem "rails", "~> 4.1.0"
gem "nokogiri", "~> 1.6.8" # can be removed once we drop support for Ruby 2.0.0
end

appraise "rails-4-2" do
gem "rails", "~> 4.2.0"
gem "nokogiri", "~> 1.6.8" # can be removed once we drop support for Ruby 2.0.0
end

appraise "rails-5-0" do
gem "rails", "~> 5.0.0"
end

appraise "rails-5-1" do
gem "rails", "~> 5.1.0"
end

appraise "rails-5-2" do
gem "rails", "~> 5.2.0"
end
Loading