ar-sequence 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 8e2607e8d6463d0bb957a18045b725e95efbea7fc58ca7b7f07eb729aa397690
4
- data.tar.gz: 04462fb01f394a0429d0139f964e7e71c9f99b97b82022a415c02d4b3e5653fd
3
+ metadata.gz: 2ab643d94171869b7d877615bdf703ba9ee0b651c6c81bcccabcaf2e0970ba14
4
+ data.tar.gz: 6ab9ea1788044e8f6722535032637d863b189510795775d705cc2c4c585a6b74
5
5
  SHA512:
6
- metadata.gz: 484ae05bdbb6518bac4f228e6b2b70bb1874cdcf36ed85572ca5866d5c2f3f410a42a173f2d6d32ccb58ab79908e094873e78868f778c252dad676a58ecaa144
7
- data.tar.gz: 5ae496444d6f50b5c05ad4273ba236f8508dc1cd6b3c57847d9b92d5b34252c302e8c2393e6b461726c1245ca0ff7ebaabd522c01d97951e39f4430eac58f922
6
+ metadata.gz: ea30819485da30a8eac301f5a6a3a54b5b1a3b23660189d8e632963533ed41cd86b7a80c911c04300a9c2728af08d74a56a244354b0cef08eb6b21dc98db5680
7
+ data.tar.gz: c8e29d33fab215b8f519ee406b85d49d63dfc7169cc6903f32219c81a311a5a7b05254e1afde7ff9add3132bd5ac9e05b29d4a86999dfe19bf490b0ee36b361f
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /gemfiles/*.lock
11
+ *.lock
@@ -0,0 +1,6 @@
1
+ ---
2
+ inherit_gem:
3
+ rubocop-fnando: .rubocop.yml
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 2.6
@@ -1,31 +1,32 @@
1
+ ---
1
2
  language: ruby
2
3
  sudo: false
3
4
  cache: bundler
4
5
  before_install:
5
- - gem install bundler
6
+ - gem install bundler
6
7
  before_script:
7
- - createdb test
8
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
9
- - chmod +x ./cc-test-reporter
10
- - ./cc-test-reporter before-build
8
+ - createdb test
9
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
10
+ - chmod +x ./cc-test-reporter
11
+ - ./cc-test-reporter before-build
11
12
  after_script:
12
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
13
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
13
14
  gemfile:
14
- - Gemfile
15
- - gemfiles/activerecord_5_2.gemfile
16
- - gemfiles/activerecord_5_1.gemfile
17
- - gemfiles/activerecord_5_0.gemfile
15
+ - gemfiles/activerecord_6_0.gemfile
16
+ - gemfiles/activerecord_5_2.gemfile
17
+ - gemfiles/activerecord_5_1.gemfile
18
+ - gemfiles/activerecord_5_0.gemfile
18
19
  addons:
19
- postgresql: '10'
20
+ postgresql: "10"
20
21
  apt:
21
22
  packages:
22
- - postgresql-10
23
- - postgresql-client-10
23
+ - postgresql-10
24
+ - postgresql-client-10
24
25
  rvm:
25
- - 2.5.1
26
+ - 2.6.5
27
+ - 2.5.7
26
28
  notifications:
27
29
  email: false
28
30
  env:
29
31
  global:
30
- - PGPORT=5433
31
- - secure: tJIhjywY5r1oi4ShGqAoy+Jg17u+K9KfZtvC2lGmlhd9v5sU+MmuFZqoJAM1sGSY6UTsMfKs6vifyEGnVtawv1VK1RnNzQNWCUrm/hqdNDvayIh4m4oDt27EWj6cgh5roc6Y8knmkup+rXGQiVUmUgMjjF0NhLYZPgp6UPC5NhozEE8Y31Cv0M2UUnz460XyBQAvCPq7z7/rrTVJN84ioV755U/UiingIn16RG5A13TN3xTJbIhmxFcJpn8edX7H3DUSsDafKn4e+tiTXg0WnOFTTR9P1D3kah86AT7kvf4s/6ETRnZm+Rnv30ZNIQaTFlJv6zHTCzmLsRJ4CTUFHgjIrsDbOFeZmpgxSJg5sYFPgNsNh+BovWZuWoKgSkZXh0NaFhiGhQivd4/HwX45W4BybS1/Bm79mG25k14xbQUlMXZA5gRFA3v+ih4lxDNp5YqXJJhrs4ApSOuUsPJrp/JCKZkTzKXvOgNm8EvZtZrnkEeSItbq8M20m2N38bCq/uNU+h0gCknLsoheRGB/JvOI+uBehwWAITwcaUlZPHu4/n+ASKufaqeWfZRnSEA04fIkpT4H03O8zWZwvJ+gnuEbh0t/eLOTLOJOINuT9qwgduobWyBqQC+RkkHBFEV6fFH2yld8RwCXZNu3g1q40OBN4dvvMp/8VZEVxSB0I74=
32
+ secure: tJIhjywY5r1oi4ShGqAoy+Jg17u+K9KfZtvC2lGmlhd9v5sU+MmuFZqoJAM1sGSY6UTsMfKs6vifyEGnVtawv1VK1RnNzQNWCUrm/hqdNDvayIh4m4oDt27EWj6cgh5roc6Y8knmkup+rXGQiVUmUgMjjF0NhLYZPgp6UPC5NhozEE8Y31Cv0M2UUnz460XyBQAvCPq7z7/rrTVJN84ioV755U/UiingIn16RG5A13TN3xTJbIhmxFcJpn8edX7H3DUSsDafKn4e+tiTXg0WnOFTTR9P1D3kah86AT7kvf4s/6ETRnZm+Rnv30ZNIQaTFlJv6zHTCzmLsRJ4CTUFHgjIrsDbOFeZmpgxSJg5sYFPgNsNh+BovWZuWoKgSkZXh0NaFhiGhQivd4/HwX45W4BybS1/Bm79mG25k14xbQUlMXZA5gRFA3v+ih4lxDNp5YqXJJhrs4ApSOuUsPJrp/JCKZkTzKXvOgNm8EvZtZrnkEeSItbq8M20m2N38bCq/uNU+h0gCknLsoheRGB/JvOI+uBehwWAITwcaUlZPHu4/n+ASKufaqeWfZRnSEA04fIkpT4H03O8zWZwvJ+gnuEbh0t/eLOTLOJOINuT9qwgduobWyBqQC+RkkHBFEV6fFH2yld8RwCXZNu3g1q40OBN4dvvMp/8VZEVxSB0I74=
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
 
3
5
  # Specify your gem's dependencies in ar-sequence.gemspec
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AR::Sequence
2
2
 
3
- [![Travis-CI](https://travis-ci.org/fnando/ar-sequence.png)](https://travis-ci.org/fnando/ar-sequence)
3
+ [![Travis-CI](https://travis-ci.org/fnando/ar-sequence.svg)](https://travis-ci.org/fnando/ar-sequence)
4
4
  [![Code Climate](https://codeclimate.com/github/fnando/ar-sequence/badges/gpa.svg)](https://codeclimate.com/github/fnando/ar-sequence)
5
5
  [![Test Coverage](https://codeclimate.com/github/fnando/ar-sequence/badges/coverage.svg)](https://codeclimate.com/github/fnando/ar-sequence/coverage)
6
6
  [![Gem](https://img.shields.io/gem/v/ar-sequence.svg)](https://rubygems.org/gems/ar-sequence)
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
4
  require "rake/testtask"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "./lib/ar/sequence/version"
2
4
 
3
5
  Gem::Specification.new do |spec|
@@ -21,10 +23,9 @@ Gem::Specification.new do |spec|
21
23
  spec.add_dependency "activerecord"
22
24
 
23
25
  spec.add_development_dependency "bundler"
24
- spec.add_development_dependency "rake"
25
26
  spec.add_development_dependency "minitest-utils"
26
27
  spec.add_development_dependency "pg"
27
28
  spec.add_development_dependency "pry-meta"
28
- spec.add_development_dependency "codeclimate-test-reporter"
29
+ spec.add_development_dependency "rake"
29
30
  spec.add_development_dependency "simplecov"
30
31
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
  gemspec path: ".."
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
  gemspec path: ".."
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
  gemspec path: ".."
3
5
 
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+ gemspec path: ".."
5
+
6
+ gem "activerecord", "~> 6.0.0"
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "ar/sequence"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "active_support/all"
2
4
  require "active_record"
3
5
  require "active_record/connection_adapters/postgresql_adapter"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AR
2
4
  module Sequence
3
5
  module Adapter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AR
2
4
  module Sequence
3
5
  module CommandRecorder
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AR
2
4
  module Sequence
3
5
  module ModelMethods
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AR
2
4
  module Sequence
3
5
  module SchemaDumper
@@ -19,7 +21,7 @@ module AR
19
21
  options << "increment: #{increment}" if increment && Integer(increment) != 1
20
22
 
21
23
  statement = ["create_sequence", seq["sequence_name"].inspect].join(" ")
22
- statement << (options.any? ? ", " << options.join(", ") : "") if options.any?
24
+ statement << (options.any? ? ", #{options.join(', ')}" : "") if options.any?
23
25
 
24
26
  stream.puts " #{statement}"
25
27
  end
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AR
2
4
  module Sequence
3
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
4
6
  end
5
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar-sequence
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-02 00:00:00.000000000 Z
11
+ date: 2019-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: minitest-utils
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -95,7 +81,7 @@ dependencies:
95
81
  - !ruby/object:Gem::Version
96
82
  version: '0'
97
83
  - !ruby/object:Gem::Dependency
98
- name: codeclimate-test-reporter
84
+ name: rake
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - ">="
@@ -130,6 +116,7 @@ extensions: []
130
116
  extra_rdoc_files: []
131
117
  files:
132
118
  - ".gitignore"
119
+ - ".rubocop.yml"
133
120
  - ".travis.yml"
134
121
  - CHANGELOG.md
135
122
  - CODE_OF_CONDUCT.md
@@ -138,12 +125,10 @@ files:
138
125
  - README.md
139
126
  - Rakefile
140
127
  - ar-sequence.gemspec
141
- - gemfiles/activerecord_5_0.Gemfile.lock
142
128
  - gemfiles/activerecord_5_0.gemfile
143
- - gemfiles/activerecord_5_1.Gemfile.lock
144
129
  - gemfiles/activerecord_5_1.gemfile
145
130
  - gemfiles/activerecord_5_2.gemfile
146
- - gemfiles/activerecord_5_2.gemfile.lock
131
+ - gemfiles/activerecord_6_0.gemfile
147
132
  - lib/ar-sequence.rb
148
133
  - lib/ar/sequence.rb
149
134
  - lib/ar/sequence/adapter.rb
@@ -170,8 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
155
  - !ruby/object:Gem::Version
171
156
  version: '0'
172
157
  requirements: []
173
- rubyforge_project:
174
- rubygems_version: 2.7.6
158
+ rubygems_version: 3.0.3
175
159
  signing_key:
176
160
  specification_version: 4
177
161
  summary: Add support for PostgreSQL's SEQUENCE on ActiveRecord migrations
@@ -1,77 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- ar-sequence (0.0.0)
5
- activerecord
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activemodel (5.0.7)
11
- activesupport (= 5.0.7)
12
- activerecord (5.0.7)
13
- activemodel (= 5.0.7)
14
- activesupport (= 5.0.7)
15
- arel (~> 7.0)
16
- activesupport (5.0.7)
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (>= 0.7, < 2)
19
- minitest (~> 5.1)
20
- tzinfo (~> 1.1)
21
- arel (7.1.4)
22
- awesome_print (1.8.0)
23
- byebug (10.0.2)
24
- codeclimate-test-reporter (1.0.8)
25
- simplecov (<= 0.13)
26
- coderay (1.1.2)
27
- concurrent-ruby (1.0.5)
28
- docile (1.1.5)
29
- i18n (1.1.0)
30
- concurrent-ruby (~> 1.0)
31
- json (2.1.0)
32
- method_source (0.9.0)
33
- minitest (5.11.3)
34
- minitest-utils (0.4.1)
35
- minitest
36
- pg (1.1.3)
37
- pry (0.11.3)
38
- coderay (~> 1.1.0)
39
- method_source (~> 0.9.0)
40
- pry-byebug (3.6.0)
41
- byebug (~> 10.0)
42
- pry (~> 0.10)
43
- pry-meta (0.0.10)
44
- awesome_print
45
- pry
46
- pry-byebug
47
- pry-remote
48
- pry-remote (0.1.8)
49
- pry (~> 0.9)
50
- slop (~> 3.0)
51
- rake (12.3.1)
52
- simplecov (0.13.0)
53
- docile (~> 1.1.0)
54
- json (>= 1.8, < 3)
55
- simplecov-html (~> 0.10.0)
56
- simplecov-html (0.10.2)
57
- slop (3.6.0)
58
- thread_safe (0.3.6)
59
- tzinfo (1.2.5)
60
- thread_safe (~> 0.1)
61
-
62
- PLATFORMS
63
- ruby
64
-
65
- DEPENDENCIES
66
- activerecord (~> 5.0.0)
67
- ar-sequence!
68
- bundler
69
- codeclimate-test-reporter
70
- minitest-utils
71
- pg
72
- pry-meta
73
- rake
74
- simplecov
75
-
76
- BUNDLED WITH
77
- 1.16.4
@@ -1,77 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- ar-sequence (0.0.0)
5
- activerecord
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activemodel (5.1.6)
11
- activesupport (= 5.1.6)
12
- activerecord (5.1.6)
13
- activemodel (= 5.1.6)
14
- activesupport (= 5.1.6)
15
- arel (~> 8.0)
16
- activesupport (5.1.6)
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (>= 0.7, < 2)
19
- minitest (~> 5.1)
20
- tzinfo (~> 1.1)
21
- arel (8.0.0)
22
- awesome_print (1.8.0)
23
- byebug (10.0.2)
24
- codeclimate-test-reporter (1.0.8)
25
- simplecov (<= 0.13)
26
- coderay (1.1.2)
27
- concurrent-ruby (1.0.5)
28
- docile (1.1.5)
29
- i18n (1.1.0)
30
- concurrent-ruby (~> 1.0)
31
- json (2.1.0)
32
- method_source (0.9.0)
33
- minitest (5.11.3)
34
- minitest-utils (0.4.1)
35
- minitest
36
- pg (1.1.3)
37
- pry (0.11.3)
38
- coderay (~> 1.1.0)
39
- method_source (~> 0.9.0)
40
- pry-byebug (3.6.0)
41
- byebug (~> 10.0)
42
- pry (~> 0.10)
43
- pry-meta (0.0.10)
44
- awesome_print
45
- pry
46
- pry-byebug
47
- pry-remote
48
- pry-remote (0.1.8)
49
- pry (~> 0.9)
50
- slop (~> 3.0)
51
- rake (12.3.1)
52
- simplecov (0.13.0)
53
- docile (~> 1.1.0)
54
- json (>= 1.8, < 3)
55
- simplecov-html (~> 0.10.0)
56
- simplecov-html (0.10.2)
57
- slop (3.6.0)
58
- thread_safe (0.3.6)
59
- tzinfo (1.2.5)
60
- thread_safe (~> 0.1)
61
-
62
- PLATFORMS
63
- ruby
64
-
65
- DEPENDENCIES
66
- activerecord (~> 5.1.0)
67
- ar-sequence!
68
- bundler
69
- codeclimate-test-reporter
70
- minitest-utils
71
- pg
72
- pry-meta
73
- rake
74
- simplecov
75
-
76
- BUNDLED WITH
77
- 1.16.4
@@ -1,77 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- ar-sequence (0.0.0)
5
- activerecord
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activemodel (5.2.1)
11
- activesupport (= 5.2.1)
12
- activerecord (5.2.1)
13
- activemodel (= 5.2.1)
14
- activesupport (= 5.2.1)
15
- arel (>= 9.0)
16
- activesupport (5.2.1)
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (>= 0.7, < 2)
19
- minitest (~> 5.1)
20
- tzinfo (~> 1.1)
21
- arel (9.0.0)
22
- awesome_print (1.8.0)
23
- byebug (10.0.2)
24
- codeclimate-test-reporter (1.0.8)
25
- simplecov (<= 0.13)
26
- coderay (1.1.2)
27
- concurrent-ruby (1.0.5)
28
- docile (1.1.5)
29
- i18n (1.1.0)
30
- concurrent-ruby (~> 1.0)
31
- json (2.1.0)
32
- method_source (0.9.0)
33
- minitest (5.11.3)
34
- minitest-utils (0.4.1)
35
- minitest
36
- pg (1.1.3)
37
- pry (0.11.3)
38
- coderay (~> 1.1.0)
39
- method_source (~> 0.9.0)
40
- pry-byebug (3.6.0)
41
- byebug (~> 10.0)
42
- pry (~> 0.10)
43
- pry-meta (0.0.10)
44
- awesome_print
45
- pry
46
- pry-byebug
47
- pry-remote
48
- pry-remote (0.1.8)
49
- pry (~> 0.9)
50
- slop (~> 3.0)
51
- rake (12.3.1)
52
- simplecov (0.13.0)
53
- docile (~> 1.1.0)
54
- json (>= 1.8, < 3)
55
- simplecov-html (~> 0.10.0)
56
- simplecov-html (0.10.2)
57
- slop (3.6.0)
58
- thread_safe (0.3.6)
59
- tzinfo (1.2.5)
60
- thread_safe (~> 0.1)
61
-
62
- PLATFORMS
63
- ruby
64
-
65
- DEPENDENCIES
66
- activerecord (~> 5.2.0)
67
- ar-sequence!
68
- bundler
69
- codeclimate-test-reporter
70
- minitest-utils
71
- pg
72
- pry-meta
73
- rake
74
- simplecov
75
-
76
- BUNDLED WITH
77
- 1.16.4