blue_print 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbd7694883cacae9801cfc6fa826746829542562
4
- data.tar.gz: 51575e4325de406fbf93d4b089c043e18b0ce74b
3
+ metadata.gz: 8a7f194ff2e87b8e84e1ed5a6a1fc3b86bff3434
4
+ data.tar.gz: 1e31d00cbf855ac7c6c832abd293aa66c34d5557
5
5
  SHA512:
6
- metadata.gz: 93b04df1d153d2af18d1853a2b3e0d7e21676caa36df2492647a0cfb44cbc9990da410645d42452e0bf949b6234ba169e8e4ae3b45ae747b08a9e08b2bd5f809
7
- data.tar.gz: 83c97daa1ed5eff9dc535255f347a8c3f5bf8f517b945e85f53e4a9dbced1f2e87a049bd80bc9e3c819316a5d42b07d4796bbd419a69caad1d38ca7ec5d08ee7
6
+ metadata.gz: f9f47f5385d399d04612aa2038aaa52c26208cc6265170287c87c34fc172756d5d1c0ebc9f44144536cb7e03ba96295ddcc381e55166b53227a1d583df3d85fd
7
+ data.tar.gz: 237b435551d1335b13fe9df194957ae5c4c0440b195f227a40f4d3ef96884229f493d647fd5b2013dd5aa4e3feea84d523418a1f0834b13194edc355545e24fe
data/.travis.yml CHANGED
@@ -1,19 +1,21 @@
1
1
  language: ruby
2
-
3
2
  rvm:
4
- - 2.0.0
5
- - 2.1.0
6
- - 2.1.1
7
- - ruby-head
8
-
3
+ - 2.0.0
4
+ - 2.1.0
5
+ - 2.1.1
6
+ - ruby-head
9
7
  gemfile:
10
- - gemfiles/rails-3.x.gemfile
11
- - gemfiles/rails-4.x.gemfile
12
- - gemfiles/rails-head.gemfile
13
-
8
+ - gemfiles/rails-3.x.gemfile
9
+ - gemfiles/rails-4.x.gemfile
10
+ - gemfiles/rails-head.gemfile
14
11
  matrix:
12
+ exclude:
13
+ - rvm: ruby-head
14
+ gemfile: gemfiles/rails-3.x.gemfile
15
15
  allow_failures:
16
- - rvm: ruby-head
17
- - gemfile: gemfiles/rails-head.gemfile
18
-
19
- script: 'bundle exec rspec'
16
+ - rvm: ruby-head
17
+ - gemfile: gemfiles/rails-head.gemfile
18
+ script: bundle exec rspec
19
+ notifications:
20
+ slack:
21
+ secure: SFTem6vmK6EHR3mH1RS8VwTcCh45Q9uLNbekMIQAEAdbha3ni5YEsv5RnOJrwlFe6B5y0ryLnf4ocmI2yRNZSF+MbMlyGs5ANqxdAZsk56domNmxeS1I7ezSLlM+a5kjD3RBUIOXY2+RZxjUTBQMXVJ4vJrz76IzWhR2U5Lkp/I=
data/lib/blue_print.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'thread_parent'
2
- require 'blue_print/behavior'
3
2
  require 'blue_print/version'
3
+ require 'blue_print/behavior'
4
4
  require 'blue_print/environment'
5
5
  require 'blue_print/context'
6
6
  require 'blue_print/helper'
@@ -14,3 +14,9 @@ begin
14
14
  require 'blue_print/integration/grape'
15
15
  rescue LoadError
16
16
  end
17
+
18
+ begin
19
+ require 'rspec'
20
+ require 'blue_print/integration/rspec'
21
+ rescue LoadError
22
+ end
@@ -0,0 +1,16 @@
1
+ require 'active_support/concern'
2
+ require 'blue_print/integration'
3
+
4
+ module BluePrint::Integration::RSpec
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ after(:each) do
9
+ BluePrint.clear!
10
+ end
11
+ end
12
+ end
13
+
14
+ RSpec.configure do |config|
15
+ config.include BluePrint::Integration::RSpec
16
+ end
@@ -1,3 +1,3 @@
1
1
  module BluePrint
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blue_print
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Kusano
@@ -265,6 +265,7 @@ files:
265
265
  - lib/blue_print/integration/grape/api.rb
266
266
  - lib/blue_print/integration/grape/helper.rb
267
267
  - lib/blue_print/integration/grape/middleware.rb
268
+ - lib/blue_print/integration/rspec.rb
268
269
  - lib/blue_print/railtie.rb
269
270
  - lib/blue_print/railtie/action_controller.rb
270
271
  - lib/blue_print/railtie/action_view.rb