plissken 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "debugger"
10
+ gem "minitest", ">= 0", :require => 'minitest/spec'
11
+ gem "rdoc", "~> 3.12"
12
+ gem "bundler"
13
+ gem "jeweler", "~> 1.8.4"
14
+ end
@@ -0,0 +1,32 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ columnize (0.3.6)
5
+ debugger (1.2.1)
6
+ columnize (>= 0.3.1)
7
+ debugger-linecache (~> 1.1.1)
8
+ debugger-ruby_core_source (~> 1.1.4)
9
+ debugger-linecache (1.1.2)
10
+ debugger-ruby_core_source (>= 1.1.1)
11
+ debugger-ruby_core_source (1.1.4)
12
+ git (1.2.5)
13
+ jeweler (1.8.4)
14
+ bundler (~> 1.0)
15
+ git (>= 1.2.5)
16
+ rake
17
+ rdoc
18
+ json (1.7.7)
19
+ minitest (4.6.1)
20
+ rake (10.0.3)
21
+ rdoc (3.12.1)
22
+ json (~> 1.4)
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ bundler
29
+ debugger
30
+ jeweler (~> 1.8.4)
31
+ minitest
32
+ rdoc (~> 3.12)
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Dave Hrycyszyn
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,40 @@
1
+ =======
2
+ plissken
3
+ ========
4
+
5
+ Have you ever needed to automatically convert JSON-style `camelBack` or `CamelCase` hash keys into more Rubyish `snake_case`?
6
+
7
+ Plissken to the rescue.
8
+
9
+ This gem recursively converts all camelBack or CamelCase keys in a hash structure to snake_case.
10
+
11
+ ## Usage
12
+
13
+ ```ruby
14
+ my_hash = {"firstKey" => 1, "fooBars" => [{"bazBaz" => "value"}, {"blahBlah" => "value"}]}
15
+ snaked_hash = my_hash.to_snake_keys
16
+ # => {"first_key" => 1, "foo_bars" => [{"baz_baz" => "value"}, {"blah_blah" => "value"}]}
17
+ ```
18
+
19
+ Plissken works on either string keys or symbolized keys. It has no dependencies, as has its own `underscore` method lifted out of ActiveSupport.
20
+
21
+ ## Limitations
22
+
23
+ * Your keys must be camelBack or CamelCase. The key "Foo Bar" will output as "foo bar".
24
+ * Unlike the original Snake Plissken in the seminal film [Escape from New York](http://en.wikipedia.org/wiki/Escape_from_New_York), the plissken gem is non-destructive. There is no Hash#to_snake_keys! form.
25
+
26
+ ## Contributing to plissken
27
+
28
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
29
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
30
+ * Fork the project.
31
+ * Start a feature/bugfix branch.
32
+ * Commit and push until you are happy with your contribution.
33
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
34
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
35
+
36
+ == Copyright
37
+
38
+ Copyright (c) 2013 Dave Hrycyszyn. See LICENSE.txt for
39
+ further details.
40
+
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "plissken"
18
+ gem.homepage = "http://github.com/futurechimp/plissken"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{Snakify your camel keys when working with JSON APIs}
21
+ gem.description = %Q{
22
+ Have you ever needed to automatically convert JSON-style camelBack or
23
+ CamelCase hash keys into more Rubyish snake_case?
24
+
25
+ Plissken to the rescue.
26
+
27
+ This gem recursively converts all camelBack or CamelCase keys in a hash
28
+ structure to snake_case.
29
+ }
30
+ gem.email = "dave.hrycyszyn@headlondon.com"
31
+ gem.authors = ["Dave Hrycyszyn"]
32
+ # dependencies defined in Gemfile
33
+ end
34
+ Jeweler::RubygemsDotOrgTasks.new
35
+
36
+ require 'rake/testtask'
37
+ Rake::TestTask.new(:test) do |test|
38
+ test.libs << 'lib' << 'test'
39
+ test.pattern = 'test/**/test_*.rb'
40
+ test.verbose = true
41
+ end
42
+
43
+ task :default => :test
44
+
45
+ require 'rdoc/task'
46
+ Rake::RDocTask.new do |rdoc|
47
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ rdoc.rdoc_dir = 'rdoc'
50
+ rdoc.title = "plissken #{version}"
51
+ rdoc.rdoc_files.include('README*')
52
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1 @@
1
+ require File.dirname(__FILE__) + '/plissken/ext/hash/to_snake_keys'
@@ -0,0 +1,38 @@
1
+ class Hash
2
+
3
+ # Recursively converts CamelCase and camelBack JSON-style hash keys to
4
+ # Rubyish snake_case, suitable for use during instantiation of Ruby
5
+ # model attributes.
6
+ #
7
+ def to_snake_keys(value = self)
8
+ case value
9
+ when Array
10
+ value.map { |v| to_snake_keys(v) }
11
+ when Hash
12
+ Hash[value.map { |k, v| [underscore_key(k), to_snake_keys(v)] }]
13
+ else
14
+ value
15
+ end
16
+ end
17
+
18
+ private
19
+
20
+ def underscore_key(k)
21
+ if k.is_a? Symbol
22
+ underscore(k.to_s).to_sym
23
+ elsif k.is_a? String
24
+ underscore(k)
25
+ else
26
+ k # Plissken can't snakify anything except strings and symbols
27
+ end
28
+ end
29
+
30
+ def underscore(string)
31
+ string.gsub(/::/, '/').
32
+ gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
33
+ gsub(/([a-z\d])([A-Z])/,'\1_\2').
34
+ tr("-", "_").
35
+ downcase
36
+ end
37
+
38
+ end
@@ -0,0 +1,64 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "plissken"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Dave Hrycyszyn"]
12
+ s.date = "2013-02-19"
13
+ s.description = "\n Have you ever needed to automatically convert JSON-style camelBack or\n CamelCase hash keys into more Rubyish snake_case?\n\n Plissken to the rescue.\n\n This gem recursively converts all camelBack or CamelCase keys in a hash\n structure to snake_case.\n "
14
+ s.email = "dave.hrycyszyn@headlondon.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.md",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/plissken.rb",
28
+ "lib/plissken/ext/hash/to_snake_keys.rb",
29
+ "plissken.gemspec",
30
+ "test/helper.rb",
31
+ "test/plissken/ext/hash/to_snake_keys_test.rb",
32
+ "test/test_plissken.rb"
33
+ ]
34
+ s.homepage = "http://github.com/futurechimp/plissken"
35
+ s.licenses = ["MIT"]
36
+ s.require_paths = ["lib"]
37
+ s.rubygems_version = "1.8.24"
38
+ s.summary = "Snakify your camel keys when working with JSON APIs"
39
+
40
+ if s.respond_to? :specification_version then
41
+ s.specification_version = 3
42
+
43
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
+ s.add_development_dependency(%q<debugger>, [">= 0"])
45
+ s.add_development_dependency(%q<minitest>, [">= 0"])
46
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
47
+ s.add_development_dependency(%q<bundler>, [">= 0"])
48
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
49
+ else
50
+ s.add_dependency(%q<debugger>, [">= 0"])
51
+ s.add_dependency(%q<minitest>, [">= 0"])
52
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
53
+ s.add_dependency(%q<bundler>, [">= 0"])
54
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
55
+ end
56
+ else
57
+ s.add_dependency(%q<debugger>, [">= 0"])
58
+ s.add_dependency(%q<minitest>, [">= 0"])
59
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
60
+ s.add_dependency(%q<bundler>, [">= 0"])
61
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
62
+ end
63
+ end
64
+
@@ -0,0 +1,20 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'minitest/spec'
11
+ require 'debugger'
12
+
13
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
14
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
15
+ require 'plissken'
16
+
17
+ class MiniTest::Unit::TestCase
18
+ end
19
+
20
+ MiniTest::Unit.autorun
@@ -0,0 +1,170 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../../../test_plissken.rb')
2
+
3
+ describe "A Hash" do
4
+ describe "with camelBack keys" do
5
+ describe "which are JSON-style strings" do
6
+ describe "in the simplest case" do
7
+ before do
8
+ @hash = { "firstKey" => "fooBar" }
9
+ end
10
+
11
+ describe "non-destructive snakification" do
12
+ before do
13
+ @snaked = @hash.to_snake_keys
14
+ end
15
+
16
+ it "snakifies the key" do
17
+ assert_equal(@snaked.keys.first, "first_key")
18
+ end
19
+
20
+ it "leaves the key as a string" do
21
+ assert_equal("first_key", @snaked.keys.first)
22
+ end
23
+
24
+ it "leaves the value untouched" do
25
+ assert_equal(@snaked.values.first, "fooBar")
26
+ end
27
+
28
+ it "leaves the original hash untouched" do
29
+ assert_equal(@hash.keys.first, "firstKey")
30
+ end
31
+ end
32
+ end
33
+
34
+ describe "containing an array of other hashes" do
35
+ before do
36
+ @hash = {
37
+ "appleType" => "Granny Smith",
38
+ "vegetableTypes" => [
39
+ {"potatoType" => "Golden delicious"},
40
+ {"otherTuberType" => "peanut"},
41
+ {"peanutNamesAndSpouses" => [
42
+ {"billThePeanut" => "sallyPeanut"}, {"sammyThePeanut" => "jillPeanut"}
43
+ ]}
44
+ ]}
45
+ end
46
+
47
+ describe "non-destructive snakification" do
48
+ before do
49
+ @snaked = @hash.to_snake_keys
50
+ end
51
+
52
+ it "recursively snakifies the keys on the top level of the hash" do
53
+ assert @snaked.keys.include?("apple_type")
54
+ assert @snaked.keys.include?("vegetable_types")
55
+ end
56
+
57
+ it "leaves the values on the top level alone" do
58
+ assert_equal(@snaked["apple_type"], "Granny Smith")
59
+ end
60
+
61
+ it "converts second-level keys" do
62
+ assert @snaked["vegetable_types"].first.has_key? "potato_type"
63
+ end
64
+
65
+ it "leaves second-level values alone" do
66
+ assert @snaked["vegetable_types"].first.has_value? "Golden delicious"
67
+ end
68
+
69
+ it "converts third-level keys" do
70
+ assert @snaked["vegetable_types"].last["peanut_names_and_spouses"].first.has_key?("bill_the_peanut")
71
+ assert @snaked["vegetable_types"].last["peanut_names_and_spouses"].last.has_key?("sammy_the_peanut")
72
+ end
73
+
74
+ it "leaves third-level values alone" do
75
+ assert_equal "sallyPeanut", @snaked["vegetable_types"].last["peanut_names_and_spouses"].first["bill_the_peanut"]
76
+ assert_equal "jillPeanut", @snaked["vegetable_types"].last["peanut_names_and_spouses"].last["sammy_the_peanut"]
77
+ end
78
+ end
79
+ end
80
+ end
81
+
82
+ describe "which are symbols" do
83
+ describe "in the simplest case" do
84
+ before do
85
+ @hash = { :firstKey => "fooBar" }
86
+ end
87
+
88
+ describe "non-destructive snakification" do
89
+ before do
90
+ @snaked = @hash.to_snake_keys
91
+ end
92
+
93
+ it "snakifies the key" do
94
+ assert_equal(@snaked.keys.first, :first_key)
95
+ end
96
+
97
+ it "leaves the key as a symbol" do
98
+ assert_equal(:first_key, @snaked.keys.first)
99
+ end
100
+
101
+ it "leaves the value untouched" do
102
+ assert_equal(@snaked.values.first, "fooBar")
103
+ end
104
+
105
+ it "leaves the original hash untouched" do
106
+ assert_equal(@hash.keys.first, :firstKey)
107
+ end
108
+ end
109
+ end
110
+
111
+ describe "containing an array of other hashes" do
112
+ before do
113
+ @hash = {
114
+ :appleType => "Granny Smith",
115
+ :vegetableTypes => [
116
+ {:potatoType => "Golden delicious"},
117
+ {:otherTuberType => "peanut"},
118
+ {:peanutNamesAndSpouses => [
119
+ {:billThePeanut => "sallyPeanut"}, {:sammyThePeanut => "jillPeanut"}
120
+ ]}
121
+ ]}
122
+ end
123
+
124
+ describe "non-destructive snakification" do
125
+ before do
126
+ @snaked = @hash.to_snake_keys
127
+ end
128
+
129
+ it "recursively snakifies the keys on the top level of the hash" do
130
+ assert @snaked.keys.include?(:apple_type)
131
+ assert @snaked.keys.include?(:vegetable_types)
132
+ end
133
+
134
+ it "leaves the values on the top level alone" do
135
+ assert_equal(@snaked[:apple_type], "Granny Smith")
136
+ end
137
+
138
+ it "converts second-level keys" do
139
+ assert @snaked[:vegetable_types].first.has_key? :potato_type
140
+ end
141
+
142
+ it "leaves second-level values alone" do
143
+ assert @snaked[:vegetable_types].first.has_value? "Golden delicious"
144
+ end
145
+
146
+ it "converts third-level keys" do
147
+ assert @snaked[:vegetable_types].last[:peanut_names_and_spouses].first.has_key?(:bill_the_peanut)
148
+ assert @snaked[:vegetable_types].last[:peanut_names_and_spouses].last.has_key?(:sammy_the_peanut)
149
+ end
150
+
151
+ it "leaves third-level values alone" do
152
+ assert_equal "sallyPeanut", @snaked[:vegetable_types].last[:peanut_names_and_spouses].first[:bill_the_peanut]
153
+ assert_equal "jillPeanut", @snaked[:vegetable_types].last[:peanut_names_and_spouses].last[:sammy_the_peanut]
154
+ end
155
+ end
156
+ end
157
+ end
158
+ end
159
+
160
+ describe "strings with spaces in them" do
161
+ before do
162
+ @hash = { "With Spaces" => "FooBar"}
163
+ @snaked = @hash.to_snake_keys
164
+ end
165
+
166
+ it "doesn't get snaked, although it does get downcased" do
167
+ assert @snaked.keys.include? "with spaces"
168
+ end
169
+ end
170
+ end
@@ -0,0 +1,2 @@
1
+ require 'helper'
2
+ require File.dirname(__FILE__) + '/../lib/plissken/ext/hash/to_snake_keys'
metadata ADDED
@@ -0,0 +1,146 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: plissken
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Dave Hrycyszyn
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: debugger
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: minitest
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rdoc
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '3.12'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.12'
62
+ - !ruby/object:Gem::Dependency
63
+ name: bundler
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: jeweler
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 1.8.4
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 1.8.4
94
+ description: ! "\n Have you ever needed to automatically convert JSON-style camelBack
95
+ or\n CamelCase hash keys into more Rubyish snake_case?\n\n Plissken to the
96
+ rescue.\n\n This gem recursively converts all camelBack or CamelCase keys in
97
+ a hash\n structure to snake_case.\n "
98
+ email: dave.hrycyszyn@headlondon.com
99
+ executables: []
100
+ extensions: []
101
+ extra_rdoc_files:
102
+ - LICENSE.txt
103
+ - README.md
104
+ files:
105
+ - .document
106
+ - Gemfile
107
+ - Gemfile.lock
108
+ - LICENSE.txt
109
+ - README.md
110
+ - Rakefile
111
+ - VERSION
112
+ - lib/plissken.rb
113
+ - lib/plissken/ext/hash/to_snake_keys.rb
114
+ - plissken.gemspec
115
+ - test/helper.rb
116
+ - test/plissken/ext/hash/to_snake_keys_test.rb
117
+ - test/test_plissken.rb
118
+ homepage: http://github.com/futurechimp/plissken
119
+ licenses:
120
+ - MIT
121
+ post_install_message:
122
+ rdoc_options: []
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ none: false
127
+ requirements:
128
+ - - ! '>='
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ segments:
132
+ - 0
133
+ hash: 4152380818208412704
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
135
+ none: false
136
+ requirements:
137
+ - - ! '>='
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubyforge_project:
142
+ rubygems_version: 1.8.24
143
+ signing_key:
144
+ specification_version: 3
145
+ summary: Snakify your camel keys when working with JSON APIs
146
+ test_files: []