rubykassa-fixed 0.4.2

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.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +28 -0
  3. data/.travis.yml +20 -0
  4. data/CHANGELOG.md +71 -0
  5. data/Gemfile +28 -0
  6. data/Guardfile +5 -0
  7. data/MIT-LICENSE +20 -0
  8. data/README.md +121 -0
  9. data/Rakefile +7 -0
  10. data/app/controllers/robokassa_controller.rb +33 -0
  11. data/config/routes.rb +12 -0
  12. data/lib/generators/rubykassa/install_generator.rb +11 -0
  13. data/lib/generators/rubykassa/templates/rubykassa.rb +22 -0
  14. data/lib/rubykassa/action_view_extension.rb +16 -0
  15. data/lib/rubykassa/client.rb +36 -0
  16. data/lib/rubykassa/configuration.rb +43 -0
  17. data/lib/rubykassa/engine.rb +9 -0
  18. data/lib/rubykassa/notification.rb +27 -0
  19. data/lib/rubykassa/payment_interface.rb +66 -0
  20. data/lib/rubykassa/signature_generator.rb +58 -0
  21. data/lib/rubykassa/version.rb +3 -0
  22. data/lib/rubykassa/xml_interface.rb +88 -0
  23. data/lib/rubykassa.rb +27 -0
  24. data/rubykassa-fixed.gemspec +28 -0
  25. data/spec/dummy/README.rdoc +261 -0
  26. data/spec/dummy/Rakefile +7 -0
  27. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  28. data/spec/dummy/app/controllers/welcome_controller.rb +4 -0
  29. data/spec/dummy/app/views/layouts/application.html.erb +12 -0
  30. data/spec/dummy/app/views/welcome/index.html.erb +24 -0
  31. data/spec/dummy/config/application.rb +62 -0
  32. data/spec/dummy/config/boot.rb +10 -0
  33. data/spec/dummy/config/database.yml +25 -0
  34. data/spec/dummy/config/environment.rb +5 -0
  35. data/spec/dummy/config/environments/development.rb +39 -0
  36. data/spec/dummy/config/environments/production.rb +69 -0
  37. data/spec/dummy/config/environments/test.rb +39 -0
  38. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/spec/dummy/config/initializers/inflections.rb +15 -0
  40. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  41. data/spec/dummy/config/initializers/rubykassa.rb +8 -0
  42. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  43. data/spec/dummy/config/initializers/session_store.rb +8 -0
  44. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  45. data/spec/dummy/config/locales/en.yml +5 -0
  46. data/spec/dummy/config/routes.rb +5 -0
  47. data/spec/dummy/config.ru +4 -0
  48. data/spec/dummy/db/development.sqlite3 +0 -0
  49. data/spec/dummy/db/test.sqlite3 +0 -0
  50. data/spec/dummy/public/404.html +26 -0
  51. data/spec/dummy/public/422.html +26 -0
  52. data/spec/dummy/public/500.html +25 -0
  53. data/spec/dummy/public/favicon.ico +0 -0
  54. data/spec/dummy/script/rails +6 -0
  55. data/spec/rubykassa/client_configuration_spec.rb +81 -0
  56. data/spec/rubykassa/notification_spec.rb +39 -0
  57. data/spec/rubykassa/payment_interface_spec.rb +37 -0
  58. data/spec/rubykassa/xml_interface_spec.rb +60 -0
  59. data/spec/spec_helper.rb +11 -0
  60. metadata +201 -0
