stitches 3.6.0 → 3.6.1

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
  SHA256:
3
- metadata.gz: eb497f2afbed4ae09bdf288d72bd91a99013ead0282ac47731ebaa67de27d640
4
- data.tar.gz: 6aff98e7879d08df133122c192f87c5eb6681b4d29df9c672b9871c2215d04e5
3
+ metadata.gz: 8c3846c9b1a93294cd571810ca83039f181dba5ddd3d933ff43251da056c8b6c
4
+ data.tar.gz: a42a251585e41138e8f94dce4cd6c1d95c1a9d8809368fcf744d18238c7e3fa4
5
5
  SHA512:
6
- metadata.gz: fa7f3b52d8744023a2a3283a9d5ae377fa5fc8c84266c60ec8086df71770c81238819dadc7fad53064380fd006f90a5612950ec6c98cc19b0f1a26bec50b0365
7
- data.tar.gz: 8f09d862aa70d0a7fbac71d7d22cb8ea6729669e62ec17819f4f5b9dcca7c11a91755fb428f058320b038c5f7bb72acd0ee811fd9a8249bb9f576cafc944cb62
6
+ metadata.gz: a4fee81d1d74bd4244caaa6fc9ef5c4c6f89d9a20f5f6786ec563388309d47b6ff64d7255724412bd672d80269b6123f2cc7a4956057bb692d27b755af2f2dac
7
+ data.tar.gz: a7a41bcd6b7ebae60daa58d414875aafd986910a9e21420afce8133d9ce1e68c22d0242e962cd85ca2244987dfcd094ff36ce34da826ca12bd80fb628f33ea95
@@ -7,6 +7,7 @@ module Stitches
7
7
  desc "Adds deprecation support to an app creates with an older version of stitches"
8
8
  def add_deprecation
9
9
  inject_into_file "app/controllers/api/api_controller.rb", after: /^class.*$/ do<<-CODE
10
+
10
11
  include Stitches::Deprecation
11
12
  CODE
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module Stitches
2
- VERSION = '3.6.0'
2
+ VERSION = '3.6.1'
3
3
  end
@@ -95,9 +95,12 @@ RSpec.describe "Adding Stitches to a New Rails App" do
95
95
 
96
96
  run "bin/rails generate stitches:add_deprecation"
97
97
 
98
- aggregate_failures do
99
- expect(File.read(api_controller)).to include("include Stitches::Deprecation")
100
- end
98
+ lines = File.read(api_controller).split(/\n/)
99
+ include_line = lines.detect { |line|
100
+ line =~ /^\s+include Stitches::Deprecation$/
101
+ }
102
+
103
+ expect(include_line).to_not be_nil,lines.inspect
101
104
  end
102
105
 
103
106
  class RoutesFileAnalysis
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stitches
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stitch Fix Engineering