Граф коммитов

269 Коммитов

Автор SHA1 Сообщение Дата
Zhongying Qiao 6dd928a014 replace to_s with to_formatted_s as the former is deprecated in a4d685b284/activesupport/lib/active_support/core_ext/numeric/deprecated_conversions.rb 2021-12-13 23:46:10 +00:00
John Hawthorn 10d2c26185
Merge pull request #58 from github/actions
Create GitHub Actions workflow for CI
2021-09-23 11:06:17 -07:00
John Hawthorn 957899c3b2 Create GitHub Actions workflow for CI 2021-09-23 11:03:39 -07:00
John Hawthorn 161caf5ee9 Remove travis 2021-09-23 11:03:39 -07:00
John Hawthorn 6c14727e80 Update test for modern Rails versions 2021-09-23 11:03:39 -07:00
John Hawthorn 9954a03e0a
Merge pull request #56 from mattyoho/update-maintainer-attribution
Update maintainer attribution
2021-09-23 10:24:13 -07:00
Matt Yoho 5844d09a24
Update maintainer attribution 2021-06-19 13:44:39 -07:00
Leo Correa 17e9bacb0f
Merge pull request #55 from github/tonkpils/rails-7.0-fixes
Ensure GitHub::SQL works on Rails 7
2021-06-14 13:43:06 -04:00
Leo Correa 4d5e894ca6
Ensure GitHub::SQL works on Rails 7
Rails 7 has introduced a breaking change which removed mattr_accessor
methods in place of module instance methods

https://github.com/rails/rails/pull/42445
2021-06-11 15:04:15 -04:00
Nathan Witmer c5962e5f59 bump version to 0.5.2 2021-04-07 16:07:42 -06:00
Nathan Witmer 25c64dc3f9
Merge pull request #53 from github/fix-case-sensitivity
Fix case sensitivity in KV.get
2021-04-07 16:07:09 -06:00
Nathan Witmer 253dcf7b24 Pin rails version in travis too 2021-03-22 13:43:28 -06:00
Nathan Witmer 6c0174d843 bump version to 0.5.1 2021-03-22 13:10:29 -06:00
Nathan Witmer 55b8e80138 Update README to mention case-insensitivity 2021-03-22 13:10:19 -06:00
Nathan Witmer b61493948a Update KV to support case-insensitive fetches 2021-03-22 12:41:24 -06:00
Nathan Witmer a5a4a9be89 Pin rails 6 to latest release
For more predictable builds
2021-03-22 12:41:24 -06:00
Zhongying Qiao 30f20e8b9a
Merge pull request #51 from github/fix-increment-touch
Updating expired_at field for expired kv entries during increment
2020-11-16 13:15:58 -08:00
Zhongying Qiao 47c624d9ea
add additional condition to update expires_at for auth rate limit 2020-11-05 16:16:38 -08:00
Nathan Witmer 0af57cb672 Version 0.5.0
With new rails and ruby minimum versions
2020-06-16 13:19:46 -06:00
Nathan Witmer 759a3d03f0
Merge pull request #49 from github/update-for-rails-6
Update for rails 6
2020-06-16 13:19:27 -06:00
Adam Hess 3ee4ca97d2 Update to newer ruby versions 2020-06-16 09:17:21 -07:00
Adam Hess 3a2ed7966b Update tests to support newer rails versions 2020-06-15 16:09:47 -07:00
Adam Hess 8cfaed95b6 Remove collect! as it is deprecated in rails 6.1
Rails change: https://github.com/rails/rails/pull/39589
2020-06-15 13:35:26 -07:00
Adam Hess c4f97a7ae6 Add a build for rails 6.0 and update it to pass
This fixes some ruby 2.7 kwargs warnings and some some other test warnings
2020-06-15 13:33:18 -07:00
Nathan Witmer 3237951516 v0.4.0 2019-12-20 14:47:51 -07:00
Nathan Witmer 2b4f70e842
Merge pull request #47 from github/configurable-kv-table
Configurable KV Table
2019-12-20 14:47:28 -07:00
Sarah Aladetan ba27214e4c Update README.md 2019-12-19 14:12:42 -08:00
Sarah Aladetan d8a38a77de move config from GitHub::DS ➡️ GitHub::KV 2019-12-12 15:45:26 -08:00
Sarah Aladetan df408812c5 make sure config is reset in teardown for tests modifying global config 2019-12-10 13:42:42 -08:00
Sarah Aladetan b24a638dd5 make sure config is reset when starting up tests
this makes sure the migration run is always accurate. ran into this when i changed config in the console and restarted the tests without resetting the config
2019-12-09 16:33:09 -08:00
Sarah Aladetan 1afa0f5d34 move initialize values for GitHub::KV to config 2019-12-09 16:31:58 -08:00
Sarah Aladetan 4d96c26b2f don't make @table_name a GitHub::SQL::LITERAL 2019-12-09 15:58:53 -08:00
Sarah Aladetan f6dce69dd5 make sure `DS.reset` is run before every DS & KV test run 2019-12-09 15:30:53 -08:00
Sarah Aladetan e8acbedb52 update migration generator test to rely on config table name
should we do this though? i can see an argument where we actually keep the test as is because the default `table_name` is still `key_values` and we're trying to maintain original usage expectations with this PR
2019-12-09 12:39:35 -08:00
Sarah Aladetan d939c8ac0b update migration generator to use table name from config 2019-12-09 12:37:25 -08:00
Sarah Aladetan 5aa1815e92 update Github::KV to use table name from config 2019-12-09 12:36:59 -08:00
Sarah Aladetan eb6b8cdcff create specs for config model and DS methods 2019-12-09 12:28:09 -08:00
Sarah Aladetan 89c1dfd7b4 create config model for storing table name and methods for accessing and modifying config values 2019-12-09 12:06:44 -08:00
Nathan Witmer 9a8fcf8f99
Merge pull request #45 from github/fletchto99/kv-increment
kv: Add increment functionality
2019-08-26 15:10:20 -06:00
Nathan Witmer f146ac39b1
Bump version to 0.3.0 for release 2019-08-26 15:09:55 -06:00
Nathan Witmer 0bfde1c193
Typo 2019-08-26 15:07:28 -06:00
Matt Langlois ee368182a2
We don't need to rely on client found rows 2019-08-20 01:15:55 -06:00
Matt Langlois b4d806828d
CLIENT_FOUND_ROWS must be set 2019-08-20 01:04:35 -06:00
Matt Langlois 068036346b
Style fix 2019-08-19 18:22:05 -06:00
Matt Langlois 602b685258
Ensure client found rows is set 2019-08-19 18:20:51 -06:00
Matt Langlois 364fa0135e
Add some test utils 2019-08-19 17:58:20 -06:00
Matt Langlois 89cb44e902
Move found rows check to helper 2019-08-19 12:54:03 -06:00
Matt Langlois 3100480159
Add another test for existing values 2019-08-15 16:33:53 -06:00
Matt Langlois e81af4f92e
Add the ability to set the expires only if inserting 2019-08-15 16:31:53 -06:00
Matt Langlois e4b5306b0c
Properly check time 2019-08-15 02:04:10 -06:00