scv 0.0.2 → 0.0.3
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/MIT-LICENCE +16 -4
- data/README.md +0 -1
- data/lib/scv/cli.rb +3 -7
- data/lib/scv/version.rb +1 -1
- metadata +12 -11
data/MIT-LICENCE
CHANGED
@@ -1,7 +1,19 @@
|
|
1
|
-
Copyright (
|
1
|
+
Copyright (C) 2011 by Dmitriy Kiriyenko.
|
2
2
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
4
9
|
|
5
|
-
The above copyright notice and this permission notice shall be included in
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
6
12
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.md
CHANGED
@@ -33,7 +33,6 @@ scv db
|
|
33
33
|
for it. Available modificators are:
|
34
34
|
|
35
35
|
* `--drop` or `-d` - drop database before creation. Defaults to false.
|
36
|
-
* `--migrate` or `-m` - force running migrations. By default scv will run `db:schema:load` if `db/schema.rb` is present, `db:migrate` otherwise.
|
37
36
|
* `--no-seeds` - don't run `db:seed`
|
38
37
|
|
39
38
|
The `no-` options are also available with `--skip` prefix as usual (e.g., `--skip-test-clone`)
|
data/lib/scv/cli.rb
CHANGED
@@ -11,17 +11,15 @@ module SCV
|
|
11
11
|
default_task(:reset)
|
12
12
|
|
13
13
|
desc "bootstrap", "Initially sets up the application"
|
14
|
-
method_option :migrate, :type => :boolean, :default => false, :aliases => '-m'
|
15
14
|
def bootstrap
|
16
15
|
invoke :config, [], :force => true
|
17
|
-
invoke :db, [], :seed => false
|
16
|
+
invoke :db, [], :seed => false
|
18
17
|
invoke :populate, :truncate => false
|
19
18
|
end
|
20
19
|
|
21
20
|
desc "reset", "Drops and recreates the database with test data"
|
22
|
-
method_option :migrate, :type => :boolean, :default => false, :aliases => '-m'
|
23
21
|
def reset
|
24
|
-
invoke :db, [], :drop => true, :seed => false
|
22
|
+
invoke :db, [], :drop => true, :seed => false
|
25
23
|
invoke :populate, [], :truncate => false
|
26
24
|
end
|
27
25
|
|
@@ -33,14 +31,12 @@ module SCV
|
|
33
31
|
|
34
32
|
desc "db", "initialize db and load schema"
|
35
33
|
method_option :drop, :type => :boolean, :default => false, :aliases => '-d'
|
36
|
-
method_option :migrate, :type => :boolean, :default => false, :aliases => '-m'
|
37
34
|
method_option :seed, :type => :boolean, :default => true, :aliases => '-s'
|
38
35
|
def db
|
39
|
-
remove_file("db/schema.rb") if options.migrate?
|
40
36
|
rake([].tap do |commands|
|
41
37
|
commands.push "db:drop" if options.drop?
|
42
38
|
commands.push "db:create"
|
43
|
-
commands.push
|
39
|
+
commands.push "db:migrate"
|
44
40
|
commands.push "db:seed" if options.seed?
|
45
41
|
commands.push "db:test:clone"
|
46
42
|
end.join(" "))
|
data/lib/scv/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-06-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &2171433300 !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: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2171433300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thor
|
27
|
-
requirement: &
|
27
|
+
requirement: &2171432560 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2171432560
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: database_cleaner
|
38
|
-
requirement: &
|
38
|
+
requirement: &2171431460 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2171431460
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: railties
|
49
|
-
requirement: &
|
49
|
+
requirement: &2171430000 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2171430000
|
58
58
|
description: ! "A set of thor scripts to manage rails application basic tasks.\n Such
|
59
59
|
as managing local configuration files, dropping, creating\n and
|
60
60
|
populating db, etc."
|
@@ -95,8 +95,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project: scv
|
98
|
-
rubygems_version: 1.8.
|
98
|
+
rubygems_version: 1.8.11
|
99
99
|
signing_key:
|
100
100
|
specification_version: 3
|
101
101
|
summary: A set of thor scripts to manage rails application basic tasks
|
102
102
|
test_files: []
|
103
|
+
has_rdoc:
|