stitches 3.0.0 → 3.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 +4 -4
- data/Gemfile.lock +80 -63
- data/LICENSE.txt +22 -0
- data/lib/stitches/generator_files/spec/acceptance/ping_v1_spec.rb +2 -2
- data/lib/stitches/generator_files/spec/features/api_spec.rb +1 -1
- data/lib/stitches/spec/be_iso_8601_utc_encoded.rb +1 -1
- data/lib/stitches/version.rb +1 -1
- data/stitches.gemspec +7 -5
- metadata +20 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e738a0238c3e9c1fa75e0ce2e2a68cebee5da4c
|
|
4
|
+
data.tar.gz: cf38c953435d6038a35be3352921f3d26a52746f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92b1ef8e3e29103b8d064b5b67d298c4caf785778762caa88c4834671c84b01525697a9f34fc0409d682580d5d1b667965141d7e4f7bca6b4e2b76d71a265ee0
|
|
7
|
+
data.tar.gz: ad71cc03cae3b594f8a63a96a21d5162cafa69e787cdce9cabb1013613dda15bab1b65d81c49b8b04d998a4713d067671c7fffceca222f40d2f5986800258f32
|
data/Gemfile.lock
CHANGED
|
@@ -1,120 +1,137 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
stitches (3.
|
|
4
|
+
stitches (3.1.0)
|
|
5
|
+
apitome
|
|
6
|
+
pg
|
|
5
7
|
rails
|
|
6
|
-
rspec (
|
|
8
|
+
rspec (>= 3)
|
|
9
|
+
rspec-rails (~> 3)
|
|
7
10
|
|
|
8
11
|
GEM
|
|
9
12
|
remote: https://www.rubygems.org/
|
|
10
13
|
specs:
|
|
11
|
-
actionmailer (4.2.
|
|
12
|
-
actionpack (= 4.2.
|
|
13
|
-
actionview (= 4.2.
|
|
14
|
-
activejob (= 4.2.
|
|
14
|
+
actionmailer (4.2.3)
|
|
15
|
+
actionpack (= 4.2.3)
|
|
16
|
+
actionview (= 4.2.3)
|
|
17
|
+
activejob (= 4.2.3)
|
|
15
18
|
mail (~> 2.5, >= 2.5.4)
|
|
16
19
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
|
17
|
-
actionpack (4.2.
|
|
18
|
-
actionview (= 4.2.
|
|
19
|
-
activesupport (= 4.2.
|
|
20
|
-
rack (~> 1.6
|
|
20
|
+
actionpack (4.2.3)
|
|
21
|
+
actionview (= 4.2.3)
|
|
22
|
+
activesupport (= 4.2.3)
|
|
23
|
+
rack (~> 1.6)
|
|
21
24
|
rack-test (~> 0.6.2)
|
|
22
25
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
|
23
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
|
24
|
-
actionview (4.2.
|
|
25
|
-
activesupport (= 4.2.
|
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
27
|
+
actionview (4.2.3)
|
|
28
|
+
activesupport (= 4.2.3)
|
|
26
29
|
builder (~> 3.1)
|
|
27
30
|
erubis (~> 2.7.0)
|
|
28
31
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
|
29
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
|
30
|
-
activejob (4.2.
|
|
31
|
-
activesupport (= 4.2.
|
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
33
|
+
activejob (4.2.3)
|
|
34
|
+
activesupport (= 4.2.3)
|
|
32
35
|
globalid (>= 0.3.0)
|
|
33
|
-
activemodel (4.2.
|
|
34
|
-
activesupport (= 4.2.
|
|
36
|
+
activemodel (4.2.3)
|
|
37
|
+
activesupport (= 4.2.3)
|
|
35
38
|
builder (~> 3.1)
|
|
36
|
-
activerecord (4.2.
|
|
37
|
-
activemodel (= 4.2.
|
|
38
|
-
activesupport (= 4.2.
|
|
39
|
+
activerecord (4.2.3)
|
|
40
|
+
activemodel (= 4.2.3)
|
|
41
|
+
activesupport (= 4.2.3)
|
|
39
42
|
arel (~> 6.0)
|
|
40
|
-
activesupport (4.2.
|
|
43
|
+
activesupport (4.2.3)
|
|
41
44
|
i18n (~> 0.7)
|
|
42
45
|
json (~> 1.7, >= 1.7.7)
|
|
43
46
|
minitest (~> 5.1)
|
|
44
47
|
thread_safe (~> 0.3, >= 0.3.4)
|
|
45
48
|
tzinfo (~> 1.1)
|
|
49
|
+
apitome (0.1.0)
|
|
50
|
+
kramdown
|
|
51
|
+
railties
|
|
52
|
+
rspec_api_documentation
|
|
46
53
|
arel (6.0.0)
|
|
47
54
|
builder (3.2.2)
|
|
48
55
|
diff-lcs (1.2.5)
|
|
49
56
|
erubis (2.7.0)
|
|
50
|
-
globalid (0.3.
|
|
57
|
+
globalid (0.3.5)
|
|
51
58
|
activesupport (>= 4.1.0)
|
|
52
|
-
hike (1.2.3)
|
|
53
59
|
i18n (0.7.0)
|
|
54
|
-
json (1.8.
|
|
55
|
-
|
|
60
|
+
json (1.8.3)
|
|
61
|
+
kramdown (1.8.0)
|
|
62
|
+
loofah (2.0.2)
|
|
56
63
|
nokogiri (>= 1.5.9)
|
|
57
64
|
mail (2.6.3)
|
|
58
65
|
mime-types (>= 1.16, < 3)
|
|
59
|
-
mime-types (2.
|
|
66
|
+
mime-types (2.6.1)
|
|
60
67
|
mini_portile (0.6.2)
|
|
61
|
-
minitest (5.
|
|
62
|
-
|
|
68
|
+
minitest (5.7.0)
|
|
69
|
+
mustache (0.99.8)
|
|
63
70
|
nokogiri (1.6.6.2)
|
|
64
71
|
mini_portile (~> 0.6.0)
|
|
65
|
-
|
|
72
|
+
pg (0.18.2)
|
|
73
|
+
rack (1.6.4)
|
|
66
74
|
rack-test (0.6.3)
|
|
67
75
|
rack (>= 1.0)
|
|
68
|
-
rails (4.2.
|
|
69
|
-
actionmailer (= 4.2.
|
|
70
|
-
actionpack (= 4.2.
|
|
71
|
-
actionview (= 4.2.
|
|
72
|
-
activejob (= 4.2.
|
|
73
|
-
activemodel (= 4.2.
|
|
74
|
-
activerecord (= 4.2.
|
|
75
|
-
activesupport (= 4.2.
|
|
76
|
+
rails (4.2.3)
|
|
77
|
+
actionmailer (= 4.2.3)
|
|
78
|
+
actionpack (= 4.2.3)
|
|
79
|
+
actionview (= 4.2.3)
|
|
80
|
+
activejob (= 4.2.3)
|
|
81
|
+
activemodel (= 4.2.3)
|
|
82
|
+
activerecord (= 4.2.3)
|
|
83
|
+
activesupport (= 4.2.3)
|
|
76
84
|
bundler (>= 1.3.0, < 2.0)
|
|
77
|
-
railties (= 4.2.
|
|
85
|
+
railties (= 4.2.3)
|
|
78
86
|
sprockets-rails
|
|
79
87
|
rails-deprecated_sanitizer (1.0.3)
|
|
80
88
|
activesupport (>= 4.2.0.alpha)
|
|
81
|
-
rails-dom-testing (1.0.
|
|
89
|
+
rails-dom-testing (1.0.6)
|
|
82
90
|
activesupport (>= 4.2.0.beta, < 5.0)
|
|
83
91
|
nokogiri (~> 1.6.0)
|
|
84
92
|
rails-deprecated_sanitizer (>= 1.0.1)
|
|
85
|
-
rails-html-sanitizer (1.0.
|
|
93
|
+
rails-html-sanitizer (1.0.2)
|
|
86
94
|
loofah (~> 2.0)
|
|
87
|
-
railties (4.2.
|
|
88
|
-
actionpack (= 4.2.
|
|
89
|
-
activesupport (= 4.2.
|
|
95
|
+
railties (4.2.3)
|
|
96
|
+
actionpack (= 4.2.3)
|
|
97
|
+
activesupport (= 4.2.3)
|
|
90
98
|
rake (>= 0.8.7)
|
|
91
99
|
thor (>= 0.18.1, < 2.0)
|
|
92
|
-
rake (10.
|
|
93
|
-
rspec (3.
|
|
94
|
-
rspec-core (~> 3.
|
|
95
|
-
rspec-expectations (~> 3.
|
|
96
|
-
rspec-mocks (~> 3.
|
|
97
|
-
rspec-core (3.
|
|
98
|
-
rspec-support (~> 3.
|
|
99
|
-
rspec-expectations (3.
|
|
100
|
+
rake (10.4.2)
|
|
101
|
+
rspec (3.3.0)
|
|
102
|
+
rspec-core (~> 3.3.0)
|
|
103
|
+
rspec-expectations (~> 3.3.0)
|
|
104
|
+
rspec-mocks (~> 3.3.0)
|
|
105
|
+
rspec-core (3.3.1)
|
|
106
|
+
rspec-support (~> 3.3.0)
|
|
107
|
+
rspec-expectations (3.3.0)
|
|
100
108
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
101
|
-
rspec-support (~> 3.
|
|
102
|
-
rspec-mocks (3.
|
|
109
|
+
rspec-support (~> 3.3.0)
|
|
110
|
+
rspec-mocks (3.3.1)
|
|
103
111
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
104
|
-
rspec-support (~> 3.
|
|
105
|
-
rspec-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
112
|
+
rspec-support (~> 3.3.0)
|
|
113
|
+
rspec-rails (3.3.2)
|
|
114
|
+
actionpack (>= 3.0, < 4.3)
|
|
115
|
+
activesupport (>= 3.0, < 4.3)
|
|
116
|
+
railties (>= 3.0, < 4.3)
|
|
117
|
+
rspec-core (~> 3.3.0)
|
|
118
|
+
rspec-expectations (~> 3.3.0)
|
|
119
|
+
rspec-mocks (~> 3.3.0)
|
|
120
|
+
rspec-support (~> 3.3.0)
|
|
121
|
+
rspec-support (3.3.0)
|
|
122
|
+
rspec_api_documentation (4.4.0)
|
|
123
|
+
activesupport (>= 3.0.0)
|
|
124
|
+
json (~> 1.4, >= 1.4.6)
|
|
125
|
+
mustache (~> 0.99, >= 0.99.4)
|
|
126
|
+
rspec (>= 3.0.0)
|
|
127
|
+
sprockets (3.2.0)
|
|
109
128
|
rack (~> 1.0)
|
|
110
|
-
|
|
111
|
-
sprockets-rails (2.2.4)
|
|
129
|
+
sprockets-rails (2.3.2)
|
|
112
130
|
actionpack (>= 3.0)
|
|
113
131
|
activesupport (>= 3.0)
|
|
114
132
|
sprockets (>= 2.8, < 4.0)
|
|
115
133
|
thor (0.19.1)
|
|
116
|
-
thread_safe (0.3.
|
|
117
|
-
tilt (1.4.1)
|
|
134
|
+
thread_safe (0.3.5)
|
|
118
135
|
tzinfo (1.2.2)
|
|
119
136
|
thread_safe (~> 0.1)
|
|
120
137
|
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2014 Dave Copeland
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -17,7 +17,7 @@ resource "Ping (V1)" do
|
|
|
17
17
|
result = JSON.parse(response_body)
|
|
18
18
|
expect(result).to eq({ "ping" => { "status" => "ok" }})
|
|
19
19
|
|
|
20
|
-
status.
|
|
20
|
+
expect(status).to eql 201
|
|
21
21
|
|
|
22
22
|
end
|
|
23
23
|
end
|
|
@@ -39,7 +39,7 @@ resource "Ping (V1)" do
|
|
|
39
39
|
result = JSON.parse(response_body)
|
|
40
40
|
expect(result).to eq({ "errors" => [ { "code" => "test", "message" => "OH NOES!" }]})
|
|
41
41
|
|
|
42
|
-
status.
|
|
42
|
+
expect(status).to eql 422
|
|
43
43
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
@@ -80,7 +80,7 @@ feature "general API stuff" do
|
|
|
80
80
|
correct_code && correct_header
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
failure_message do
|
|
84
84
|
correct_code,_ = evaluate_response(response)
|
|
85
85
|
if correct_code
|
|
86
86
|
"Expected WWW-Authenticate header to be 'CustomKeyAuth realm=#{Rails.application.class.parent.to_s}', but was #{response['WWW-Authenticate']}"
|
data/lib/stitches/version.rb
CHANGED
data/stitches.gemspec
CHANGED
|
@@ -11,14 +11,16 @@ Gem::Specification.new do |s|
|
|
|
11
11
|
s.homepage = "https://github.com/stitchfix/stitches"
|
|
12
12
|
s.summary = "You'll be in stitches at how easy it is to create a service at Stitch Fix"
|
|
13
13
|
s.description = "You'll be in stitches at how easy it is to create a service at Stitch Fix"
|
|
14
|
+
s.license = "MIT"
|
|
14
15
|
|
|
15
16
|
s.files = `git ls-files`.split("\n")
|
|
16
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
17
|
-
s.executables = `git ls-files --
|
|
18
|
+
s.executables = `git ls-files -- exe/*`.split("\n").map{ |f| File.basename(f) }
|
|
18
19
|
s.require_paths = ["lib"]
|
|
19
|
-
s.
|
|
20
|
-
s.
|
|
20
|
+
s.add_runtime_dependency("rails")
|
|
21
|
+
s.add_runtime_dependency("pg")
|
|
21
22
|
s.add_development_dependency("rake")
|
|
22
|
-
s.
|
|
23
|
-
s.
|
|
23
|
+
s.add_runtime_dependency("rspec", ">= 3")
|
|
24
|
+
s.add_runtime_dependency("rspec-rails", "~> 3")
|
|
25
|
+
s.add_runtime_dependency("apitome")
|
|
24
26
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stitches
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dave Copeland
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -52,6 +52,20 @@ dependencies:
|
|
|
52
52
|
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: rspec
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '3'
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '3'
|
|
55
69
|
- !ruby/object:Gem::Dependency
|
|
56
70
|
name: rspec-rails
|
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -94,6 +108,7 @@ files:
|
|
|
94
108
|
- ".ruby-version"
|
|
95
109
|
- Gemfile
|
|
96
110
|
- Gemfile.lock
|
|
111
|
+
- LICENSE.txt
|
|
97
112
|
- README.md
|
|
98
113
|
- Rakefile
|
|
99
114
|
- lib/stitches.rb
|
|
@@ -136,7 +151,8 @@ files:
|
|
|
136
151
|
- spec/valid_mime_type_spec.rb
|
|
137
152
|
- stitches.gemspec
|
|
138
153
|
homepage: https://github.com/stitchfix/stitches
|
|
139
|
-
licenses:
|
|
154
|
+
licenses:
|
|
155
|
+
- MIT
|
|
140
156
|
metadata: {}
|
|
141
157
|
post_install_message:
|
|
142
158
|
rdoc_options: []
|
|
@@ -154,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
154
170
|
version: '0'
|
|
155
171
|
requirements: []
|
|
156
172
|
rubyforge_project:
|
|
157
|
-
rubygems_version: 2.
|
|
173
|
+
rubygems_version: 2.2.0
|
|
158
174
|
signing_key:
|
|
159
175
|
specification_version: 4
|
|
160
176
|
summary: You'll be in stitches at how easy it is to create a service at Stitch Fix
|