├── .gitignore ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── camcorder.gemspec ├── lib ├── camcorder.rb └── camcorder │ ├── configuration.rb │ ├── errors.rb │ ├── proxy.rb │ ├── recorder.rb │ ├── recording.rb │ ├── rspec.rb │ └── version.rb └── spec ├── camcorder ├── proxy_spec.rb └── recorder_spec.rb ├── camcorder_spec.rb ├── fixtures ├── haz_errorz.yml └── should_exist.yml ├── recordings ├── Camcorder │ └── constructor_interception │ │ ├── _new │ │ └── should_return_a_proxy.yml │ │ └── with_multiple_classes │ │ └── _new │ │ └── should_return_proxies.yml └── Camcorder_Proxy │ ├── _methods_with_side_effects │ └── should_re-record_for_each_invocation.yml │ └── when_recording_exists │ ├── should_not_call_methods_on_actual_instance.yml │ └── should_re-raise_recorded_errors.yml ├── spec_helper.rb └── support ├── test_object.rb └── test_object2.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/.gitignore -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | require "bundler/gem_tasks" 2 | -------------------------------------------------------------------------------- /camcorder.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/camcorder.gemspec -------------------------------------------------------------------------------- /lib/camcorder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/lib/camcorder.rb -------------------------------------------------------------------------------- /lib/camcorder/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/lib/camcorder/configuration.rb -------------------------------------------------------------------------------- /lib/camcorder/errors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/lib/camcorder/errors.rb -------------------------------------------------------------------------------- /lib/camcorder/proxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/lib/camcorder/proxy.rb -------------------------------------------------------------------------------- /lib/camcorder/recorder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/lib/camcorder/recorder.rb -------------------------------------------------------------------------------- /lib/camcorder/recording.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/lib/camcorder/recording.rb -------------------------------------------------------------------------------- /lib/camcorder/rspec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/lib/camcorder/rspec.rb -------------------------------------------------------------------------------- /lib/camcorder/version.rb: -------------------------------------------------------------------------------- 1 | module Camcorder 2 | VERSION = "0.0.5" 3 | end 4 | -------------------------------------------------------------------------------- /spec/camcorder/proxy_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/camcorder/proxy_spec.rb -------------------------------------------------------------------------------- /spec/camcorder/recorder_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/camcorder/recorder_spec.rb -------------------------------------------------------------------------------- /spec/camcorder_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/camcorder_spec.rb -------------------------------------------------------------------------------- /spec/fixtures/haz_errorz.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/fixtures/haz_errorz.yml -------------------------------------------------------------------------------- /spec/fixtures/should_exist.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/fixtures/should_exist.yml -------------------------------------------------------------------------------- /spec/recordings/Camcorder/constructor_interception/_new/should_return_a_proxy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/recordings/Camcorder/constructor_interception/_new/should_return_a_proxy.yml -------------------------------------------------------------------------------- /spec/recordings/Camcorder/constructor_interception/with_multiple_classes/_new/should_return_proxies.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/recordings/Camcorder/constructor_interception/with_multiple_classes/_new/should_return_proxies.yml -------------------------------------------------------------------------------- /spec/recordings/Camcorder_Proxy/_methods_with_side_effects/should_re-record_for_each_invocation.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/recordings/Camcorder_Proxy/_methods_with_side_effects/should_re-record_for_each_invocation.yml -------------------------------------------------------------------------------- /spec/recordings/Camcorder_Proxy/when_recording_exists/should_not_call_methods_on_actual_instance.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/recordings/Camcorder_Proxy/when_recording_exists/should_not_call_methods_on_actual_instance.yml -------------------------------------------------------------------------------- /spec/recordings/Camcorder_Proxy/when_recording_exists/should_re-raise_recorded_errors.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/recordings/Camcorder_Proxy/when_recording_exists/should_re-raise_recorded_errors.yml -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/test_object.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/support/test_object.rb -------------------------------------------------------------------------------- /spec/support/test_object2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ghempton/camcorder/HEAD/spec/support/test_object2.rb --------------------------------------------------------------------------------