libyajl2 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +25 -0
- data/.gitmodules +3 -0
- data/.kitchen.cloud.yml +87 -0
- data/.kitchen.yml +38 -0
- data/.reek.yml +3 -0
- data/.rspec +1 -0
- data/.rubocop.yml +38 -0
- data/.travis.yml +8 -0
- data/CONTRIBUTING.md +4 -0
- data/Gemfile +12 -0
- data/LICENSE +201 -0
- data/README.md +9 -0
- data/Rakefile +144 -0
- data/bootstrap.sh +60 -0
- data/ext/libyajl2/Makefile +7 -0
- data/ext/libyajl2/extconf.rb +66 -0
- data/ext/libyajl2/vendor/yajl/.gitignore +3 -0
- data/ext/libyajl2/vendor/yajl/BUILDING +23 -0
- data/ext/libyajl2/vendor/yajl/BUILDING.win32 +27 -0
- data/ext/libyajl2/vendor/yajl/CMakeLists.txt +81 -0
- data/ext/libyajl2/vendor/yajl/COPYING +13 -0
- data/ext/libyajl2/vendor/yajl/ChangeLog +189 -0
- data/ext/libyajl2/vendor/yajl/README +74 -0
- data/ext/libyajl2/vendor/yajl/TODO +9 -0
- data/ext/libyajl2/vendor/yajl/YAJLDoc.cmake +26 -0
- data/ext/libyajl2/vendor/yajl/configure +81 -0
- data/ext/libyajl2/vendor/yajl/example/CMakeLists.txt +23 -0
- data/ext/libyajl2/vendor/yajl/example/README.md +7 -0
- data/ext/libyajl2/vendor/yajl/example/parse_config.c +69 -0
- data/ext/libyajl2/vendor/yajl/example/sample.config +101 -0
- data/ext/libyajl2/vendor/yajl/perf/CMakeLists.txt +23 -0
- data/ext/libyajl2/vendor/yajl/perf/documents.c +1418 -0
- data/ext/libyajl2/vendor/yajl/perf/documents.h +28 -0
- data/ext/libyajl2/vendor/yajl/perf/perftest.c +134 -0
- data/ext/libyajl2/vendor/yajl/reformatter/CMakeLists.txt +43 -0
- data/ext/libyajl2/vendor/yajl/reformatter/json_reformat.c +210 -0
- data/ext/libyajl2/vendor/yajl/src/CMakeLists.txt +87 -0
- data/ext/libyajl2/vendor/yajl/src/YAJL.dxy +1258 -0
- data/ext/libyajl2/vendor/yajl/src/api/yajl_common.h +75 -0
- data/ext/libyajl2/vendor/yajl/src/api/yajl_gen.h +167 -0
- data/ext/libyajl2/vendor/yajl/src/api/yajl_parse.h +226 -0
- data/ext/libyajl2/vendor/yajl/src/api/yajl_tree.h +186 -0
- data/ext/libyajl2/vendor/yajl/src/api/yajl_version.h.cmake +23 -0
- data/ext/libyajl2/vendor/yajl/src/yajl +33 -0
- data/ext/libyajl2/vendor/yajl/src/yajl.c +175 -0
- data/ext/libyajl2/vendor/yajl/src/yajl.pc.cmake +9 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_alloc.c +52 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_alloc.h +34 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_buf.c +103 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_buf.h +57 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_bytestack.h +69 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_encode.c +220 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_encode.h +34 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_gen.c +362 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_lex.c +763 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_lex.h +117 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_parser.c +498 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_parser.h +78 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_tree.c +503 -0
- data/ext/libyajl2/vendor/yajl/src/yajl_version.c +7 -0
- data/ext/libyajl2/vendor/yajl/test/CMakeLists.txt +16 -0
- data/ext/libyajl2/vendor/yajl/test/api/CMakeLists.txt +25 -0
- data/ext/libyajl2/vendor/yajl/test/api/gen-extra-close.c +19 -0
- data/ext/libyajl2/vendor/yajl/test/api/run_tests.sh +23 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/CMakeLists.txt +23 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ac_difficult_json_c_test_case_with_comments.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ac_difficult_json_c_test_case_with_comments.json.gold +36 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ac_simple_with_comments.json +11 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ac_simple_with_comments.json.gold +9 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ag_false_then_garbage.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ag_false_then_garbage.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ag_null_then_garbage.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ag_null_then_garbage.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ag_true_then_garbage.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ag_true_then_garbage.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/am_eof.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/am_eof.json.gold +4 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/am_integers.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/am_integers.json.gold +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/am_multiple.json +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/am_multiple.json.gold +5 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/am_stuff.json +7 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/am_stuff.json.gold +14 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ap_array_open.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ap_array_open.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ap_eof_str.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ap_eof_str.json.gold +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ap_map_open.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ap_map_open.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ap_partial_ok.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/ap_partial_ok.json.gold +4 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/array.json +6 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/array.json.gold +22 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/array_close.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/array_close.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/bignums.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/bignums.json.gold +5 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/bogus_char.json +4 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/bogus_char.json.gold +10 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/codepoints_from_unicode_org.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/codepoints_from_unicode_org.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/deep_arrays.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/deep_arrays.json.gold +2049 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/difficult_json_c_test_case.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/difficult_json_c_test_case.json.gold +36 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/doubles.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/doubles.json.gold +7 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/doubles_in_array.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/doubles_in_array.json.gold +8 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/empty_array.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/empty_array.json.gold +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/empty_string.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/empty_string.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/escaped_bulgarian.json +4 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/escaped_bulgarian.json.gold +7 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/escaped_foobar.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/escaped_foobar.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/false.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/false.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/fg_false_then_garbage.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/fg_false_then_garbage.json.gold +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/fg_issue_7.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/fg_issue_7.json.gold +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/fg_null_then_garbage.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/fg_null_then_garbage.json.gold +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/fg_true_then_garbage.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/fg_true_then_garbage.json.gold +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/four_byte_utf8.json +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/four_byte_utf8.json.gold +5 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/high_overflow.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/high_overflow.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/integers.json +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/integers.json.gold +14 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/invalid_utf8.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/invalid_utf8.json.gold +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/isolated_surrogate_marker.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/isolated_surrogate_marker.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/leading_zero_in_number.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/leading_zero_in_number.json.gold +5 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/lonely_minus_sign.json +7 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/lonely_minus_sign.json.gold +9 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/lonely_number.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/lonely_number.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/low_overflow.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/low_overflow.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/map_close.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/map_close.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/missing_integer_after_decimal_point.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/missing_integer_after_decimal_point.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/missing_integer_after_exponent.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/missing_integer_after_exponent.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/multiple.json +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/multiple.json.gold +4 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/non_utf8_char_in_string.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/non_utf8_char_in_string.json.gold +8 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/np_partial_bad.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/np_partial_bad.json.gold +5 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/null.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/null.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/nulls_and_bools.json +5 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/nulls_and_bools.json.gold +9 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/simple.json +5 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/simple.json.gold +9 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/simple_with_comments.json +11 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/simple_with_comments.json.gold +5 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/string_invalid_escape.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/string_invalid_escape.json.gold +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/string_invalid_hex_char.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/string_invalid_hex_char.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/string_with_escapes.json +3 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/string_with_escapes.json.gold +7 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/string_with_invalid_newline.json +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/string_with_invalid_newline.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/three_byte_utf8.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/three_byte_utf8.json.gold +7 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/true.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/true.json.gold +2 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/unescaped_bulgarian.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/unescaped_bulgarian.json.gold +4 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/zerobyte.json +1 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/cases/zerobyte.json.gold +0 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/run_tests.sh +94 -0
- data/ext/libyajl2/vendor/yajl/test/parsing/yajl_test.c +291 -0
- data/ext/libyajl2/vendor/yajl/verify/CMakeLists.txt +37 -0
- data/ext/libyajl2/vendor/yajl/verify/json_verify.c +120 -0
- data/lib/libyajl2.rb +13 -0
- data/lib/libyajl2/version.rb +3 -0
- data/libyajl2.gemspec +29 -0
- data/spec/ffi_spec.rb +20 -0
- data/spec/path_spec.rb +15 -0
- data/spec/spec_helper.rb +13 -0
- metadata +296 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6344c6f535771e7fd8f6e2cd83486ca5ca20a8bf
|
4
|
+
data.tar.gz: 5edc6b12ced923a0e9b2534435de7d62e6c18455
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8babd3bf3a20e16d5df22772c430e5f10f22e6d39ee420ba284a05d3cf78f69818cd20f9eb1c31f9ae01b389cd644578d5b319a4f69ed9fcb468fc676799a29f
|
7
|
+
data.tar.gz: 2f5b958c3fa5176dd59f0897f9221ef433839ccb2d80cfad7506105b7c8b14db7ea7fe9e247433508ad2cd9d0b7879a315256271091139c56eae53899254c258
|
data/.gitignore
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/test/tmp/
|
9
|
+
/test/version_tmp/
|
10
|
+
/tmp/
|
11
|
+
/.yardoc/
|
12
|
+
/_yardoc/
|
13
|
+
/doc/
|
14
|
+
/rdoc/
|
15
|
+
/.bundle/
|
16
|
+
Gemfile.lock
|
17
|
+
.ruby-version
|
18
|
+
.ruby-gemset
|
19
|
+
.rvmrc
|
20
|
+
|
21
|
+
## skip compiled library, but keep the directory structure
|
22
|
+
/lib/libyajl2/vendored-libyajl2/
|
23
|
+
!/lib/libyajl2/vendored-libyajl2/.gitkeep
|
24
|
+
|
25
|
+
.kitchen
|
data/.gitmodules
ADDED
data/.kitchen.cloud.yml
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
|
2
|
+
---
|
3
|
+
settings:
|
4
|
+
concurrency: 4
|
5
|
+
|
6
|
+
# The following env vars need to be set for DO:
|
7
|
+
#
|
8
|
+
# - DIGITALOCEAN_CLIENT_ID
|
9
|
+
# - DIGITALOCEAN_API_KEY
|
10
|
+
# - SSH_KEY_IDS
|
11
|
+
#
|
12
|
+
driver:
|
13
|
+
name: digitalocean
|
14
|
+
|
15
|
+
provisioner:
|
16
|
+
name: shell
|
17
|
+
data_path: .
|
18
|
+
|
19
|
+
platforms:
|
20
|
+
- name: ubuntu-1004
|
21
|
+
driver_config:
|
22
|
+
image_id: 14097
|
23
|
+
flavor_id: 63
|
24
|
+
region_id: 4
|
25
|
+
|
26
|
+
- name: ubuntu-1204
|
27
|
+
driver_config:
|
28
|
+
image_id: 3101045
|
29
|
+
flavor_id: 63
|
30
|
+
region_id: 4
|
31
|
+
|
32
|
+
- name: ubuntu-1310
|
33
|
+
driver_config:
|
34
|
+
image_id: 3101918
|
35
|
+
flavor_id: 63
|
36
|
+
region_id: 4
|
37
|
+
|
38
|
+
- name: debian-60
|
39
|
+
driver_config:
|
40
|
+
image_id: 12573
|
41
|
+
flavor_id: 63
|
42
|
+
region_id: 4
|
43
|
+
|
44
|
+
- name: debian-70
|
45
|
+
driver_config:
|
46
|
+
image_id: 3445812
|
47
|
+
flavor_id: 63
|
48
|
+
region_id: 4
|
49
|
+
|
50
|
+
- name: centos-64
|
51
|
+
driver_config:
|
52
|
+
image_id: 562354
|
53
|
+
flavor_id: 63
|
54
|
+
region_id: 4
|
55
|
+
|
56
|
+
- name: centos-65
|
57
|
+
driver_config:
|
58
|
+
image_id: 3448641
|
59
|
+
flavor_id: 63
|
60
|
+
region_id: 4
|
61
|
+
|
62
|
+
- name: centos-58
|
63
|
+
driver_config:
|
64
|
+
image_id: 1601
|
65
|
+
flavor_id: 63
|
66
|
+
region_id: 4
|
67
|
+
|
68
|
+
- name: fedora-19
|
69
|
+
driver_config:
|
70
|
+
image_id: 3102879
|
71
|
+
flavor_id: 62
|
72
|
+
region_id: 4
|
73
|
+
|
74
|
+
- name: fedora-20
|
75
|
+
driver_config:
|
76
|
+
image_id: 3243145
|
77
|
+
flavor_id: 63
|
78
|
+
region_id: 4
|
79
|
+
|
80
|
+
- name: arch-201305
|
81
|
+
driver_config:
|
82
|
+
image_id: 350424
|
83
|
+
flavor_id: 63
|
84
|
+
region_id: 4
|
85
|
+
|
86
|
+
suites:
|
87
|
+
- name: default
|
data/.kitchen.yml
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
driver:
|
2
|
+
name: vagrant
|
3
|
+
customize:
|
4
|
+
memory: 1024
|
5
|
+
cpus: 4
|
6
|
+
|
7
|
+
provisioner:
|
8
|
+
name: shell
|
9
|
+
data_path: .
|
10
|
+
|
11
|
+
platforms:
|
12
|
+
- name: ubuntu-10.04
|
13
|
+
driver_config:
|
14
|
+
box: opscode-ubuntu-10.04
|
15
|
+
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-10.04_chef-provisionerless.box
|
16
|
+
- name: ubuntu-12.04
|
17
|
+
driver_config:
|
18
|
+
box: opscode-ubuntu-12.04
|
19
|
+
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box
|
20
|
+
- name: ubuntu-12.10
|
21
|
+
driver_config:
|
22
|
+
box: opscode-ubuntu-12.10
|
23
|
+
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.10_chef-provisionerless.box
|
24
|
+
- name: ubuntu-13.04
|
25
|
+
driver_config:
|
26
|
+
box: opscode-ubuntu-13.04
|
27
|
+
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-13.04_chef-provisionerless.box
|
28
|
+
- name: ubuntu-13.10
|
29
|
+
driver_config:
|
30
|
+
box: opscode-ubuntu-13.10
|
31
|
+
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-13.10_chef-provisionerless.box
|
32
|
+
- name: ubuntu-14.04
|
33
|
+
driver_config:
|
34
|
+
box: opscode-ubuntu-14.04
|
35
|
+
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box
|
36
|
+
|
37
|
+
suites:
|
38
|
+
- name: default
|
data/.reek.yml
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
-cbfp
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
AndOr:
|
2
|
+
Enabled: false
|
3
|
+
ClassLength:
|
4
|
+
Enabled: false
|
5
|
+
CommentAnnotation:
|
6
|
+
Enabled: false
|
7
|
+
Documentation:
|
8
|
+
Enabled: false
|
9
|
+
DoubleNegation:
|
10
|
+
Enabled: false
|
11
|
+
Encoding:
|
12
|
+
Enabled: false
|
13
|
+
Eval:
|
14
|
+
Enabled: false
|
15
|
+
FormatString:
|
16
|
+
Enabled: false
|
17
|
+
HashSyntax:
|
18
|
+
Enabled: false
|
19
|
+
LineLength:
|
20
|
+
Enabled: false
|
21
|
+
MethodLength:
|
22
|
+
Enabled: false
|
23
|
+
PercentLiteralDelimiters:
|
24
|
+
Enabled: false
|
25
|
+
RegexpLiteral:
|
26
|
+
Enabled: false
|
27
|
+
SignalException:
|
28
|
+
Enabled: false
|
29
|
+
SingleSpaceBeforeFirstArg:
|
30
|
+
Enabled: false
|
31
|
+
SpaceInsideBrackets:
|
32
|
+
Enabled: false
|
33
|
+
SpaceInsideParens:
|
34
|
+
Enabled: false
|
35
|
+
StringLiterals:
|
36
|
+
Enabled: false
|
37
|
+
TrailingComma:
|
38
|
+
EnforcedStyleForMultiline: comma
|
data/.travis.yml
ADDED
data/CONTRIBUTING.md
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|