columns 0.1.0 → 0.1.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: 74908684891067229e04bdab34a621b9d60e803f
4
- data.tar.gz: 18d28d782d48a920625c3fd3cc2de7d5dcd63941
3
+ metadata.gz: f3ff33be328367ac7f16150d7c87cec4891b54ca
4
+ data.tar.gz: 817bf28d02f4c310be9832a7bcbd5e40560a7ffb
5
5
  SHA512:
6
- metadata.gz: 366a8c5b0d4271b0132519dabd8585493cce531bc306348f128f6cf1448024f74a0d6829c485c28a686c8c66729466e801ccf8eaab5525dfe8f1517698c808c9
7
- data.tar.gz: 1cebe951c55d2e4ce23571d14ab986d62ba90481e597d42ecfc11cf0b11359ab90322a5e9a80234d6ca1543cb888e85d1aec1061ebb256098419fbc5094e7d90
6
+ metadata.gz: aef0e376d466374e9878fc72932f286cc8eb4e37c1c464373ab0a42b78ff07e8a96b6e8beff265c535130845e098a36ca2ce2fc52a00c0dfea25b3f4f9ac654a
7
+ data.tar.gz: cd57c85f88899b8a71eb1c0522885a8cbe616f06a06ed2aadfd9f5335a6d481edb97709c98bc20cde82b5a887db1ee5c76e20b5afa27d9b52eda2734560b85cd
data/.coco.yml ADDED
@@ -0,0 +1,4 @@
1
+ :directories:
2
+ - lib
3
+ :excludes:
4
+ - lib/columns/version.rb
@@ -9,7 +9,7 @@ module Columns
9
9
  #
10
10
  # Returns the String extended content.
11
11
  def self.from(content)
12
- "# == Schema Information\n#\n#{content}"
12
+ "\n# == Schema Information\n#\n#{content}"
13
13
  end
14
14
  end
15
15
  end
@@ -12,6 +12,7 @@ module Columns
12
12
  # Returns nothing.
13
13
  def self.clean(file_path)
14
14
  %x( sed -i -e '/# == Schema Info/,$d' #{file_path} > /dev/null 2>&1 )
15
+ %x( sed -i -e '${/^$/d;}' #{file_path} > /dev/null 2>&1 )
15
16
  end
16
17
  end
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module Columns
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -5,7 +5,8 @@ describe ExtendedContent do
5
5
  it 'add meta data to the content' do
6
6
  content = "# foo integer\n"
7
7
  extended_content = ExtendedContent.from(content)
8
- expect(extended_content).to eq %q(# == Schema Information
8
+ expect(extended_content).to eq %q(
9
+ # == Schema Information
9
10
  #
10
11
  # foo integer
11
12
  )
@@ -1,4 +1,3 @@
1
1
  class User
2
2
 
3
3
  end
4
-
@@ -21,7 +21,10 @@ describe Columns do
21
21
  end
22
22
 
23
23
  context 'when there is no schema' do
24
+
24
25
  it 'exits with status code 1', :speed => 'slow' do
26
+ # Silence output.
27
+ allow_any_instance_of(Columns::Application).to receive(:puts)
25
28
  schema_dir = 'spec/'
26
29
  models_dir = 'spec/fixtures'
27
30
 
@@ -31,5 +34,7 @@ describe Columns do
31
34
  expect(ex.status).to eq 1
32
35
  end
33
36
  end
37
+
34
38
  end
39
+
35
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: columns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lkdjiin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-17 00:00:00.000000000 Z
11
+ date: 2014-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,6 +88,7 @@ executables:
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
+ - ".coco.yml"
91
92
  - ".gitignore"
92
93
  - ".rspec"
93
94
  - Gemfile