bitcoin 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- metadata +17 -288
- data/.rspec +0 -1
- data/.rvmrc +0 -1
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -98
- data/Guardfile +0 -38
- data/README.markdown +0 -24
- data/Rakefile +0 -1
- data/bin/rbcoin +0 -8
- data/bitcoin.gemspec +0 -40
- data/config/cucumber.yml +0 -5
- data/config/darcs.boring +0 -121
- data/doc/DEFINITION_OF_DONE.markdown +0 -12
- data/doc/HISTORY.markdown +0 -19
- data/doc/LICENCE.markdown +0 -25
- data/doc/TODO.markdown +0 -31
- data/doc/UBIQUITOUS_LANGUAGE.markdown +0 -15
- data/features/descriptions/command_help.feature +0 -31
- data/features/descriptions/satoshi_wallet/add_address.feature +0 -49
- data/features/descriptions/satoshi_wallet/show_addresses.feature +0 -18
- data/features/descriptions/satoshi_wallet/show_version.feature +0 -17
- data/features/descriptions/satoshi_wallet/subcommand_help.feature +0 -20
- data/features/fixtures/ABOUT_FIXTURES.markdown +0 -6
- data/features/fixtures/addressbook_wallet.dat +0 -0
- data/features/fixtures/new_wallet.dat +0 -0
- data/features/step_definitions/command_steps.rb +0 -3
- data/features/step_definitions/wallet_steps.rb +0 -11
- data/features/support/env.rb +0 -9
- data/lib/bitcoin.rb +0 -5
- data/lib/bitcoin/cli.rb +0 -35
- data/lib/bitcoin/commands.rb +0 -3
- data/lib/bitcoin/commands/help_command.rb +0 -32
- data/lib/bitcoin/commands/satoshi_wallet.rb +0 -11
- data/lib/bitcoin/commands/satoshi_wallet/add_address_command.rb +0 -61
- data/lib/bitcoin/commands/satoshi_wallet/show_addresses_command.rb +0 -16
- data/lib/bitcoin/commands/satoshi_wallet/show_version_command.rb +0 -15
- data/lib/bitcoin/commands/satoshi_wallet_command.rb +0 -37
- data/lib/bitcoin/commands/satoshi_wallet_command_environment.rb +0 -28
- data/lib/bitcoin/console/capturing_stream_bundle.rb +0 -42
- data/lib/bitcoin/console/stream_bundle.rb +0 -21
- data/lib/bitcoin/data_access/satoshi/bdb_satoshi_wallet_repository.rb +0 -155
- data/lib/bitcoin/data_access/satoshi/satoshi_version.rb +0 -58
- data/lib/bitcoin/data_access/satoshi/satoshi_wallet.rb +0 -39
- data/lib/bitcoin/domain/address_book.rb +0 -19
- data/lib/bitcoin/domain/bitcoin_address.rb +0 -33
- data/lib/bitcoin/filesystem/empty_temp_dir.rb +0 -74
- data/lib/bitcoin/rspec/argument_matchers.rb +0 -1
- data/lib/bitcoin/rspec/argument_matchers/block_evaluating_to_matcher.rb +0 -23
- data/lib/bitcoin/rspec/directory_helpers.rb +0 -22
- data/lib/bitcoin/version.rb +0 -3
- data/spec/bitcoin/cli_spec.rb +0 -128
- data/spec/bitcoin/commands/help_command_spec.rb +0 -53
- data/spec/bitcoin/commands/satoshi_wallet/add_address_command_spec.rb +0 -149
- data/spec/bitcoin/commands/satoshi_wallet/show_addresses_command_spec.rb +0 -26
- data/spec/bitcoin/commands/satoshi_wallet/show_version_command_spec.rb +0 -26
- data/spec/bitcoin/commands/satoshi_wallet_command_environment_spec.rb +0 -76
- data/spec/bitcoin/commands/satoshi_wallet_command_spec.rb +0 -73
- data/spec/bitcoin/console/_contracts/stream_bundle_contract.rb +0 -29
- data/spec/bitcoin/console/capturing_stream_bundle_spec.rb +0 -74
- data/spec/bitcoin/console/stream_bundle_spec.rb +0 -13
- data/spec/bitcoin/data_access/satoshi/bdb_satoshi_wallet_repository_spec.rb +0 -78
- data/spec/bitcoin/data_access/satoshi/satoshi_version_spec.rb +0 -112
- data/spec/bitcoin/data_access/satoshi/satoshi_wallet_spec.rb +0 -102
- data/spec/bitcoin/domain/address_book_spec.rb +0 -63
- data/spec/bitcoin/domain/bitcoin_address_spec.rb +0 -52
- data/spec/bitcoin/filesystem/empty_temp_dir_spec.rb +0 -170
- data/spec/bitcoin/rspec/argument_matchers/block_evaluating_to_matcher_spec.rb +0 -36
- data/spec/spec_helper.rb +0 -29
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
module Bitcoin
|
4
|
-
module RSpec
|
5
|
-
module ArgumentMatchers
|
6
|
-
describe BlockEvaluatingToMatcher do
|
7
|
-
include ArgumentMatchers
|
8
|
-
|
9
|
-
it "describes itself properly" do
|
10
|
-
BlockEvaluatingToMatcher.new(:foo).description.should == "block_evaluating_to(:foo)"
|
11
|
-
end
|
12
|
-
|
13
|
-
describe "passing" do
|
14
|
-
it "matches a block returning the value" do
|
15
|
-
block_evaluating_to("foo").should == -> { "foo" }
|
16
|
-
end
|
17
|
-
|
18
|
-
it "matches non-Proc objects responding to #call", because: "I couldn't think of a reason why not" do
|
19
|
-
fake_block = "foo"
|
20
|
-
def fake_block.call
|
21
|
-
self
|
22
|
-
end
|
23
|
-
|
24
|
-
block_evaluating_to("foo").should == fake_block
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
describe "failing" do
|
29
|
-
it "does not match a block returning a different value" do
|
30
|
-
block_evaluating_to("foo").should_not == -> { "bar" }
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")).freeze
|
2
|
-
|
3
|
-
GUARD = ENV["GUARD"]
|
4
|
-
|
5
|
-
# Gem dependencies
|
6
|
-
require 'lstrip-on-steroids'
|
7
|
-
require 'fakefs/spec_helpers'
|
8
|
-
|
9
|
-
# Project dependencies
|
10
|
-
require 'bitcoin/rspec/argument_matchers'
|
11
|
-
|
12
|
-
RSpec.configure do |config|
|
13
|
-
config.filter_run(focus: true)
|
14
|
-
config.filter_run_excluding(adapter: :slow) if GUARD == "fast"
|
15
|
-
config.run_all_when_everything_filtered = true
|
16
|
-
config.mock_with(:rspec)
|
17
|
-
config.include(Bitcoin::RSpec::ArgumentMatchers)
|
18
|
-
end
|
19
|
-
|
20
|
-
module SpecHelperObjectExtensions
|
21
|
-
def contract(name, &block)
|
22
|
-
shared_examples_for(name, &block)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
include SpecHelperObjectExtensions
|
26
|
-
|
27
|
-
RSpec.configure do |config|
|
28
|
-
config.alias_it_should_behave_like_to(:it_satisfies_contract, 'satisfies contract:')
|
29
|
-
end
|