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 +4 -4
- data/lib/pluginizer/plugin_builder.rb +10 -9
- data/lib/pluginizer/version.rb +1 -1
- data/templates/%name%.gemspec.tt +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c8ac5a7ef242a81bfdd5710a9e705bad18422d8
|
4
|
+
data.tar.gz: 141a030ca08cd0b0b34044db28062f1a8d3e0b45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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/
|
data/lib/pluginizer/version.rb
CHANGED
data/templates/%name%.gemspec.tt
CHANGED
@@ -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
|
+
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-
|
11
|
+
date: 2016-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|