storey 0.6.0 → 1.0.0

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
  SHA1:
3
- metadata.gz: b792bb5b42b4f163d95479d2483d88c9b74927b8
4
- data.tar.gz: 0be264cd7fd5fb2fbd463c893fb5ed0cc2635d31
3
+ metadata.gz: f93db34c26e33e896d15e0531d6b2a19e75036af
4
+ data.tar.gz: 98643e29f8b4fea7bbdd4bbf155314c5f26207a8
5
5
  SHA512:
6
- metadata.gz: 68badecca8c68c81ed106a4cf08399b1dde313f44e1168600b68d605ebd9b3c4f8626313a0bb7e7677aa99a2b3f609eb1fbc3248e628f51c3e02f41893bc7b3d
7
- data.tar.gz: 0a41bd2f33734bf904ab51bc55c5b8cf19df3abb6dbc5006d6be059df7435ae6fc2c9ab1c6f7601aeb6b214650cb4d56c0c21b3aa4b03e8e1a6dec1d9c589ea4
6
+ metadata.gz: 4d0a41055ff277ef8d50a814a81bbbb844a6cf7344fdaa638c1a8c18a8141fec4ae216c76e7590b3cffe24882c359291078af6057a466472864fc15a40da1a5a
7
+ data.tar.gz: 4b37352130f61db6630cffbd0a02525862b121c8668415d0072b5db8182f3c6e1410f759e3522c4860b7924bfee08b3e8edca784a33003de832c1661428dab3d
data/.gitignore CHANGED
@@ -10,4 +10,4 @@ spec/config/database.yml
10
10
  spec/dummy/config/database.yml
