stitches 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +3 -0
  6. data/Gemfile.lock +126 -0
  7. data/README.md +220 -0
  8. data/Rakefile +13 -0
  9. data/lib/stitches.rb +3 -0
  10. data/lib/stitches/api_generator.rb +97 -0
  11. data/lib/stitches/api_key.rb +59 -0
  12. data/lib/stitches/api_version_constraint.rb +32 -0
  13. data/lib/stitches/configuration.rb +77 -0
  14. data/lib/stitches/error.rb +9 -0
  15. data/lib/stitches/errors.rb +101 -0
  16. data/lib/stitches/generator_files/app/controllers/api.rb +2 -0
  17. data/lib/stitches/generator_files/app/controllers/api/api_controller.rb +19 -0
  18. data/lib/stitches/generator_files/app/controllers/api/v1.rb +2 -0
  19. data/lib/stitches/generator_files/app/controllers/api/v1/pings_controller.rb +20 -0
  20. data/lib/stitches/generator_files/app/controllers/api/v2.rb +2 -0
  21. data/lib/stitches/generator_files/app/controllers/api/v2/pings_controller.rb +20 -0
  22. data/lib/stitches/generator_files/app/models/api_client.rb +2 -0
  23. data/lib/stitches/generator_files/config/initializers/stitches.rb +14 -0
  24. data/lib/stitches/generator_files/db/migrate/create_api_clients.rb +11 -0
  25. data/lib/stitches/generator_files/db/migrate/enable_uuid_ossp_extension.rb +5 -0
  26. data/lib/stitches/generator_files/lib/tasks/generate_api_key.rake +10 -0
  27. data/lib/stitches/generator_files/spec/acceptance/ping_v1_spec.rb +46 -0
  28. data/lib/stitches/generator_files/spec/features/api_spec.rb +96 -0
  29. data/lib/stitches/railtie.rb +9 -0
  30. data/lib/stitches/render_timestamps_in_iso8601_in_json.rb +9 -0
  31. data/lib/stitches/spec.rb +4 -0
  32. data/lib/stitches/spec/api_clients.rb +5 -0
  33. data/lib/stitches/spec/be_iso_8601_utc_encoded.rb +10 -0
  34. data/lib/stitches/spec/have_api_error.rb +50 -0
  35. data/lib/stitches/spec/test_headers.rb +51 -0
  36. data/lib/stitches/valid_mime_type.rb +32 -0
  37. data/lib/stitches/version.rb +3 -0
  38. data/lib/stitches/whitelisting_middleware.rb +29 -0
  39. data/lib/stitches_norailtie.rb +17 -0
  40. data/spec/api_key_spec.rb +200 -0
  41. data/spec/api_version_constraint_spec.rb +33 -0
  42. data/spec/configuration_spec.rb +105 -0
  43. data/spec/errors_spec.rb +99 -0
  44. data/spec/spec/have_api_error_spec.rb +78 -0
  45. data/spec/spec_helper.rb +10 -0
  46. data/spec/valid_mime_type_spec.rb +166 -0
  47. data/stitches.gemspec +24 -0
  48. metadata +168 -0
