database_resetter 0.1.0 → 0.1.1
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 +7 -0
- data/Gemfile +8 -5
- data/Gemfile.lock +69 -0
- data/HISTORY.markdown +4 -0
- data/README.markdown +17 -10
- data/Rakefile +18 -16
- data/VERSION +1 -1
- data/database_resetter.gemspec +63 -0
- data/database_resetter.sublime-project +17 -0
- data/features/descriptions/no_migrations.feature +3 -4
- data/features/step_definitions/database_resetter_steps.rb +30 -28
- data/features/support/env.rb +0 -3
- data/lib/database_resetter.rb +4 -4
- metadata +87 -51
- data/config/darcs.boring +0 -118
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1fd7391f513b7dc77a95dff983c194f3b67b438f
|
4
|
+
data.tar.gz: 504ed3e656367283aa228961cdd102373dbf01bc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 47d6c1c3680de3cad21187f9295a46fd902bcdc6929438d0f32bf397d9ee789514a6e13e9a7d97b3ae34249aa049bb0b7925a77d8ddf30ee1c6db1bed5bb50e2
|
7
|
+
data.tar.gz: 0694f20ca223a8aa8d30a319a681af5b01eb6593cadeb52af7cdc95e5a7d2286d6b618111fe125756bb12a093e2e738ed5d7474bd9ca61205df317442dbb915b
|
data/Gemfile
CHANGED
@@ -1,11 +1,14 @@
|
|
1
|
-
source
|
2
|
-
|
3
|
-
gem "jeweler"
|
4
|
-
gem "rake"
|
5
|
-
gem "gemedit"
|
1
|
+
source "https://rubygems.org"
|
6
2
|
|
7
3
|
group :test do
|
8
4
|
gem "cucumber"
|
9
5
|
gem "aruba"
|
10
6
|
gem "rspec"
|
7
|
+
end
|
8
|
+
|
9
|
+
group :development do
|
10
|
+
gem "rake"
|
11
|
+
gem "ap"
|
12
|
+
gem "pry"
|
13
|
+
gem "jeweler", git: "https://github.com/emilsoman/jeweler.git", branch: "rubygems-2.0.0-compatibility"
|
11
14
|
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/emilsoman/jeweler.git
|
3
|
+
revision: 109c92d67baf5f55a627588a2cc16db171888ae5
|
4
|
+
branch: rubygems-2.0.0-compatibility
|
5
|
+
specs:
|
6
|
+
jeweler (1.8.4)
|
7
|
+
bundler (~> 1.0)
|
8
|
+
git (>= 1.2.5)
|
9
|
+
rake
|
10
|
+
rdoc
|
11
|
+
|
12
|
+
GEM
|
13
|
+
remote: https://rubygems.org/
|
14
|
+
specs:
|
15
|
+
ap (0.1.1)
|
16
|
+
httparty (>= 0.7.7)
|
17
|
+
aruba (0.5.1)
|
18
|
+
childprocess (~> 0.3.6)
|
19
|
+
cucumber (>= 1.1.1)
|
20
|
+
rspec-expectations (>= 2.7.0)
|
21
|
+
builder (3.2.0)
|
22
|
+
childprocess (0.3.9)
|
23
|
+
ffi (~> 1.0, >= 1.0.11)
|
24
|
+
coderay (1.0.9)
|
25
|
+
cucumber (1.2.3)
|
26
|
+
builder (>= 2.1.2)
|
27
|
+
diff-lcs (>= 1.1.3)
|
28
|
+
gherkin (~> 2.11.6)
|
29
|
+
multi_json (~> 1.3)
|
30
|
+
diff-lcs (1.2.2)
|
31
|
+
ffi (1.6.0)
|
32
|
+
gherkin (2.11.6)
|
33
|
+
json (>= 1.7.6)
|
34
|
+
git (1.2.5)
|
35
|
+
httparty (0.10.2)
|
36
|
+
multi_json (~> 1.0)
|
37
|
+
multi_xml (>= 0.5.2)
|
38
|
+
json (1.7.7)
|
39
|
+
method_source (0.8.1)
|
40
|
+
multi_json (1.7.2)
|
41
|
+
multi_xml (0.5.3)
|
42
|
+
pry (0.9.12)
|
43
|
+
coderay (~> 1.0.5)
|
44
|
+
method_source (~> 0.8)
|
45
|
+
slop (~> 3.4)
|
46
|
+
rake (10.0.4)
|
47
|
+
rdoc (4.0.1)
|
48
|
+
json (~> 1.4)
|
49
|
+
rspec (2.13.0)
|
50
|
+
rspec-core (~> 2.13.0)
|
51
|
+
rspec-expectations (~> 2.13.0)
|
52
|
+
rspec-mocks (~> 2.13.0)
|
53
|
+
rspec-core (2.13.1)
|
54
|
+
rspec-expectations (2.13.0)
|
55
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
56
|
+
rspec-mocks (2.13.0)
|
57
|
+
slop (3.4.4)
|
58
|
+
|
59
|
+
PLATFORMS
|
60
|
+
ruby
|
61
|
+
|
62
|
+
DEPENDENCIES
|
63
|
+
ap
|
64
|
+
aruba
|
65
|
+
cucumber
|
66
|
+
jeweler!
|
67
|
+
pry
|
68
|
+
rake
|
69
|
+
rspec
|
data/HISTORY.markdown
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# database\_resetter history
|
2
2
|
|
3
|
+
## 0.1.1 (2013-04-04)
|
4
|
+
|
5
|
+
Add default options so you don't have to pass an empty hash to `DatabaseResetter.new`. This is helpful if you use `rake db:reset` to rebuild your test database, which is the Rails default.
|
6
|
+
|
3
7
|
## 0.1.0 (2010-07-04)
|
4
8
|
|
5
9
|
Initial public release. It's been in private beta for almost two years...
|
data/README.markdown
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# database\_resetter
|
2
2
|
|
3
|
+
Note: I used to use darcs as the source control tool for this project.
|
4
|
+
I decided to move to git as other people will find it easier to collaborate
|
5
|
+
on GitHub. As it was small enough, I decided to manually port it on a
|
6
|
+
one-git-commit-per-darcs-patch basis. So (in case you looked at the commit
|
7
|
+
history), no – I didn't write the entire thing in 20 minutes. (How I wish
|
8
|
+
I could code that fast.)
|
9
|
+
|
3
10
|
## Introduction
|
4
11
|
|
5
12
|
### What does it do?
|
@@ -50,7 +57,7 @@ If you're working on a Rails app, and your tests are good to go after a
|
|
50
57
|
will get executed once per test run:
|
51
58
|
|
52
59
|
DatabaseResetter.new.reset_if_required
|
53
|
-
|
60
|
+
|
54
61
|
Note: there are no features to prove this default call actually works :) I've
|
55
62
|
always specified the options explicitly myself. But the defaults should work with
|
56
63
|
Rails. If not, let me know.
|
@@ -75,9 +82,9 @@ To override the default command, specify the `:command_pattern` option:
|
|
75
82
|
DatabaseResetter.new(
|
76
83
|
:command_pattern => "rake db:rebuild RAILS_ENV=%ENV%"
|
77
84
|
).reset_if_required
|
78
|
-
|
85
|
+
|
79
86
|
See below for a description of `%ENV%`.
|
80
|
-
|
87
|
+
|
81
88
|
### Using a different framework
|
82
89
|
|
83
90
|
If you use a different web framework, you may have to specify a different
|
@@ -98,7 +105,7 @@ You may also need to specify a different migration file directory to watch, eg:
|
|
98
105
|
|
99
106
|
(You can, of course, combine all three.)
|
100
107
|
|
101
|
-
### RSpec
|
108
|
+
### RSpec
|
102
109
|
|
103
110
|
Put the call to `DatabaseResetter#reset_if_required` in _spec/spec\_helper.rb_.
|
104
111
|
|
@@ -127,14 +134,14 @@ eyes, eg in Rails:
|
|
127
134
|
|
128
135
|
Spork.each_run do
|
129
136
|
# ...
|
130
|
-
|
137
|
+
|
131
138
|
ActiveRecord::Base.establish_connection(config.merge('database' => 'postgres', 'schema_search_path' => 'public'))
|
132
139
|
DatabaseResetter.new.reset_if_required
|
133
140
|
ActiveRecord::Base.establish_connection(config)
|
134
|
-
|
141
|
+
|
135
142
|
# ...
|
136
143
|
end
|
137
|
-
|
144
|
+
|
138
145
|
If you're not using Spork, you still need to make sure you call
|
139
146
|
`DatabaseResetter#reset_if_required` before connecting to the database.
|
140
147
|
One way of doing this with Bundler is to define a Bundler group just
|
@@ -144,18 +151,18 @@ for database\_resetter in your Gemfile:
|
|
144
151
|
gem "database_resetter"
|
145
152
|
end
|
146
153
|
|
147
|
-
And then use this to load and run database\_resetter before anything connects
|
154
|
+
And then use this to load and run database\_resetter before anything connects
|
148
155
|
to the database. eg with Rails and Cucumber, in _env.rb_:
|
149
156
|
|
150
157
|
# ...
|
151
|
-
|
158
|
+
|
152
159
|
require 'bundler'
|
153
160
|
Bundler.setup(:database_resetter)
|
154
161
|
require 'database_resetter'
|
155
162
|
DatabaseResetter.new.reset_if_required
|
156
163
|
|
157
164
|
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
|
158
|
-
|
165
|
+
|
159
166
|
# ...
|
160
167
|
|
161
168
|
|
data/Rakefile
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
require
|
2
|
-
|
1
|
+
require 'jeweler'
|
2
|
+
require 'jeweler/rubygems_tasks'
|
3
3
|
|
4
|
-
|
4
|
+
Jeweler::Tasks.new do |gem|
|
5
|
+
gem.name = "database_resetter"
|
6
|
+
gem.summary = "Automatically resets your database when migrations change"
|
7
|
+
gem.email = "ash.moran@patchspace.co.uk"
|
8
|
+
gem.homepage = "https://github.com/patchspace/database_resetter"
|
9
|
+
gem.authors = ["Ash Moran"]
|
5
10
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
gemspec.email = "ashley.moran@patchspace.co.uk"
|
10
|
-
gemspec.homepage = "https://patch-tag.com/repo/ashleymoran/database_resetter/"
|
11
|
-
gemspec.authors = ["Ashley Moran"]
|
12
|
-
|
13
|
-
gemspec.files.include %w[
|
11
|
+
# Why can't we do `gem.files.include` here???
|
12
|
+
|
13
|
+
gem.files.concat %w[
|
14
14
|
config/**/*
|
15
15
|
lib/**/*
|
16
16
|
*.markdown
|
@@ -18,10 +18,12 @@ Jeweler::Tasks.new do |gemspec|
|
|
18
18
|
Rakefile
|
19
19
|
VERSION
|
20
20
|
]
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
gem.test_files.concat Dir.glob(
|
22
|
+
%w[
|
23
|
+
features/**/*
|
24
|
+
spec/**/*
|
25
|
+
]
|
26
|
+
)
|
25
27
|
end
|
26
28
|
|
27
|
-
Jeweler::
|
29
|
+
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "database_resetter"
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Ash Moran"]
|
12
|
+
s.date = "2013-04-04"
|
13
|
+
s.email = "ash.moran@patchspace.co.uk"
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"README.markdown"
|
16
|
+
]
|
17
|
+
s.files = [
|
18
|
+
"Gemfile",
|
19
|
+
"Gemfile.lock",
|
20
|
+
"HISTORY.markdown",
|
21
|
+
"LICENCE.markdown",
|
22
|
+
"README.markdown",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"config/cucumber.yml",
|
26
|
+
"database_resetter.gemspec",
|
27
|
+
"database_resetter.sublime-project",
|
28
|
+
"features/descriptions/change_environment.feature",
|
29
|
+
"features/descriptions/database_resetter.feature",
|
30
|
+
"features/descriptions/different_web_frameworks.feature",
|
31
|
+
"features/descriptions/no_migrations.feature",
|
32
|
+
"features/step_definitions/database_resetter_steps.rb",
|
33
|
+
"features/support/env.rb",
|
34
|
+
"lib/database_resetter.rb"
|
35
|
+
]
|
36
|
+
s.homepage = "https://github.com/patchspace/database_resetter"
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
s.rubygems_version = "2.0.0"
|
39
|
+
s.summary = "Automatically resets your database when migrations change"
|
40
|
+
s.test_files = ["features/descriptions", "features/descriptions/change_environment.feature", "features/descriptions/database_resetter.feature", "features/descriptions/different_web_frameworks.feature", "features/descriptions/no_migrations.feature", "features/step_definitions", "features/step_definitions/database_resetter_steps.rb", "features/support", "features/support/env.rb"]
|
41
|
+
|
42
|
+
if s.respond_to? :specification_version then
|
43
|
+
s.specification_version = 4
|
44
|
+
|
45
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
|
+
s.add_development_dependency(%q<rake>, [">= 0"])
|
47
|
+
s.add_development_dependency(%q<ap>, [">= 0"])
|
48
|
+
s.add_development_dependency(%q<pry>, [">= 0"])
|
49
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
50
|
+
else
|
51
|
+
s.add_dependency(%q<rake>, [">= 0"])
|
52
|
+
s.add_dependency(%q<ap>, [">= 0"])
|
53
|
+
s.add_dependency(%q<pry>, [">= 0"])
|
54
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
55
|
+
end
|
56
|
+
else
|
57
|
+
s.add_dependency(%q<rake>, [">= 0"])
|
58
|
+
s.add_dependency(%q<ap>, [">= 0"])
|
59
|
+
s.add_dependency(%q<pry>, [">= 0"])
|
60
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
@@ -8,12 +8,11 @@ Feature: No migrations
|
|
8
8
|
Scenario: No migrations directory
|
9
9
|
Given an empty project called "empty-project"
|
10
10
|
When I run a test case
|
11
|
-
Then
|
12
|
-
|
11
|
+
Then the output should contain "No migrations"
|
12
|
+
|
13
13
|
Scenario: No migrations in migration directory
|
14
14
|
Given an empty project called "empty-project"
|
15
15
|
And an empty Rails migration directory
|
16
16
|
When I run a test case
|
17
|
-
Then
|
17
|
+
Then the output should contain "No migrations"
|
18
18
|
|
19
|
-
|
@@ -1,18 +1,20 @@
|
|
1
|
+
require 'aruba/cucumber'
|
2
|
+
|
1
3
|
module DatabaseResetterHelpers
|
2
4
|
def create_project
|
3
5
|
create_dir(@project_name)
|
4
6
|
cd(@project_name)
|
5
7
|
create_fake_test_case
|
6
8
|
end
|
7
|
-
|
9
|
+
|
8
10
|
def create_fake_test_case(options = {})
|
9
11
|
options = {
|
10
12
|
:environment => "unimportant_env",
|
11
13
|
:migration_directory => "db/migrate",
|
12
14
|
:command_pattern => "rake db:reset RAILS_ENV=%ENV%"
|
13
15
|
}.merge(options)
|
14
|
-
|
15
|
-
|
16
|
+
|
17
|
+
write_file(
|
16
18
|
"fake_test_case.rb", <<-RUBY
|
17
19
|
require "rubygems"
|
18
20
|
require "database_resetter"
|
@@ -27,28 +29,28 @@ module DatabaseResetterHelpers
|
|
27
29
|
end
|
28
30
|
World(DatabaseResetterHelpers)
|
29
31
|
|
30
|
-
Given /^an empty project called "([^"]*)"$/ do |project_name|
|
32
|
+
Given %r/^an empty project called "([^"]*)"$/ do |project_name|
|
31
33
|
@project_name = project_name
|
32
34
|
create_project
|
33
35
|
end
|
34
36
|
|
35
|
-
Given /^an empty Rails migration directory$/ do
|
37
|
+
Given %r/^an empty Rails migration directory$/ do
|
36
38
|
create_dir("db/migrate")
|
37
39
|
end
|
38
40
|
|
39
|
-
Given /^a Rails-type project$/ do
|
41
|
+
Given %r/^a Rails-type project$/ do
|
40
42
|
@project_name = "rails-project"
|
41
43
|
create_project
|
42
44
|
|
43
45
|
@migration_dir = "db/migrate"
|
44
46
|
create_dir(@migration_dir)
|
45
|
-
|
47
|
+
write_file(
|
46
48
|
"#{@migration_dir}/001_first_migration.rb", <<-RUBY
|
47
49
|
# This is just a dummy migration file
|
48
50
|
RUBY
|
49
|
-
)
|
51
|
+
)
|
50
52
|
|
51
|
-
|
53
|
+
write_file(
|
52
54
|
"Rakefile", <<-RUBY
|
53
55
|
namespace :db do
|
54
56
|
task :reset do
|
@@ -57,24 +59,24 @@ Given /^a Rails-type project$/ do
|
|
57
59
|
end
|
58
60
|
RUBY
|
59
61
|
)
|
60
|
-
|
62
|
+
|
61
63
|
create_fake_test_case
|
62
64
|
end
|
63
65
|
|
64
|
-
Given /^a Merb-type project$/ do
|
66
|
+
Given %r/^a Merb-type project$/ do
|
65
67
|
@project_name = "merb-project"
|
66
68
|
create_project
|
67
|
-
|
69
|
+
|
68
70
|
@migration_dir = "schema/migrations"
|
69
71
|
create_dir(@migration_dir)
|
70
72
|
|
71
|
-
|
73
|
+
write_file(
|
72
74
|
"#{@migration_dir}/001_first_migration.rb", <<-RUBY
|
73
75
|
# This is just a dummy migration file
|
74
76
|
RUBY
|
75
77
|
)
|
76
|
-
|
77
|
-
|
78
|
+
|
79
|
+
write_file(
|
78
80
|
"Rakefile", <<-RUBY
|
79
81
|
namespace :db do
|
80
82
|
task :imaginary_merb_reset_task do
|
@@ -83,7 +85,7 @@ Given /^a Merb-type project$/ do
|
|
83
85
|
end
|
84
86
|
RUBY
|
85
87
|
)
|
86
|
-
|
88
|
+
|
87
89
|
create_fake_test_case(
|
88
90
|
:migration_directory => @migration_dir,
|
89
91
|
:command_pattern => "rake db:imaginary_merb_reset_task MERB_ENV=%ENV%",
|
@@ -91,33 +93,33 @@ Given /^a Merb-type project$/ do
|
|
91
93
|
)
|
92
94
|
end
|
93
95
|
|
94
|
-
Given /^a fake test case for the "([^"]*)" environment$/ do |environment|
|
96
|
+
Given %r/^a fake test case for the "([^"]*)" environment$/ do |environment|
|
95
97
|
create_fake_test_case(:environment => environment)
|
96
98
|
end
|
97
99
|
|
98
|
-
Then /^the database should be reset$/ do
|
99
|
-
|
100
|
+
Then %r/^the database should be reset$/ do
|
101
|
+
step %'I should see "Invoked: rake db:reset"'
|
100
102
|
end
|
101
103
|
|
102
|
-
Then /^the database should not be reset$/ do
|
103
|
-
|
104
|
+
Then %r/^the database should not be reset$/ do
|
105
|
+
step %'I should see "Skipping database reset"'
|
104
106
|
end
|
105
107
|
|
106
|
-
Then /^the database should be reset for the "([^"]*)" environment$/ do |environment|
|
107
|
-
|
108
|
+
Then %r/^the database should be reset for the "([^"]*)" environment$/ do |environment|
|
109
|
+
step %'I should see "Invoked: rake db:reset RAILS_ENV=#{environment}"'
|
108
110
|
end
|
109
111
|
|
110
|
-
Then /^the database should be reset for the current Merb environment$/ do
|
111
|
-
|
112
|
+
Then %r/^the database should be reset for the current Merb environment$/ do
|
113
|
+
step %'I should see "Invoked: rake db:imaginary_merb_reset_task MERB_ENV=my_merb_env"'
|
112
114
|
end
|
113
115
|
|
114
|
-
When /^I run a test case(?: again)?$/ do
|
116
|
+
When %r/^I run a test case(?: again)?$/ do
|
115
117
|
run("ruby fake_test_case.rb")
|
116
118
|
end
|
117
119
|
|
118
|
-
When /^I touch a migration$/ do
|
120
|
+
When %r/^I touch a migration$/ do
|
119
121
|
sleep 1
|
120
|
-
|
122
|
+
write_file(
|
121
123
|
"#{@migration_dir}/001_first_migration.rb", <<-RUBY
|
122
124
|
# Modified migration file
|
123
125
|
RUBY
|
data/features/support/env.rb
CHANGED
data/lib/database_resetter.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'time'
|
2
2
|
|
3
3
|
class DatabaseResetter
|
4
|
-
def initialize(options)
|
4
|
+
def initialize(options = { })
|
5
5
|
# NOTE There are no features/specs to prove the defaults are present
|
6
|
-
@environment
|
7
|
-
@command_pattern
|
8
|
-
@files_to_watch
|
6
|
+
@environment = options.fetch(:environment, ENV["RAILS_ENV"])
|
7
|
+
@command_pattern = options.fetch(:command_pattern, "rake db:reset RAILS_ENV=%ENV%")
|
8
|
+
@files_to_watch = "#{options.fetch(:migration_directory, "db/migrate")}/**/*.rb"
|
9
9
|
end
|
10
10
|
|
11
11
|
def reset_if_required
|
metadata
CHANGED
@@ -1,83 +1,119 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_resetter
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 0.1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
6
|
+
authors:
|
7
|
+
- Ash Moran
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
date: 2013-04-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ap
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jeweler
|
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'
|
22
69
|
description:
|
23
|
-
email:
|
70
|
+
email: ash.moran@patchspace.co.uk
|
24
71
|
executables: []
|
25
|
-
|
26
72
|
extensions: []
|
27
|
-
|
28
|
-
extra_rdoc_files:
|
73
|
+
extra_rdoc_files:
|
29
74
|
- README.markdown
|
30
|
-
files:
|
75
|
+
files:
|
31
76
|
- Gemfile
|
77
|
+
- Gemfile.lock
|
32
78
|
- HISTORY.markdown
|
33
79
|
- LICENCE.markdown
|
34
80
|
- README.markdown
|
35
81
|
- Rakefile
|
36
82
|
- VERSION
|
37
83
|
- config/cucumber.yml
|
38
|
-
-
|
39
|
-
-
|
84
|
+
- database_resetter.gemspec
|
85
|
+
- database_resetter.sublime-project
|
40
86
|
- features/descriptions/change_environment.feature
|
41
87
|
- features/descriptions/database_resetter.feature
|
42
88
|
- features/descriptions/different_web_frameworks.feature
|
43
89
|
- features/descriptions/no_migrations.feature
|
44
90
|
- features/step_definitions/database_resetter_steps.rb
|
45
91
|
- features/support/env.rb
|
46
|
-
|
47
|
-
homepage: https://
|
92
|
+
- lib/database_resetter.rb
|
93
|
+
homepage: https://github.com/patchspace/database_resetter
|
48
94
|
licenses: []
|
49
|
-
|
95
|
+
metadata: {}
|
50
96
|
post_install_message:
|
51
|
-
rdoc_options:
|
52
|
-
|
53
|
-
require_paths:
|
97
|
+
rdoc_options: []
|
98
|
+
require_paths:
|
54
99
|
- lib
|
55
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
hash: 3
|
70
|
-
segments:
|
71
|
-
- 0
|
72
|
-
version: "0"
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - '>='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
73
110
|
requirements: []
|
74
|
-
|
75
111
|
rubyforge_project:
|
76
|
-
rubygems_version:
|
112
|
+
rubygems_version: 2.0.0
|
77
113
|
signing_key:
|
78
|
-
specification_version:
|
114
|
+
specification_version: 4
|
79
115
|
summary: Automatically resets your database when migrations change
|
80
|
-
test_files:
|
116
|
+
test_files:
|
81
117
|
- features/descriptions/change_environment.feature
|
82
118
|
- features/descriptions/database_resetter.feature
|
83
119
|
- features/descriptions/different_web_frameworks.feature
|
data/config/darcs.boring
DELETED
@@ -1,118 +0,0 @@
|
|
1
|
-
# Boring file regexps:
|
2
|
-
|
3
|
-
### compiler and interpreter intermediate files
|
4
|
-
# haskell (ghc) interfaces
|
5
|
-
\.hi$
|
6
|
-
\.hi-boot$
|
7
|
-
\.o-boot$
|
8
|
-
# object files
|
9
|
-
\.o$
|
10
|
-
\.o\.cmd$
|
11
|
-
# profiling haskell
|
12
|
-
\.p_hi$
|
13
|
-
\.p_o$
|
14
|
-
# haskell program coverage resp. profiling info
|
15
|
-
\.tix$
|
16
|
-
\.prof$
|
17
|
-
# fortran module files
|
18
|
-
\.mod$
|
19
|
-
# linux kernel
|
20
|
-
\.ko\.cmd$
|
21
|
-
\.mod\.c$
|
22
|
-
(^|/)\.tmp_versions($|/)
|
23
|
-
# *.ko files aren't boring by default because they might
|
24
|
-
# be Korean translations rather than kernel modules
|
25
|
-
# \.ko$
|
26
|
-
# python, emacs, java byte code
|
27
|
-
\.py[co]$
|
28
|
-
\.elc$
|
29
|
-
\.class$
|
30
|
-
# objects and libraries; lo and la are libtool things
|
31
|
-
\.(obj|a|exe|so|lo|la)$
|
32
|
-
# compiled zsh configuration files
|
33
|
-
\.zwc$
|
34
|
-
# Common LISP output files for CLISP and CMUCL
|
35
|
-
\.(fas|fasl|sparcf|x86f)$
|
36
|
-
|
37
|
-
### build and packaging systems
|
38
|
-
# cabal intermediates
|
39
|
-
\.installed-pkg-config
|
40
|
-
\.setup-config
|
41
|
-
# standard cabal build dir, might not be boring for everybody
|
42
|
-
# ^dist(/|$)
|
43
|
-
# autotools
|
44
|
-
(^|/)autom4te\.cache($|/)
|
45
|
-
(^|/)config\.(log|status)$
|
46
|
-
# microsoft web expression, visual studio metadata directories
|
47
|
-
\_vti_cnf$
|
48
|
-
\_vti_pvt$
|
49
|
-
# gentoo tools
|
50
|
-
\.revdep-rebuild.*
|
51
|
-
# generated dependencies
|
52
|
-
^\.depend$
|
53
|
-
|
54
|
-
### version control systems
|
55
|
-
# cvs
|
56
|
-
(^|/)CVS($|/)
|
57
|
-
\.cvsignore$
|
58
|
-
# cvs, emacs locks
|
59
|
-
^\.#
|
60
|
-
# rcs
|
61
|
-
(^|/)RCS($|/)
|
62
|
-
,v$
|
63
|
-
# subversion
|
64
|
-
(^|/)\.svn($|/)
|
65
|
-
# mercurial
|
66
|
-
(^|/)\.hg($|/)
|
67
|
-
# git
|
68
|
-
(^|/)\.git($|/)
|
69
|
-
# bzr
|
70
|
-
\.bzr$
|
71
|
-
# sccs
|
72
|
-
(^|/)SCCS($|/)
|
73
|
-
# darcs
|
74
|
-
(^|/)_darcs($|/)
|
75
|
-
(^|/)\.darcsrepo($|/)
|
76
|
-
^\.darcs-temp-mail$
|
77
|
-
-darcs-backup[[:digit:]]+$
|
78
|
-
# gnu arch
|
79
|
-
(^|/)(\+|,)
|
80
|
-
(^|/)vssver\.scc$
|
81
|
-
\.swp$
|
82
|
-
(^|/)MT($|/)
|
83
|
-
(^|/)\{arch\}($|/)
|
84
|
-
(^|/).arch-ids($|/)
|
85
|
-
# bitkeeper
|
86
|
-
(^|/)BitKeeper($|/)
|
87
|
-
(^|/)ChangeSet($|/)
|
88
|
-
|
89
|
-
### miscellaneous
|
90
|
-
# backup files
|
91
|
-
~$
|
92
|
-
\.bak$
|
93
|
-
\.BAK$
|
94
|
-
# patch originals and rejects
|
95
|
-
\.orig$
|
96
|
-
\.rej$
|
97
|
-
# X server
|
98
|
-
\..serverauth.*
|
99
|
-
# image spam
|
100
|
-
\#
|
101
|
-
(^|/)Thumbs\.db$
|
102
|
-
# vi, emacs tags
|
103
|
-
(^|/)(tags|TAGS)$
|
104
|
-
#(^|/)\.[^/]
|
105
|
-
# core dumps
|
106
|
-
(^|/|\.)core$
|
107
|
-
# partial broken files (KIO copy operations)
|
108
|
-
\.part$
|
109
|
-
# waf files, see http://code.google.com/p/waf/
|
110
|
-
(^|/)\.waf-[[:digit:].]+-[[:digit:]]+($|/)
|
111
|
-
(^|/)\.lock-wscript$
|
112
|
-
# mac os finder
|
113
|
-
(^|/)\.DS_Store$
|
114
|
-
|
115
|
-
### database_resetter
|
116
|
-
(^|/)tmp($|/)
|
117
|
-
(^|/).bundle($|/)
|
118
|
-
(^|/)pkg($|/)
|