Browse files

Death to the Ruby file naming convention.

File names now have underscores.
  • Loading branch information...
1 parent 245eeeb commit 719bb668c287ced989cb3e4ffc373e761ed02601 @clonezone clonezone committed May 23, 2012
Showing with 73 additions and 73 deletions.
  1. +1 −1 bin/fig
  2. +1 −1 bin/fig-debug
  3. 0 lib/fig/{applicationconfiguration.rb → application_configuration.rb}
  4. 0 lib/fig/{atexit.rb → at_exit.rb}
  5. +1 −1 lib/fig/backtrace.rb
  6. +6 −6 lib/fig/command.rb
  7. 0 lib/fig/command/{coveragesupport.rb → coverage_support.rb}
  8. +2 −2 lib/fig/command/listing.rb
  9. +1 −1 lib/fig/command/{optionerror.rb → option_error.rb}
  10. +2 −2 lib/fig/command/options.rb
  11. +1 −1 lib/fig/command/{packageload.rb → package_load.rb}
  12. +1 −1 lib/fig/{configfileerror.rb → config_file_error.rb}
  13. +2 −2 lib/fig/environment.rb
  14. 0 lib/fig/{environmentvariables.rb → environment_variables.rb}
  15. +1 −1 lib/fig/{environmentvariables/caseinsensitive.rb → environment_variables/case_insensitive.rb}
  16. +1 −1 lib/fig/{environmentvariables/casesensitive.rb → environment_variables/case_sensitive.rb}
  17. +3 −3 lib/fig/figrc.rb
  18. +1 −1 lib/fig/grammar.treetop
  19. +1 −1 lib/fig/log4r/outputter.rb
  20. +1 −1 lib/fig/{log4rconfigerror.rb → log4r_config_error.rb}
  21. +2 −2 lib/fig/logging.rb
  22. +1 −1 lib/fig/{networkerror.rb → network_error.rb}
  23. +2 −2 lib/fig/{nosuchpackageconfigerror.rb → no_such_package_config_error.rb}
  24. 0 lib/fig/{notfounderror.rb → not_found_error.rb}
  25. +5 −5 lib/fig/{operatingsystem.rb → operating_system.rb}
  26. +2 −2 lib/fig/package.rb
  27. 0 lib/fig/{packagecache.rb → package_cache.rb}
  28. +1 −1 lib/fig/{packagedescriptor.rb → package_descriptor.rb}
  29. +1 −1 lib/fig/{packagedescriptorparseerror.rb → package_descriptor_parse_error.rb}
  30. +1 −1 lib/fig/{packageparseerror.rb → package_parse_error.rb}
  31. +4 −4 lib/fig/parser.rb
  32. +1 −1 lib/fig/{parserpackagebuildstate.rb → parser_package_build_state.rb}
  33. +6 −6 lib/fig/repository.rb
  34. +1 −1 lib/fig/{repositoryerror.rb → repository_error.rb}
  35. +1 −1 lib/fig/statement/include.rb
  36. +1 −1 lib/fig/statement/override.rb
  37. +1 −1 lib/fig/{urlaccesserror.rb → url_access_error.rb}
  38. 0 lib/fig/{userinputerror.rb → user_input_error.rb}
  39. +2 −2 lib/fig/{workingdirectorymaintainer.rb → working_directory_maintainer.rb}
  40. 0 lib/fig/{workingdirectorymetadata.rb → working_directory_metadata.rb}
  41. +1 −1 spec/{applicationconfiguration_spec.rb → application_configuration_spec.rb}
  42. +1 −1 spec/command/publishing_retrieval_spec.rb
  43. +1 −1 spec/command/publishing_spec.rb
  44. +1 −1 spec/{commandoptions_spec.rb → command_options_spec.rb}
  45. +2 −2 spec/environment_spec.rb
  46. +2 −2 spec/environment_variables_spec.rb
  47. +1 −1 spec/figrc_spec.rb
  48. +3 −3 spec/parser_spec.rb
  49. +2 −2 spec/repository_spec.rb
  50. +1 −1 spec/{workingdirectorymaintainer_spec.rb → working_directory_maintainer_spec.rb}
