stitches 3.2.1 → 3.2.2

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: 003a99a5a540913cf843dcc345cc20deb7232b18
4
- data.tar.gz: 72e61198bbaab4965222bb2d4ceffb50d2d19313
3
+ metadata.gz: 88481c42da4d9e07d58401429c123d0042e0f196
4
+ data.tar.gz: d042b0b4103d22217b62123be762dbf1af9dd610
5
5
  SHA512:
6
- metadata.gz: 472fa27a07d0e7d6a672ef0d08319ba6adc87362d72d0f0565a91248c2762602801e3e9d1b8c963be0e20eb38b2d79f0754d7da7099f4aa9f8b1887cb93b556e
7
- data.tar.gz: da541780ea0f52bc024516fa73a37df4bbd8a37e5978f69598cd8d6e5a1c49a4e1f5f4285690ec1e00bec65d484f04d329cf1860934fc8f48e98744a56de8934
6
+ metadata.gz: c91377aef8b39bad255cf2c0bce0d5b36a83baa15f84b475332b9662c5a1c75adf3cee15574145792e3496fcd8a5d289416c074e974d28ccf3b0f9a17088530e
7
+ data.tar.gz: 016a482c093d53c5a46812ed632e5a1b44652ab9df3554e6ea3f9539368a7331a67ffce688c79540006b7f8c623e90b1c745659cbbcc72e663f3180d2853c56a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stitches (3.2.1)
4
+ stitches (3.2.2)
5
5
  apitome
6
6
  pg
7
7
  rails
data/README.md CHANGED
@@ -212,7 +212,7 @@ config.app_middleware.use "Stitches::ValidMimeType", except: %r{/super-secret}
212
212
 
213
213
  Although `Stitches.configuration` is global, do not depend directly on that in your logic. Instead, allow all classes to receive a
214
214
  configuration object in their constructor. This makes the classes easier to deal with and change, without incurring much of a real cost to development.
215
- Glaobl symbols suck, but are convienient. This is how you make the most of it.
215
+ Global symbols suck, but are convienient. This is how you make the most of it.
216
216
 
217
217
 
218
218
  ---
@@ -53,7 +53,8 @@ mount api_docs, at: "docs"
53
53
 
54
54
  inject_into_file "Gemfile", after: /^group :test, :development do.*$/ do<<-GEM
55
55
 
56
- gem "rspec_api_documentation"
56
+ gem "rspec_api_documentation"
57
+ gem "capybara"
57
58
  GEM
58
59
  end
59
60
  run 'bundle install'
@@ -62,16 +63,17 @@ gem "rspec_api_documentation"
62
63
  sleep 1 # allow clock to tick so we get different numbers
63
64
  migration_template "db/migrate/create_api_clients.rb", "db/migrate/create_api_clients.rb"
64
65
 
65
- inject_into_file 'spec/spec_helper.rb', %q{
66
+ inject_into_file 'spec/rails_helper.rb', %q{
66
67
  config.include RSpec::Rails::RequestExampleGroup, type: :feature
67
68
  }, before: /^end/
68
69
 
69
- inject_into_file 'spec/spec_helper.rb', before: /^RSpec.configure/ do<<-REQUIRE
70
+ inject_into_file 'spec/rails_helper.rb', before: /^RSpec.configure/ do<<-REQUIRE
70
71
  require 'stitches/spec'
71
72
  REQUIRE
72
73
  end
73
74
 
74
- append_to_file 'spec/spec_helper.rb' do<<-RSPEC_API
75
+ append_to_file 'spec/rails_helper.rb' do<<-RSPEC_API
76
+ require 'rspec_api_documentation'
75
77
  RspecApiDocumentation.configure do |config|
76
78
  config.format = :json
77
79
  config.request_headers_to_include = %w(
@@ -94,4 +96,4 @@ end
94
96
 
95
97
  end
96
98
  end
97
- end
99
+ end
@@ -75,7 +75,7 @@ module Stitches
75
75
  else
76
76
  object.errors.full_messages_for(field).sort.join(', ')
77
77
  end
78
- Stitches::Error.new(code: "#{field}_invalid".parameterize, message: message)
78
+ Stitches::Error.new(code: code, message: message)
79
79
  }
80
80
  self.new(errors)
81
81
  end
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
  require 'rspec_api_documentation/dsl'
3
3
 
4
4
  resource "Ping (V1)" do
@@ -1,4 +1,4 @@
1
- require 'spec_helper.rb'
1
+ require 'rails_helper.rb'
2
2
 
3
3
  feature "general API stuff" do
4
4
  scenario "good request" do
@@ -1,3 +1,3 @@
1
1
  module Stitches
2
- VERSION = '3.2.1'
2
+ VERSION = '3.2.2'
3
3
  end
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.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stitch Fix Engineering
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-11-14 00:00:00.000000000 Z
14
+ date: 2015-11-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails