storey 0.5.2 → 0.6.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: b9638c28132d29d5407b019283d50b00fc155e4b
4
- data.tar.gz: c6981e67c5230e66c2830adb2094e97ec6d31960
3
+ metadata.gz: b792bb5b42b4f163d95479d2483d88c9b74927b8
4
+ data.tar.gz: 0be264cd7fd5fb2fbd463c893fb5ed0cc2635d31
5
5
  SHA512:
6
- metadata.gz: c6861dd0d9084ff308f512ac6f981982923572daae78fc77a7e4fd99cd782ee03a6fb660bc59e67e2fdf672191c09b0b4f45fb1045f94f78e4524b7c9eda4cd8
7
- data.tar.gz: c76f2060ebdbaed86bfa68bac5f982a3d6257896eb97b45a6cabf6713014dc8dff2911be04420e1899bd3afcb9a71deaec93a09203e2bc15b252a10e4912c341
6
+ metadata.gz: 68badecca8c68c81ed106a4cf08399b1dde313f44e1168600b68d605ebd9b3c4f8626313a0bb7e7677aa99a2b3f609eb1fbc3248e628f51c3e02f41893bc7b3d
7
+ data.tar.gz: 0a41bd2f33734bf904ab51bc55c5b8cf19df3abb6dbc5006d6be059df7435ae6fc2c9ab1c6f7601aeb6b214650cb4d56c0c21b3aa4b03e8e1a6dec1d9c589ea4
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ services:
5
+ - postgresql
6
+ before_script:
7
+ - cp spec/dummy/config/database.yml{.sample,}
8
+ - psql -c 'create database storey_test;' -U postgres
9
+ gemfile:
10
+ - Gemfile
11
+ - gemfiles/rails3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.6.0
2
+
3
+ - Relax pg version dependency. Works with `~> 0.12`
4
+
1
5
  # v0.5.1
2
6
 
3
7
  - Relax Rails version dependency. Works with `4.0`.
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/ramontayag/storey.png?branch=master)](https://travis-ci.org/ramontayag/storey)
2
+
1
3
  # Storey
2
4
 
3
5
  Storey is used to manage multiple schemas in your multi-tenant Rails application.
data/Rakefile CHANGED
@@ -5,3 +5,7 @@ require 'rspec/core/rake_task'
5
5
  RSpec::Core::RakeTask.new(:spec) do |spec|
6
6
  spec.pattern = FileList['spec/**/*_spec.rb']
7
7
  end
8
+
9
+ task default: :spec do
10
+
11
+ end
data/gemfiles/rails3 ADDED
@@ -0,0 +1,7 @@
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"
@@ -1,3 +1,3 @@
1
1
  module Storey
2
- VERSION = "0.5.2"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -2,5 +2,5 @@ test:
2
2
  database: storey_test
3
3
  adapter: postgresql
4
4
  min_messages: WARNING
5
- username: root
5
+ username: postgresql
6
6
  password:
@@ -2,5 +2,5 @@ test:
2
2
  database: storey_test
3
3
  adapter: postgresql
4
4
  min_messages: WARNING
5
- username: root
5
+ username: postgres
6
6
  password:
@@ -17,21 +17,21 @@ describe Storey::BuildsDumpCommand do
17
17
  end
18
18
 
19
19
  context 'when structure_only: true' do
20
- let(:options) do
21
- {
20
+ before do
21
+ options.merge!(
22
22
  database: 'mydb',
23
23
  structure_only: true
24
- }
24
+ )
25
25
  end
26
26
  it { should include('--schema-only') }
27
27
  end
28
28
 
29
29
  context 'when structure_only: false' do
30
- let(:options) do
31
- {
30
+ before do
31
+ options.merge!(
32
32
  database: 'mydb',
33
33
  structure_only: false
34
- }
34
+ )
35
35
  end
36
36
  it { should_not include('--schema-only') }
37
37
  end
@@ -50,21 +50,21 @@ describe Storey::BuildsDumpCommand do
50
50
  end
51
51
 
52
52
  context "schemas: 'public'" do
53
- let(:options) do
54
- {
53
+ before do
54
+ options.merge!(
55
55
  database: 'mydb',
56
56
  schemas: %q(public)
57
- }
57
+ )
58
58
  end
59
59
  it { should include('--schema=public') }
60
60
  end
61
61
 
62
62
  context "schemas: '$user','public'" do
63
- let(:options) do
64
- {
63
+ before do
64
+ options.merge!(
65
65
  database: 'mydb',
66
66
  schemas: %q($user,public)
67
- }
67
+ )
68
68
  end
69
69
  it { should include('--schema=\$user --schema=public') }
70
70
  end
data/storey.gemspec CHANGED
@@ -21,9 +21,8 @@ Gem::Specification.new do |s|
21
21
 
22
22
  # specify any dependencies here; for example:
23
23
  s.add_development_dependency "rspec-rails"
24
- s.add_development_dependency "pg", "~> 0.12.2"
24
+ s.add_development_dependency "pg", "~> 0.12"
25
25
  s.add_development_dependency "database_cleaner"
26
- s.add_development_dependency "pry"
27
26
  s.add_runtime_dependency 'easy_class_to_instance_method', '~> 0.0.2'
28
27
  s.add_runtime_dependency "rails", ">= 3.2.0"
29
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.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: 2013-07-15 00:00:00.000000000 Z
11
+ date: 2014-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.12.2
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
- version: 0.12.2
40
+ version: '0.12'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: database_cleaner
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: pry
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: easy_class_to_instance_method
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -104,11 +90,13 @@ extra_rdoc_files: []
104
90
  files:
105
91
  - .gitignore
106
92
  - .rspec
93
+ - .travis.yml
107
94
  - CHANGELOG.md
108
95
  - Gemfile
109
96
  - LICENSE.txt
110
97
  - README.md
111
98
  - Rakefile
99
+ - gemfiles/rails3
112
100
  - lib/storey.rb
113
101
  - lib/storey/builds_dump_command.rb
114
102
  - lib/storey/builds_load_command.rb
@@ -219,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
207
  version: '0'
220
208
  requirements: []
221
209
  rubyforge_project: storey
222
- rubygems_version: 2.0.3
210
+ rubygems_version: 2.2.1
223
211
  signing_key:
224
212
  specification_version: 4
225
213
  summary: Manage multiple PostgreSQL schemas in your multi-tenant app.