rateaux 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 831bdcfa82f2706d981274d18485c3c4dc6a8bf0
4
- data.tar.gz: 0a542daacec901fd95f16f85142ce551a05cffeb
3
+ metadata.gz: cfe619540ea60d926aef18f1b864e0945d41b9df
4
+ data.tar.gz: 9aa1a70a20b97169f931a5d4413dd34046efbe6a
5
5
  SHA512:
6
- metadata.gz: d4c9f33a270cbea0b406462e9a843ec87a47135df087d82eecb64e495889dd66b3cb9f17b1287575e5e3a4aeb8b9f0c1128a961d274f3ecdb3aa3be18d5719db
7
- data.tar.gz: a43eb8728446d115c6dbab96d8034223e3c978e7e82c0c5508b2135af0d1eb39edea00e6c45ee5a80674b79111694b5062876d1fd328d4e017e8be9ca9626298
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
- Truncate all data from the current SQL database. This removes all the data but keeps the tables.
19
+ Delete all data from the current database.
20
20
 
21
21
  ```sh
22
22
  $ rake db:truncate
23
23
  ```
24
24
 
25
- ### Delete
25
+ ### Drop tables
26
26
 
27
- Delete all data from the current SQL database. This removes all the data and the tables.
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:delete
30
+ $ rake db:drop_tables
31
31
  ```
32
32
 
33
33
  ### Encoding headers
@@ -1,3 +1,3 @@
1
1
  module Rateaux
2
- VERSION = "1.4.0"
2
+ VERSION = "1.5.0"
3
3
  end
@@ -13,12 +13,16 @@ namespace :db do
13
13
  DatabaseCleaner.clean
14
14
  end
15
15
 
16
- desc "Delete all tables"
17
- task :delete => :establish_connection do
18
- DatabaseCleaner.strategy = :deletion
19
- DatabaseCleaner.clean
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]
@@ -0,0 +1,2 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
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.0
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-06 00:00:00.000000000 Z
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
- - MIT-LICENSE
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.1.11
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