data/stitches.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require 'stitches/version'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "stitches"
7
+ s.version = Stitches::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ['Dave Copeland']
10
+ s.email = ['dave@stitchfix.com', 'opensource@stitchfix.com']
11
+ s.homepage = "https://github.com/stitchfix/stitches"
12
+ s.summary = "You'll be in stitches at how easy it is to create a service at Stitch Fix"
13
+ s.description = "You'll be in stitches at how easy it is to create a service at Stitch Fix"
14
+
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.require_paths = ["lib"]
19
+ s.add_dependency("rails")
20
+ s.add_dependency("pg")
21
+ s.add_development_dependency("rake")
22
+ s.add_dependency("rspec-rails", "~> 3")
23
+ s.add_dependency("apitome")
24
+ end
metadata ADDED
@@ -0,0 +1,168 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: stitches
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Dave Copeland
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-06-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pg
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
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'
69
+ - !ruby/object:Gem::Dependency
70
+ name: apitome
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: You'll be in stitches at how easy it is to create a service at Stitch
84
+ Fix
85
+ email:
86
+ - dave@stitchfix.com
87
+ - opensource@stitchfix.com
88
+ executables: []
89
+ extensions: []
90
+ extra_rdoc_files: []
91
+ files:
92
+ - ".gitignore"
93
+ - ".ruby-gemset"
94
+ - ".ruby-version"
95
+ - Gemfile
96
+ - Gemfile.lock
97
+ - README.md
98
+ - Rakefile
99
+ - lib/stitches.rb
100
+ - lib/stitches/api_generator.rb
101
+ - lib/stitches/api_key.rb
102
+ - lib/stitches/api_version_constraint.rb
103
+ - lib/stitches/configuration.rb
104
+ - lib/stitches/error.rb
105
+ - lib/stitches/errors.rb
106
+ - lib/stitches/generator_files/app/controllers/api.rb
107
+ - lib/stitches/generator_files/app/controllers/api/api_controller.rb
108
+ - lib/stitches/generator_files/app/controllers/api/v1.rb
109
+ - lib/stitches/generator_files/app/controllers/api/v1/pings_controller.rb
110
+ - lib/stitches/generator_files/app/controllers/api/v2.rb
111
+ - lib/stitches/generator_files/app/controllers/api/v2/pings_controller.rb
112
+ - lib/stitches/generator_files/app/models/api_client.rb
113
+ - lib/stitches/generator_files/config/initializers/stitches.rb
114
+ - lib/stitches/generator_files/db/migrate/create_api_clients.rb
115
+ - lib/stitches/generator_files/db/migrate/enable_uuid_ossp_extension.rb
116
+ - lib/stitches/generator_files/lib/tasks/generate_api_key.rake
117
+ - lib/stitches/generator_files/spec/acceptance/ping_v1_spec.rb
118
+ - lib/stitches/generator_files/spec/features/api_spec.rb
119
+ - lib/stitches/railtie.rb
120
+ - lib/stitches/render_timestamps_in_iso8601_in_json.rb
121
+ - lib/stitches/spec.rb
122
+ - lib/stitches/spec/api_clients.rb
123
+ - lib/stitches/spec/be_iso_8601_utc_encoded.rb
124
+ - lib/stitches/spec/have_api_error.rb
125
+ - lib/stitches/spec/test_headers.rb
126
+ - lib/stitches/valid_mime_type.rb
127
+ - lib/stitches/version.rb
128
+ - lib/stitches/whitelisting_middleware.rb
129
+ - lib/stitches_norailtie.rb
130
+ - spec/api_key_spec.rb
131
+ - spec/api_version_constraint_spec.rb
132
+ - spec/configuration_spec.rb
133
+ - spec/errors_spec.rb
134
+ - spec/spec/have_api_error_spec.rb
135
+ - spec/spec_helper.rb
136
+ - spec/valid_mime_type_spec.rb
137
+ - stitches.gemspec
138
+ homepage: https://github.com/stitchfix/stitches
139
+ licenses: []
140
+ metadata: {}
141
+ post_install_message:
142
+ rdoc_options: []
143
+ require_paths:
144
+ - lib
145
+ required_ruby_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ requirements: []
156
+ rubyforge_project:
157
+ rubygems_version: 2.4.5
158
+ signing_key:
159
+ specification_version: 4
160
+ summary: You'll be in stitches at how easy it is to create a service at Stitch Fix
161
+ test_files:
162
+ - spec/api_key_spec.rb
163
+ - spec/api_version_constraint_spec.rb
164
+ - spec/configuration_spec.rb
165
+ - spec/errors_spec.rb
166
+ - spec/spec/have_api_error_spec.rb
167
+ - spec/spec_helper.rb
168
+ - spec/valid_mime_type_spec.rb