revelry_generate 0.4.6 → 0.4.7

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: 1ed1c784777168ceef8bb6a550bb6dd0a5d4e1aa
4
- data.tar.gz: dc2cd4f094d63e05fff973fee1567b3608d69e07
3
+ metadata.gz: 65fbc30b9789fba87473536017239ffb6d11994c
4
+ data.tar.gz: 2512dad81fe94db8eaa721903690b4439df24ff3
5
5
  SHA512:
6
- metadata.gz: 6d3ab3575c0459aff1ab5cf272cbd1a98081aaed8544c6a39de8b30d9e3ec7e878f7fc1e3941860923cace71c55661dc535218eacbc9f87468890bbc7e38c955
7
- data.tar.gz: 6b70a550753ed7dfa364773fa7ec3a9ff23b7e045f28275407b04d63c097e3214279456557841811592e5b006ddea4935868218dc6451f703ecb3ca284d9420e
6
+ metadata.gz: 83043a38b8aa3f0987f516324bf5bed5f03d462773e9eb6061565b668d08e121423fa5b03dea41d824e64670b2554aa98186d49ec8e30baa98467b88bde735b5
7
+ data.tar.gz: a1e47654b3d8a211385699f0c1777a09da71691983de55460a8c8e1b4296685458136db6721726e49bfe6d747a6262347e17983ba19b183dc0adea98a2213df8
@@ -48,7 +48,11 @@ module RevelryGenerate
48
48
 
49
49
  return unless File.exist? hook_path
50
50
  puts "rake rails:template LOCATION=#{hook_path}"
51
- rake "rails:template LOCATION=#{hook_path}"
51
+ if Rails::VERSION::MAJOR < 4
52
+ rake("rails:template LOCATION=#{hook_path}")
53
+ else
54
+ rails_command("app:template LOCATION=#{hook_path}")
55
+ end
52
56
  end
53
57
  end
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revelry_generate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Prehn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-31 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ''
14
14
  email: