typekit-client 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -3
  3. data/.travis.yml +4 -0
  4. data/.yardopts +6 -0
  5. data/CHANGELOG.md +12 -0
  6. data/Guardfile +21 -3
  7. data/README.md +253 -248
  8. data/bin/typekit-client +16 -16
  9. data/bin/typekit-publisher +6 -5
  10. data/lib/typekit.rb +6 -2
  11. data/lib/typekit/client.rb +66 -24
  12. data/lib/typekit/collection.rb +6 -11
  13. data/lib/typekit/collection/base.rb +40 -0
  14. data/lib/typekit/collection/serialization.rb +17 -0
  15. data/lib/typekit/converter.rb +26 -0
  16. data/lib/typekit/converter/boolean.rb +12 -0
  17. data/lib/typekit/converter/collection.rb +13 -0
  18. data/lib/typekit/converter/datetime.rb +12 -0
  19. data/lib/typekit/converter/element.rb +13 -0
  20. data/lib/typekit/converter/errors.rb +12 -0
  21. data/lib/typekit/converter/unknown.rb +13 -0
  22. data/lib/typekit/core.rb +8 -10
  23. data/lib/typekit/element.rb +27 -0
  24. data/lib/typekit/element/association.rb +63 -0
  25. data/lib/typekit/element/base.rb +61 -0
  26. data/lib/typekit/element/persistence.rb +61 -0
  27. data/lib/typekit/element/query.rb +25 -0
  28. data/lib/typekit/element/serialization.rb +17 -0
  29. data/lib/typekit/error.rb +23 -0
  30. data/lib/typekit/helper.rb +59 -10
  31. data/lib/typekit/record.rb +18 -22
  32. data/lib/typekit/record/family.rb +24 -1
  33. data/lib/typekit/record/kit.rb +29 -1
  34. data/lib/typekit/record/library.rb +4 -1
  35. data/lib/typekit/record/variation.rb +13 -1
  36. data/lib/typekit/version.rb +1 -1
  37. data/spec/feature/create_kit_spec.rb +52 -0
  38. data/spec/feature/delete_kit_spec.rb +33 -0
  39. data/spec/feature/index_kits_spec.rb +55 -0
  40. data/spec/feature/publish_kit_spec.rb +15 -0
  41. data/spec/feature/show_family_spec.rb +75 -0
  42. data/spec/feature/show_kit_spec.rb +56 -0
  43. data/spec/feature/show_library_spec.rb +29 -0
  44. data/spec/feature/show_variation_spec.rb +18 -0
  45. data/spec/feature/update_kit_spec.rb +88 -0
  46. data/spec/fixture/cassette/create_kits_bad.yml +16 -0
  47. data/spec/fixture/cassette/create_kits_ok.yml +16 -0
  48. data/spec/fixture/cassette/delete_kits_xxx_not_found.yml +13 -0
  49. data/spec/{cassettes → fixture/cassette}/delete_kits_xxx_ok.yml +0 -3
  50. data/spec/fixture/cassette/index_kits_show_kit_xxx_ok.yml +25 -0
  51. data/spec/{cassettes → fixture/cassette}/index_kits_unauthorized.yml +0 -3
  52. data/spec/{cassettes → fixture/cassette}/show_families_xxx_found.yml +0 -3
  53. data/spec/{cassettes → fixture/cassette}/show_families_xxx_ok.yml +0 -3
  54. data/spec/{cassettes → fixture/cassette}/show_families_xxx_yyy_ok.yml +0 -3
  55. data/spec/fixture/cassette/show_families_yyy_update_kits_xxx_families_ok.yml +35 -0
  56. data/spec/fixture/cassette/show_kits_xxx_families_yyy_show_family_yyy_ok.yml +45 -0
  57. data/spec/fixture/cassette/show_kits_xxx_not_found.yml +13 -0
  58. data/spec/fixture/cassette/show_kits_xxx_show_family_yyy_ok.yml +46 -0
  59. data/spec/{cassettes → fixture/cassette}/show_libraries_xxx_ok.yml +0 -3
  60. data/spec/fixture/cassette/update_kits_xxx_empty_families_ok.yml +16 -0
  61. data/spec/fixture/cassette/update_kits_xxx_families_ok.yml +18 -0
  62. data/spec/fixture/cassette/update_kits_xxx_families_variations_ok.yml +18 -0
  63. data/spec/fixture/cassette/update_kits_xxx_name_ok.yml +17 -0
  64. data/spec/fixture/cassette/update_kits_xxx_publish_ok.yml +16 -0
  65. data/spec/fixture/record/article.rb +11 -0
  66. data/spec/fixture/record/section.rb +10 -0
  67. data/spec/lib/typekit/collection_spec.rb +22 -0
  68. data/spec/{typekit/processing → lib/typekit}/converter_spec.rb +13 -13
  69. data/spec/lib/typekit/element/association_spec.rb +96 -0
  70. data/spec/lib/typekit/element/base_spec.rb +70 -0
  71. data/spec/lib/typekit/element/persistence_spec.rb +97 -0
  72. data/spec/lib/typekit/element/serialization_spec.rb +28 -0
  73. data/spec/lib/typekit/element_spec.rb +58 -0
  74. data/spec/{typekit → lib/typekit}/helper_spec.rb +6 -8
  75. data/spec/lib/typekit/record_spec.rb +57 -0
  76. data/spec/spec_helper.rb +10 -3
  77. data/spec/support/common_helper.rb +5 -0
  78. data/spec/support/record_helper.rb +38 -0
  79. data/typekit-client.gemspec +11 -4
  80. metadata +164 -58
  81. data/lib/typekit/processing.rb +0 -8
  82. data/lib/typekit/processing/converter.rb +0 -28
  83. data/lib/typekit/processing/converter/boolean.rb +0 -14
  84. data/lib/typekit/processing/converter/collection.rb +0 -18
  85. data/lib/typekit/processing/converter/datetime.rb +0 -14
  86. data/lib/typekit/processing/converter/errors.rb +0 -24
  87. data/lib/typekit/processing/converter/record.rb +0 -16
  88. data/lib/typekit/processing/converter/unknown.rb +0 -15
  89. data/lib/typekit/processing/translator.rb +0 -13
  90. data/lib/typekit/record/base.rb +0 -52
  91. data/spec/cassettes/index_kits_ok.yml +0 -16
  92. data/spec/cassettes/show_kits_xxx_families_yyy_ok.yml +0 -16
  93. data/spec/cassettes/show_kits_xxx_ok.yml +0 -17
  94. data/spec/features/client/delete_kit_spec.rb +0 -13
  95. data/spec/features/client/index_kits_spec.rb +0 -25
  96. data/spec/features/client/show_family_spec.rb +0 -47
  97. data/spec/features/client/show_kit_spec.rb +0 -18
  98. data/spec/features/client/show_library_spec.rb +0 -18
  99. data/spec/features/client/show_variation_spec.rb +0 -22
  100. data/spec/support/resource_helper.rb +0 -34
  101. data/spec/typekit/record/base_spec.rb +0 -85
  102. data/spec/typekit/record_spec.rb +0 -80
