sequel-postgres-schemata 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 19a6bd55ee209d55b9ed8b40f512e46c8dd653a0
4
- data.tar.gz: f3c09f224851e466b74ec3084021b6ae569b82a7
2
+ SHA256:
3
+ metadata.gz: 48e34a29ac710e15b9684eac20e75a351802eb50380a412e2e1bf5c4b0c8e5ef
4
+ data.tar.gz: 04f9f3f334788c6ac84c9e104593dd060adebd8a72b8a22361dbe113a5f9ab20
5
5
  SHA512:
6
- metadata.gz: 4734e50fb9ee0f01e8527fce37abde0bf094160265a3df49d6d29c6ceca2a8a147b49cae80f25c87e28269ddc193eb1c565e7f0c369094007fb724e2d10ddd84
7
- data.tar.gz: e8ee300214d5776a1c27bc894c4973e15b0055e52639187394a712eb5bd8bdcbec1ec059cb25bb35ec704d4b9d69b0daf9147a0cbbc93e73f4ae415bda0f1d45
6
+ metadata.gz: 8f8f7dbe92fdb129012fd756d14b64449a030f484b0c7ff71c9e5b610ea7e643e5d259b9503e7e8d8620bc12f8692c7666d19e2be3b972fd207046f7e9524d07
7
+ data.tar.gz: 01b8eebb95a09d2575b06c09bf75a6ff086209ee794fdc15db06f0e2f06eb0ce5ab621d788e744baec2964a6b030f4ed04f1fea79eee1998aefc8a12d85f124f
@@ -1,7 +1,7 @@
1
1
  module Sequel
2
2
  module Postgres
3
3
  module Schemata
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
6
6
  end
7
7
  end
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "sequel", "~> 4.3"
22
-
23
- spec.add_development_dependency "bundler", "~> 1.3"
24
- spec.add_development_dependency "rake", "~> 10.1"
21
+ spec.add_runtime_dependency "sequel", ">= 4.3", "< 6"
22
+
23
+ spec.add_development_dependency "bundler", ">= 1.3", "< 3"
24
+ spec.add_development_dependency "rake", "~> 12.3"
25
25
  spec.add_development_dependency "rspec", "~> 2.14"
26
26
  spec.add_development_dependency "pg", "~> 0.16"
27
27
  end
@@ -8,14 +8,14 @@ describe Sequel::Postgres::Schemata do
8
8
  describe "#schemata" do
9
9
  it "lists all existing schematas" do
10
10
  schemata = db.schemata
11
- schemata.should include(:public)
12
- schemata.should_not include(:foo)
11
+ expect(schemata).to include(:public)
12
+ expect(schemata).not_to include(:foo)
13
13
  end
14
14
  end
15
15
 
16
16
  describe "#search_path" do
17
17
  it "returns the search path" do
18
- db.search_path.should == %i(foo public)
18
+ expect(db.search_path).to eq(%i(foo public))
19
19
  end
20
20
 
21
21
  it "correctly handles the default list" do
@@ -25,9 +25,9 @@ describe Sequel::Postgres::Schemata do
25
25
  describe "with a block" do
26
26
  it "changes the search path temporarily" do
27
27
  db.search_path :bar do
28
- db.search_path.should == %i(bar)
28
+ expect(db.search_path).to eq(%i(bar))
29
29
  end
30
- db.search_path.should == %i(foo public)
30
+ expect(db.search_path).to eq(%i(foo public))
31
31
  end
32
32
 
33
33
  it "resets the search path when the given block raises an error" do
@@ -35,27 +35,27 @@ describe Sequel::Postgres::Schemata do
35
35
 
36
36
  begin
37
37
  db.search_path :bar do
38
- db.search_path.should == %i(bar)
38
+ expect(db.search_path).to eq(%i(bar))
39
39
  raise MyContrivedError.new
40
40
  end
41
41
  rescue MyContrivedError
42
42
  # Gobble.
43
43
  end
44
- db.search_path.should == %i(foo public)
44
+ expect(db.search_path).to eq(%i(foo public))
45
45
  end
46
46
 
47
47
  it "accepts symbols as arglist" do
48
48
  db.search_path :bar, :baz do
49
- db.search_path.should == %i(bar baz)
49
+ expect(db.search_path).to eq(%i(bar baz))
50
50
  end
51
- db.search_path.should == %i(foo public)
51
+ expect(db.search_path).to eq(%i(foo public))
52
52
  end