View
2 bin/fig
@@ -3,7 +3,7 @@
if ENV['FIG_COVERAGE']
require File.expand_path(
File.join(
- File.dirname(__FILE__), %w< .. lib fig command coveragesupport.rb >
+ File.dirname(__FILE__), %w< .. lib fig command coverage_support.rb >
)
)
end
View
2 bin/fig-debug
@@ -3,7 +3,7 @@
if ENV['FIG_COVERAGE']
require File.expand_path(
File.join(
- File.dirname(__FILE__), %w< .. lib fig command coveragesupport.rb >
+ File.dirname(__FILE__), %w< .. lib fig command coverage_support.rb >
)
)
end
View
0 lib/fig/applicationconfiguration.rb → lib/fig/application_configuration.rb
File renamed without changes.
View
0 lib/fig/atexit.rb → lib/fig/at_exit.rb
File renamed without changes.
View
2 lib/fig/backtrace.rb
@@ -1,4 +1,4 @@
-require 'fig/repositoryerror'
+require 'fig/repository_error'
module Fig; end
View
12 lib/fig/command.rb
@@ -2,19 +2,19 @@
require 'net/ftp'
require 'set'
-require 'fig/atexit'
+require 'fig/at_exit'
require 'fig/command/options'
require 'fig/environment'
require 'fig/figrc'
require 'fig/logging'
-require 'fig/operatingsystem'
+require 'fig/operating_system'
require 'fig/package'
require 'fig/parser'
require 'fig/repository'
-require 'fig/repositoryerror'
+require 'fig/repository_error'
require 'fig/statement/configuration'
-require 'fig/userinputerror'
-require 'fig/workingdirectorymaintainer'
+require 'fig/user_input_error'
+require 'fig/working_directory_maintainer'
# The following are a break out of parts of this class simply to keep the file
# size down.
@@ -24,7 +24,7 @@
# You will need to look in this file for any stuff related to loading the
# base Package object.
-require 'fig/command/packageload'
+require 'fig/command/package_load'
module Fig; end
View
0 lib/fig/command/coveragesupport.rb → lib/fig/command/coverage_support.rb
File renamed without changes.
View
4 lib/fig/command/listing.rb
@@ -2,8 +2,8 @@
require 'fig/backtrace'
require 'fig/package'
-require 'fig/packagedescriptor'
-require 'fig/userinputerror'
+require 'fig/package_descriptor'
+require 'fig/user_input_error'
module Fig; end
class Fig::Command; end
View
2 lib/fig/command/optionerror.rb → lib/fig/command/option_error.rb
@@ -1,4 +1,4 @@
-require 'fig/userinputerror'
+require 'fig/user_input_error'
module Fig; end
class Fig::Command; end
View
4 lib/fig/command/options.rb
@@ -1,8 +1,8 @@
require 'optparse'
-require 'fig/command/optionerror'
+require 'fig/command/option_error'
require 'fig/package'
-require 'fig/packagedescriptor'
+require 'fig/package_descriptor'
require 'fig/statement/archive'
require 'fig/statement/include'
require 'fig/statement/path'
View
2 lib/fig/command/packageload.rb → lib/fig/command/package_load.rb
@@ -1,5 +1,5 @@
require 'fig/package'
-require 'fig/packagedescriptor'
+require 'fig/package_descriptor'
require 'fig/parser'
module Fig; end
View
2 lib/fig/configfileerror.rb → lib/fig/config_file_error.rb
@@ -1,4 +1,4 @@
-require 'fig/userinputerror'
+require 'fig/user_input_error'
module Fig
# Could not determine some kind of information from a configuration file,
View
4 lib/fig/environment.rb
@@ -3,12 +3,12 @@
require 'fig/backtrace'
require 'fig/logging'
require 'fig/package'
-require 'fig/repositoryerror'
+require 'fig/repository_error'
require 'fig/statement/command'
require 'fig/statement/include'
require 'fig/statement/path'
require 'fig/statement/set'
-require 'fig/userinputerror'
+require 'fig/user_input_error'
module Fig; end
View
0 lib/fig/environmentvariables.rb → lib/fig/environment_variables.rb
File renamed without changes.
View
2 ...g/environmentvariables/caseinsensitive.rb → ...environment_variables/case_insensitive.rb
@@ -1,4 +1,4 @@
-require 'fig/environmentvariables'
+require 'fig/environment_variables'
module Fig; end;
module EnvironmentVariables; end
View
2 ...fig/environmentvariables/casesensitive.rb → ...g/environment_variables/case_sensitive.rb
@@ -1,4 +1,4 @@
-require 'fig/environmentvariables'
+require 'fig/environment_variables'
module Fig; end;
module EnvironmentVariables; end
View
6 lib/fig/figrc.rb
@@ -1,8 +1,8 @@
require 'json'
-require 'fig/applicationconfiguration'
-require 'fig/configfileerror'
-require 'fig/operatingsystem'
+require 'fig/application_configuration'
+require 'fig/config_file_error'
+require 'fig/operating_system'
require 'fig/repository'
module Fig; end
View
2 lib/fig/grammar.treetop
@@ -1,7 +1,7 @@
# Treetop (http://treetop.rubyforge.org/) grammar for package definitions.
require 'fig/package'
-require 'fig/packagedescriptor'
+require 'fig/package_descriptor'
require 'fig/parser'
require 'fig/statement/archive'
require 'fig/statement/command'
View
2 lib/fig/log4r/outputter.rb
@@ -3,7 +3,7 @@
require 'log4r/outputter/iooutputter'
require 'fig/logging/colorizable'
-require 'fig/operatingsystem'
+require 'fig/operating_system'
module Fig; end
module Fig::Log4r; end
View
2 lib/fig/log4rconfigerror.rb → lib/fig/log4r_config_error.rb
@@ -1,4 +1,4 @@
-require 'fig/userinputerror'
+require 'fig/user_input_error'
module Fig
# A problem with configuring Log4r.
View
4 lib/fig/logging.rb
@@ -2,8 +2,8 @@
require 'log4r/configurator'
require 'log4r/yamlconfigurator'
-require 'fig/configfileerror'
-require 'fig/log4rconfigerror'
+require 'fig/config_file_error'
+require 'fig/log4r_config_error'
require 'fig/log4r/outputter'
module Fig; end
View
2 lib/fig/networkerror.rb → lib/fig/network_error.rb
@@ -1,4 +1,4 @@
-require 'fig/userinputerror'
+require 'fig/user_input_error'
module Fig
# A problem with file transfer over the network.
View
4 lib/fig/nosuchpackageconfigerror.rb → lib/fig/no_such_package_config_error.rb
@@ -1,5 +1,5 @@
-require 'fig/packagedescriptor'
-require 'fig/userinputerror'
+require 'fig/package_descriptor'
+require 'fig/user_input_error'
module Fig
# User specified a configuration for a Package that does not exist.
View
0 lib/fig/notfounderror.rb → lib/fig/not_found_error.rb
File renamed without changes.
View
10 lib/fig/operatingsystem.rb → lib/fig/operating_system.rb
@@ -13,12 +13,12 @@
require 'highline/import'
-require 'fig/atexit'
-require 'fig/environmentvariables/caseinsensitive'
-require 'fig/environmentvariables/casesensitive'
+require 'fig/at_exit'
+require 'fig/environment_variables/case_insensitive'
+require 'fig/environment_variables/case_sensitive'
require 'fig/logging'
-require 'fig/networkerror'
-require 'fig/notfounderror'
+require 'fig/network_error'
+require 'fig/not_found_error'
module Fig; end
View
4 lib/fig/package.rb
@@ -1,6 +1,6 @@
require 'fig/logging'
-require 'fig/nosuchpackageconfigerror'
-require 'fig/packagedescriptor'
+require 'fig/no_such_package_config_error'
+require 'fig/package_descriptor'
require 'fig/statement/archive'
require 'fig/statement/configuration'
require 'fig/statement/resource'
View
0 lib/fig/packagecache.rb → lib/fig/package_cache.rb
File renamed without changes.
View
2 lib/fig/packagedescriptor.rb → lib/fig/package_descriptor.rb
@@ -1,4 +1,4 @@
-require 'fig/packagedescriptorparseerror'
+require 'fig/package_descriptor_parse_error'
module Fig; end
View
2 lib/fig/packagedescriptorparseerror.rb → lib/fig/package_descriptor_parse_error.rb
@@ -1,4 +1,4 @@
-require 'fig/userinputerror'
+require 'fig/user_input_error'
module Fig
# Could not turn a string into a PackageDescriptor.
View
2 lib/fig/packageparseerror.rb → lib/fig/package_parse_error.rb
@@ -1,4 +1,4 @@
-require 'fig/userinputerror'
+require 'fig/user_input_error'
module Fig
# An issue with parsing a .fig file.
View
8 lib/fig/parser.rb
@@ -2,12 +2,12 @@
require 'fig/grammar' # this is grammar.treetop, not grammar.rb.
require 'fig/logging'
-require 'fig/packageparseerror'
-require 'fig/parserpackagebuildstate'
+require 'fig/package_parse_error'
+require 'fig/parser_package_build_state'
require 'fig/repository'
require 'fig/statement'
-require 'fig/urlaccesserror'
-require 'fig/userinputerror'
+require 'fig/url_access_error'
+require 'fig/user_input_error'
module Fig; end
View
2 lib/fig/parserpackagebuildstate.rb → lib/fig/parser_package_build_state.rb
@@ -1,4 +1,4 @@
-require 'fig/packageparseerror'
+require 'fig/package_parse_error'
require 'fig/statement'
module Fig; end
View
12 lib/fig/repository.rb
@@ -3,17 +3,17 @@
require 'sys/admin'
require 'tmpdir'
-require 'fig/atexit'
+require 'fig/at_exit'
require 'fig/command'
require 'fig/logging'
-require 'fig/notfounderror'
-require 'fig/packagecache'
-require 'fig/packagedescriptor'
+require 'fig/not_found_error'
+require 'fig/package_cache'
+require 'fig/package_descriptor'
require 'fig/parser'
-require 'fig/repositoryerror'
+require 'fig/repository_error'
require 'fig/statement/archive'
require 'fig/statement/resource'
-require 'fig/urlaccesserror'
+require 'fig/url_access_error'
module Fig; end
View
2 lib/fig/repositoryerror.rb → lib/fig/repository_error.rb
@@ -1,4 +1,4 @@
-require 'fig/userinputerror'
+require 'fig/user_input_error'
module Fig
# A problem within/related to a repository.
View
2 lib/fig/statement/include.rb
@@ -1,4 +1,4 @@
-require 'fig/packagedescriptor'
+require 'fig/package_descriptor'
require 'fig/statement'
module Fig; end
View
2 lib/fig/statement/override.rb
@@ -1,4 +1,4 @@
-require 'fig/packagedescriptor'
+require 'fig/package_descriptor'
require 'fig/statement'
module Fig; end
View
2 lib/fig/urlaccesserror.rb → lib/fig/url_access_error.rb
@@ -1,4 +1,4 @@
-require 'fig/userinputerror'
+require 'fig/user_input_error'
module Fig
# Configuration attempted to specify a URL outside of the whitelist.
View
0 lib/fig/userinputerror.rb → lib/fig/user_input_error.rb
File renamed without changes.
View
4 lib/fig/workingdirectorymaintainer.rb → lib/fig/working_directory_maintainer.rb
@@ -2,8 +2,8 @@
require 'fig/logging'
require 'fig/logging/colorizable'
-require 'fig/packagedescriptor'
-require 'fig/workingdirectorymetadata'
+require 'fig/package_descriptor'
+require 'fig/working_directory_metadata'
module Fig; end
View
0 lib/fig/workingdirectorymetadata.rb → lib/fig/working_directory_metadata.rb
File renamed without changes.
View
2 spec/applicationconfiguration_spec.rb → spec/application_configuration_spec.rb
@@ -1,4 +1,4 @@
-require 'fig/applicationconfiguration'
+require 'fig/application_configuration'
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
View
2 spec/command/publishing_retrieval_spec.rb
@@ -1,6 +1,6 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
-require 'fig/operatingsystem'
+require 'fig/operating_system'
describe 'Fig' do
describe 'publishing/retrieval' do
View
2 spec/command/publishing_spec.rb
@@ -1,6 +1,6 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
-require 'fig/operatingsystem'
+require 'fig/operating_system'
require 'fig/repository'
ECHO_COMMAND = Fig::OperatingSystem.windows? ? '@echo' : 'echo'
View
2 spec/commandoptions_spec.rb → spec/command_options_spec.rb
@@ -1,6 +1,6 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
-require 'fig/command/optionerror'
+require 'fig/command/option_error'
require 'fig/command/options'
def check_environment_variable_option(option_name)
View
4 spec/environment_spec.rb
@@ -1,9 +1,9 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'fig/environment'
-require 'fig/environmentvariables/casesensitive'
+require 'fig/environment_variables/case_sensitive'
require 'fig/package'
-require 'fig/packagedescriptor'
+require 'fig/package_descriptor'
require 'fig/statement/configuration'
require 'fig/statement/retrieve'
require 'fig/statement/set'
View
4 spec/environment_variables_spec.rb
@@ -1,7 +1,7 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
-require 'fig/environmentvariables/caseinsensitive'
-require 'fig/environmentvariables/casesensitive'
+require 'fig/environment_variables/case_insensitive'
+require 'fig/environment_variables/case_sensitive'
def find_diffs(primary_hash, secondary_hash, diff_hash)
primary_hash.each do |key, value|
View
2 spec/figrc_spec.rb
@@ -5,7 +5,7 @@
require 'fig/figrc'
require 'fig/repository'
-require 'fig/workingdirectorymaintainer'
+require 'fig/working_directory_maintainer'
def create_override_file(foo, bar = nil)
tempfile = Tempfile.new('some_json_tempfile')
View
6 spec/parser_spec.rb
@@ -1,8 +1,8 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
-require 'fig/applicationconfiguration'
-require 'fig/packagedescriptor'
-require 'fig/packageparseerror'
+require 'fig/application_configuration'
+require 'fig/package_descriptor'
+require 'fig/package_parse_error'
require 'fig/parser'
describe 'Parser' do
View
4 spec/repository_spec.rb
@@ -1,7 +1,7 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
-require 'fig/applicationconfiguration'
-require 'fig/packagedescriptor'
+require 'fig/application_configuration'
+require 'fig/package_descriptor'
require 'fig/repository'
require 'fig/statement/configuration'
require 'fig/statement/path'
View
2 spec/workingdirectorymaintainer_spec.rb → spec/working_directory_maintainer_spec.rb
@@ -1,6 +1,6 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
-require 'fig/workingdirectorymaintainer'
+require 'fig/working_directory_maintainer'
describe 'WorkingDirectoryMaintainer' do
let(:base_directory) { "#{FIG_SPEC_BASE_DIRECTORY}/retrieve-test" }

0 comments on commit 719bb66

Please sign in to comment.