@@ -2,18 +2,25 @@ require 'webmock/rspec'
2
2
  require 'vcr'
3
3
  require 'typekit'
4
4
 
5
- require_relative 'support/resource_helper'
5
+ require_relative 'support/common_helper'
6
+ require_relative 'support/record_helper'
6
7
 
7
8
  RSpec.configure do |config|
9
+ config.include CommonHelper
8
10
  config.disable_monkey_patching!
9
11
  end
10
12
 
13
+ class RSpec::Core::ExampleGroup
14
+ alias_method :described_module, :described_class
15
+ end
16
+
11
17
  VCR.configure do |config|
12
- config.cassette_library_dir = 'spec/cassettes'
18
+ config.cassette_library_dir = 'spec/fixture/cassette'
13
19
  config.hook_into :webmock
14
20
  config.configure_rspec_metadata!
15
21
  config.default_cassette_options = {
16
- allow_unused_http_interactions: false
22
+ allow_unused_http_interactions: false,
23
+ match_requests_on: [:method, :uri, :body]
17
24
  }
18
25
  config.allow_http_connections_when_no_cassette = false
19
26
  end
@@ -0,0 +1,5 @@
1
+ module CommonHelper
2
+ def token
3
+ 'arbitrary'
4
+ end
5
+ end
@@ -0,0 +1,38 @@
1
+ module RecordHelper
2
+ RECORD_NAMES = %w{family kit library variation}
3
+ PLURAL_RECORD_NAMES = %w{families kits libraries variations}
4
+
5
+ def record_names
6
+ RECORD_NAMES
7
+ end
8
+
9
+ def record_symbols
10
+ @record_symbols ||= record_names.map(&:to_sym)
11
+ end
12
+
13
+ def record_classes
14
+ @record_classes ||= record_names.map do |name|
15
+ Typekit::Record.const_get(name.capitalize)
16
+ end
17
+ end
18
+
19
+ def record_dictionary
20
+ @record_dictionary ||= Hash[
21
+ record_symbols.clone.zip(record_classes)
22
+ ]
23
+ end
24
+
25
+ def plural_record_names
26
+ PLURAL_RECORD_NAMES
27
+ end
28
+
29
+ def plural_record_symbols
30
+ @plural_record_symbols ||= plural_record_names.map(&:to_sym)
31
+ end
32
+
33
+ def plural_record_dictionary
34
+ @plural_record_dictionary ||= Hash[
35
+ plural_record_symbols.clone.zip(record_classes)
36
+ ]
37
+ end
38
+ end
@@ -1,4 +1,4 @@
1
- lib = File.expand_path('lib', __dir__)
1
+ lib = File.expand_path('../lib', __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  require 'typekit/version'
@@ -19,16 +19,23 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^spec/})
20
20
  spec.require_paths = [ 'lib' ]