53
53
 
54
54
  it "allows prepending with prepend: true" do
55
55
  db.search_path :bar, prepend: true do
56
- db.search_path.should == %i(bar foo public)
56
+ expect(db.search_path).to eq(%i(bar foo public))
57
57
  end
58
- db.search_path.should == %i(foo public)
58
+ expect(db.search_path).to eq(%i(foo public))
59
59
  end
60
60
  end
61
61
  end
@@ -63,38 +63,38 @@ describe Sequel::Postgres::Schemata do
63
63
  describe "#search_path=" do
64
64
  it "accepts a single symbol" do
65
65
  db.search_path = :bar
66
- db.search_path.should == %i(bar)
66
+ expect(db.search_path).to eq(%i(bar))
67
67
  end
68
68
 
69
69
  it "accepts a single string" do
70
70
  db.search_path = 'bar'
71
- db.search_path.should == %i(bar)
71
+ expect(db.search_path).to eq(%i(bar))
72
72
  end
73
73
 
74
74
  it "accepts a formatted string" do
75
75
  db.search_path = 'bar, baz'
76
- db.search_path.should == %i(bar baz)
76
+ expect(db.search_path).to eq(%i(bar baz))
77
77
  end
78
78
 
79
79
  it "accepts a symbol list" do
80
80
  db.search_path = %i(bar baz)
81
- db.search_path.should == %i(bar baz)
81
+ expect(db.search_path).to eq(%i(bar baz))
82
82
  end
83
83
 
84
84
  it "accepts a string list" do
85
85
  db.search_path = %w(bar baz)
86
- db.search_path.should == %i(bar baz)
86
+ expect(db.search_path).to eq(%i(bar baz))
87
87
  end
88
88
 
89
89
  it "quotes the string list correctly" do
90
90
  db.search_path = ["bar\" ',", "baz"]
91
- db.search_path.should == [:"bar\" ',", :baz]
91
+ expect(db.search_path).to eq([:"bar\" ',", :baz])
92
92
  end
93
93
  end
94
94
 
95
95
  describe "#current_schemata" do
96
96
  it "returns the current schemata" do
97
- db.current_schemata.should == %i(public)
97
+ expect(db.current_schemata).to eq(%i(public))
98
98
  end
99
99
  end
100
100
 
@@ -102,10 +102,10 @@ describe Sequel::Postgres::Schemata do
102
102
  it "renames a schema" do
103
103
  db.transaction rollback: :always do
104
104
  db.create_schema :test_schema
105
- db.schemata.should include(:test_schema)
106
- db.current_schemata.should == %i(public)
105
+ expect(db.schemata).to include(:test_schema)
106
+ expect(db.current_schemata).to eq(%i(public))
107
107
  db.rename_schema :test_schema, :foo
108
- db.current_schemata.should == %i(foo public)
108
+ expect(db.current_schemata).to eq(%i(foo public))
109
109
  end
110
110
  end
111
111
  end
metadata CHANGED
@@ -1,57 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-postgres-schemata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafał Rzepecki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-14 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '6'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '4.3'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '6'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: bundler
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - "~>"
37
+ - - ">="
32
38
  - !ruby/object:Gem::Version
33
39
  version: '1.3'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '3'
34
43
  type: :development
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
- - - "~>"
47
+ - - ">="
39
48
  - !ruby/object:Gem::Version
40
49
  version: '1.3'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '3'
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: rake
43
55
  requirement: !ruby/object:Gem::Requirement
44
56
  requirements:
45
57
  - - "~>"
46
58
  - !ruby/object:Gem::Version
47
- version: '10.1'
59
+ version: '12.3'
48
60
  type: :development
49
61
  prerelease: false
50
62
  version_requirements: !ruby/object:Gem::Requirement
51
63
  requirements:
52
64
  - - "~>"
53
65
  - !ruby/object:Gem::Version
54
- version: '10.1'
66
+ version: '12.3'
55
67
  - !ruby/object:Gem::Dependency
56
68
  name: rspec
57
69
  requirement: !ruby/object:Gem::Requirement
@@ -118,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
130
  version: '0'
119
131
  requirements: []
120
132
  rubyforge_project:
121
- rubygems_version: 2.4.4
133
+ rubygems_version: 2.7.6.2
122
134
  signing_key:
123
135
  specification_version: 4
124
136
  summary: Postgres schema manipulation