queue_classic 3.2.0.RC1 → 4.0.0.pre.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +151 -0
  3. data/.gitignore +2 -0
  4. data/{changelog → CHANGELOG.md} +80 -34
  5. data/CODE_OF_CONDUCT.md +46 -0
  6. data/Gemfile +8 -5
  7. data/README.md +77 -85
  8. data/Rakefile +2 -0
  9. data/lib/generators/queue_classic/install_generator.rb +6 -0
  10. data/lib/generators/queue_classic/templates/add_queue_classic.rb +3 -1
  11. data/lib/generators/queue_classic/templates/update_queue_classic_3_0_0.rb +3 -1
  12. data/lib/generators/queue_classic/templates/update_queue_classic_3_0_2.rb +3 -1
  13. data/lib/generators/queue_classic/templates/update_queue_classic_3_1_0.rb +3 -1
  14. data/lib/generators/queue_classic/templates/update_queue_classic_4_0_0.rb +11 -0
  15. data/lib/queue_classic.rb +4 -11
  16. data/lib/queue_classic/config.rb +2 -1
  17. data/lib/queue_classic/conn_adapter.rb +28 -14
  18. data/lib/queue_classic/queue.rb +65 -11
  19. data/lib/queue_classic/railtie.rb +2 -0
  20. data/lib/queue_classic/setup.rb +24 -7
  21. data/lib/queue_classic/tasks.rb +4 -5
  22. data/lib/queue_classic/version.rb +3 -1
  23. data/lib/queue_classic/worker.rb +10 -5
  24. data/queue_classic.gemspec +1 -1
  25. data/sql/create_table.sql +7 -16
  26. data/sql/ddl.sql +6 -82
  27. data/sql/downgrade_from_4_0_0.sql +88 -0
  28. data/sql/update_to_3_0_0.sql +5 -5
  29. data/sql/update_to_3_1_0.sql +6 -6
  30. data/sql/update_to_4_0_0.sql +6 -0
  31. data/test/benchmark_test.rb +2 -0
  32. data/test/config_test.rb +2 -0
  33. data/test/helper.rb +34 -0
  34. data/test/lib/queue_classic_rails_connection_test.rb +9 -6
  35. data/test/lib/queue_classic_test.rb +2 -0
  36. data/test/queue_test.rb +62 -2
  37. data/test/rails-tests/.gitignore +2 -0
  38. data/test/rails-tests/rails523.sh +23 -0
  39. data/test/worker_test.rb +138 -17
  40. metadata +15 -7
  41. data/.travis.yml +0 -15
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue_classic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0.RC1
4
+ version: 4.0.0.pre.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Smith (♠ ace hacker)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2019-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.17'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '0.19'
22
+ version: '2.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.17'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '0.19'
32
+ version: '2.0'
33
33
  description: queue_classic is a queueing library for Ruby apps. (Rails, Sinatra, Etc...)
34
34
  queue_classic features asynchronous job polling, database maintained locks and no
35
35
  ridiculous dependencies. As a matter of fact, queue_classic only requires pg.
@@ -38,19 +38,21 @@ executables: []
38
38
  extensions: []
39
39
  extra_rdoc_files: []
40
40
  files:
41
+ - ".circleci/config.yml"
41
42
  - ".gitignore"
42
- - ".travis.yml"
43
+ - CHANGELOG.md
44
+ - CODE_OF_CONDUCT.md
43
45
  - CONTRIBUTING.md
44
46
  - Gemfile
45
47
  - LICENSE.txt
46
48
  - README.md
47
49
  - Rakefile
48
- - changelog
49
50
  - lib/generators/queue_classic/install_generator.rb
50
51
  - lib/generators/queue_classic/templates/add_queue_classic.rb
51
52
  - lib/generators/queue_classic/templates/update_queue_classic_3_0_0.rb
52
53
  - lib/generators/queue_classic/templates/update_queue_classic_3_0_2.rb
53
54
  - lib/generators/queue_classic/templates/update_queue_classic_3_1_0.rb
55
+ - lib/generators/queue_classic/templates/update_queue_classic_4_0_0.rb
54
56
  - lib/queue_classic.rb
55
57
  - lib/queue_classic/config.rb
56
58
  - lib/queue_classic/conn_adapter.rb
@@ -65,9 +67,11 @@ files:
65
67
  - sql/ddl.sql
66
68
  - sql/downgrade_from_3_0_0.sql
67
69
  - sql/downgrade_from_3_1_0.sql
70
+ - sql/downgrade_from_4_0_0.sql
68
71
  - sql/drop_ddl.sql
69
72
  - sql/update_to_3_0_0.sql
70
73
  - sql/update_to_3_1_0.sql
74
+ - sql/update_to_4_0_0.sql
71
75
  - test/benchmark_test.rb
72
76
  - test/config_test.rb
73
77
  - test/helper.rb
@@ -75,6 +79,8 @@ files:
75
79
  - test/lib/queue_classic_rails_connection_test.rb
76
80
  - test/lib/queue_classic_test.rb
77
81
  - test/queue_test.rb
82
+ - test/rails-tests/.gitignore
83
+ - test/rails-tests/rails523.sh
78
84
  - test/worker_test.rb
79
85
  homepage: http://github.com/QueueClassic/queue_classic
80
86
  licenses:
@@ -96,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
102
  version: 1.3.1
97
103
  requirements: []
98
104
  rubyforge_project:
99
- rubygems_version: 2.4.5.1
105
+ rubygems_version: 2.7.6
100
106
  signing_key:
101
107
  specification_version: 4
102
108
  summary: Simple, efficient worker queue for Ruby & PostgreSQL.
@@ -108,4 +114,6 @@ test_files:
108
114
  - test/lib/queue_classic_rails_connection_test.rb
109
115
  - test/lib/queue_classic_test.rb
110
116
  - test/queue_test.rb
117
+ - test/rails-tests/.gitignore
118
+ - test/rails-tests/rails523.sh
111
119
  - test/worker_test.rb
@@ -1,15 +0,0 @@
1
- language: ruby
2
- before_script:
3
- - psql -c 'create database queue_classic_test;' -U postgres
4
- env:
5
- global:
6
- - QC_DATABASE_URL="postgres://postgres@localhost/queue_classic_test"
7
- - QC_BENCHMARK=true
8
- - QC_BENCHMARK_MAX_TIME_DEQUEUE=60
9
- rvm:
10
- - 2.2
11
- - 2.1
12
- - 2.0.0
13
- - 1.9.3
14
- addons:
15
- postgresql: 9.3