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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/stitches/api_generator.rb +7 -5
- data/lib/stitches/errors.rb +1 -1
- data/lib/stitches/generator_files/spec/acceptance/ping_v1_spec.rb +1 -1
- data/lib/stitches/generator_files/spec/features/api_spec.rb +1 -1
- data/lib/stitches/version.rb +1 -1
- 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: 88481c42da4d9e07d58401429c123d0042e0f196
|
|
4
|
+
data.tar.gz: d042b0b4103d22217b62123be762dbf1af9dd610
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c91377aef8b39bad255cf2c0bce0d5b36a83baa15f84b475332b9662c5a1c75adf3cee15574145792e3496fcd8a5d289416c074e974d28ccf3b0f9a17088530e
|
|
7
|
+
data.tar.gz: 016a482c093d53c5a46812ed632e5a1b44652ab9df3554e6ea3f9539368a7331a67ffce688c79540006b7f8c623e90b1c745659cbbcc72e663f3180d2853c56a
|
data/Gemfile.lock
CHANGED
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
|
-
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
data/lib/stitches/errors.rb
CHANGED
data/lib/stitches/version.rb
CHANGED
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.
|
|
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
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rails
|