21
21
 
22
- spec.required_ruby_version = '>= 2.1'
22
+ spec.required_ruby_version = '>= 1.9.3'
23
23
 
24
24
  spec.add_dependency 'rack', '~> 1.5'
25
25
  spec.add_dependency 'json', '~> 1.8'
26
- spec.add_dependency 'apitizer', '~> 0.0.1'
26
+ spec.add_dependency 'apitizer', '~> 0.0.3'
27
27
 
28
28
  spec.add_development_dependency 'bundler', '~> 1.6'
29
29
  spec.add_development_dependency 'rake'
30
+
30
31
  spec.add_development_dependency 'rspec', '~> 3.0'
31
- spec.add_development_dependency 'guard-rspec', '~> 4.2'
32
+ spec.add_development_dependency 'rspec-bdd', '~> 0.0.2'
32
33
  spec.add_development_dependency 'webmock', '~> 1.18'
33
34
  spec.add_development_dependency 'vcr', '~> 2.9'
35
+
36
+ spec.add_development_dependency 'redcarpet', '~> 3.1'
37
+ spec.add_development_dependency 'yard', '~> 0.8'
38
+
39
+ spec.add_development_dependency 'guard', '~> 2.6'
40
+ spec.add_development_dependency 'guard-rspec', '~> 4.2'
34
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typekit-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Ukhov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-10 00:00:00.000000000 Z
11
+ date: 2014-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.1
47
+ version: 0.0.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.1
54
+ version: 0.0.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -95,19 +95,19 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: guard-rspec
98
+ name: rspec-bdd
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '4.2'
103
+ version: 0.0.2
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '4.2'
110
+ version: 0.0.2
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: webmock
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +136,62 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '2.9'
139
+ - !ruby/object:Gem::Dependency
140
+ name: redcarpet
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.1'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '3.1'
153
+ - !ruby/object:Gem::Dependency
154
+ name: yard
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.8'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.8'
167
+ - !ruby/object:Gem::Dependency
168
+ name: guard
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '2.6'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '2.6'
181
+ - !ruby/object:Gem::Dependency
182
+ name: guard-rspec
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '4.2'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '4.2'
139
195
  description: A Ruby library for manipulating the resources provided by the Typekit
