ridgepole 0.6.4.beta8 → 0.6.4.beta9

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: c1ae2391d3c7bf2181214d399041cc5c0f60bbd2
4
- data.tar.gz: 7ad90f10b0ad7048c4d239851e6817ab816a31b5
3
+ metadata.gz: 5c075fe76dfd02963371bcdcd0c26a839ad55284
4
+ data.tar.gz: 0ecd43850c8dd50cb969f2b2a63f899a67cb5ca8
5
5
  SHA512:
6
- metadata.gz: 17133898702087b8e861f19733ccb2635681ffe7947c2f6ad85182fd807df326642ee3d8eeb2bd2cb3520c0175d748230133088dd3ddeeff3a58b1f229ffa14f
7
- data.tar.gz: ff545ea16b28593d1336cda7724cffc8df406b6cc2d86ed691cabf46cbeb10f97e712fa71b6f4975ba9240517746ff5b19eb6c279d607fca41e9f68db90cc0af
6
+ metadata.gz: a8c637b6120d3568e7b4310c45c9e390b96e9552f43ca8314db5580bafcc02d826a06b7fa7f276cfcc19843436653e26555d11b6daeed873f377ea11b9b90688
7
+ data.tar.gz: 7feae1b43d584b6b5116a0692b0979c7e576c8a46588bdd05607c223b7f9daf6a046a2eb0dddfb700ba0101b6add793885b535899ef0ccaf89aae663d69132d9
@@ -6,6 +6,20 @@ module Ridgepole
6
6
  klass.class_eval do
7
7
  cattr_accessor :time_recorder
8
8
  cattr_accessor :disable_logging
9
+
10
+ def self.record_time
11
+ result = nil
12
+
13
+ begin
14
+ self.time_recorder = TimeRecorder.new
15
+ yield
16
+ result = self.time_recorder.result
17
+ ensure
18
+ self.time_recorder = nil
19
+ end
20
+
21
+ result
22
+ end
9
23
  end
10
24
  end
11
25
 
@@ -26,20 +40,6 @@ module Ridgepole
26
40
  end
27
41
  end
28
42
 
29
- def self.record_time
30
- result = nil
31
-
32
- begin
33
- self.time_recorder = TimeRecorder.new
34
- yield
35
- result = self.time_recorder.result
36
- ensure
37
- self.time_recorder = nil
38
- end
39
-
40
- result
41
- end
42
-
43
43
  class TimeRecorder
44
44
  attr_reader :result
45
45
 
@@ -1,3 +1,3 @@
1
1
  module Ridgepole
2
- VERSION = '0.6.4.beta8'
2
+ VERSION = '0.6.4.beta9'
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -195,7 +195,7 @@ def run_cli(options = {})
195
195
  end
196
196
  end
197
197
 
198
- def tempfile(basename, content)
198
+ def tempfile(basename, content = '')
199
199
  begin
200
200
  path = `mktemp /tmp/#{basename}.XXXXXX`
201
201
  open(path, 'wb') {|f| f << content }
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridgepole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4.beta8
4
+ version: 0.6.4.beta9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-06 00:00:00.000000000 Z
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 3.0.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 3.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mysql2
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.3.20
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.3.20
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pg
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: coveralls
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: activerecord-mysql-awesome
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.0.7
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.0.7
125
125
  description: Ridgepole is a tool to manage DB schema. It defines DB schema using Rails
@@ -131,9 +131,9 @@ executables:
131
131
  extensions: []
132
132
  extra_rdoc_files: []
133
133
  files:
134
- - .gitignore
135
- - .rspec
136
- - .travis.yml
134
+ - ".gitignore"
135
+ - ".rspec"
136
+ - ".travis.yml"
137
137
  - Gemfile
138
138
  - LICENSE.txt
139
139
  - README.md
@@ -258,17 +258,17 @@ require_paths:
258
258
  - lib
259
259
  required_ruby_version: !ruby/object:Gem::Requirement
260
260
  requirements:
261
- - - '>='
261
+ - - ">="
262
262
  - !ruby/object:Gem::Version
263
263
  version: '0'
264
264
  required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  requirements:
266
- - - '>'
266
+ - - ">"
267
267
  - !ruby/object:Gem::Version
268
268
  version: 1.3.1
269
269
  requirements: []
270
270
  rubyforge_project:
271
- rubygems_version: 2.0.14.1
271
+ rubygems_version: 2.4.5.1
272
272
  signing_key:
273
273
  specification_version: 4
274
274
  summary: Ridgepole is a tool to manage DB schema.