11
11
  spec/dummy/log/*
12
12
  spec/dummy/tmp
13
- .rvmrc
13
+ spec/dummy/db/schema.rb
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.1.1
data/.travis.yml CHANGED
@@ -1,11 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
+ - 2.1.1
4
5
  services:
5
6
  - postgresql
6
7
  before_script:
7
8
  - cp spec/dummy/config/database.yml{.sample,}
8
9
  - psql -c 'create database storey_test;' -U postgres
9
10
  gemfile:
10
- - Gemfile
11
- - gemfiles/rails3
11
+ - gemfiles/rails_3.gemfile
12
+ - gemfiles/rails_4.gemfile
data/Appraisals ADDED
@@ -0,0 +1,7 @@
1
+ appraise "rails-3" do
2
+ gem "rails", "3.2.14"
3
+ end
4
+
5
+ appraise "rails-4" do
6
+ gem "rails", "4.2.1"
7
+ end
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v1.0.0
2
+
3
+ - It's already being used in production. About time for a 1.0.0 release.
4
+
1
5
  # v0.6.0
2
6
 
3
7
  - Relax pg version dependency. Works with `~> 0.12`
data/Gemfile CHANGED
@@ -4,3 +4,5 @@ source "http://rubygems.org"
4
4
  gemspec
5
5
 
6
6
  gem 'pry'
7
+
8
+ gem 'appraisal'
data/Rakefile CHANGED
@@ -1,3 +1,6 @@
1
+ require "rubygems"
2
+ require "bundler/setup"
3
+
1
4
  require "bundler/gem_tasks"
2
5
 
3
6
  require 'rspec/core'
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "pry"
6
+ gem "appraisal"
7
+ gem "rails", "3.2.14"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,130 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ storey (0.6.0)
5
+ easy_class_to_instance_method (~> 0.0.2)
6
+ rails (>= 3.2.0)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actionmailer (3.2.14)
12
+ actionpack (= 3.2.14)
13
+ mail (~> 2.5.4)
14
+ actionpack (3.2.14)
15
+ activemodel (= 3.2.14)
16
+ activesupport (= 3.2.14)
17
+ builder (~> 3.0.0)
18
+ erubis (~> 2.7.0)
19
+ journey (~> 1.0.4)
20
+ rack (~> 1.4.5)
21
+ rack-cache (~> 1.2)
22
+ rack-test (~> 0.6.1)
23
+ sprockets (~> 2.2.1)
24
+ activemodel (3.2.14)
25
+ activesupport (= 3.2.14)
26
+ builder (~> 3.0.0)
27
+ activerecord (3.2.14)
28
+ activemodel (= 3.2.14)
29
+ activesupport (= 3.2.14)
30
+ arel (~> 3.0.2)
31
+ tzinfo (~> 0.3.29)
32
+ activeresource (3.2.14)
33
+ activemodel (= 3.2.14)
34
+ activesupport (= 3.2.14)
35
+ activesupport (3.2.14)
36
+ i18n (~> 0.6, >= 0.6.4)
37
+ multi_json (~> 1.0)
38
+ appraisal (1.0.3)
39
+ bundler
40
+ rake
41
+ thor (>= 0.14.0)
42
+ arel (3.0.3)
43
+ builder (3.0.4)
44
+ coderay (1.1.0)
45
+ database_cleaner (1.4.1)
46
+ diff-lcs (1.2.5)
47
+ easy_class_to_instance_method (0.0.2)
48
+ erubis (2.7.0)
49
+ hike (1.2.3)
50
+ i18n (0.7.0)
51
+ journey (1.0.4)
52
+ json (1.8.2)
53
+ mail (2.5.4)
54
+ mime-types (~> 1.16)
55
+ treetop (~> 1.4.8)
56
+ method_source (0.8.2)
57
+ mime-types (1.25.1)
58
+ multi_json (1.11.0)
59
+ pg (0.18.1)
60
+ polyglot (0.3.5)
61
+ pry (0.10.1)
62
+ coderay (~> 1.1.0)
63
+ method_source (~> 0.8.1)
64
+ slop (~> 3.4)
65
+ rack (1.4.5)
66
+ rack-cache (1.2)
67
+ rack (>= 0.4)
68
+ rack-ssl (1.3.4)
69
+ rack
70
+ rack-test (0.6.3)
71
+ rack (>= 1.0)
72
+ rails (3.2.14)
73
+ actionmailer (= 3.2.14)
74
+ actionpack (= 3.2.14)
75
+ activerecord (= 3.2.14)
76
+ activeresource (= 3.2.14)
77
+ activesupport (= 3.2.14)
78
+ bundler (~> 1.0)
79
+ railties (= 3.2.14)
80
+ railties (3.2.14)
81
+ actionpack (= 3.2.14)
82
+ activesupport (= 3.2.14)
83
+ rack-ssl (~> 1.3.2)
84
+ rake (>= 0.8.7)
85
+ rdoc (~> 3.4)
86
+ thor (>= 0.14.6, < 2.0)
87
+ rake (10.4.2)
88
+ rdoc (3.12.2)
89
+ json (~> 1.4)
90
+ rspec-core (3.2.3)
91
+ rspec-support (~> 3.2.0)
92
+ rspec-expectations (3.2.1)
93
+ diff-lcs (>= 1.2.0, < 2.0)
94
+ rspec-support (~> 3.2.0)
95
+ rspec-mocks (3.2.1)
96
+ diff-lcs (>= 1.2.0, < 2.0)
97
+ rspec-support (~> 3.2.0)
98
+ rspec-rails (3.2.1)
99
+ actionpack (>= 3.0, < 4.3)
100
+ activesupport (>= 3.0, < 4.3)
101
+ railties (>= 3.0, < 4.3)
102
+ rspec-core (~> 3.2.0)
103
+ rspec-expectations (~> 3.2.0)
104
+ rspec-mocks (~> 3.2.0)
105
+ rspec-support (~> 3.2.0)
106
+ rspec-support (3.2.2)
107
+ slop (3.6.0)
108
+ sprockets (2.2.3)
109
+ hike (~> 1.2)
110
+ multi_json (~> 1.0)
111
+ rack (~> 1.0)
112
+ tilt (~> 1.1, != 1.3.0)
113
+ thor (0.19.1)
114
+ tilt (1.4.1)
115
+ treetop (1.4.15)
116
+ polyglot
117
+ polyglot (>= 0.3.1)
118
+ tzinfo (0.3.43)
119
+
120
+ PLATFORMS
121
+ ruby
122
+
123
+ DEPENDENCIES
124
+ appraisal
125
+ database_cleaner
126
+ pg (~> 0.12)
127
+ pry
128
+ rails (= 3.2.14)
129
+ rspec-rails
130
+ storey!
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "pry"
6
+ gem "appraisal"
7
+ gem "rails", "4.2.1"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,144 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ storey (0.6.0)
5
+ easy_class_to_instance_method (~> 0.0.2)
6
+ rails (>= 3.2.0)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actionmailer (4.2.1)
12
+ actionpack (= 4.2.1)
13
+ actionview (= 4.2.1)
14
+ activejob (= 4.2.1)
15
+ mail (~> 2.5, >= 2.5.4)
16
+ rails-dom-testing (~> 1.0, >= 1.0.5)
17
+ actionpack (4.2.1)
18
+ actionview (= 4.2.1)
19
+ activesupport (= 4.2.1)
20
+ rack (~> 1.6)
21
+ rack-test (~> 0.6.2)
22
+ rails-dom-testing (~> 1.0, >= 1.0.5)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
24
+ actionview (4.2.1)
25
+ activesupport (= 4.2.1)
26
+ builder (~> 3.1)
27
+ erubis (~> 2.7.0)
28
+ rails-dom-testing (~> 1.0, >= 1.0.5)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
30
+ activejob (4.2.1)
31
+ activesupport (= 4.2.1)
32
+ globalid (>= 0.3.0)
33
+ activemodel (4.2.1)
34
+ activesupport (= 4.2.1)
35
+ builder (~> 3.1)
36
+ activerecord (4.2.1)
37
+ activemodel (= 4.2.1)
38
+ activesupport (= 4.2.1)
39
+ arel (~> 6.0)
40
+ activesupport (4.2.1)
41
+ i18n (~> 0.7)
42
+ json (~> 1.7, >= 1.7.7)
43
+ minitest (~> 5.1)
44
+ thread_safe (~> 0.3, >= 0.3.4)
45
+ tzinfo (~> 1.1)
46
+ appraisal (2.0.1)
47
+ activesupport (>= 3.2.21)
48
+ bundler
49
+ rake
50
+ thor (>= 0.14.0)
51
+ arel (6.0.0)
52
+ builder (3.2.2)
53
+ coderay (1.1.0)
54
+ database_cleaner (1.4.1)
55
+ diff-lcs (1.2.5)
56
+ easy_class_to_instance_method (0.0.2)
57
+ erubis (2.7.0)
58
+ globalid (0.3.5)
59
+ activesupport (>= 4.1.0)
60
+ i18n (0.7.0)
61
+ json (1.8.2)
62
+ loofah (2.0.1)
63
+ nokogiri (>= 1.5.9)
64
+ mail (2.6.3)
65
+ mime-types (>= 1.16, < 3)
66
+ method_source (0.8.2)
67
+ mime-types (2.4.3)
68
+ mini_portile (0.6.2)
69
+ minitest (5.6.0)
70
+ nokogiri (1.6.6.2)
71
+ mini_portile (~> 0.6.0)
72
+ pg (0.18.1)
73
+ pry (0.10.1)
74
+ coderay (~> 1.1.0)
75
+ method_source (~> 0.8.1)
76
+ slop (~> 3.4)
77
+ rack (1.6.0)
78
+ rack-test (0.6.3)
79
+ rack (>= 1.0)
80
+ rails (4.2.1)
81
+ actionmailer (= 4.2.1)
82
+ actionpack (= 4.2.1)
83
+ actionview (= 4.2.1)
84
+ activejob (= 4.2.1)
85
+ activemodel (= 4.2.1)
86
+ activerecord (= 4.2.1)
87
+ activesupport (= 4.2.1)
88
+ bundler (>= 1.3.0, < 2.0)
89
+ railties (= 4.2.1)
90
+ sprockets-rails
91
+ rails-deprecated_sanitizer (1.0.3)
92
+ activesupport (>= 4.2.0.alpha)
93
+ rails-dom-testing (1.0.6)
94
+ activesupport (>= 4.2.0.beta, < 5.0)
95
+ nokogiri (~> 1.6.0)
96
+ rails-deprecated_sanitizer (>= 1.0.1)
97
+ rails-html-sanitizer (1.0.2)
98
+ loofah (~> 2.0)
99
+ railties (4.2.1)
100
+ actionpack (= 4.2.1)
101
+ activesupport (= 4.2.1)
102
+ rake (>= 0.8.7)
103
+ thor (>= 0.18.1, < 2.0)
104
+ rake (10.4.2)
105
+ rspec-core (3.2.3)
106
+ rspec-support (~> 3.2.0)
107
+ rspec-expectations (3.2.1)
108
+ diff-lcs (>= 1.2.0, < 2.0)
109
+ rspec-support (~> 3.2.0)
110
+ rspec-mocks (3.2.1)
111
+ diff-lcs (>= 1.2.0, < 2.0)
112
+ rspec-support (~> 3.2.0)
113
+ rspec-rails (3.2.1)
114
+ actionpack (>= 3.0, < 4.3)
115
+ activesupport (>= 3.0, < 4.3)
116
+ railties (>= 3.0, < 4.3)
117
+ rspec-core (~> 3.2.0)
118
+ rspec-expectations (~> 3.2.0)
119
+ rspec-mocks (~> 3.2.0)
120
+ rspec-support (~> 3.2.0)
121
+ rspec-support (3.2.2)
122
+ slop (3.6.0)
123
+ sprockets (3.0.1)
124
+ rack (~> 1.0)
125
+ sprockets-rails (2.2.4)
126
+ actionpack (>= 3.0)
127
+ activesupport (>= 3.0)
128
+ sprockets (>= 2.8, < 4.0)
129
+ thor (0.19.1)
130
+ thread_safe (0.3.5)
131
+ tzinfo (1.2.2)
132
+ thread_safe (~> 0.1)
133
+
134
+ PLATFORMS
135
+ ruby
136
+
137
+ DEPENDENCIES
138
+ appraisal
139
+ database_cleaner
140
+ pg (~> 0.12)
141
+ pry
142
+ rails (= 4.2.1)
143
+ rspec-rails
144
+ storey!
@@ -39,7 +39,7 @@ module Storey
39
39
  end
40
40
 
41
41
  def dump_schema(options={})
42
- ENV['PGPASSWORD'] = Storey.database_config[:password]
42
+ SetsEnvPassword.with(Storey.database_config[:password])
43
43
  prepare_schema_dump_directories
44
44
 
45
45
  if Storey.database_config[:host].present?
@@ -10,7 +10,7 @@ module Storey
10
10
 
11
11
  def dump
12
12
  File.open(@file, "w:utf-8") do |file|
13
- ::ActiveRecord::Base.establish_connection(Rails.env)
13
+ ::ActiveRecord::Base.establish_connection(Rails.env.to_sym)
14
14
  ::ActiveRecord::SchemaDumper.dump(::ActiveRecord::Base.connection, file)
15
15
  end
16
16
  end
@@ -0,0 +1,9 @@
1
+ module Storey
2
+ class SetsEnvPassword
3
+
4
+ def self.with(password)
5
+ ENV['PGPASSWORD'] = password.to_s
6
+ end
7
+
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Storey
2
- VERSION = "0.6.0"
2
+ VERSION = "1.0.0"
3
3
  end
data/lib/storey.rb CHANGED
@@ -19,6 +19,7 @@ require 'storey/utils'
19
19
  require 'storey/builds_dump_command'
20
20
  require 'storey/builds_load_command'
21
21
  require 'storey/schema_name'
22
+ require 'storey/sets_env_password'
22
23
 
23
24
  module Storey
24
25
 
@@ -27,4 +27,6 @@ Dummy::Application.configure do
27
27
 
28
28
  # Expands the lines which load the assets
29
29
  config.assets.debug = true
30
+
31
+ config.eager_load = false
30
32
  end
@@ -57,4 +57,6 @@ Dummy::Application.configure do
57
57
 
58
58
  # Send deprecation notices to registered listeners
59
59
  config.active_support.deprecation = :notify
60
+
61
+ config.eager_load = true
60
62
  end
@@ -36,4 +36,6 @@ Dummy::Application.configure do
36
36
 
37
37
  # Print deprecation notices to the stderr
38
38
  config.active_support.deprecation = :stderr
39
+
40
+ config.eager_load = false
39
41
  end
@@ -2,9 +2,9 @@ require 'spec_helper'
2
2
 
3
3
  describe Storey, '#default_schema?' do
4
4
  context 'when not in the default schema' do
5
- it 'should return false' do
5
+ it 'return false' do
6
6
  Storey.create 'hah' do
7
- Storey.default_schema?.should be_false
7
+ expect(Storey.default_schema?).to be false
8
8
  end
9
9
  end
10
10
  end
@@ -12,7 +12,7 @@ describe Storey, '#default_schema?' do
12
12
  context 'when in the default schema' do
13
13
  it 'should return true' do
14
14
  Storey.switch do
15
- Storey.default_schema?.should be_true
15
+ expect(Storey.default_schema?).to be true
16
16
  end
17
17
  end
18
18
  end
@@ -54,6 +54,8 @@ describe Storey, "#duplicate!" do
54
54
 
55
55
  it "should clear the PGPASSWORD environment variable" do
56
56
  Storey.create 'ricky'
57
+ expect(Storey::SetsEnvPassword).to receive(:with).
58
+ with(Storey.database_config[:password])
57
59
  Storey.duplicate! 'ricky', 'bobby'
58
60
  ENV['PGPASSWORD'].should be_blank
59
61
  end
@@ -2,15 +2,15 @@ require 'spec_helper'
2
2
 
3
3
  describe Storey::Hstore do
4
4
  describe '.install' do
5
- it 'should install the extension into the hstore schema' do
5
+ it 'installs the extension into the hstore schema' do
6
6
  Storey.persistent_schemas = %w(hstore)
7
7
  described_class.install
8
8
  expect { ::ActiveRecord::Base.connection.execute "DROP EXTENSION hstore" }.
9
- to_not raise_error(ActiveRecord::StatementInvalid)
9
+ to_not raise_error
10
10
  end
11
11
 
12
- context 'when hstore is not one of the persistent schemas' do
13
- it 'should fail with an StoreyError' do
12
+ context 'hstore is not one of the persistent schemas' do
13
+ it 'fails with an StoreyError' do
14
14
  Storey.persistent_schemas = []
15
15
  message = 'You are attempting to install hstore data type, but the hstore schema (where the data type will be installed) is not one of the persistent schemas. Please add hstore to the list of persistent schemas.'
16
16
  expect { described_class.install }.
@@ -6,28 +6,28 @@ describe Storey::NativeSchemaMatcher do
6
6
  context 'when the schema is "$user"' do
7
7
  it 'should be true' do
8
8
  m = described_class.new('"$user"')
9
- m.matches?.should be_true
9
+ expect(m.matches?).to be true
10
10
  end
11
11
  end
12
12
 
13
13
  context 'when the schema is public' do
14
14
  it 'should be true' do
15
15
  m = described_class.new('public')
16
- m.matches?.should be_true
16
+ expect(m.matches?).to be true
17
17
  end
18
18
  end
19
19
 
20
20
  context 'when given comma separated string of schemas all matching' do
21
21
  it 'should be true' do
22
22
  m = described_class.new('"$user",public')
23
- m.matches?.should be_true
23
+ expect(m.matches?).to be true
24
24
  end
25
25
  end
26
26
 
27
27
  context 'when the schema is neither "$user" or public' do
28
28
  it 'should be false' do
29
29
  m = described_class.new('something')
30
- m.matches?.should be_false
30
+ expect(m.matches?).to be false
31
31
  end
32
32
  end
33
33
  end
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe Storey, '#schema_exists?' do
4
4
  context 'the schema is the default search path' do
5
5
  it 'should return true' do
6
- Storey.schema_exists?('"$user",public').should be_true
6
+ expect(Storey.schema_exists?('"$user",public')).to be true
7
7
  end
8
8
  end
9
9
 
@@ -14,13 +14,13 @@ describe Storey, '#schema_exists?' do
14
14
  end
15
15
 
16
16
  it 'should return true' do
17
- Storey.schema_exists?('hoo').should be_true
17
+ expect(Storey.schema_exists?('hoo')).to be true
18
18
  end
19
19
  end
20
20
 
21
21
  context 'when the schema does not exist' do
22
22
  it 'should return false' do
23
- Storey.schema_exists?('boo').should be_false
23
+ expect(Storey.schema_exists?('boo')).to be false
24
24
  end
25
25
  end
26
26
  end
@@ -33,13 +33,13 @@ describe Storey, '#schema_exists?' do
33
33
  end
34
34
 
35
35
  it 'should return true' do
36
- Storey.schema_exists?('croo').should be_true
36
+ expect(Storey.schema_exists?('croo')).to be true
37
37
  end
38
38
  end
39
39
 
40
40
  context 'when the schema does not exist' do
41
41
  it 'should return false' do
42
- Storey.schema_exists?('croo').should be_false
42
+ expect(Storey.schema_exists?('croo')).to be false
43
43
  end
44
44
  end
45
45
  end
@@ -0,0 +1,23 @@
1
+ require "spec_helper"
2
+
3
+ module Storey
4
+ describe SetsEnvPassword, ".with" do
5
+
6
+ before do
7
+ ENV["PGPASSWORD"] = "somethingelse"
8
+ end
9
+
10
+ it "sets the env password found in the database config" do
11
+ described_class.with("asd")
12
+ expect(ENV["PGPASSWORD"]).to eq "asd"
13
+ end
14
+
15
+ context "password is an integer" do
16
+ it "sets the password as a string" do
17
+ described_class.with(1)
18
+ expect(ENV["PGPASSWORD"]).to eq "1"
19
+ end
20
+ end
21
+
22
+ end
23
+ end
@@ -71,7 +71,8 @@ describe Storey, "rake tasks" do
71
71
  end
72
72
 
73
73
  it "requires a version to migrate to" do
74
- expect { @rake['storey:migrate:down'].invoke }.should raise_error("VERSION is required")
74
+ expect { @rake['storey:migrate:down'].invoke }.
75
+ to raise_error(RuntimeError, /VERSION is required/)
75
76
  end
76
77
  end
77
78
 
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-26 00:00:00.000000000 Z
11
+ date: 2015-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pg
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.12'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.12'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: database_cleaner
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: easy_class_to_instance_method
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.0.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.0.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 3.2.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 3.2.0
83
83
  description: Storey aims to simplify the implementation of managing a multi-tenant
@@ -88,15 +88,20 @@ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
92
- - .rspec
93
- - .travis.yml
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".ruby-version"
94
+ - ".travis.yml"
95
+ - Appraisals
94
96
  - CHANGELOG.md
95
97
  - Gemfile
96
98
  - LICENSE.txt
97
99
  - README.md
98
100
  - Rakefile
99
- - gemfiles/rails3
101
+ - gemfiles/rails_3.gemfile
102
+ - gemfiles/rails_3.gemfile.lock
103
+ - gemfiles/rails_4.gemfile
104
+ - gemfiles/rails_4.gemfile.lock
100
105
  - lib/storey.rb
101
106
  - lib/storey/builds_dump_command.rb
102
107
  - lib/storey/builds_load_command.rb
@@ -110,13 +115,13 @@ files:
110
115
  - lib/storey/resets_column_info.rb
111
116
  - lib/storey/ruby_dumper.rb
112
117
  - lib/storey/schema_name.rb
118
+ - lib/storey/sets_env_password.rb
113
119
  - lib/storey/sql_dumper.rb
114
120
  - lib/storey/suffixifier.rb
115
121
  - lib/storey/unsuffixifier.rb
116
122
  - lib/storey/utils.rb
117
123
  - lib/storey/version.rb
118
124
  - lib/tasks/storey.rake
119
- - rvmrc.sample
120
125
  - spec/config/database.yml.sample
121
126
  - spec/dummy/Rakefile
122
127
  - spec/dummy/app/assets/javascripts/application.js
@@ -148,7 +153,6 @@ files:
148
153
  - spec/dummy/config/routes.rb
149
154
  - spec/dummy/db/migrate/20120115060713_create_companies.rb
150
155
  - spec/dummy/db/migrate/20120115060728_create_posts.rb
151
- - spec/dummy/db/schema.rb
152
156
  - spec/dummy/lib/assets/.gitkeep
153
157
  - spec/dummy/log/.gitkeep
154
158
  - spec/dummy/public/404.html
@@ -180,6 +184,7 @@ files:
180
184
  - spec/storey/schema_search_path_for_spec.rb
181
185
  - spec/storey/schema_spec.rb
182
186
  - spec/storey/schemas_spec.rb
187
+ - spec/storey/sets_env_password_spec.rb
183
188
  - spec/storey/sql_dumper_spec.rb
184
189
  - spec/storey/suffixifier_spec.rb
185
190
  - spec/storey/switch_spec.rb
@@ -197,17 +202,17 @@ require_paths:
197
202
  - lib
198
203
  required_ruby_version: !ruby/object:Gem::Requirement
199
204
  requirements:
200
- - - '>='
205
+ - - ">="
201
206
  - !ruby/object:Gem::Version
202
207
  version: '0'
203
208
  required_rubygems_version: !ruby/object:Gem::Requirement
204
209
  requirements:
205
- - - '>='
210
+ - - ">="
206
211
  - !ruby/object:Gem::Version
207
212
  version: '0'
208
213
  requirements: []
209
214
  rubyforge_project: storey
210
- rubygems_version: 2.2.1
215
+ rubygems_version: 2.2.2
211
216
  signing_key:
212
217
  specification_version: 4
213
218
  summary: Manage multiple PostgreSQL schemas in your multi-tenant app.
@@ -243,7 +248,6 @@ test_files:
243
248
  - spec/dummy/config/routes.rb
244
249
  - spec/dummy/db/migrate/20120115060713_create_companies.rb
245
250
  - spec/dummy/db/migrate/20120115060728_create_posts.rb
246
- - spec/dummy/db/schema.rb
247
251
  - spec/dummy/lib/assets/.gitkeep
248
252
  - spec/dummy/log/.gitkeep
249
253
  - spec/dummy/public/404.html
@@ -275,6 +279,7 @@ test_files:
275
279
  - spec/storey/schema_search_path_for_spec.rb
276
280
  - spec/storey/schema_spec.rb
277
281
  - spec/storey/schemas_spec.rb
282
+ - spec/storey/sets_env_password_spec.rb
278
283
  - spec/storey/sql_dumper_spec.rb
279
284
  - spec/storey/suffixifier_spec.rb
280
285
  - spec/storey/switch_spec.rb
data/gemfiles/rails3 DELETED
@@ -1,7 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in storey.gemspec
4
- gemspec path: "../"
5
-
6
- gem 'pry'
7
- gem "rails", "~> 3.2"
data/rvmrc.sample DELETED
@@ -1 +0,0 @@
1
- rvm use ruby-1.9.2-p290
@@ -1,26 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended to check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(:version => 20120115060728) do
15
-
16
- create_table "companies", :force => true do |t|
17
- t.string "name"
18
- t.string "schema_name"
19
- end
20
-
21
- create_table "posts", :force => true do |t|
22
- t.string "name"
23
- t.text "body"
24
- end
25
-
26
- end