140
196
  Web service.
141
197
  email:
@@ -149,6 +205,7 @@ files:
149
205
  - ".gitignore"
150
206
  - ".rspec"
151
207
  - ".travis.yml"
208
+ - ".yardopts"
152
209
  - CHANGELOG.md
153
210
  - Gemfile
154
211
  - Guardfile
@@ -160,45 +217,72 @@ files:
160
217
  - lib/typekit.rb
161
218
  - lib/typekit/client.rb
162
219
  - lib/typekit/collection.rb
220
+ - lib/typekit/collection/base.rb
221
+ - lib/typekit/collection/serialization.rb
222
+ - lib/typekit/converter.rb
223
+ - lib/typekit/converter/boolean.rb
224
+ - lib/typekit/converter/collection.rb
225
+ - lib/typekit/converter/datetime.rb
226
+ - lib/typekit/converter/element.rb
227
+ - lib/typekit/converter/errors.rb
228
+ - lib/typekit/converter/unknown.rb
163
229
  - lib/typekit/core.rb
230
+ - lib/typekit/element.rb
231
+ - lib/typekit/element/association.rb
232
+ - lib/typekit/element/base.rb
233
+ - lib/typekit/element/persistence.rb
234
+ - lib/typekit/element/query.rb
235
+ - lib/typekit/element/serialization.rb
236
+ - lib/typekit/error.rb
164
237
  - lib/typekit/helper.rb
165
- - lib/typekit/processing.rb
166
- - lib/typekit/processing/converter.rb
167
- - lib/typekit/processing/converter/boolean.rb
168
- - lib/typekit/processing/converter/collection.rb
169
- - lib/typekit/processing/converter/datetime.rb
170
- - lib/typekit/processing/converter/errors.rb
171
- - lib/typekit/processing/converter/record.rb
172
- - lib/typekit/processing/converter/unknown.rb
173
- - lib/typekit/processing/translator.rb
174
238
  - lib/typekit/record.rb
175
- - lib/typekit/record/base.rb
176
239
  - lib/typekit/record/family.rb
177
240
  - lib/typekit/record/kit.rb
178
241
  - lib/typekit/record/library.rb
179
242
  - lib/typekit/record/variation.rb
180
243
  - lib/typekit/version.rb
