config/environment.rb in digiproc-0.2.1 vs config/environment.rb in digiproc-0.2.2
- old
+ new
@@ -8,11 +8,11 @@
#Namespace
require 'digiproc'
#Extensions
-require './lib/extensions/core_extensions'
+require_relative '../lib/extensions/core_extensions'
Array.include Digiproc::CoreExtensions::ArrayExtension::DotProduct
Array.include Digiproc::CoreExtensions::ArrayExtension::Sum
Array.include Digiproc::CoreExtensions::ArrayExtension::Multiply
Math.extend Digiproc::CoreExtensions::MathExtension::Decible
@@ -57,62 +57,62 @@
end
end
#Strategies
-require './lib/strategies/strategies'
-require './lib/strategies/fft/inverse_fft_conjugate_strategy'
-require './lib/strategies/fft/brute_force_dft_strategy'
-require './lib/strategies/fft/radix2_strategy'
-require './lib/strategies/convolution/bf_conv'
-require './lib/strategies/window/window'
-require './lib/strategies/window/blackman_window'
-require './lib/strategies/window/hamming_window'
-require './lib/strategies/window/hanning_window'
-require './lib/strategies/window/rectangular_window'
-require './lib/strategies/companding/custom_companding_strategy'
-require './lib/strategies/gaussian/gaussian_generator'
-require './lib/strategies/orthogonalize/gram_schmidt'
-require './lib/strategies/code/gray_code'
-require './lib/strategies/code/differential_encoding_strategy'
-require './lib/strategies/code/xor_differential_encoding_strategy'
-require './lib/strategies/code/xor_differential_encoding_zero_angle_strategy'
-require './lib/strategies/modulation/phase_shift_keying_strategy'
-require './lib/strategies/linear_algebra/jacobi_strategy'
-require './lib/strategies/linear_algebra/gauss_seidel_strategy'
-require './lib/strategies/linear_algebra/sor_strategy'
-require './lib/strategies/linear_algebra/sor2_strategy'
+require_relative '../lib/strategies/strategies'
+require_relative '../lib/strategies/fft/inverse_fft_conjugate_strategy'
+require_relative '../lib/strategies/fft/brute_force_dft_strategy'
+require_relative '../lib/strategies/fft/radix2_strategy'
+require_relative '../lib/strategies/convolution/bf_conv'
+require_relative '../lib/strategies/window/window'
+require_relative '../lib/strategies/window/blackman_window'
+require_relative '../lib/strategies/window/hamming_window'
+require_relative '../lib/strategies/window/hanning_window'
+require_relative '../lib/strategies/window/rectangular_window'
+require_relative '../lib/strategies/companding/custom_companding_strategy'
+require_relative '../lib/strategies/gaussian/gaussian_generator'
+require_relative '../lib/strategies/orthogonalize/gram_schmidt'
+require_relative '../lib/strategies/code/gray_code'
+require_relative '../lib/strategies/code/differential_encoding_strategy'
+require_relative '../lib/strategies/code/xor_differential_encoding_strategy'
+require_relative '../lib/strategies/code/xor_differential_encoding_zero_angle_strategy'
+require_relative '../lib/strategies/modulation/phase_shift_keying_strategy'
+require_relative '../lib/strategies/linear_algebra/jacobi_strategy'
+require_relative '../lib/strategies/linear_algebra/gauss_seidel_strategy'
+require_relative '../lib/strategies/linear_algebra/sor_strategy'
+require_relative '../lib/strategies/linear_algebra/sor2_strategy'
#Modules
-require './lib/concerns/plottable'
-require './lib/concerns/requires_data'
-require './lib/concerns/initializable'
-require './lib/concerns/convolvable'
-require './lib/concerns/fourier_transformable'
-require './lib/concerns/multipliable'
-require './lib/concerns/data_properties'
-require './lib/functions'
-require './lib/probability/probability'
-require './lib/concerns/os'
+require_relative '../lib/concerns/plottable'
+require_relative '../lib/concerns/requires_data'
+require_relative '../lib/concerns/initializable'
+require_relative '../lib/concerns/convolvable'
+require_relative '../lib/concerns/fourier_transformable'
+require_relative '../lib/concerns/multipliable'
+require_relative '../lib/concerns/data_properties'
+require_relative '../lib/functions'
+require_relative '../lib/probability/probability'
+require_relative '../lib/concerns/os'
#Classes
-require './lib/fft'
-require './lib/signals/digital_signal'
-require './lib/filters/digital_filter.rb'
-require './lib/filters/lowpass_filter.rb'
-require './lib/filters/highpass_filter.rb'
-require './lib/filters/bandpass_filter.rb'
-require './lib/filters/bandstop_filter.rb'
-require './lib/signals/analog_signal'
-require './lib/probability/gaussian_distribution'
-require './lib/probability/theoretical_gaussian_distribution'
-require './lib/probability/bit_generator'
-require './lib/probability/binomial_distribution'
-require './lib/quick_plot'
-require './lib/rbplot'
+require_relative '../lib/fft'
+require_relative '../lib/signals/digital_signal'
+require_relative '../lib/filters/digital_filter.rb'
+require_relative '../lib/filters/lowpass_filter.rb'
+require_relative '../lib/filters/highpass_filter.rb'
+require_relative '../lib/filters/bandpass_filter.rb'
+require_relative '../lib/filters/bandstop_filter.rb'
+require_relative '../lib/signals/analog_signal'
+require_relative '../lib/probability/gaussian_distribution'
+require_relative '../lib/probability/theoretical_gaussian_distribution'
+require_relative '../lib/probability/bit_generator'
+require_relative '../lib/probability/binomial_distribution'
+require_relative '../lib/quick_plot'
+require_relative '../lib/rbplot'
#Factories
-require './lib/factories/factories'
-require './lib/factories/window_factory'
-require './lib/factories/filter_factory'
+require_relative '../lib/factories/factories'
+require_relative '../lib/factories/window_factory'
+require_relative '../lib/factories/filter_factory'
\ No newline at end of file