flipp 0.0.2.5 → 0.0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/flipp.gemspec CHANGED
@@ -5,7 +5,7 @@ require 'bundler'
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "flipp"
8
- s.version = '0.0.2.5'
8
+ s.version = '0.0.2.6'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.authors = ["Mike Pack"]
11
11
  s.email = ["mikepackdev@gmail.com"]
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.add_runtime_dependency 'activerecord'
19
19
  s.add_runtime_dependency 'database_exporter'
20
20
 
21
- s.files = %w( README.md Rakefile flipp.gemspec ) + Dir["lib/**/*.rb"]
21
+ s.files = %w( README.md Rakefile flipp.gemspec ) + Dir["lib/**/*.rb"] + Dir["lib/flipp/git_hooks/*"]
22
22
  s.test_files = Dir["spec/**/*.rb"]
23
23
  s.require_paths = ["lib"]
24
24
  end
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require File.join(File.dirname(__FILE__), '../../lib/flipp')
4
+ # require 'flipp'
5
+
6
+ if ARGV[2] == '1' # This was a branch switch
7
+ flipp = Flipp.new
8
+ flipp.switch_databases
9
+ end
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.2.5
4
+ version: 0.0.2.6
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: &70333260932180 !ruby/object:Gem::Requirement
16
+ requirement: &70184891622720 !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: *70333260932180
24
+ version_requirements: *70184891622720
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: database_exporter
27
- requirement: &70333260931420 !ruby/object:Gem::Requirement
27
+ requirement: &70184891621960 !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: *70333260931420
35
+ version_requirements: *70184891621960
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:
@@ -49,6 +49,7 @@ files:
49
49
  - lib/flipp/railtie.rb
50
50
  - lib/flipp/tasks.rb
51
51
  - lib/flipp.rb
52
+ - lib/flipp/git_hooks/post-checkout
52
53
  - spec/lib/flipp/flipp_spec.rb
53
54
  - spec/lib/flipp/helpers/git_helper_spec.rb
54
55
  - spec/spec_helper.rb