181
- - spec/cassettes/delete_kits_xxx_ok.yml
182
- - spec/cassettes/index_kits_ok.yml
183
- - spec/cassettes/index_kits_unauthorized.yml
184
- - spec/cassettes/show_families_xxx_found.yml
185
- - spec/cassettes/show_families_xxx_ok.yml
186
- - spec/cassettes/show_families_xxx_yyy_ok.yml
187
- - spec/cassettes/show_kits_xxx_families_yyy_ok.yml
188
- - spec/cassettes/show_kits_xxx_ok.yml
189
- - spec/cassettes/show_libraries_xxx_ok.yml
190
- - spec/features/client/delete_kit_spec.rb
191
- - spec/features/client/index_kits_spec.rb
192
- - spec/features/client/show_family_spec.rb
193
- - spec/features/client/show_kit_spec.rb
194
- - spec/features/client/show_library_spec.rb
195
- - spec/features/client/show_variation_spec.rb
244
+ - spec/feature/create_kit_spec.rb
245
+ - spec/feature/delete_kit_spec.rb
246
+ - spec/feature/index_kits_spec.rb
247
+ - spec/feature/publish_kit_spec.rb
248
+ - spec/feature/show_family_spec.rb
249
+ - spec/feature/show_kit_spec.rb
250
+ - spec/feature/show_library_spec.rb
251
+ - spec/feature/show_variation_spec.rb
252
+ - spec/feature/update_kit_spec.rb
253
+ - spec/fixture/cassette/create_kits_bad.yml
254
+ - spec/fixture/cassette/create_kits_ok.yml
255
+ - spec/fixture/cassette/delete_kits_xxx_not_found.yml
256
+ - spec/fixture/cassette/delete_kits_xxx_ok.yml
257
+ - spec/fixture/cassette/index_kits_show_kit_xxx_ok.yml
258
+ - spec/fixture/cassette/index_kits_unauthorized.yml
259
+ - spec/fixture/cassette/show_families_xxx_found.yml
260
+ - spec/fixture/cassette/show_families_xxx_ok.yml
261
+ - spec/fixture/cassette/show_families_xxx_yyy_ok.yml
262
+ - spec/fixture/cassette/show_families_yyy_update_kits_xxx_families_ok.yml
263
+ - spec/fixture/cassette/show_kits_xxx_families_yyy_show_family_yyy_ok.yml
264
+ - spec/fixture/cassette/show_kits_xxx_not_found.yml
265
+ - spec/fixture/cassette/show_kits_xxx_show_family_yyy_ok.yml
266
+ - spec/fixture/cassette/show_libraries_xxx_ok.yml
267
+ - spec/fixture/cassette/update_kits_xxx_empty_families_ok.yml
268
+ - spec/fixture/cassette/update_kits_xxx_families_ok.yml
269
+ - spec/fixture/cassette/update_kits_xxx_families_variations_ok.yml
270
+ - spec/fixture/cassette/update_kits_xxx_name_ok.yml
271
+ - spec/fixture/cassette/update_kits_xxx_publish_ok.yml
272
+ - spec/fixture/record/article.rb
273
+ - spec/fixture/record/section.rb
274
+ - spec/lib/typekit/collection_spec.rb
275
+ - spec/lib/typekit/converter_spec.rb
276
+ - spec/lib/typekit/element/association_spec.rb
277
+ - spec/lib/typekit/element/base_spec.rb
278
+ - spec/lib/typekit/element/persistence_spec.rb
279
+ - spec/lib/typekit/element/serialization_spec.rb
280
+ - spec/lib/typekit/element_spec.rb
281
+ - spec/lib/typekit/helper_spec.rb
282
+ - spec/lib/typekit/record_spec.rb
196
283
  - spec/spec_helper.rb
197
- - spec/support/resource_helper.rb
198
- - spec/typekit/helper_spec.rb
199
- - spec/typekit/processing/converter_spec.rb
200
- - spec/typekit/record/base_spec.rb
201
- - spec/typekit/record_spec.rb
284
+ - spec/support/common_helper.rb
285
+ - spec/support/record_helper.rb
202
286
  - typekit-client.gemspec
203
287
  homepage: https://github.com/IvanUkhov/typekit-client
204
288
  licenses:
@@ -212,7 +296,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
212
296
  requirements:
213
297
  - - ">="
214
298
  - !ruby/object:Gem::Version
215
- version: '2.1'
299
+ version: 1.9.3
216
300
  required_rubygems_version: !ruby/object:Gem::Requirement
217
301
  requirements:
218
302
  - - ">="
@@ -225,24 +309,46 @@ signing_key:
225
309
  specification_version: 4
226
310
  summary: A Ruby library for accessing the Typekit API
227
311
  test_files:
228
- - spec/cassettes/delete_kits_xxx_ok.yml
229
- - spec/cassettes/index_kits_ok.yml
230
- - spec/cassettes/index_kits_unauthorized.yml
231
- - spec/cassettes/show_families_xxx_found.yml
232
- - spec/cassettes/show_families_xxx_ok.yml
233
- - spec/cassettes/show_families_xxx_yyy_ok.yml
234
- - spec/cassettes/show_kits_xxx_families_yyy_ok.yml
235
- - spec/cassettes/show_kits_xxx_ok.yml
236
- - spec/cassettes/show_libraries_xxx_ok.yml
237
- - spec/features/client/delete_kit_spec.rb
238
- - spec/features/client/index_kits_spec.rb
239
- - spec/features/client/show_family_spec.rb
240
- - spec/features/client/show_kit_spec.rb
241
- - spec/features/client/show_library_spec.rb
242
- - spec/features/client/show_variation_spec.rb
312
+ - spec/feature/create_kit_spec.rb
313
+ - spec/feature/delete_kit_spec.rb
314
+ - spec/feature/index_kits_spec.rb
315
+ - spec/feature/publish_kit_spec.rb
316
+ - spec/feature/show_family_spec.rb
317
+ - spec/feature/show_kit_spec.rb
318
+ - spec/feature/show_library_spec.rb
319
+ - spec/feature/show_variation_spec.rb
320
+ - spec/feature/update_kit_spec.rb
321
+ - spec/fixture/cassette/create_kits_bad.yml
322
+ - spec/fixture/cassette/create_kits_ok.yml
323
+ - spec/fixture/cassette/delete_kits_xxx_not_found.yml
324
+ - spec/fixture/cassette/delete_kits_xxx_ok.yml
325
+ - spec/fixture/cassette/index_kits_show_kit_xxx_ok.yml
326
+ - spec/fixture/cassette/index_kits_unauthorized.yml
327
+ - spec/fixture/cassette/show_families_xxx_found.yml
328
+ - spec/fixture/cassette/show_families_xxx_ok.yml
329
+ - spec/fixture/cassette/show_families_xxx_yyy_ok.yml
330
+ - spec/fixture/cassette/show_families_yyy_update_kits_xxx_families_ok.yml
331
+ - spec/fixture/cassette/show_kits_xxx_families_yyy_show_family_yyy_ok.yml
332
+ - spec/fixture/cassette/show_kits_xxx_not_found.yml
333
+ - spec/fixture/cassette/show_kits_xxx_show_family_yyy_ok.yml
334
+ - spec/fixture/cassette/show_libraries_xxx_ok.yml
335
+ - spec/fixture/cassette/update_kits_xxx_empty_families_ok.yml
336
+ - spec/fixture/cassette/update_kits_xxx_families_ok.yml
337
+ - spec/fixture/cassette/update_kits_xxx_families_variations_ok.yml
338
+ - spec/fixture/cassette/update_kits_xxx_name_ok.yml
339
+ - spec/fixture/cassette/update_kits_xxx_publish_ok.yml
340
+ - spec/fixture/record/article.rb
341
+ - spec/fixture/record/section.rb
342
+ - spec/lib/typekit/collection_spec.rb
343
+ - spec/lib/typekit/converter_spec.rb
344
+ - spec/lib/typekit/element/association_spec.rb
345
+ - spec/lib/typekit/element/base_spec.rb
346
+ - spec/lib/typekit/element/persistence_spec.rb
347
+ - spec/lib/typekit/element/serialization_spec.rb
348
+ - spec/lib/typekit/element_spec.rb
349
+ - spec/lib/typekit/helper_spec.rb
350
+ - spec/lib/typekit/record_spec.rb
243
351
  - spec/spec_helper.rb
244
- - spec/support/resource_helper.rb
245
- - spec/typekit/helper_spec.rb
246
- - spec/typekit/processing/converter_spec.rb
247
- - spec/typekit/record/base_spec.rb
248
- - spec/typekit/record_spec.rb
352
+ - spec/support/common_helper.rb
353
+ - spec/support/record_helper.rb
354
+ has_rdoc:
@@ -1,8 +0,0 @@
1
- require_relative 'processing/converter'
2
- require_relative 'processing/translator'
3
-
4
- module Typekit
5
- module Processing
6
- Error = Class.new(Typekit::Error)
7
- end
8
- end
@@ -1,28 +0,0 @@
1
- require_relative 'converter/record'
2
- require_relative 'converter/collection'
3
- require_relative 'converter/boolean'
4
- require_relative 'converter/datetime'
5
- require_relative 'converter/errors'
6
- require_relative 'converter/unknown'
7
-
8
- module Typekit
9
- module Processing
10
- module Converter
11
- MAPPING = {
12
- :record => Record,
13
- :collection => Collection,
14
-
15
- 'ok' => Boolean,
16
- 'errors' => Errors,
17
- 'published' => DateTime,
18
-
19
- nil => Errors
20
- }
21
- MAPPING.default = Unknown
22
-
23
- def self.build(name)
24
- MAPPING[Typekit::Record.identify(name) || name].new(name)
25
- end
26
- end
27
- end
28
- end