squasher 0.3.0 → 0.3.1

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: cc559f05a448e4588dbc9bad9e58d638ae7b00ce
4
- data.tar.gz: a68a4350108a577fc3e245ce1d6e3b800b4ebef1
3
+ metadata.gz: dbcde2fe7af3cc7854dfa744fc92bbe03ea5657c
4
+ data.tar.gz: 5859b87e2dd11e1edffcb09aa8b070b2bf7fdaf2
5
5
  SHA512:
6
- metadata.gz: 6ac40501ddb62f825bbea4c776218bfacfc50d35dc80bc6181b8ced3324a7b6f1a3952c8dff0a99e165505ab4146e139362f885e48298f935ab334cc50532b64
7
- data.tar.gz: 9d184455efd6c40609c8cd11374f02ed250a616d7f667761c760dfa6e44fb470461abb5448ff37752f1641d5c684616b5077b5cb93597898117b1e892d59faa7
6
+ metadata.gz: 608e982702c3c8de252fbaad554a094fd072a322de12ad957bed80b6928860c1a1d94ca5257ff13f7eee43a6b0b1c458e735a7177baf861f97f1afca2988099f
7
+ data.tar.gz: 809912cb74e444f34b6fe534c961c23f03f9194bd554087172bea39560e2aa7d8e03afdeb32916be0ec4dfef6e5b2a222ce944b3c6b1d5044d6b04f4a5e7d066
data/README.md CHANGED
@@ -8,12 +8,31 @@ Squasher compresses old migrations in a Rails application. If you work on a big
8
8
 
9
9
  ## Installation
10
10
 
11
- You should not add this to your Gemfile. Just standalone installation:
11
+ You don't have to add it into your Gemfile. Just a standalone installation:
12
12
 
13
13
  $ gem install squasher
14
14
 
15
15
  **@note** if you use Rbenv don't forget to run `rbenv rehash`.
16
16
 
17
+ If you want to share it with your rails/sinatra/etc app add the below:
18
+
19
+ ```ruby
20
+ # Yep, the missing group in most Gemfiles where all utilities should be!
21
+ group :tools do
22
+ gem 'squasher', '>= 0.3.0'
23
+ gem 'capistrano'
24
+ gem 'rubocop'
25
+ end
26
+ ```
27
+
28
+ Don't forget to run `bundle`.
29
+
30
+ To integrate `squasher` with your app even more do the below:
31
+
32
+ $ bundle binstub squasher
33
+ $ # and you have a runner inside the `bin` folder
34
+ $ bin/squasher
35
+
17
36
  ## Usage
18
37
 
19
38
  **@note** stop all preloading systems if there are present (spring, zeus, etc)
@@ -24,7 +24,7 @@ module Squasher
24
24
  if inside_schema
25
25
  # reach the end of schema
26
26
  break if line.index("end") == 0
27
- yield line[2...-1].to_s
27
+ yield line.gsub(/\A\s{,2}(.*)\s+\z/, '\1')
28
28
  else
29
29
  inside_schema = true if line.include?("ActiveRecord::Schema")
30
30
  end
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "squasher"
8
- spec.version = "0.3.0"
8
+ spec.version = "0.3.1"
9
9
  spec.authors = ["Sergey Pchelintsev"]
10
10
  spec.email = ["mail@sergeyp.me"]
11
11
  spec.description = %q{Squash your old migrations}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squasher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Pchelintsev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2017-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler