blockchyp 1.24.14 → 2.0.0.pre.alpha7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +1 -41
- data/README.md +441 -3551
- data/lib/blockchyp/version.rb +1 -1
- data/lib/blockchyp.rb +41 -366
- data/lib/blockchyp_client.rb +125 -207
- data/test/boolean_prompt_test.rb +18 -32
- data/test/heartbeat_test.rb +10 -10
- data/test/new_transaction_display_test.rb +50 -44
- data/test/pan_charge_test.rb +27 -44
- data/test/pan_enroll_test.rb +25 -45
- data/test/pan_preauth_test.rb +26 -43
- data/test/simple_batch_close_test.rb +23 -37
- data/test/simple_capture_test.rb +21 -38
- data/test/simple_gift_activate_test.rb +15 -30
- data/test/simple_message_test.rb +15 -29
- data/test/simple_ping_test.rb +14 -28
- data/test/simple_refund_test.rb +22 -40
- data/test/simple_reversal_test.rb +22 -39
- data/test/simple_void_test.rb +22 -39
- data/test/terminal_charge_test.rb +25 -40
- data/test/terminal_clear_test.rb +14 -28
- data/test/terminal_ebt_balance_test.rb +16 -30
- data/test/terminal_ebt_charge_test.rb +27 -42
- data/test/terminal_enroll_test.rb +24 -39
- data/test/terminal_gift_card_balance_test.rb +15 -29
- data/test/terminal_keyed_charge_test.rb +26 -41
- data/test/terminal_manual_ebt_charge_test.rb +28 -43
- data/test/terminal_preauth_test.rb +25 -40
- data/test/terms_and_conditions_test.rb +19 -33
- data/test/test_helper.rb +10 -9
- data/test/text_prompt_test.rb +15 -29
- data/test/update_transaction_display_test.rb +50 -44
- metadata +5 -64
- data/test/activate_terminal_test.rb +0 -45
- data/test/add_test_merchant_test.rb +0 -56
- data/test/batch_history_test.rb +0 -54
- data/test/cancel_payment_link_test.rb +0 -72
- data/test/capture_signature_test.rb +0 -46
- data/test/deactivate_terminal_test.rb +0 -42
- data/test/delete_branding_asset_test.rb +0 -50
- data/test/delete_customer_test.rb +0 -55
- data/test/delete_media_asset_test.rb +0 -53
- data/test/delete_queued_transaction_test.rb +0 -56
- data/test/delete_slide_show_test.rb +0 -50
- data/test/delete_survey_question_test.rb +0 -51
- data/test/delete_test_merchant_test.rb +0 -59
- data/test/delete_token_test.rb +0 -55
- data/test/empty_branding_asset_test.rb +0 -44
- data/test/empty_slide_show_test.rb +0 -45
- data/test/gateway_timeout_test.rb +0 -49
- data/test/get_customer_test.rb +0 -55
- data/test/get_merchants_test.rb +0 -52
- data/test/invite_merchant_user_test.rb +0 -45
- data/test/link_token_test.rb +0 -56
- data/test/list_queued_transactions_test.rb +0 -55
- data/test/list_terminals_test.rb +0 -42
- data/test/media_asset_test.rb +0 -57
- data/test/media_test.rb +0 -42
- data/test/media_upload_test.rb +0 -52
- data/test/merchant_platforms_test.rb +0 -59
- data/test/merchant_profile_test.rb +0 -43
- data/test/merchant_users_test.rb +0 -42
- data/test/partial_refund_test.rb +0 -58
- data/test/search_customer_test.rb +0 -55
- data/test/send_payment_link_test.rb +0 -67
- data/test/simple_locate_test.rb +0 -44
- data/test/slide_show_test.rb +0 -51
- data/test/slide_shows_test.rb +0 -49
- data/test/survey_question_test.rb +0 -48
- data/test/survey_questions_test.rb +0 -50
- data/test/survey_results_test.rb +0 -48
- data/test/tc_delete_template_test.rb +0 -51
- data/test/tc_entry_test.rb +0 -56
- data/test/tc_log_test.rb +0 -42
- data/test/tc_template_test.rb +0 -53
- data/test/tc_template_update_test.rb +0 -48
- data/test/tc_templates_test.rb +0 -42
- data/test/terminal_branding_test.rb +0 -42
- data/test/terminal_queued_transaction_test.rb +0 -51
- data/test/terminal_status_test.rb +0 -45
- data/test/terminal_timeout_test.rb +0 -46
- data/test/testdata/aviato.png +0 -0
- data/test/token_metadata_test.rb +0 -55
- data/test/transaction_history_test.rb +0 -54
- data/test/unlink_token_test.rb +0 -56
- data/test/update_branding_asset_test.rb +0 -62
- data/test/update_customer_test.rb +0 -49
- data/test/update_merchant_platforms_test.rb +0 -61
- data/test/update_merchant_test.rb +0 -60
- data/test/update_slide_show_test.rb +0 -60
- data/test/update_survey_question_test.rb +0 -47
- data/test/upload_status_test.rb +0 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a9aa280f6f893a65d19ac1cc81c1fbb2787138110a4cf422e696cf196153322
|
4
|
+
data.tar.gz: afa2bebafe119454a5ce2ec9b39bd15686c7c5ebb215add0186197dee1489968
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3a3e83881142f842869e0bf48aeb3fe37cd2e0f4a183f56624b8ff256472b4491af6a28cc4f56eeb73501b6ec0db2948fef77b8956ca52bdc022bc05193f028
|
7
|
+
data.tar.gz: 51d975d45c58bbbeb722027e3bb3fa5b63e75e969ef30bf2551891da2f3605d2b6aa4526465b49b80de2d42b983f3afd313d308d6ff9f619fa8b85dbb730361f
|
data/Makefile
CHANGED
@@ -6,30 +6,7 @@ RELEASE := $(or $(BUILD_NUMBER), 1)
|
|
6
6
|
VERSION := $(or $(TAG:v%=%),$(LASTTAG:v%=%))-$(or $(BUILD_NUMBER), 1)$(if $(TAG),,.$(SNAPINFO))
|
7
7
|
|
8
8
|
# Executables
|
9
|
-
DOCKER = docker
|
10
|
-
BUNDLE = bundle
|
11
9
|
SED = sed
|
12
|
-
SED_SUBST = $(SED)
|
13
|
-
UNAME_S := $(shell uname -s)
|
14
|
-
ifeq ($(UNAME_S),Darwin)
|
15
|
-
SED_SUBST += -i ''
|
16
|
-
else
|
17
|
-
SED_SUBST += -i
|
18
|
-
endif
|
19
|
-
|
20
|
-
# Integration test config
|
21
|
-
export BC_TEST_DELAY := 5
|
22
|
-
IMAGE := circleci/ruby
|
23
|
-
SCMROOT := $(shell git rev-parse --show-toplevel)
|
24
|
-
PWD := $(shell pwd)
|
25
|
-
CACHE := $(HOME)/.local/share/blockchyp/itest-cache
|
26
|
-
CONFIGFILE := $(HOME)/.config/blockchyp/sdk-itest-config.json
|
27
|
-
CACHEPATHS := $(dir $(CONFIGFILE)) $(HOME)/.bundle
|
28
|
-
ifeq ($(shell uname -s), Linux)
|
29
|
-
HOSTIP = $(shell ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+')
|
30
|
-
else
|
31
|
-
HOSTIP = host.docker.internal
|
32
|
-
endif
|
33
10
|
|
34
11
|
# Default target
|
35
12
|
.PHONY: all
|
@@ -38,12 +15,10 @@ all: clean build test
|
|
38
15
|
# Clean build artifacts
|
39
16
|
.PHONY: clean
|
40
17
|
clean:
|
41
|
-
$(RM) ./*.gem
|
42
18
|
|
43
19
|
# Build compiles the package
|
44
20
|
.PHONY: build
|
45
21
|
build:
|
46
|
-
$(BUNDLE) exec rake build
|
47
22
|
|
48
23
|
# Runs unit tests
|
49
24
|
.PHONY: test
|
@@ -52,27 +27,12 @@ test:
|
|
52
27
|
# Runs integration tests
|
53
28
|
.PHONY: integration
|
54
29
|
integration:
|
55
|
-
$(if $(LOCALBUILD), \
|
56
|
-
$(BUNDLE) exec rake test $(if $(TEST),TEST=$(TEST),,), \
|
57
|
-
$(foreach path,$(CACHEPATHS),mkdir -p $(CACHE)/$(path) ; ) \
|
58
|
-
sed 's/localhost/$(HOSTIP)/' $(CONFIGFILE) >$(CACHE)/$(CONFIGFILE) ; \
|
59
|
-
$(DOCKER) run \
|
60
|
-
-u $(shell id -u):$(shell id -g) \
|
61
|
-
-v $(SCMROOT):$(SCMROOT):Z \
|
62
|
-
-v /etc/passwd:/etc/passwd:ro \
|
63
|
-
$(foreach path,$(CACHEPATHS),-v $(CACHE)/$(path):$(path):Z) \
|
64
|
-
-e BC_TEST_DELAY=$(BC_TEST_DELAY) \
|
65
|
-
-e HOME=$(HOME) \
|
66
|
-
-w $(PWD) \
|
67
|
-
--rm -it $(IMAGE) \
|
68
|
-
bash -c "$(BUNDLE) install --path $(HOME)/.bundle/vendor && $(BUNDLE) exec rake test $(if $(TEST),TEST=$(TEST),)")
|
69
30
|
|
70
31
|
# Performs any tasks necessary before a release build
|
71
32
|
.PHONY: stage
|
72
33
|
stage:
|
73
|
-
$(
|
34
|
+
$(SED) -i "s/VERSION = '.*'/VERSION = '$(shell sed 's/-/.pre./' <<<$(VERSION))'/" lib/blockchyp/version.rb
|
74
35
|
|
75
36
|
# Publish
|
76
37
|
.PHONY: publish
|
77
38
|
publish:
|
78
|
-
$(BUNDLE) exec rake publish
|