pluginizer 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pluginizer.rb +1 -0
- data/lib/pluginizer/plugin_builder.rb +12 -7
- 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: fea62e1c1c0b028eaa053a312f3d157b1c1c7d5a
|
4
|
+
data.tar.gz: 6cee422852fd54f13dbd024126fffe71a2792d06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fde19453c8e67e1c9829c3b88a2caf9d7548d1b8ca08a2f3c8e877d9e8d973f1de7cc51e705388dbe9ccc6f0323ffa72391e492846874c498f6302d0ae679300
|
7
|
+
data.tar.gz: 02b45f61cd766fc8332f3c1b511fbb8e57568069e49364f6c17c37595bd5aa001bb01a99ea7d62009105b8f7cda670475b8b6568bbd59e2f16d8c1baf396d8bc
|
data/lib/pluginizer.rb
CHANGED
@@ -41,13 +41,18 @@ module Pluginizer
|
|
41
41
|
|
42
42
|
run "bundle binstubs rspec-core"
|
43
43
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
44
|
+
insert_into_file 'spec/rails_helper.rb', "\nrequire 'fantaskspec'\n", after: "# Add additional requires below this line. Rails is not loaded until this point!"
|
45
|
+
insert_into_file 'spec/rails_helper.rb', "\n config.infer_rake_task_specs_from_file_location!\n", before: /^end/
|
46
|
+
shoulda = <<-SHOULDA.strip_heredoc.indent(2)
|
47
|
+
|
48
|
+
Shoulda::Matchers.configure do |config|
|
49
|
+
config.integrate do |with|
|
50
|
+
with.test_framework :rspec
|
51
|
+
with.library :rails
|
52
|
+
end
|
53
|
+
end
|
54
|
+
SHOULDA
|
55
|
+
insert_into_file 'spec/rails_helper.rb', shoulda, before: /^end/
|
51
56
|
end
|
52
57
|
end
|
53
58
|
end
|
data/lib/pluginizer/version.rb
CHANGED
data/templates/%name%.gemspec.tt
CHANGED
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.3
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|