rateaux 1.4.0 → 1.5.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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/rateaux/version.rb +1 -1
- data/lib/tasks/rateaux_db.rake +8 -4
- data/test/dummy/log/test.log +2 -0
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfe619540ea60d926aef18f1b864e0945d41b9df
|
4
|
+
data.tar.gz: 9aa1a70a20b97169f931a5d4413dd34046efbe6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c7db2c753802c23f285fb04dcfa5dbcee54d4399bf9a47223026b91531725ca082c9fab249cd11ae21745d184b002c21b19ca04ff3da476caaff3583a1c2dcd
|
7
|
+
data.tar.gz: 30b65e7b07f3b1333abd0f5c23d42919ba4ee3f232a9e34c24fbec6a46e4e7230153be490c50f6922ac3a40fc669ca10a8d351df25219a59586fafe1fa72b526
|
data/README.md
CHANGED
@@ -16,18 +16,18 @@ Then type `bundle install` in a terminal.
|
|
16
16
|
|
17
17
|
### Truncate
|
18
18
|
|
19
|
-
|
19
|
+
Delete all data from the current database.
|
20
20
|
|
21
21
|
```sh
|
22
22
|
$ rake db:truncate
|
23
23
|
```
|
24
24
|
|
25
|
-
###
|
25
|
+
### Drop tables
|
26
26
|
|
27
|
-
Delete all data from the current
|
27
|
+
Delete all data and tables from the current database. This is similar to `db:drop` but it does not drop the database itself.
|
28
28
|
|
29
29
|
```sh
|
30
|
-
$ rake db:
|
30
|
+
$ rake db:drop_tables
|
31
31
|
```
|
32
32
|
|
33
33
|
### Encoding headers
|
data/lib/rateaux/version.rb
CHANGED
data/lib/tasks/rateaux_db.rake
CHANGED
@@ -13,12 +13,16 @@ namespace :db do
|
|
13
13
|
DatabaseCleaner.clean
|
14
14
|
end
|
15
15
|
|
16
|
-
desc "
|
17
|
-
task :
|
18
|
-
|
19
|
-
|
16
|
+
desc "Drop all tables"
|
17
|
+
task :drop_tables => :establish_connection do
|
18
|
+
ActiveRecord::Base.connection.tables.each do |table|
|
19
|
+
ActiveRecord::Base.connection.drop_table table
|
20
|
+
end
|
20
21
|
end
|
21
22
|
|
23
|
+
# Alias to keep compatibility between rateaux v1.4.0 and v1.5.0
|
24
|
+
task :delete => :drop_tables
|
25
|
+
|
22
26
|
# Faster than depending on :environment
|
23
27
|
task :establish_connection => "db:load_config" do
|
24
28
|
config = ActiveRecord::Base.configurations[::Rails.env]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rateaux
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sunny Ripert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -87,19 +87,20 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
+
- MIT-LICENSE
|
91
|
+
- README.md
|
92
|
+
- Rakefile
|
93
|
+
- lib/rateaux.rb
|
90
94
|
- lib/rateaux/file_task.rb
|
91
95
|
- lib/rateaux/namespaced.rb
|
92
96
|
- lib/rateaux/version.rb
|
93
|
-
- lib/rateaux.rb
|
94
97
|
- lib/tasks/rateaux_cache_clear.rake
|
95
98
|
- lib/tasks/rateaux_copy_non_digested_assets.rake
|
96
99
|
- lib/tasks/rateaux_db.rake
|
97
100
|
- lib/tasks/rateaux_encoding_headers.rake
|
98
101
|
- lib/tasks/rateaux_git_checkout.rake
|
99
102
|
- lib/tasks/rateaux_notes_mine.rake
|
100
|
-
-
|
101
|
-
- Rakefile
|
102
|
-
- README.md
|
103
|
+
- test/dummy/log/test.log
|
103
104
|
homepage: http://github.com/sunny/rateaux
|
104
105
|
licenses: []
|
105
106
|
metadata: {}
|
@@ -119,8 +120,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
120
|
version: '0'
|
120
121
|
requirements: []
|
121
122
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.2.2
|
123
124
|
signing_key:
|
124
125
|
specification_version: 4
|
125
126
|
summary: A collection of usefull Rake tasks for Rails.
|
126
|
-
test_files:
|
127
|
+
test_files:
|
128
|
+
- test/dummy/log/test.log
|