├── .github └── workflows │ └── build.yml ├── .gitignore ├── .rubocop.yml ├── .ruby-version ├── Gemfile ├── Guardfile ├── LICENSE.txt ├── MIGRATION_GUIDE_0_2_0.md ├── README.md ├── Rakefile ├── bin └── candy_check ├── candy_check.gemspec ├── lib ├── candy_check.rb └── candy_check │ ├── app_store.rb │ ├── app_store │ ├── client.rb │ ├── config.rb │ ├── receipt.rb │ ├── receipt_collection.rb │ ├── subscription_verification.rb │ ├── verification.rb │ ├── verification_failure.rb │ └── verifier.rb │ ├── cli.rb │ ├── cli │ ├── app.rb │ ├── commands.rb │ ├── commands │ │ ├── app_store.rb │ │ ├── base.rb │ │ ├── play_store.rb │ │ └── version.rb │ └── out.rb │ ├── play_store.rb │ ├── play_store │ ├── acknowledger.rb │ ├── android_publisher_service.rb │ ├── product_acknowledgements │ │ ├── acknowledgement.rb │ │ └── response.rb │ ├── product_purchases │ │ ├── product_purchase.rb │ │ └── product_verification.rb │ ├── subscription_purchases │ │ ├── subscription_purchase.rb │ │ └── subscription_verification.rb │ ├── verification_failure.rb │ └── verifier.rb │ ├── utils.rb │ ├── utils │ ├── attribute_reader.rb │ └── config.rb │ └── version.rb └── spec ├── app_store ├── client_spec.rb ├── config_spec.rb ├── receipt_collection_spec.rb ├── receipt_spec.rb ├── subscription_verification_spec.rb ├── verifcation_failure_spec.rb ├── verification_spec.rb └── verifier_spec.rb ├── candy_check_spec.rb ├── cli ├── app_spec.rb ├── commands │ ├── app_store_spec.rb │ ├── play_store_spec.rb │ └── version_spec.rb └── out_spec.rb ├── fixtures ├── play_store │ └── random_dummy_key.json └── vcr_cassettes │ └── play_store │ ├── product_acknowledgements │ ├── acknowledged.yml │ ├── already_acknowledged.yml │ └── refunded.yml │ ├── product_purchases │ ├── permission_denied.yml │ ├── response_with_empty_body.yml │ └── valid_but_not_consumed.yml │ └── subscription_purchases │ ├── permission_denied.yml │ └── valid_but_expired.yml ├── play_store ├── acknowledger_spec.rb ├── product_acknowledgements │ ├── acknowledgement_spec.rb │ └── response_spec.rb ├── product_purchases │ ├── product_purchase_spec.rb │ └── product_verification_spec.rb ├── subscription_purchases │ ├── subscription_purchase_spec.rb │ └── subscription_verification_spec.rb ├── verification_failure_spec.rb └── verifier_spec.rb ├── spec_helper.rb └── support ├── with_command.rb ├── with_fixtures.rb └── with_temp_file.rb /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/.gitignore -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 3.2.1 2 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/Gemfile -------------------------------------------------------------------------------- /Guardfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/Guardfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /MIGRATION_GUIDE_0_2_0.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/MIGRATION_GUIDE_0_2_0.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/candy_check: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/bin/candy_check -------------------------------------------------------------------------------- /candy_check.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/candy_check.gemspec -------------------------------------------------------------------------------- /lib/candy_check.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check.rb -------------------------------------------------------------------------------- /lib/candy_check/app_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/app_store.rb -------------------------------------------------------------------------------- /lib/candy_check/app_store/client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/app_store/client.rb -------------------------------------------------------------------------------- /lib/candy_check/app_store/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/app_store/config.rb -------------------------------------------------------------------------------- /lib/candy_check/app_store/receipt.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/app_store/receipt.rb -------------------------------------------------------------------------------- /lib/candy_check/app_store/receipt_collection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/app_store/receipt_collection.rb -------------------------------------------------------------------------------- /lib/candy_check/app_store/subscription_verification.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/app_store/subscription_verification.rb -------------------------------------------------------------------------------- /lib/candy_check/app_store/verification.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/app_store/verification.rb -------------------------------------------------------------------------------- /lib/candy_check/app_store/verification_failure.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/app_store/verification_failure.rb -------------------------------------------------------------------------------- /lib/candy_check/app_store/verifier.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/app_store/verifier.rb -------------------------------------------------------------------------------- /lib/candy_check/cli.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/cli.rb -------------------------------------------------------------------------------- /lib/candy_check/cli/app.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/cli/app.rb -------------------------------------------------------------------------------- /lib/candy_check/cli/commands.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/cli/commands.rb -------------------------------------------------------------------------------- /lib/candy_check/cli/commands/app_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/cli/commands/app_store.rb -------------------------------------------------------------------------------- /lib/candy_check/cli/commands/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/cli/commands/base.rb -------------------------------------------------------------------------------- /lib/candy_check/cli/commands/play_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/cli/commands/play_store.rb -------------------------------------------------------------------------------- /lib/candy_check/cli/commands/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/cli/commands/version.rb -------------------------------------------------------------------------------- /lib/candy_check/cli/out.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/cli/out.rb -------------------------------------------------------------------------------- /lib/candy_check/play_store.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/play_store.rb -------------------------------------------------------------------------------- /lib/candy_check/play_store/acknowledger.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/play_store/acknowledger.rb -------------------------------------------------------------------------------- /lib/candy_check/play_store/android_publisher_service.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/play_store/android_publisher_service.rb -------------------------------------------------------------------------------- /lib/candy_check/play_store/product_acknowledgements/acknowledgement.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/play_store/product_acknowledgements/acknowledgement.rb -------------------------------------------------------------------------------- /lib/candy_check/play_store/product_acknowledgements/response.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/play_store/product_acknowledgements/response.rb -------------------------------------------------------------------------------- /lib/candy_check/play_store/product_purchases/product_purchase.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/play_store/product_purchases/product_purchase.rb -------------------------------------------------------------------------------- /lib/candy_check/play_store/product_purchases/product_verification.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/play_store/product_purchases/product_verification.rb -------------------------------------------------------------------------------- /lib/candy_check/play_store/subscription_purchases/subscription_purchase.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/play_store/subscription_purchases/subscription_purchase.rb -------------------------------------------------------------------------------- /lib/candy_check/play_store/subscription_purchases/subscription_verification.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/play_store/subscription_purchases/subscription_verification.rb -------------------------------------------------------------------------------- /lib/candy_check/play_store/verification_failure.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/play_store/verification_failure.rb -------------------------------------------------------------------------------- /lib/candy_check/play_store/verifier.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/play_store/verifier.rb -------------------------------------------------------------------------------- /lib/candy_check/utils.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/utils.rb -------------------------------------------------------------------------------- /lib/candy_check/utils/attribute_reader.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/utils/attribute_reader.rb -------------------------------------------------------------------------------- /lib/candy_check/utils/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/lib/candy_check/utils/config.rb -------------------------------------------------------------------------------- /lib/candy_check/version.rb: -------------------------------------------------------------------------------- 1 | module CandyCheck 2 | # The current gem's version 3 | VERSION = "0.6.0".freeze 4 | end 5 | -------------------------------------------------------------------------------- /spec/app_store/client_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/app_store/client_spec.rb -------------------------------------------------------------------------------- /spec/app_store/config_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/app_store/config_spec.rb -------------------------------------------------------------------------------- /spec/app_store/receipt_collection_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/app_store/receipt_collection_spec.rb -------------------------------------------------------------------------------- /spec/app_store/receipt_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/app_store/receipt_spec.rb -------------------------------------------------------------------------------- /spec/app_store/subscription_verification_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/app_store/subscription_verification_spec.rb -------------------------------------------------------------------------------- /spec/app_store/verifcation_failure_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/app_store/verifcation_failure_spec.rb -------------------------------------------------------------------------------- /spec/app_store/verification_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/app_store/verification_spec.rb -------------------------------------------------------------------------------- /spec/app_store/verifier_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/app_store/verifier_spec.rb -------------------------------------------------------------------------------- /spec/candy_check_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/candy_check_spec.rb -------------------------------------------------------------------------------- /spec/cli/app_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/cli/app_spec.rb -------------------------------------------------------------------------------- /spec/cli/commands/app_store_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/cli/commands/app_store_spec.rb -------------------------------------------------------------------------------- /spec/cli/commands/play_store_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/cli/commands/play_store_spec.rb -------------------------------------------------------------------------------- /spec/cli/commands/version_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/cli/commands/version_spec.rb -------------------------------------------------------------------------------- /spec/cli/out_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/cli/out_spec.rb -------------------------------------------------------------------------------- /spec/fixtures/play_store/random_dummy_key.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/fixtures/play_store/random_dummy_key.json -------------------------------------------------------------------------------- /spec/fixtures/vcr_cassettes/play_store/product_acknowledgements/acknowledged.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/fixtures/vcr_cassettes/play_store/product_acknowledgements/acknowledged.yml -------------------------------------------------------------------------------- /spec/fixtures/vcr_cassettes/play_store/product_acknowledgements/already_acknowledged.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/fixtures/vcr_cassettes/play_store/product_acknowledgements/already_acknowledged.yml -------------------------------------------------------------------------------- /spec/fixtures/vcr_cassettes/play_store/product_acknowledgements/refunded.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/fixtures/vcr_cassettes/play_store/product_acknowledgements/refunded.yml -------------------------------------------------------------------------------- /spec/fixtures/vcr_cassettes/play_store/product_purchases/permission_denied.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/fixtures/vcr_cassettes/play_store/product_purchases/permission_denied.yml -------------------------------------------------------------------------------- /spec/fixtures/vcr_cassettes/play_store/product_purchases/response_with_empty_body.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/fixtures/vcr_cassettes/play_store/product_purchases/response_with_empty_body.yml -------------------------------------------------------------------------------- /spec/fixtures/vcr_cassettes/play_store/product_purchases/valid_but_not_consumed.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/fixtures/vcr_cassettes/play_store/product_purchases/valid_but_not_consumed.yml -------------------------------------------------------------------------------- /spec/fixtures/vcr_cassettes/play_store/subscription_purchases/permission_denied.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/fixtures/vcr_cassettes/play_store/subscription_purchases/permission_denied.yml -------------------------------------------------------------------------------- /spec/fixtures/vcr_cassettes/play_store/subscription_purchases/valid_but_expired.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/fixtures/vcr_cassettes/play_store/subscription_purchases/valid_but_expired.yml -------------------------------------------------------------------------------- /spec/play_store/acknowledger_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/play_store/acknowledger_spec.rb -------------------------------------------------------------------------------- /spec/play_store/product_acknowledgements/acknowledgement_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/play_store/product_acknowledgements/acknowledgement_spec.rb -------------------------------------------------------------------------------- /spec/play_store/product_acknowledgements/response_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/play_store/product_acknowledgements/response_spec.rb -------------------------------------------------------------------------------- /spec/play_store/product_purchases/product_purchase_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/play_store/product_purchases/product_purchase_spec.rb -------------------------------------------------------------------------------- /spec/play_store/product_purchases/product_verification_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/play_store/product_purchases/product_verification_spec.rb -------------------------------------------------------------------------------- /spec/play_store/subscription_purchases/subscription_purchase_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/play_store/subscription_purchases/subscription_purchase_spec.rb -------------------------------------------------------------------------------- /spec/play_store/subscription_purchases/subscription_verification_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/play_store/subscription_purchases/subscription_verification_spec.rb -------------------------------------------------------------------------------- /spec/play_store/verification_failure_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/play_store/verification_failure_spec.rb -------------------------------------------------------------------------------- /spec/play_store/verifier_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/play_store/verifier_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/with_command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/support/with_command.rb -------------------------------------------------------------------------------- /spec/support/with_fixtures.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/support/with_fixtures.rb -------------------------------------------------------------------------------- /spec/support/with_temp_file.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jnbt/candy_check/HEAD/spec/support/with_temp_file.rb --------------------------------------------------------------------------------