mi 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +7 -0
- data/Appraisals +15 -0
- data/README.md +0 -4
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/rails40.gemfile +7 -0
- data/gemfiles/rails41.gemfile +7 -0
- data/gemfiles/rails42.gemfile +7 -0
- data/gemfiles/rails50.gemfile +7 -0
- data/lib/generators/mi.rb +5 -0
- data/lib/generators/mi/templates/create.rb.erb +1 -1
- data/lib/generators/mi/templates/migration.rb.erb +1 -1
- data/lib/mi/version.rb +1 -1
- data/mi.gemspec +1 -0
- metadata +22 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dd79087afa454d1061fa5b33d2efcd796962271
|
4
|
+
data.tar.gz: f8cb5a5dcd2d9675af2714ab81aa7948da3eb8fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ce63c031245201dec52b9ff4787855895e950f351a800df52816947fcd96a0824751351ec5d0b209f7fdf60c0f0043cf4a9e9b4e35d2cb8ca4db0879cdb4689
|
7
|
+
data.tar.gz: 63b9b8301de573e6adf8184636df2460cce95480926e361fbc10ff3176cfd9f06f9f49c682272f308b7cb5b163eeb44fff4680ee28a7d9bbc98ca05aed273914
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -5,6 +5,13 @@ rvm:
|
|
5
5
|
- 2.3.1
|
6
6
|
- ruby-head
|
7
7
|
|
8
|
+
gemfile:
|
9
|
+
# Comment out because travis was slow...
|
10
|
+
# - gemfiles/rails40.gemfile
|
11
|
+
# - gemfiles/rails41.gemfile
|
12
|
+
- gemfiles/rails42.gemfile
|
13
|
+
- gemfiles/rails50.gemfile
|
14
|
+
|
8
15
|
cache: bundler
|
9
16
|
bundler_args: --jobs=4 --retry=3
|
10
17
|
sudo: false
|
data/Appraisals
ADDED
data/README.md
CHANGED
data/lib/generators/mi.rb
CHANGED
@@ -87,6 +87,11 @@ module Mi
|
|
87
87
|
name = name[1..-1]
|
88
88
|
{name: name, type: type, options: options, method: method}
|
89
89
|
end
|
90
|
+
|
91
|
+
def migration_version
|
92
|
+
return "" unless defined? ActiveRecord::Migration.current_version
|
93
|
+
"[#{ActiveRecord::Migration.current_version}]"
|
94
|
+
end
|
90
95
|
end
|
91
96
|
end
|
92
97
|
end
|
data/lib/mi/version.rb
CHANGED
data/mi.gemspec
CHANGED
@@ -36,4 +36,5 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_development_dependency 'rspec-power_assert', '~> 0.3.0'
|
37
37
|
spec.add_development_dependency 'coveralls', '~> 0.8.13'
|
38
38
|
spec.add_development_dependency 'simplecov', '~> 0.11.0'
|
39
|
+
spec.add_development_dependency 'appraisal'
|
39
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masataka Kuwabara
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -192,6 +192,20 @@ dependencies:
|
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 0.11.0
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: appraisal
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
195
209
|
description: Mi is a generator of migration file instead of `rails generate migration`.
|
196
210
|
email:
|
197
211
|
- p.ck.t22@gmail.com
|
@@ -203,6 +217,7 @@ files:
|
|
203
217
|
- ".rspec"
|
204
218
|
- ".rubocop.yml"
|
205
219
|
- ".travis.yml"
|
220
|
+
- Appraisals
|
206
221
|
- Gemfile
|
207
222
|
- Guardfile
|
208
223
|
- LICENSE
|
@@ -210,6 +225,11 @@ files:
|
|
210
225
|
- Rakefile
|
211
226
|
- bin/console
|
212
227
|
- bin/setup
|
228
|
+
- gemfiles/.bundle/config
|
229
|
+
- gemfiles/rails40.gemfile
|
230
|
+
- gemfiles/rails41.gemfile
|
231
|
+
- gemfiles/rails42.gemfile
|
232
|
+
- gemfiles/rails50.gemfile
|
213
233
|
- lib/generators/mi.rb
|
214
234
|
- lib/generators/mi/create_generator.rb
|
215
235
|
- lib/generators/mi/mi_generator.rb
|