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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 015c6d87c5ad86eecc8faac6f7b7e99c63851bc7
4
- data.tar.gz: e579c2af9827fde05b95a592d50a36dbfb8ae97c
3
+ metadata.gz: fea62e1c1c0b028eaa053a312f3d157b1c1c7d5a
4
+ data.tar.gz: 6cee422852fd54f13dbd024126fffe71a2792d06
5
5
  SHA512:
6
- metadata.gz: 42fc6607f861036410ae38a03fb965aae94aee20370cd8808f4d21248b1fd0a1e48d5f9d7a0f76ed130fb616650e73eefb404e665242770c786fac575911dc42
7
- data.tar.gz: d067e18995de3de1bd1e89c0af331f459dde0ffbdcea7babb9e61786703f2b9031a48acc7dae2c975371dc64c18766a1c079b410789433ec22d8837147993c80
6
+ metadata.gz: fde19453c8e67e1c9829c3b88a2caf9d7548d1b8ca08a2f3c8e877d9e8d973f1de7cc51e705388dbe9ccc6f0323ffa72391e492846874c498f6302d0ae679300
7
+ data.tar.gz: 02b45f61cd766fc8332f3c1b511fbb8e57568069e49364f6c17c37595bd5aa001bb01a99ea7d62009105b8f7cda670475b8b6568bbd59e2f16d8c1baf396d8bc
@@ -1,6 +1,7 @@
1
1
  require "pluginizer/version"
2
2
  require "pluginizer/generators/plugin_generator"
3
3
  require "pluginizer/plugin_builder"
4
+ require 'active_support/all'
4
5
 
5
6
  module Pluginizer
6
7
  end
@@ -41,13 +41,18 @@ module Pluginizer
41
41
 
42
42
  run "bundle binstubs rspec-core"
43
43
 
44
- { "# Add additional requires below this line. Rails is not loaded until this point!" =>
45
- "\nrequire 'fantaskspec'\n",
46
- %{# config.filter_gems_from_backtrace("gem name")} =>
47
- "\n\n config.infer_rake_task_specs_from_file_location!"
48
- }.each do |after_line, new_line|
49
- insert_into_file 'spec/rails_helper.rb', new_line, after: after_line
50
- end
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
@@ -1,3 +1,3 @@
1
1
  module Pluginizer
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -24,4 +24,5 @@ Gem::Specification.new do |s|
24
24
  <% end -%>
25
25
  s.add_development_dependency 'rspec-rails', '~> 3.5'
26
26
  s.add_development_dependency 'fantaskspec', '~> 1.0'
27
+ s.add_development_dependency 'shoulda-matchers', '~> 3.1'
27
28
  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.2
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-06 00:00:00.000000000 Z
11
+ date: 2016-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails