fog-digitalocean 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.document +3 -0
  4. data/.gitignore +30 -0
  5. data/.irbrc +82 -0
  6. data/.rubocop.yml +20 -0
  7. data/.rubocop_todo.yml +606 -0
  8. data/.travis.yml +35 -0
  9. data/CHANGELOG.md +3 -0
  10. data/CONTRIBUTING.md +276 -0
  11. data/CONTRIBUTORS.md +898 -0
  12. data/Gemfile +5 -0
  13. data/LICENSE.md +20 -0
  14. data/README.md +130 -0
  15. data/RELEASE.md +40 -0
  16. data/Rakefile +12 -0
  17. data/benchs/each_provider.sh +6 -0
  18. data/benchs/each_service.sh +6 -0
  19. data/benchs/fog_vs.rb +106 -0
  20. data/benchs/load_times.rb +37 -0
  21. data/benchs/params.rb +43 -0
  22. data/benchs/parse_vs_push.rb +67 -0
  23. data/bin/fog +78 -0
  24. data/fog-digitalocean.gemspec +61 -0
  25. data/gemfiles/Gemfile-edge +14 -0
  26. data/lib/fog/digitalocean.rb +1 -0
  27. data/lib/fog/digitalocean/CHANGELOG.md +6 -0
  28. data/lib/fog/digitalocean/compute.rb +109 -0
  29. data/lib/fog/digitalocean/core.rb +9 -0
  30. data/lib/fog/digitalocean/examples/getting_started.md +123 -0
  31. data/lib/fog/digitalocean/models/compute/flavor.rb +17 -0
  32. data/lib/fog/digitalocean/models/compute/flavors.rb +21 -0
  33. data/lib/fog/digitalocean/models/compute/image.rb +25 -0
  34. data/lib/fog/digitalocean/models/compute/images.rb +42 -0
  35. data/lib/fog/digitalocean/models/compute/region.rb +13 -0
  36. data/lib/fog/digitalocean/models/compute/regions.rb +21 -0
  37. data/lib/fog/digitalocean/models/compute/server.rb +170 -0
  38. data/lib/fog/digitalocean/models/compute/servers.rb +43 -0
  39. data/lib/fog/digitalocean/models/compute/ssh_key.rb +31 -0
  40. data/lib/fog/digitalocean/models/compute/ssh_keys.rb +40 -0
  41. data/lib/fog/digitalocean/models/paging_collection.rb +42 -0
  42. data/lib/fog/digitalocean/requests/compute/change_kernel.rb +44 -0
  43. data/lib/fog/digitalocean/requests/compute/convert_to_snapshot.rb +44 -0
  44. data/lib/fog/digitalocean/requests/compute/create_server.rb +93 -0
  45. data/lib/fog/digitalocean/requests/compute/create_ssh_key.rb +49 -0
  46. data/lib/fog/digitalocean/requests/compute/delete_ssh_key.rb +32 -0
  47. data/lib/fog/digitalocean/requests/compute/destroy_server.rb +35 -0
  48. data/lib/fog/digitalocean/requests/compute/disable_backups.rb +45 -0
  49. data/lib/fog/digitalocean/requests/compute/enable_ipv6.rb +44 -0
  50. data/lib/fog/digitalocean/requests/compute/enable_private_networking.rb +44 -0
  51. data/lib/fog/digitalocean/requests/compute/get_droplet_action.rb +36 -0
  52. data/lib/fog/digitalocean/requests/compute/get_image_details.rb +42 -0
  53. data/lib/fog/digitalocean/requests/compute/get_server_details.rb +84 -0
  54. data/lib/fog/digitalocean/requests/compute/get_ssh_key.rb +34 -0
  55. data/lib/fog/digitalocean/requests/compute/list_droplet_actions.rb +38 -0
  56. data/lib/fog/digitalocean/requests/compute/list_flavors.rb +132 -0
  57. data/lib/fog/digitalocean/requests/compute/list_images.rb +51 -0
  58. data/lib/fog/digitalocean/requests/compute/list_regions.rb +95 -0
  59. data/lib/fog/digitalocean/requests/compute/list_servers.rb +33 -0
  60. data/lib/fog/digitalocean/requests/compute/list_ssh_keys.rb +41 -0
  61. data/lib/fog/digitalocean/requests/compute/password_reset.rb +44 -0
  62. data/lib/fog/digitalocean/requests/compute/power_cycle.rb +44 -0
  63. data/lib/fog/digitalocean/requests/compute/power_off.rb +44 -0
  64. data/lib/fog/digitalocean/requests/compute/power_on.rb +44 -0
  65. data/lib/fog/digitalocean/requests/compute/reboot_server.rb +44 -0
  66. data/lib/fog/digitalocean/requests/compute/rebuild.rb +44 -0
  67. data/lib/fog/digitalocean/requests/compute/rename.rb +44 -0
  68. data/lib/fog/digitalocean/requests/compute/resize.rb +48 -0
  69. data/lib/fog/digitalocean/requests/compute/restore.rb +44 -0
  70. data/lib/fog/digitalocean/requests/compute/shutdown.rb +44 -0
  71. data/lib/fog/digitalocean/requests/compute/snapshot.rb +44 -0
  72. data/lib/fog/digitalocean/requests/compute/transfer_image.rb +44 -0
  73. data/lib/fog/digitalocean/requests/compute/update_ssh_key.rb +46 -0
  74. data/lib/fog/digitalocean/requests/compute/upgrade.rb +44 -0
  75. data/lib/fog/digitalocean/service.rb +51 -0
  76. data/lib/fog/digitalocean/version.rb +5 -0
  77. data/spec/fog/account_spec.rb +14 -0
  78. data/spec/fog/billing_spec.rb +14 -0
  79. data/spec/fog/bin/atmos_spec.rb +33 -0
  80. data/spec/fog/bin/aws_spec.rb +98 -0
  81. data/spec/fog/bin/baremetalcloud_spec.rb +33 -0
  82. data/spec/fog/bin/bluebox_spec.rb +55 -0
  83. data/spec/fog/bin/brightbox_spec.rb +30 -0
  84. data/spec/fog/bin/clodo_spec.rb +9 -0
  85. data/spec/fog/bin/cloudsigma_spec.rb +9 -0
  86. data/spec/fog/bin/cloudstack_spec.rb +9 -0
  87. data/spec/fog/bin/digitalocean_spec.rb +9 -0
  88. data/spec/fog/bin/dnsimple_spec.rb +9 -0
  89. data/spec/fog/bin/dnsmadeeasy_spec.rb +9 -0
  90. data/spec/fog/bin/dreamhost_spec.rb +9 -0
  91. data/spec/fog/bin/dynect_spec.rb +9 -0
  92. data/spec/fog/bin/ecloud_spec.rb +10 -0
  93. data/spec/fog/bin/fogdocker_spec.rb +10 -0
  94. data/spec/fog/bin/glesys_spec.rb +10 -0
  95. data/spec/fog/bin/gogrid_spec.rb +10 -0
  96. data/spec/fog/bin/google_spec.rb +10 -0
  97. data/spec/fog/bin/ibm_spec.rb +10 -0
  98. data/spec/fog/bin/internetarchive_spec.rb +10 -0
  99. data/spec/fog/bin/joyent_spec.rb +10 -0
  100. data/spec/fog/bin/linode_spec.rb +10 -0
  101. data/spec/fog/bin/local_spec.rb +10 -0
  102. data/spec/fog/bin/ninefold_spec.rb +10 -0
  103. data/spec/fog/bin/opennebula_spec.rb +10 -0
  104. data/spec/fog/bin/openstack_spec.rb +10 -0
  105. data/spec/fog/bin/openvz_spec.rb +10 -0
  106. data/spec/fog/bin/ovirt_spec.rb +10 -0
  107. data/spec/fog/bin/powerdns_spec.rb +9 -0
  108. data/spec/fog/bin/profitbricks_spec.rb +10 -0
  109. data/spec/fog/bin/rackspace_spec.rb +10 -0
  110. data/spec/fog/bin/rage4_spec.rb +10 -0
  111. data/spec/fog/bin/riakcs_spec.rb +10 -0
  112. data/spec/fog/bin/sakuracloud_spec.rb +10 -0
  113. data/spec/fog/bin/serverlove_spec.rb +10 -0
  114. data/spec/fog/bin/softlayer_spec.rb +10 -0
  115. data/spec/fog/bin/stormondemand_spec.rb +10 -0
  116. data/spec/fog/bin/vcloud_spec.rb +10 -0
  117. data/spec/fog/bin/vclouddirector_spec.rb +10 -0
  118. data/spec/fog/bin/vmfusion_spec.rb +10 -0
  119. data/spec/fog/bin/voxel_spec.rb +10 -0
  120. data/spec/fog/bin/vsphere_spec.rb +10 -0
  121. data/spec/fog/bin/xenserver_spec.rb +10 -0
  122. data/spec/fog/bin/zerigo_spec.rb +10 -0
  123. data/spec/fog/bin_spec.rb +161 -0
  124. data/spec/fog/cdn_spec.rb +14 -0
  125. data/spec/fog/compute_spec.rb +19 -0
  126. data/spec/fog/dns_spec.rb +19 -0
  127. data/spec/fog/identity_spec.rb +14 -0
  128. data/spec/fog/image_spec.rb +14 -0
  129. data/spec/fog/metering_spec.rb +14 -0
  130. data/spec/fog/monitoring_spec.rb +14 -0
  131. data/spec/fog/network_spec.rb +14 -0
  132. data/spec/fog/orchestration_spec.rb +14 -0
  133. data/spec/fog/storage_spec.rb +14 -0
  134. data/spec/fog/support_spec.rb +14 -0
  135. data/spec/fog/volume_spec.rb +14 -0
  136. data/spec/fog/vpn_spec.rb +14 -0
  137. data/spec/fog/xml/connection_spec.rb +33 -0
  138. data/spec/helpers/bin.rb +34 -0
  139. data/spec/spec_helper.rb +18 -0
  140. data/tests/digitalocean/helper.rb +56 -0
  141. data/tests/digitalocean/requests/compute/list_flavors_tests.rb +25 -0
  142. data/tests/digitalocean/requests/compute/list_images_tests.rb +25 -0
  143. data/tests/digitalocean/requests/compute/list_regions_tests.rb +21 -0
  144. data/tests/digitalocean/requests/compute/server_tests.rb +77 -0
  145. data/tests/digitalocean/requests/compute_v2/list_ssh_keys_tests.rb +20 -0
  146. data/tests/helper.rb +25 -0
  147. data/tests/helpers/format_helper.rb +100 -0
  148. data/tests/helpers/mock_helper.rb +14 -0
  149. data/tests/helpers/succeeds_helper.rb +10 -0
  150. data/tests/lorem.txt +1 -0
  151. data/tests/watchr.rb +22 -0
  152. metadata +428 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e0d1f0a2b72384d646324f601ac5d312e6eee474
4
+ data.tar.gz: 60140fa5a57daa971f1b7c7bd6d9b357f21abbf9
5
+ SHA512:
6
+ metadata.gz: 52d6d1c02d91a16f6e423d380e687bc65d643bcc5db2ca3e46ce0795691e886f0af70f6585f33f36433720c9889f17ec6f6a4de869b2bbd4f33a9dec9ca3cce1
7
+ data.tar.gz: 6168e02e92c371ec028ce5bd69ed7d75707852623263cf1f55b23cbc0287e22b05530045f39e33c766f48f2f606a4983d045616818ab1309b777713bed2e5721
@@ -0,0 +1 @@
1
+ repo_token: YvP9pkGjRYMCcpWtfBBMVDxWvyAgDhNnL
@@ -0,0 +1,3 @@
1
+ README.md
2
+ lib/**/*.rb
3
+ bin/*
@@ -0,0 +1,30 @@
1
+ *~
2
+ *.gem
3
+ *.rbc
4
+ *.sw?
5
+ .rbenv
6
+ .rvmrc
7
+ .ruby-gemset
8
+ .ruby-version
9
+ .bundle
10
+ .DS_Store
11
+ .idea
12
+ .yardoc
13
+ /tests/.fog
14
+ bin/*
15
+ !bin/fog
16
+ .fog
17
+ coverage
18
+ doc/*
19
+ docs/_site/*
20
+ docs/about/supported_services.markdown
21
+ Gemfile.lock
22
+ gemfiles/*.lock
23
+ yardoc
24
+ pkg
25
+ spec/credentials.yml
26
+ vendor/*
27
+ tags
28
+ tests/digitalocean/fixtures/
29
+
30
+ providers/*/doc
data/.irbrc ADDED
@@ -0,0 +1,82 @@
1
+ ## This is primarily used for easier testing and development or
2
+ # usage of Fog.
3
+ #
4
+ # How to use:
5
+ # 1. Add this at the end of your `.irbrc` in your home directory.
6
+ #
7
+ # @working_directory = Dir.pwd
8
+ # @local_irbrc = File.join(@working_directory, '.irbrc')
9
+ #
10
+ # if @working_directory != ENV['HOME']
11
+ # load @local_irbrc if File.exists?(@local_irbrc)
12
+ # end
13
+ #
14
+ # remove_instance_variable(:@working_directory)
15
+ # remove_instance_variable(:@local_irbrc)
16
+ #
17
+ # 2. Inside the Fog execute `bundle exec irb`
18
+ #
19
+
20
+ require 'fog'
21
+
22
+ class ConnectionManager < Hash
23
+ def [](key)
24
+ $connection_manager_previous_key = key
25
+ super(key)
26
+ end
27
+
28
+ def []=(key, value)
29
+ $connection_manager_previous_key = key
30
+ super(key, value)
31
+ end
32
+ end
33
+
34
+ def connections
35
+ return @connections if @connections
36
+ @connections = ConnectionManager.new
37
+ end
38
+
39
+ def connection
40
+ connections[$connection_manager_previous_key]
41
+ end
42
+
43
+ def connect_openstack(username, password, tenant = nil, url = 'http://192.168.27.100:35357/')
44
+ parameters = {
45
+ :provider => 'openstack',
46
+ :openstack_api_key => password,
47
+ :openstack_username => username,
48
+ :openstack_auth_url => "#{url}v2.0/tokens"
49
+ }
50
+
51
+ parameters.merge!(:openstack_tenant => tenant) if tenant
52
+
53
+ key = username.to_sym
54
+ set_service(key, Fog::Identity, parameters)
55
+ set_service(key, Fog::Compute, parameters)
56
+ set_service(key, Fog::Volume, parameters)
57
+ set_service(key, Fog::Image, parameters)
58
+ end
59
+
60
+ def connect(parameters)
61
+ connections_count = connections.count
62
+ connections[connections_count] = Hash.new
63
+
64
+ set_service(connections_count, Fog::Identity, parameters)
65
+ set_service(connections_count, Fog::Compute , parameters)
66
+ set_service(connections_count, Fog::Storage , parameters)
67
+ set_service(connections_count, Fog::Volume , parameters)
68
+ set_service(connections_count, Fog::Image , parameters)
69
+ set_service(connections_count, Fog::DNS , parameters)
70
+ set_service(connections_count, Fog::CDN , parameters)
71
+ connection
72
+ end
73
+
74
+ def set_service(connections_count, type, parameters)
75
+ service_symbol = type.to_s.split('::').last.downcase.to_sym
76
+
77
+ connections[connections_count].merge!({
78
+ service_symbol => type.new(parameters)
79
+ })
80
+ rescue
81
+ # Service not available
82
+ end
@@ -0,0 +1,20 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ HashSyntax:
4
+ EnforcedStyle: hash_rockets
5
+
6
+ LineLength:
7
+ Max: 100
8
+ Enabled: false
9
+
10
+ StringLiterals:
11
+ EnforcedStyle: double_quotes
12
+
13
+ Encoding:
14
+ Description: 'Use UTF-8 as the source file encoding.'
15
+ Enabled: false
16
+
17
+ SignalException:
18
+ Description: 'Do not enforce use of fail when raising exceptions.'
19
+ # Valid values are: semantic, only_raise and only_fail
20
+ EnforcedStyle: only_raise
@@ -0,0 +1,606 @@
1
+ # This configuration was generated by `rubocop --auto-gen-config`
2
+ # on 2014-05-26 15:23:01 +0100 using RuboCop version 0.22.0.
3
+ # The point is for the user to remove these configuration records
4
+ # one by one as the offenses are removed from the code base.
5
+ # Note that changes in the inspected code, or installation of new
6
+ # versions of RuboCop, may require this file to be generated again.
7
+
8
+ # Offense count: 85
9
+ AccessorMethodName:
10
+ Enabled: false
11
+
12
+ # Offense count: 139
13
+ # Cop supports --auto-correct.
14
+ AlignArray:
15
+ Enabled: false
16
+
17
+ # Offense count: 449
18
+ # Cop supports --auto-correct.
19
+ # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
20
+ AlignHash:
21
+ Enabled: false
22
+
23
+ # Offense count: 104
24
+ # Cop supports --auto-correct.
25
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
26
+ AlignParameters:
27
+ Enabled: false
28
+
29
+ # Offense count: 3
30
+ AmbiguousOperator:
31
+ Enabled: false
32
+
33
+ # Offense count: 4
34
+ AmbiguousRegexpLiteral:
35
+ Enabled: false
36
+
37
+ # Offense count: 221
38
+ # Cop supports --auto-correct.
39
+ AndOr:
40
+ Enabled: false
41
+
42
+ # Offense count: 1
43
+ ArrayJoin:
44
+ Enabled: false
45
+
46
+ # Offense count: 9
47
+ AsciiComments:
48
+ Enabled: false
49
+
50
+ # Offense count: 594
51
+ # Configuration parameters: AllowSafeAssignment.
52
+ AssignmentInCondition:
53
+ Enabled: false
54
+
55
+ # Offense count: 3
56
+ # Cop supports --auto-correct.
57
+ Attr:
58
+ Enabled: false
59
+
60
+ # Offense count: 35
61
+ BlockAlignment:
62
+ Enabled: false
63
+
64
+ # Offense count: 56
65
+ BlockNesting:
66
+ Max: 7
67
+
68
+ # Offense count: 230
69
+ # Cop supports --auto-correct.
70
+ Blocks:
71
+ Enabled: false
72
+
73
+ # Offense count: 1366
74
+ # Cop supports --auto-correct.
75
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
76
+ BracesAroundHashParameters:
77
+ Enabled: false
78
+
79
+ # Offense count: 9
80
+ CaseEquality:
81
+ Enabled: false
82
+
83
+ # Offense count: 291
84
+ # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
85
+ CaseIndentation:
86
+ Enabled: false
87
+
88
+ # Offense count: 2
89
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
90
+ ClassAndModuleChildren:
91
+ Enabled: false
92
+
93
+ # Offense count: 99
94
+ # Configuration parameters: CountComments.
95
+ ClassLength:
96
+ Max: 1131
97
+
98
+ # Offense count: 46
99
+ ClassVars:
100
+ Enabled: false
101
+
102
+ # Offense count: 41
103
+ # Cop supports --auto-correct.
104
+ ColonMethodCall:
105
+ Enabled: false
106
+
107
+ # Offense count: 33
108
+ # Configuration parameters: Keywords.
109
+ CommentAnnotation:
110
+ Enabled: false
111
+
112
+ # Offense count: 82
113
+ # Cop supports --auto-correct.
114
+ CommentIndentation:
115
+ Enabled: false
116
+
117
+ # Offense count: 1
118
+ ConstantName:
119
+ Enabled: false
120
+
121
+ # Offense count: 450
122
+ CyclomaticComplexity:
123
+ Max: 46
124
+
125
+ # Offense count: 29
126
+ # Cop supports --auto-correct.
127
+ DefWithParentheses:
128
+ Enabled: false
129
+
130
+ # Offense count: 6310
131
+ Documentation:
132
+ Enabled: false
133
+
134
+ # Offense count: 42
135
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
136
+ DotPosition:
137
+ Enabled: false
138
+
139
+ # Offense count: 34
140
+ DoubleNegation:
141
+ Enabled: false
142
+
143
+ # Offense count: 16
144
+ EachWithObject:
145
+ Enabled: false
146
+
147
+ # Offense count: 2
148
+ ElseLayout:
149
+ Enabled: false
150
+
151
+ # Offense count: 13
152
+ # Cop supports --auto-correct.
153
+ EmptyLines:
154
+ Enabled: false
155
+
156
+ # Offense count: 64
157
+ EmptyLinesAroundAccessModifier:
158
+ Enabled: false
159
+
160
+ # Offense count: 4
161
+ # Cop supports --auto-correct.
162
+ EmptyLinesAroundBody:
163
+ Enabled: false
164
+
165
+ # Offense count: 40
166
+ # Cop supports --auto-correct.
167
+ EmptyLiteral:
168
+ Enabled: false
169
+
170
+ # Offense count: 101
171
+ # Configuration parameters: AlignWith, SupportedStyles.
172
+ EndAlignment:
173
+ Enabled: false
174
+
175
+ # Offense count: 8
176
+ Eval:
177
+ Enabled: false
178
+
179
+ # Offense count: 1
180
+ EvenOdd:
181
+ Enabled: false
182
+
183
+ # Offense count: 7
184
+ # Configuration parameters: Exclude.
185
+ FileName:
186
+ Enabled: false
187
+
188
+ # Offense count: 175
189
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
190
+ For:
191
+ Enabled: false
192
+
193
+ # Offense count: 16
194
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
195
+ FormatString:
196
+ Enabled: false
197
+
198
+ # Offense count: 143
199
+ # Configuration parameters: MinBodyLength.
200
+ GuardClause:
201
+ Enabled: false
202
+
203
+ # Offense count: 27
204
+ HandleExceptions:
205
+ Enabled: false
206
+
207
+ # Offense count: 21
208
+ # Cop supports --auto-correct.
209
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
210
+ HashSyntax:
211
+ Enabled: false
212
+
213
+ # Offense count: 486
214
+ # Configuration parameters: MaxLineLength.
215
+ IfUnlessModifier:
216
+ Enabled: false
217
+
218
+ # Offense count: 54
219
+ # Cop supports --auto-correct.
220
+ IndentArray:
221
+ Enabled: false
222
+
223
+ # Offense count: 990
224
+ # Cop supports --auto-correct.
225
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
226
+ IndentHash:
227
+ Enabled: false
228
+
229
+ # Offense count: 285
230
+ # Cop supports --auto-correct.
231
+ IndentationConsistency:
232
+ Enabled: false
233
+
234
+ # Offense count: 310
235
+ # Cop supports --auto-correct.
236
+ IndentationWidth:
237
+ Enabled: false
238
+
239
+ # Offense count: 7
240
+ Lambda:
241
+ Enabled: false
242
+
243
+ # Offense count: 655
244
+ # Cop supports --auto-correct.
245
+ LeadingCommentSpace:
246
+ Enabled: false
247
+
248
+ # Offense count: 10
249
+ # Cop supports --auto-correct.
250
+ LineEndConcatenation:
251
+ Enabled: false
252
+
253
+ # Offense count: 6
254
+ Loop:
255
+ Enabled: false
256
+
257
+ # Offense count: 66
258
+ # Cop supports --auto-correct.
259
+ MethodCallParentheses:
260
+ Enabled: false
261
+
262
+ # Offense count: 87
263
+ # Cop supports --auto-correct.
264
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
265
+ MethodDefParentheses:
266
+ Enabled: false
267
+
268
+ # Offense count: 2036
269
+ # Configuration parameters: CountComments.
270
+ MethodLength:
271
+ Max: 1129
272
+
273
+ # Offense count: 13
274
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
275
+ MethodName:
276
+ Enabled: false
277
+
278
+ # Offense count: 21
279
+ MultilineBlockChain:
280
+ Enabled: false
281
+
282
+ # Offense count: 66
283
+ MultilineIfThen:
284
+ Enabled: false
285
+
286
+ # Offense count: 13
287
+ MultilineTernaryOperator:
288
+ Enabled: false
289
+
290
+ # Offense count: 85
291
+ # Cop supports --auto-correct.
292
+ NegatedIf:
293
+ Enabled: false
294
+
295
+ # Offense count: 2
296
+ # Cop supports --auto-correct.
297
+ NegatedWhile:
298
+ Enabled: false
299
+
300
+ # Offense count: 121
301
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
302
+ Next:
303
+ Enabled: false
304
+
305
+ # Offense count: 28
306
+ # Cop supports --auto-correct.
307
+ NilComparison:
308
+ Enabled: false
309
+
310
+ # Offense count: 89
311
+ # Cop supports --auto-correct.
312
+ # Configuration parameters: IncludeSemanticChanges.
313
+ NonNilCheck:
314
+ Enabled: false
315
+
316
+ # Offense count: 56
317
+ # Cop supports --auto-correct.
318
+ Not:
319
+ Enabled: false
320
+
321
+ # Offense count: 220
322
+ # Cop supports --auto-correct.
323
+ NumericLiterals:
324
+ MinDigits: 14
325
+
326
+ # Offense count: 3
327
+ OneLineConditional:
328
+ Enabled: false
329
+
330
+ # Offense count: 33
331
+ # Configuration parameters: CountKeywordArgs.
332
+ ParameterLists:
333
+ Max: 9
334
+
335
+ # Offense count: 63
336
+ # Cop supports --auto-correct.
337
+ # Configuration parameters: AllowSafeAssignment.
338
+ ParenthesesAroundCondition:
339
+ Enabled: false
340
+
341
+ # Offense count: 17
342
+ ParenthesesAsGroupedExpression:
343
+ Enabled: false
344
+
345
+ # Offense count: 189
346
+ # Cop supports --auto-correct.
347
+ # Configuration parameters: PreferredDelimiters.
348
+ PercentLiteralDelimiters:
349
+ Enabled: false
350
+
351
+ # Offense count: 24
352
+ # Cop supports --auto-correct.
353
+ PerlBackrefs:
354
+ Enabled: false
355
+
356
+ # Offense count: 8
357
+ # Configuration parameters: NamePrefixBlacklist.
358
+ PredicateName:
359
+ Enabled: false
360
+
361
+ # Offense count: 7
362
+ # Cop supports --auto-correct.
363
+ Proc:
364
+ Enabled: false
365
+
366
+ # Offense count: 640
367
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
368
+ RaiseArgs:
369
+ Enabled: false
370
+
371
+ # Offense count: 25
372
+ # Cop supports --auto-correct.
373
+ RedundantBegin:
374
+ Enabled: false
375
+
376
+ # Offense count: 4
377
+ RedundantException:
378
+ Enabled: false
379
+
380
+ # Offense count: 32
381
+ # Cop supports --auto-correct.
382
+ # Configuration parameters: AllowMultipleReturnValues.
383
+ RedundantReturn:
384
+ Enabled: false
385
+
386
+ # Offense count: 1939
387
+ # Cop supports --auto-correct.
388
+ RedundantSelf:
389
+ Enabled: false
390
+
391
+ # Offense count: 66
392
+ # Configuration parameters: MaxSlashes.
393
+ RegexpLiteral:
394
+ Enabled: false
395
+
396
+ # Offense count: 1
397
+ RequireParentheses:
398
+ Enabled: false
399
+
400
+ # Offense count: 5
401
+ # Cop supports --auto-correct.
402
+ RescueException:
403
+ Enabled: false
404
+
405
+ # Offense count: 52
406
+ RescueModifier:
407
+ Enabled: false
408
+
409
+ # Offense count: 29
410
+ SelfAssignment:
411
+ Enabled: false
412
+
413
+ # Offense count: 62
414
+ # Cop supports --auto-correct.
415
+ # Configuration parameters: AllowAsExpressionSeparator.
416
+ Semicolon:
417
+ Enabled: false
418
+
419
+ # Offense count: 78
420
+ ShadowingOuterLocalVariable:
421
+ Enabled: false
422
+
423
+ # Offense count: 2
424
+ # Cop supports --auto-correct.
425
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
426
+ SignalException:
427
+ Enabled: false
428
+
429
+ # Offense count: 10
430
+ # Configuration parameters: Methods.
431
+ SingleLineBlockParams:
432
+ Enabled: false
433
+
434
+ # Offense count: 9
435
+ # Cop supports --auto-correct.
436
+ # Configuration parameters: AllowIfMethodIsEmpty.
437
+ SingleLineMethods:
438
+ Enabled: false
439
+
440
+ # Offense count: 909
441
+ # Cop supports --auto-correct.
442
+ SingleSpaceBeforeFirstArg:
443
+ Enabled: false
444
+
445
+ # Offense count: 4
446
+ # Cop supports --auto-correct.
447
+ SpaceAfterColon:
448
+ Enabled: false
449
+
450
+ # Offense count: 581
451
+ # Cop supports --auto-correct.
452
+ SpaceAfterComma:
453
+ Enabled: false
454
+
455
+ # Offense count: 15
456
+ # Cop supports --auto-correct.
457
+ SpaceAfterControlKeyword:
458
+ Enabled: false
459
+
460
+ # Offense count: 1
461
+ # Cop supports --auto-correct.
462
+ SpaceAfterMethodName:
463
+ Enabled: false
464
+
465
+ # Offense count: 19
466
+ # Cop supports --auto-correct.
467
+ SpaceAfterNot:
468
+ Enabled: false
469
+
470
+ # Offense count: 1332
471
+ # Cop supports --auto-correct.
472
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
473
+ SpaceAroundEqualsInParameterDefault:
474
+ Enabled: false
475
+
476
+ # Offense count: 4362
477
+ # Cop supports --auto-correct.
478
+ SpaceAroundOperators:
479
+ Enabled: false
480
+
481
+ # Offense count: 441
482
+ # Cop supports --auto-correct.
483
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
484
+ SpaceBeforeBlockBraces:
485
+ Enabled: false
486
+
487
+ # Offense count: 11
488
+ # Cop supports --auto-correct.
489
+ SpaceBeforeComment:
490
+ Enabled: false
491
+
492
+ # Offense count: 19
493
+ SpaceBeforeFirstArg:
494
+ Enabled: false
495
+
496
+ # Offense count: 1946
497
+ # Cop supports --auto-correct.
498
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
499
+ SpaceInsideBlockBraces:
500
+ Enabled: false
501
+
502
+ # Offense count: 146
503
+ # Cop supports --auto-correct.
504
+ SpaceInsideBrackets:
505
+ Enabled: false
506
+
507
+ # Offense count: 6159
508
+ # Cop supports --auto-correct.
509
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
510
+ SpaceInsideHashLiteralBraces:
511
+ Enabled: false
512
+
513
+ # Offense count: 720
514
+ # Cop supports --auto-correct.
515
+ SpaceInsideParens:
516
+ Enabled: false
517
+
518
+ # Offense count: 3
519
+ # Cop supports --auto-correct.
520
+ SpecialGlobalVars:
521
+ Enabled: false
522
+
523
+ # Offense count: 91
524
+ # Cop supports --auto-correct.
525
+ StringConversionInInterpolation:
526
+ Enabled: false
527
+
528
+ # Offense count: 45608
529
+ # Cop supports --auto-correct.
530
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
531
+ StringLiterals:
532
+ Enabled: false
533
+
534
+ # Offense count: 197
535
+ Tab:
536
+ Enabled: false
537
+
538
+ # Offense count: 592
539
+ # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
540
+ TrailingComma:
541
+ Enabled: false
542
+
543
+ # Offense count: 125
544
+ # Cop supports --auto-correct.
545
+ # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist.
546
+ TrivialAccessors:
547
+ Enabled: false
548
+
549
+ # Offense count: 94
550
+ UnderscorePrefixedVariableName:
551
+ Enabled: false
552
+
553
+ # Offense count: 42
554
+ UnlessElse:
555
+ Enabled: false
556
+
557
+ # Offense count: 278
558
+ # Cop supports --auto-correct.
559
+ UnusedBlockArgument:
560
+ Enabled: false
561
+
562
+ # Offense count: 1010
563
+ # Cop supports --auto-correct.
564
+ UnusedMethodArgument:
565
+ Enabled: false
566
+
567
+ # Offense count: 6
568
+ UselessAccessModifier:
569
+ Enabled: false
570
+
571
+ # Offense count: 405
572
+ UselessAssignment:
573
+ Enabled: false
574
+
575
+ # Offense count: 3
576
+ UselessSetterCall:
577
+ Enabled: false
578
+
579
+ # Offense count: 13
580
+ # Cop supports --auto-correct.
581
+ VariableInterpolation:
582
+ Enabled: false
583
+
584
+ # Offense count: 29
585
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
586
+ VariableName:
587
+ Enabled: false
588
+
589
+ # Offense count: 23
590
+ Void:
591
+ Enabled: false
592
+
593
+ # Offense count: 6
594
+ # Cop supports --auto-correct.
595
+ WhileUntilDo:
596
+ Enabled: false
597
+
598
+ # Offense count: 1
599
+ # Configuration parameters: MaxLineLength.
600
+ WhileUntilModifier:
601
+ Enabled: false
602
+
603
+ # Offense count: 521
604
+ # Cop supports --auto-correct.
605
+ WordArray:
606
+ MinSize: 29