flipp 0.0.2.11 → 0.1.0
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.
- data/README.md +7 -3
- data/flipp.gemspec +1 -1
- data/lib/flipp/railtie.rb +1 -1
- metadata +5 -5
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# flipp
|
2
2
|
|
3
|
-
To alleviate issues around highly divergent development databases on feature/refactor branches, flipp helps switch databases upon new branch checkouts.
|
3
|
+
To alleviate issues around highly divergent development databases on feature/refactor branches, flipp helps unobtrusively switch databases upon new branch checkouts.
|
4
4
|
|
5
5
|
# Database Support
|
6
6
|
|
@@ -9,8 +9,12 @@ Current support is for MySQL only.
|
|
9
9
|
# Installation & Usage
|
10
10
|
|
11
11
|
1. Add `gem 'flipp'` to your Gemfile or do `gem install flipp`.
|
12
|
-
2.
|
13
|
-
|
12
|
+
2. Normal git workflow, ie. switch branches normally
|
13
|
+
|
14
|
+
# Uninstall
|
15
|
+
|
16
|
+
1. Remove the 'flipp' gem from your Gemfile.
|
17
|
+
2. Your unaltered development database is used.
|
14
18
|
|
15
19
|
# License
|
16
20
|
|
data/flipp.gemspec
CHANGED
data/lib/flipp/railtie.rb
CHANGED
@@ -3,7 +3,7 @@ require 'flipp'
|
|
3
3
|
module Flipp
|
4
4
|
class Railtie < Rails::Railtie
|
5
5
|
initializer "restablish_connection.configure_rails_initialization" do
|
6
|
-
if Rails.env.development?
|
6
|
+
if Rails.env.development?
|
7
7
|
# Use the connection determined by flipp
|
8
8
|
flipp = ::Flipp::Flipp.new
|
9
9
|
flipp.switch_databases
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flipp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-13 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
16
|
-
requirement: &
|
16
|
+
requirement: &70224900795600 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70224900795600
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: database_exporter
|
27
|
-
requirement: &
|
27
|
+
requirement: &70224900788560 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70224900788560
|
36
36
|
description: To alleviate issues around highly divergent development databases on
|
37
37
|
feature/refactor branches, flipp helps switch databases upon new branch checkouts.
|
38
38
|
email:
|