@@ -0,0 +1,39 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ # config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ # config.serve_static_assets = true
12
+ # config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ # config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ # config.consider_all_requests_local = true
19
+ # config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ # config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ # config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ # config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ # config.active_record.mass_assignment_sanitizer = :strict
34
+
35
+ # Print deprecation notices to the stderr
36
+ # config.active_support.deprecation = :stderr
37
+
38
+ config.eager_load = false
39
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,8 @@
1
+ Rubykassa.configure do |c|
2
+ c.login = ENV["ROBOKASSA_LOGIN"]
3
+ c.first_password = ENV["ROBOKASSA_FIRST_PASSWORD"]
4
+ c.second_password = ENV["ROBOKASSA_SECOND_PASSWORD"]
5
+ c.mode = :test # or :production
6
+ c.http_method = :get # or :post
7
+ c.xml_http_method = :get # or :post
8
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '56662e79656cb0cb0ea739e866e40259dad75beb2b3179e309537b7846d6abd2dc307caeb5104f9a7a9f7959a6e303ade103e3b4175d3eb3af7a1b07b0e3568a'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ # ActiveSupport.on_load(:action_controller) do
8
+ # wrap_parameters format: [:json]
9
+ # end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,5 @@
1
+ Dummy::Application.routes.draw do
2
+ get "welcome/index"
3
+
4
+ root to: 'welcome#index'
5
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,81 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rubykassa::Client do
4
+ before(:each) do
5
+ Rubykassa.configure do |config|
6
+ config.login = 'name'
7
+ config.first_password = 'first_password'
8
+ config.second_password = 'second_password'
9
+ config.mode = :production
10
+ config.http_method = :post
11
+ config.xml_http_method = :post
12
+ config.hash_algorithm = :md5
13
+ end
14
+ end
15
+
16
+ it 'should set configuration information correctly' do
17
+ expect(Rubykassa.login).to eq 'name'
18
+ expect(Rubykassa.first_password).to eq 'first_password'
19
+ expect(Rubykassa.second_password).to eq 'second_password'
20
+ expect(Rubykassa.mode).to eq :production
21
+ expect(Rubykassa.http_method).to eq :post
22
+ expect(Rubykassa.xml_http_method).to eq :post
23
+ end
24
+
25
+ it 'should set default values' do
26
+ Rubykassa.configure do; end
27
+
28
+ expect(Rubykassa.login).to eq 'your_login'
29
+ expect(Rubykassa.first_password).to eq 'first_password'
30
+ expect(Rubykassa.second_password).to eq 'second_password'
31
+ expect(Rubykassa.mode).to eq :test
32
+ expect(Rubykassa.http_method).to eq :get
33
+ expect(Rubykassa.xml_http_method).to eq :get
34
+ expect(Rubykassa.hash_algorithm).to eq :md5
35
+ expect(Rubykassa.success_callback).to be_instance_of(Proc)
36
+ expect(Rubykassa.fail_callback).to be_instance_of(Proc)
37
+ end
38
+
39
+ it 'should set success_callback' do
40
+ Rubykassa.configure do |config|
41
+ config.success_callback = -> { 2 + 5 }
42
+ end
43
+ expect(Rubykassa.success_callback.call).to eq(7)
44
+ end
45
+
46
+ it 'should raise error when wrong mode is set' do
47
+ expect {
48
+ Rubykassa.configure do |config|
49
+ config.mode = :bullshit
50
+ end
51
+ }.to raise_error(Rubykassa::ConfigurationError,
52
+ Rubykassa::ConfigurationError::ENV_MESSAGE)
53
+ end
54
+
55
+ it 'should raise error when wrong http_method is set' do
56
+ expect {
57
+ Rubykassa.configure do |config|
58
+ config.http_method = :bullshit
59
+ end
60
+ }.to raise_error(Rubykassa::ConfigurationError,
61
+ Rubykassa::ConfigurationError::HTTP_METHOD_MESSAGE)
62
+ end
63
+
64
+ it 'should raise error when wrong xml_http_method is set' do
65
+ expect {
66
+ Rubykassa.configure do |config|
67
+ config.xml_http_method = :bullshit
68
+ end
69
+ }.to raise_error(Rubykassa::ConfigurationError,
70
+ Rubykassa::ConfigurationError::HTTP_METHOD_MESSAGE)
71
+ end
72
+
73
+ it 'should raise error when wrong hash_algorithms is set' do
74
+ expect {
75
+ Rubykassa.configure do |config|
76
+ config.hash_algorithm = :bullshit
77
+ end
78
+ }.to raise_error(Rubykassa::ConfigurationError,
79
+ Rubykassa::ConfigurationError::HASH_ALGORITHM_MESSAGE)
80
+ end
81
+ end
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rubykassa::Notification do
4
+ before(:each) do
5
+ Rubykassa.configure do |config|
6
+ end
7
+ end
8
+
9
+ it 'should return correct valid_result_signature?' do
10
+ params = { 'InvId' => '12',
11
+ 'OutSum' => '1200',
12
+ 'SignatureValue' => '373641e09a9d203ffa8639074c8e9697' }
13
+ notification = Rubykassa::Notification.new params
14
+ expect(notification.valid_result_signature?).to be_truthy
15
+ end
16
+
17
+ it 'should return correct valid_success_signature?' do
18
+ params = { 'InvId' => '12',
19
+ 'OutSum' => '1200',
20
+ 'SignatureValue' => '9f219cd519aa7bd3549065b613a13a52' }
21
+ notification = Rubykassa::Notification.new params
22
+ expect(notification.valid_success_signature?).to be_truthy
23
+ end
24
+
25
+ it 'should return correct success' do
26
+ notification = Rubykassa::Notification.new Hash 'InvId' => '12'
27
+ expect(notification.success).to eq 'OK12'
28
+ end
29
+
30
+ context 'signature generator' do
31
+ it 'should raise error in case of wrong kind of argument' do
32
+ expect {
33
+ notification = Rubykassa::Notification.new
34
+ notification.generate_signature_for :bullshit
35
+ }.to raise_error(ArgumentError,
36
+ Rubykassa::SignatureGenerator::KIND_ERROR_MESSAGE)
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,37 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rubykassa::PaymentInterface do
4
+ before(:each) do
5
+ @payment_interface = Rubykassa::PaymentInterface.new do
6
+ self.invoice_id = 12
7
+ self.total = 1200
8
+ self.params = { foo: 'bar' }
9
+ end
10
+ end
11
+
12
+ it 'should return correct pay_url' do
13
+ expect(@payment_interface.pay_url).to eq 'https://auth.robokassa.ru/Merchant/Index.aspx?MerchantLogin=your_login&OutSum=1200&InvId=12&IsTest=1&SignatureValue=bf0504363d89638669e057932857316c&shpfoo=bar'
14
+ end
15
+
16
+ it 'should return correct pay_url when additional options passed' do
17
+ url = @payment_interface.pay_url description: 'desc',
18
+ culture: 'ru',
19
+ email: 'foo@bar.com',
20
+ currency: ''
21
+ expect(url).to eq 'https://auth.robokassa.ru/Merchant/Index.aspx?MerchantLogin=your_login&OutSum=1200&InvId=12&IsTest=1&SignatureValue=bf0504363d89638669e057932857316c&shpfoo=bar&IncCurrLabel=&Desc=desc&Email=foo@bar.com&Culture=ru'
22
+ end
23
+
24
+ it 'should return correct initial_options' do
25
+ params = { login: 'your_login',
26
+ total: 1200,
27
+ invoice_id: 12,
28
+ signature: 'bf0504363d89638669e057932857316c',
29
+ shpfoo: 'bar',
30
+ is_test: 1 }
31
+ expect(@payment_interface.initial_options).to eq(params)
32
+ end
33
+
34
+ it 'should return correct test_mode?' do
35
+ expect(@payment_interface.test_mode?).to be_truthy
36
+ end
37
+ end
@@ -0,0 +1,60 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rubykassa::XmlInterface do
4
+ subject do
5
+ described_class.new do |interface|
6
+ interface.invoice_id = invoice_id
7
+ interface.total = total
8
+ interface.language = language
9
+ end
10
+ end
11
+
12
+ before(:all) { Rubykassa.configure {} }
13
+
14
+ let(:invoice_id) { 12 }
15
+ let(:total) { 12_000 }
16
+ let(:language) { :ru }
17
+
18
+ it 'sets all passed attributes into initializer block' do
19
+ aggregate_failures do
20
+ expect(subject.invoice_id).to eq invoice_id
21
+ expect(subject.total).to eq total
22
+ expect(subject.language).to eq language
23
+ end
24
+ end
25
+
26
+ it 'generates correct signature' do
27
+ expect(subject.send(:generate_signature))
28
+ .to eq 'dafff2859f7fd4d110badc476c90fb39'
29
+ end
30
+
31
+ it 'correctly transforms method name' do
32
+ expect(subject.send(:transform_method_name, 'some_method_name'))
33
+ .to eq 'SomeMethodName'
34
+ end
35
+
36
+ describe '#op_state' do
37
+ subject { described_class.new.op_state(params) }
38
+
39
+ context 'depends on mode' do
40
+ let(:params) { { 'StateCode' => 5 } }
41
+
42
+ before do
43
+ allow(Net::HTTP).to receive(:get_response) do |params|
44
+ OpenStruct.new(code: '200', body: params.to_s)
45
+ end
46
+ allow(MultiXml).to receive(:parse) { |object| object }
47
+ end
48
+
49
+ context 'accepts additional params with test mode' do
50
+ before { Rubykassa.configure { |c| c.mode = :test } }
51
+ it { is_expected.to eq('https://auth.robokassa.ru/Merchant/WebService/Service.asmx/OpState?MerchantLogin=your_login&InvoiceID=&Signature=7b7d63d7d72c05ee8470f467bda8adf1&isTest=1&StateCode=5') }
52
+ end
53
+
54
+ context 'ignores additional params with production mode' do
55
+ before { Rubykassa.configure { |c| c.mode = :production } }
56
+ it { is_expected.to eq('https://auth.robokassa.ru/Merchant/WebService/Service.asmx/OpState?MerchantLogin=your_login&InvoiceID=&Signature=7b7d63d7d72c05ee8470f467bda8adf1&isTest=0') }
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,11 @@
1
+ $LOAD_PATH.unshift File.expand_path('..', __FILE__)
2
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
3
+
4
+ require 'coveralls'
5
+ Coveralls.wear!
6
+
7
+ ENV['RAILS_ENV'] = 'test'
8
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
9
+
10
+ require 'rspec/rails'
11
+ require 'rubykassa'
metadata ADDED
@@ -0,0 +1,201 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubykassa-fixed
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.2
5
+ platform: ruby
6
+ authors:
7
+ - Sergey Kishenin
8
+ - Georgy Yuriev
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.18
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.18
27
+ - !ruby/object:Gem::Dependency
28
+ name: multi_xml
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: growl
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard-rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ email:
112
+ - sergey.kishenin@gmail.com
113
+ - georgy.yuriev@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".travis.yml"
120
+ - CHANGELOG.md
121
+ - Gemfile
122
+ - Guardfile
123
+ - MIT-LICENSE
124
+ - README.md
125
+ - Rakefile
126
+ - app/controllers/robokassa_controller.rb
127
+ - config/routes.rb
128
+ - lib/generators/rubykassa/install_generator.rb
129
+ - lib/generators/rubykassa/templates/rubykassa.rb
130
+ - lib/rubykassa.rb
131
+ - lib/rubykassa/action_view_extension.rb
132
+ - lib/rubykassa/client.rb
133
+ - lib/rubykassa/configuration.rb
134
+ - lib/rubykassa/engine.rb
135
+ - lib/rubykassa/notification.rb
136
+ - lib/rubykassa/payment_interface.rb
137
+ - lib/rubykassa/signature_generator.rb
138
+ - lib/rubykassa/version.rb
139
+ - lib/rubykassa/xml_interface.rb
140
+ - rubykassa-fixed.gemspec
141
+ - spec/dummy/README.rdoc
142
+ - spec/dummy/Rakefile
143
+ - spec/dummy/app/controllers/application_controller.rb
144
+ - spec/dummy/app/controllers/welcome_controller.rb
145
+ - spec/dummy/app/views/layouts/application.html.erb
146
+ - spec/dummy/app/views/welcome/index.html.erb
147
+ - spec/dummy/config.ru
148
+ - spec/dummy/config/application.rb
149
+ - spec/dummy/config/boot.rb
150
+ - spec/dummy/config/database.yml
151
+ - spec/dummy/config/environment.rb
152
+ - spec/dummy/config/environments/development.rb
153
+ - spec/dummy/config/environments/production.rb
154
+ - spec/dummy/config/environments/test.rb
155
+ - spec/dummy/config/initializers/backtrace_silencers.rb
156
+ - spec/dummy/config/initializers/inflections.rb
157
+ - spec/dummy/config/initializers/mime_types.rb
158
+ - spec/dummy/config/initializers/rubykassa.rb
159
+ - spec/dummy/config/initializers/secret_token.rb
160
+ - spec/dummy/config/initializers/session_store.rb
161
+ - spec/dummy/config/initializers/wrap_parameters.rb
162
+ - spec/dummy/config/locales/en.yml
163
+ - spec/dummy/config/routes.rb
164
+ - spec/dummy/db/development.sqlite3
165
+ - spec/dummy/db/test.sqlite3
166
+ - spec/dummy/public/404.html
167
+ - spec/dummy/public/422.html
168
+ - spec/dummy/public/500.html
169
+ - spec/dummy/public/favicon.ico
170
+ - spec/dummy/script/rails
171
+ - spec/rubykassa/client_configuration_spec.rb
172
+ - spec/rubykassa/notification_spec.rb
173
+ - spec/rubykassa/payment_interface_spec.rb
174
+ - spec/rubykassa/xml_interface_spec.rb
175
+ - spec/spec_helper.rb
176
+ homepage: https://github.com/light-flight/rubykassa
177
+ licenses:
178
+ - MIT
179
+ metadata: {}
180
+ rdoc_options: []
181
+ require_paths:
182
+ - lib
183
+ required_ruby_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ required_rubygems_version: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ requirements: []
194
+ rubygems_version: 3.7.1
195
+ specification_version: 4
196
+ summary: Robokassa integration fixed
197
+ test_files:
198
+ - spec/rubykassa/client_configuration_spec.rb
199
+ - spec/rubykassa/notification_spec.rb
200
+ - spec/rubykassa/payment_interface_spec.rb
201
+ - spec/rubykassa/xml_interface_spec.rb