pluginizer 0.1.4 → 0.1.5

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: 3c12cc5abb1a107f7a886a639493d0d8215224e9
4
- data.tar.gz: a9bb964223412cc2d25f8b60040710d9f8355da0
3
+ metadata.gz: 2c8ac5a7ef242a81bfdd5710a9e705bad18422d8
4
+ data.tar.gz: 141a030ca08cd0b0b34044db28062f1a8d3e0b45
5
5
  SHA512:
6
- metadata.gz: a62059e3cdf13b84daacb04c57869d1da1169d32a333021255f3648b9556362cd27a44c7d795d27e772a9326ed1f5191a70e5c57797f9856cd7208ceb43f5a0c
7
- data.tar.gz: 8944d9b7bf193140b884bfd73b06298c7548a75312fe9759c6eaef95bfc2988b520b5edd76ff9cb743b47a57e3daf4e59d69c4afb37a17736c0f70d638f620dd
6
+ metadata.gz: 2e3bfb98217fe6d3b493e902bbb89be194fdbc072e7a9b36bccfe6e027405ed56219f42d510acd6528523a0f7b6fca1a44ecdd7d04297c9370e83b52de0933af
7
+ data.tar.gz: b2535306f622f9ecb55c2ec2c3fafa871e7fb2fb5dc6b6a468974531f7aae002f814ab0f52e5b6d936acdf28e2e68d0c7c98e4bf060928c1f66b9424d1ce4cd7
@@ -1,13 +1,5 @@
1
1
  module Pluginizer
2
2
  class PluginBuilder < Rails::PluginBuilder
3
- def readme
4
- template 'README.md'
5
- end
6
-
7
- def gemspec
8
- template "%name%.gemspec"
9
- end
10
-
11
3
  def gitignore
12
4
  template '.gitignore'
13
5
  end
@@ -54,6 +46,14 @@ module Pluginizer
54
46
  insert_into_file rails_helper,
55
47
  "\n config.render_views\n",
56
48
  before: /^end/
49
+ cache = <<-CACHE.strip_heredoc.indent(2)
50
+
51
+ config.before(:each) do
52
+ Rails.cache.clear
53
+ end
54
+ CACHE
55
+ insert_into_file rails_helper, cache,
56
+ before: /^end/
57
57
  shoulda = <<-SHOULDA.strip_heredoc.indent(2)
58
58
 
59
59
  Shoulda::Matchers.configure do |config|
@@ -63,7 +63,8 @@ module Pluginizer
63
63
  end
64
64
  end
65
65
  SHOULDA
66
- insert_into_file rails_helper, shoulda, before: /^end/
66
+ insert_into_file rails_helper, shoulda,
67
+ before: /^end/
67
68
  insert_into_file rails_helper,
68
69
  "\n config.include(Shoulda::Callback::Matchers::ActiveModel)\n",
69
70
  before: /^end/
@@ -1,3 +1,3 @@
1
1
  module Pluginizer
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -26,4 +26,5 @@ Gem::Specification.new do |s|
26
26
  s.add_development_dependency 'fantaskspec', '~> 1.0'
27
27
  s.add_development_dependency 'shoulda-matchers', '~> 3.1'
28
28
  s.add_development_dependency 'shoulda-callback-matchers', '~> 1.1'
29
+ s.add_development_dependency 'rails-controller-testing'
29
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pluginizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-07 00:00:00.000000000 Z
11
+ date: 2016-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails