rubykassa 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -6
- data/.gitignore +1 -0
- data/.travis.yml +9 -2
- data/Gemfile +25 -0
- data/README.md +18 -3
- data/lib/rubykassa/client.rb +10 -5
- data/lib/rubykassa/signature_generator.rb +13 -11
- data/lib/rubykassa/version.rb +1 -1
- data/rubykassa.gemspec +1 -1
- data/script/rails +0 -0
- data/spec/dummy/config/application.rb +7 -4
- data/spec/dummy/config/environments/development.rb +13 -11
- data/spec/dummy/config/environments/production.rb +11 -9
- data/spec/dummy/config/environments/test.rb +13 -11
- data/spec/dummy/config/initializers/wrap_parameters.rb +3 -3
- data/spec/dummy/script/rails +0 -0
- data/spec/rubykassa/client_configuration_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -2
- metadata +22 -22
- data/Gemfile.lock +0 -139
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
5
|
-
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7d486bd7b81b3a811917528df73900cd97ab377f
|
4
|
+
data.tar.gz: 5044ffb2c3dec297304207d6999004c231c7d9c8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2b11065ea8e3dd1b3bb6017b8ec82ccb8c30f6dd66e29693472afd1e147422edc7ca17afaccab68b7555eade3a0f748d8f8ec2fcb0bff879d434aee9f1978955
|
7
|
+
data.tar.gz: 40ed36d5bf65d054362b61799ec153634d2088f578d075faba933c0cefa9ab0df9f535d8ad1f9038bafaebb8ad4b1564f98cbcd2d560f8c6368f428d85bcb0c6
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 1.9.2
|
4
3
|
- 1.9.3
|
5
|
-
- rbx-19mode
|
6
4
|
- 2.0.0
|
5
|
+
env:
|
6
|
+
- "RAILS_VERSION=3.0.0"
|
7
|
+
- "RAILS_VERSION=3.1.0"
|
8
|
+
- "RAILS_VERSION=3.2.0"
|
9
|
+
- "RAILS_VERSION=4.0.0"
|
10
|
+
- "RAILS_VERSION=master"
|
11
|
+
matrix:
|
12
|
+
allow_failures:
|
13
|
+
- env: "RAILS_VERSION=master"
|
data/Gemfile
CHANGED
@@ -1,3 +1,28 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
|
+
rails_version = ENV["RAILS_VERSION"] || "default"
|
4
|
+
|
5
|
+
rails = case rails_version
|
6
|
+
when "master"
|
7
|
+
{ github: "rails/rails" }
|
8
|
+
when "3.0.0"
|
9
|
+
"~> 3.0.0"
|
10
|
+
when "3.1.0"
|
11
|
+
"~> 3.1.0"
|
12
|
+
when "3.2.0"
|
13
|
+
"~> 3.2.0"
|
14
|
+
when "4.0.0"
|
15
|
+
"~> 4.0.0"
|
16
|
+
when "default"
|
17
|
+
"~> 4.0.0"
|
18
|
+
else
|
19
|
+
"~> #{rails_version}"
|
20
|
+
end
|
21
|
+
|
22
|
+
gem "rails", rails
|
23
|
+
|
24
|
+
group :test do
|
25
|
+
gem "coveralls", require: false
|
26
|
+
end
|
27
|
+
|
3
28
|
gemspec
|
data/README.md
CHANGED
@@ -2,12 +2,15 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/rubykassa.png)](http://badge.fury.io/rb/rubykassa)
|
4
4
|
[![Build Status](https://secure.travis-ci.org/ZeroOneStudio/rubykassa.png)](http://travis-ci.org/ZeroOneStudio/rubykassa)
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/ZeroOneStudio/rubykassa/badge.png)](https://coveralls.io/r/ZeroOneStudio/rubykassa)
|
6
|
+
[![Code Climate](https://codeclimate.com/github/ZeroOneStudio/rubykassa.png)](https://codeclimate.com/github/ZeroOneStudio/rubykassa)
|
7
|
+
[![Dependency Status](https://gemnasium.com/ZeroOneStudio/rubykassa.png)](https://gemnasium.com/ZeroOneStudio/rubykassa)
|
5
8
|
|
6
9
|
by [Zero One][]
|
7
10
|
|
8
11
|
[Zero One]: http://zeroone.st
|
9
12
|
|
10
|
-
Yet another Ruby wrapper for [Robokassa API][]. Rubykassa took the best from [robokassa gem][] and [Active Merchant Robokassa integration] but easier to use and setup.
|
13
|
+
Yet another Ruby wrapper for [Robokassa API][]. Make Robokassa to work with your Rails project without pain. Rubykassa took the best from [robokassa gem][] and [Active Merchant Robokassa integration] but easier to use and setup.
|
11
14
|
|
12
15
|
[Robokassa API]: http://robokassa.ru/ru/Doc/Ru/Interface.aspx
|
13
16
|
[robokassa gem]: https://github.com/shaggyone/robokassa
|
@@ -37,7 +40,7 @@ and configure it with your credentials.
|
|
37
40
|
Mode is `:test` by default. For production you have to use `:production`.
|
38
41
|
`http_method` and `xml_http_method` are `:get` by default but can be configured as `:post`
|
39
42
|
|
40
|
-
Once you are done,
|
43
|
+
Once you are done, simply use `pay_url` helper in your view:
|
41
44
|
|
42
45
|
<%= pay_url "Pay with Robokassa", ivoice_id, total_sum %>
|
43
46
|
|
@@ -60,9 +63,21 @@ then call whatever you need
|
|
60
63
|
xml_interface.get_rates
|
61
64
|
xml_interface.op_state
|
62
65
|
|
66
|
+
## Supported Rubies and Rails versions
|
67
|
+
|
68
|
+
Rubies:
|
69
|
+
* 1.9.3
|
70
|
+
* 2.0.0
|
71
|
+
|
72
|
+
Rails:
|
73
|
+
* ~> 3.0.0
|
74
|
+
* ~> 3.1.0
|
75
|
+
* ~> 3.2.0
|
76
|
+
* ~> 4.0.0
|
77
|
+
|
63
78
|
## License
|
64
79
|
|
65
80
|
This project rocks and uses MIT-LICENSE
|
66
81
|
Copyright (c) 2013 [Zero One][]
|
67
82
|
|
68
|
-
[ZERO.ONE]: http://www.zeroone.st
|
83
|
+
[ZERO.ONE]: http://www.zeroone.st
|
data/lib/rubykassa/client.rb
CHANGED
@@ -2,7 +2,15 @@
|
|
2
2
|
require 'rubykassa/configuration'
|
3
3
|
|
4
4
|
module Rubykassa
|
5
|
-
class ConfigurationError < StandardError
|
5
|
+
class ConfigurationError < StandardError
|
6
|
+
class << self
|
7
|
+
def raise_errors_for configuration
|
8
|
+
raise ConfigurationError, "Available modes are :test or :production" unless [:test, :production].include? configuration.mode
|
9
|
+
raise ConfigurationError, "Available http methods are :get or :post" unless [:get, :post].include? configuration.http_method
|
10
|
+
raise ConfigurationError, "Available xml http methods are :get or :post" unless [:get, :post].include? configuration.xml_http_method
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
6
14
|
|
7
15
|
class Client
|
8
16
|
class << self
|
@@ -11,10 +19,7 @@ module Rubykassa
|
|
11
19
|
def configure
|
12
20
|
self.configuration = Rubykassa::Configuration.new
|
13
21
|
yield self.configuration
|
14
|
-
|
15
|
-
raise ConfigurationError, "Alailable modes are :test or :production" unless [:test, :production].include? self.configuration.mode
|
16
|
-
raise ConfigurationError, "Alailable http methods are :get or :post" unless [:get, :post].include? self.configuration.http_method
|
17
|
-
raise ConfigurationError, "Alailable xml http methods are :get or :post" unless [:get, :post].include? self.configuration.xml_http_method
|
22
|
+
ConfigurationError.raise_errors_for self.configuration
|
18
23
|
end
|
19
24
|
end
|
20
25
|
end
|
@@ -2,20 +2,22 @@
|
|
2
2
|
module Rubykassa
|
3
3
|
module SignatureGenerator
|
4
4
|
def generate_signature_for kind
|
5
|
-
raise ArgumentError, "Available kinds are only :payment, :result or :success"
|
6
|
-
|
7
|
-
custom_params = custom_param_keys.map {|key| "#{key}=#{params[key]}"}
|
5
|
+
raise ArgumentError, "Available kinds are only :payment, :result or :success" unless [:success, :payment, :result].include? kind
|
6
|
+
custom_params = @params.keys.select {|key| key =~ /^shp/ }.sort.map {|key| "#{key}=#{params[key]}"}
|
8
7
|
custom_params_string = custom_params.present? ? ":#{custom_params}" : ""
|
8
|
+
|
9
|
+
Digest::MD5.hexdigest(params_string(kind, custom_params_string))
|
10
|
+
end
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
def params_string kind, custom_params_string
|
13
|
+
string = case kind
|
14
|
+
when :payment
|
15
|
+
[Rubykassa.login, @total, @invoice_id, Rubykassa.first_password].join(":") + custom_params_string
|
16
|
+
when :result
|
17
|
+
[@total, @invoice_id, Rubykassa.second_password].join(":") + custom_params_string
|
18
|
+
when :success
|
19
|
+
[@total, @invoice_id, Rubykassa.first_password].join(":") + custom_params_string
|
16
20
|
end
|
17
|
-
|
18
|
-
signature = Digest::MD5.hexdigest(string)
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
data/lib/rubykassa/version.rb
CHANGED
data/rubykassa.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
17
17
|
s.test_files = `git ls-files -- spec/rubykassa/*`.split("\n")
|
18
18
|
|
19
|
-
s.add_dependency "rails", "
|
19
|
+
s.add_dependency "rails", ">= 3.0"
|
20
20
|
s.add_dependency "multi_xml"
|
21
21
|
|
22
22
|
s.add_development_dependency "sqlite3"
|
data/script/rails
CHANGED
File without changes
|
@@ -3,7 +3,10 @@ require File.expand_path('../boot', __FILE__)
|
|
3
3
|
|
4
4
|
require 'rails/all'
|
5
5
|
|
6
|
-
Bundler
|
6
|
+
if defined?(Bundler)
|
7
|
+
ENV["RAILS_VERSION"] == "3.0.0" ? Bundler.require(:default, Rails.env) : Bundler.require(*Rails.groups)
|
8
|
+
end
|
9
|
+
|
7
10
|
require "rubykassa"
|
8
11
|
|
9
12
|
module Dummy
|
@@ -48,13 +51,13 @@ module Dummy
|
|
48
51
|
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
49
52
|
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
50
53
|
# parameters by using an attr_accessible or attr_protected declaration.
|
51
|
-
config.active_record.whitelist_attributes = true
|
54
|
+
# config.active_record.whitelist_attributes = true
|
52
55
|
|
53
56
|
# Enable the asset pipeline
|
54
|
-
config.assets.enabled = true
|
57
|
+
# config.assets.enabled = true
|
55
58
|
|
56
59
|
# Version of your assets, change this if you want to expire all your assets
|
57
|
-
config.assets.version = '1.0'
|
60
|
+
# config.assets.version = '1.0'
|
58
61
|
end
|
59
62
|
end
|
60
63
|
|
@@ -5,34 +5,36 @@ Dummy::Application.configure do
|
|
5
5
|
# In the development environment your application's code is reloaded on
|
6
6
|
# every request. This slows down response time but is perfect for development
|
7
7
|
# since you don't have to restart the web server when you make code changes.
|
8
|
-
config.cache_classes = false
|
8
|
+
# config.cache_classes = false
|
9
9
|
|
10
10
|
# Log error messages when you accidentally call methods on nil.
|
11
|
-
|
11
|
+
# cconfig.whiny_nils = true
|
12
12
|
|
13
13
|
# Show full error reports and disable caching
|
14
|
-
config.consider_all_requests_local = true
|
15
|
-
config.action_controller.perform_caching = false
|
14
|
+
# config.consider_all_requests_local = true
|
15
|
+
# config.action_controller.perform_caching = false
|
16
16
|
|
17
17
|
# Don't care if the mailer can't send
|
18
|
-
config.action_mailer.raise_delivery_errors = false
|
18
|
+
# config.action_mailer.raise_delivery_errors = false
|
19
19
|
|
20
20
|
# Print deprecation notices to the Rails logger
|
21
|
-
config.active_support.deprecation = :log
|
21
|
+
# config.active_support.deprecation = :log
|
22
22
|
|
23
23
|
# Only use best-standards-support built into browsers
|
24
|
-
config.action_dispatch.best_standards_support = :builtin
|
24
|
+
# config.action_dispatch.best_standards_support = :builtin
|
25
25
|
|
26
26
|
# Raise exception on mass assignment protection for Active Record models
|
27
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
+
# config.active_record.mass_assignment_sanitizer = :strict
|
28
28
|
|
29
29
|
# Log the query plan for queries taking more than this (works
|
30
30
|
# with SQLite, MySQL, and PostgreSQL)
|
31
|
-
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
31
|
+
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
32
32
|
|
33
33
|
# Do not compress assets
|
34
|
-
config.assets.compress = false
|
34
|
+
# config.assets.compress = false
|
35
35
|
|
36
36
|
# Expands the lines which load the assets
|
37
|
-
config.assets.debug = true
|
37
|
+
# config.assets.debug = true
|
38
|
+
|
39
|
+
config.eager_load = false
|
38
40
|
end
|
@@ -3,23 +3,23 @@ Dummy::Application.configure do
|
|
3
3
|
# Settings specified here will take precedence over those in config/application.rb
|
4
4
|
|
5
5
|
# Code is not reloaded between requests
|
6
|
-
config.cache_classes = true
|
6
|
+
# config.cache_classes = true
|
7
7
|
|
8
8
|
# Full error reports are disabled and caching is turned on
|
9
|
-
config.consider_all_requests_local = false
|
10
|
-
config.action_controller.perform_caching = true
|
9
|
+
# config.consider_all_requests_local = false
|
10
|
+
# config.action_controller.perform_caching = true
|
11
11
|
|
12
12
|
# Disable Rails's static asset server (Apache or nginx will already do this)
|
13
|
-
config.serve_static_assets = false
|
13
|
+
# config.serve_static_assets = false
|
14
14
|
|
15
15
|
# Compress JavaScripts and CSS
|
16
|
-
config.assets.compress = true
|
16
|
+
# config.assets.compress = true
|
17
17
|
|
18
18
|
# Don't fallback to assets pipeline if a precompiled asset is missed
|
19
|
-
config.assets.compile = false
|
19
|
+
# config.assets.compile = false
|
20
20
|
|
21
21
|
# Generate digests for assets URLs
|
22
|
-
config.assets.digest = true
|
22
|
+
# config.assets.digest = true
|
23
23
|
|
24
24
|
# Defaults to nil and saved in location specified by config.assets.prefix
|
25
25
|
# config.assets.manifest = YOUR_PATH
|
@@ -57,12 +57,14 @@ Dummy::Application.configure do
|
|
57
57
|
|
58
58
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
59
59
|
# the I18n.default_locale when a translation can not be found)
|
60
|
-
config.i18n.fallbacks = true
|
60
|
+
# config.i18n.fallbacks = true
|
61
61
|
|
62
62
|
# Send deprecation notices to registered listeners
|
63
|
-
config.active_support.deprecation = :notify
|
63
|
+
# config.active_support.deprecation = :notify
|
64
64
|
|
65
65
|
# Log the query plan for queries taking more than this (works
|
66
66
|
# with SQLite, MySQL, and PostgreSQL)
|
67
67
|
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
68
|
+
|
69
|
+
config.eager_load = true
|
68
70
|
end
|
@@ -6,33 +6,35 @@ Dummy::Application.configure do
|
|
6
6
|
# test suite. You never need to work with it otherwise. Remember that
|
7
7
|
# your test database is "scratch space" for the test suite and is wiped
|
8
8
|
# and recreated between test runs. Don't rely on the data there!
|
9
|
-
config.cache_classes = true
|
9
|
+
# config.cache_classes = true
|
10
10
|
|
11
11
|
# Configure static asset server for tests with Cache-Control for performance
|
12
|
-
config.serve_static_assets = true
|
13
|
-
config.static_cache_control = "public, max-age=3600"
|
12
|
+
# config.serve_static_assets = true
|
13
|
+
# config.static_cache_control = "public, max-age=3600"
|
14
14
|
|
15
15
|
# Log error messages when you accidentally call methods on nil
|
16
|
-
config.whiny_nils = true
|
16
|
+
# config.whiny_nils = true
|
17
17
|
|
18
18
|
# Show full error reports and disable caching
|
19
|
-
config.consider_all_requests_local = true
|
20
|
-
config.action_controller.perform_caching = false
|
19
|
+
# config.consider_all_requests_local = true
|
20
|
+
# config.action_controller.perform_caching = false
|
21
21
|
|
22
22
|
# Raise exceptions instead of rendering exception templates
|
23
|
-
config.action_dispatch.show_exceptions = false
|
23
|
+
# config.action_dispatch.show_exceptions = false
|
24
24
|
|
25
25
|
# Disable request forgery protection in test environment
|
26
|
-
config.action_controller.allow_forgery_protection = false
|
26
|
+
# config.action_controller.allow_forgery_protection = false
|
27
27
|
|
28
28
|
# Tell Action Mailer not to deliver emails to the real world.
|
29
29
|
# The :test delivery method accumulates sent emails in the
|
30
30
|
# ActionMailer::Base.deliveries array.
|
31
|
-
config.action_mailer.delivery_method = :test
|
31
|
+
# config.action_mailer.delivery_method = :test
|
32
32
|
|
33
33
|
# Raise exception on mass assignment protection for Active Record models
|
34
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
+
# config.active_record.mass_assignment_sanitizer = :strict
|
35
35
|
|
36
36
|
# Print deprecation notices to the stderr
|
37
|
-
config.active_support.deprecation = :stderr
|
37
|
+
# config.active_support.deprecation = :stderr
|
38
|
+
|
39
|
+
config.eager_load = false
|
38
40
|
end
|
@@ -5,9 +5,9 @@
|
|
5
5
|
# is enabled by default.
|
6
6
|
|
7
7
|
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
8
|
-
ActiveSupport.on_load(:action_controller) do
|
9
|
-
|
10
|
-
end
|
8
|
+
# ActiveSupport.on_load(:action_controller) do
|
9
|
+
# wrap_parameters format: [:json]
|
10
|
+
# end
|
11
11
|
|
12
12
|
# Disable root element in JSON by default.
|
13
13
|
ActiveSupport.on_load(:active_record) do
|
data/spec/dummy/script/rails
CHANGED
File without changes
|
@@ -39,7 +39,7 @@ describe Rubykassa::Client do
|
|
39
39
|
Rubykassa.configure do |config|
|
40
40
|
config.mode = :bullshit
|
41
41
|
end
|
42
|
-
}.to raise_error(Rubykassa::ConfigurationError, "
|
42
|
+
}.to raise_error(Rubykassa::ConfigurationError, "Available modes are :test or :production")
|
43
43
|
end
|
44
44
|
|
45
45
|
it "should raise error when wrong http_method is set" do
|
@@ -47,7 +47,7 @@ describe Rubykassa::Client do
|
|
47
47
|
Rubykassa.configure do |config|
|
48
48
|
config.http_method = :bullshit
|
49
49
|
end
|
50
|
-
}.to raise_error(Rubykassa::ConfigurationError, "
|
50
|
+
}.to raise_error(Rubykassa::ConfigurationError, "Available http methods are :get or :post")
|
51
51
|
end
|
52
52
|
|
53
53
|
it "should raise error when wrong xml_http_method is set" do
|
@@ -55,6 +55,6 @@ describe Rubykassa::Client do
|
|
55
55
|
Rubykassa.configure do |config|
|
56
56
|
config.xml_http_method = :bullshit
|
57
57
|
end
|
58
|
-
}.to raise_error(Rubykassa::ConfigurationError, "
|
58
|
+
}.to raise_error(Rubykassa::ConfigurationError, "Available xml http methods are :get or :post")
|
59
59
|
end
|
60
60
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,111 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubykassa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Kishenin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: multi_xml
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: growl
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: guard
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: guard-rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
description: Yet another Ruby wrapper for Robokassa API aimed to make Robokassa integration
|
@@ -119,7 +119,6 @@ files:
|
|
119
119
|
- .gitignore
|
120
120
|
- .travis.yml
|
121
121
|
- Gemfile
|
122
|
-
- Gemfile.lock
|
123
122
|
- Guardfile
|
124
123
|
- MIT-LICENSE
|
125
124
|
- README.md
|
@@ -186,17 +185,17 @@ require_paths:
|
|
186
185
|
- lib
|
187
186
|
required_ruby_version: !ruby/object:Gem::Requirement
|
188
187
|
requirements:
|
189
|
-
- -
|
188
|
+
- - '>='
|
190
189
|
- !ruby/object:Gem::Version
|
191
190
|
version: '0'
|
192
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
192
|
requirements:
|
194
|
-
- -
|
193
|
+
- - '>='
|
195
194
|
- !ruby/object:Gem::Version
|
196
195
|
version: '0'
|
197
196
|
requirements: []
|
198
197
|
rubyforge_project:
|
199
|
-
rubygems_version: 2.
|
198
|
+
rubygems_version: 2.1.5
|
200
199
|
signing_key:
|
201
200
|
specification_version: 4
|
202
201
|
summary: Yet another Ruby wrapper for Robokassa API
|
@@ -205,3 +204,4 @@ test_files:
|
|
205
204
|
- spec/rubykassa/notification_spec.rb
|
206
205
|
- spec/rubykassa/payment_interface_spec.rb
|
207
206
|
- spec/rubykassa/xml_interface_spec.rb
|
207
|
+
has_rdoc:
|
data/Gemfile.lock
DELETED
@@ -1,139 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
rubykassa (0.1.0)
|
5
|
-
multi_xml
|
6
|
-
rails (~> 3.2.13)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: http://rubygems.org/
|
10
|
-
specs:
|
11
|
-
actionmailer (3.2.13)
|
12
|
-
actionpack (= 3.2.13)
|
13
|
-
mail (~> 2.5.3)
|
14
|
-
actionpack (3.2.13)
|
15
|
-
activemodel (= 3.2.13)
|
16
|
-
activesupport (= 3.2.13)
|
17
|
-
builder (~> 3.0.0)
|
18
|
-
erubis (~> 2.7.0)
|
19
|
-
journey (~> 1.0.4)
|
20
|
-
rack (~> 1.4.5)
|
21
|
-
rack-cache (~> 1.2)
|
22
|
-
rack-test (~> 0.6.1)
|
23
|
-
sprockets (~> 2.2.1)
|
24
|
-
activemodel (3.2.13)
|
25
|
-
activesupport (= 3.2.13)
|
26
|
-
builder (~> 3.0.0)
|
27
|
-
activerecord (3.2.13)
|
28
|
-
activemodel (= 3.2.13)
|
29
|
-
activesupport (= 3.2.13)
|
30
|
-
arel (~> 3.0.2)
|
31
|
-
tzinfo (~> 0.3.29)
|
32
|
-
activeresource (3.2.13)
|
33
|
-
activemodel (= 3.2.13)
|
34
|
-
activesupport (= 3.2.13)
|
35
|
-
activesupport (3.2.13)
|
36
|
-
i18n (= 0.6.1)
|
37
|
-
multi_json (~> 1.0)
|
38
|
-
arel (3.0.2)
|
39
|
-
builder (3.0.4)
|
40
|
-
coderay (1.0.9)
|
41
|
-
diff-lcs (1.2.4)
|
42
|
-
erubis (2.7.0)
|
43
|
-
ffi (1.8.1)
|
44
|
-
formatador (0.2.4)
|
45
|
-
growl (1.0.3)
|
46
|
-
guard (1.8.0)
|
47
|
-
formatador (>= 0.2.4)
|
48
|
-
listen (>= 1.0.0)
|
49
|
-
lumberjack (>= 1.0.2)
|
50
|
-
pry (>= 0.9.10)
|
51
|
-
thor (>= 0.14.6)
|
52
|
-
guard-rspec (1.2.1)
|
53
|
-
guard (>= 1.1)
|
54
|
-
hike (1.2.2)
|
55
|
-
i18n (0.6.1)
|
56
|
-
journey (1.0.4)
|
57
|
-
json (1.8.0)
|
58
|
-
listen (1.1.4)
|
59
|
-
rb-fsevent (>= 0.9.3)
|
60
|
-
rb-inotify (>= 0.9)
|
61
|
-
rb-kqueue (>= 0.2)
|
62
|
-
lumberjack (1.0.3)
|
63
|
-
mail (2.5.4)
|
64
|
-
mime-types (~> 1.16)
|
65
|
-
treetop (~> 1.4.8)
|
66
|
-
method_source (0.8.1)
|
67
|
-
mime-types (1.23)
|
68
|
-
multi_json (1.7.4)
|
69
|
-
multi_xml (0.5.3)
|
70
|
-
polyglot (0.3.3)
|
71
|
-
pry (0.9.12.2)
|
72
|
-
coderay (~> 1.0.5)
|
73
|
-
method_source (~> 0.8)
|
74
|
-
slop (~> 3.4)
|
75
|
-
rack (1.4.5)
|
76
|
-
rack-cache (1.2)
|
77
|
-
rack (>= 0.4)
|
78
|
-
rack-ssl (1.3.3)
|
79
|
-
rack
|
80
|
-
rack-test (0.6.2)
|
81
|
-
rack (>= 1.0)
|
82
|
-
rails (3.2.13)
|
83
|
-
actionmailer (= 3.2.13)
|
84
|
-
actionpack (= 3.2.13)
|
85
|
-
activerecord (= 3.2.13)
|
86
|
-
activeresource (= 3.2.13)
|
87
|
-
activesupport (= 3.2.13)
|
88
|
-
bundler (~> 1.0)
|
89
|
-
railties (= 3.2.13)
|
90
|
-
railties (3.2.13)
|
91
|
-
actionpack (= 3.2.13)
|
92
|
-
activesupport (= 3.2.13)
|
93
|
-
rack-ssl (~> 1.3.2)
|
94
|
-
rake (>= 0.8.7)
|
95
|
-
rdoc (~> 3.4)
|
96
|
-
thor (>= 0.14.6, < 2.0)
|
97
|
-
rake (10.0.4)
|
98
|
-
rb-fsevent (0.9.3)
|
99
|
-
rb-inotify (0.9.0)
|
100
|
-
ffi (>= 0.5.0)
|
101
|
-
rb-kqueue (0.2.0)
|
102
|
-
ffi (>= 0.5.0)
|
103
|
-
rdoc (3.12.2)
|
104
|
-
json (~> 1.4)
|
105
|
-
rspec-core (2.13.1)
|
106
|
-
rspec-expectations (2.13.0)
|
107
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
108
|
-
rspec-mocks (2.13.1)
|
109
|
-
rspec-rails (2.13.2)
|
110
|
-
actionpack (>= 3.0)
|
111
|
-
activesupport (>= 3.0)
|
112
|
-
railties (>= 3.0)
|
113
|
-
rspec-core (~> 2.13.0)
|
114
|
-
rspec-expectations (~> 2.13.0)
|
115
|
-
rspec-mocks (~> 2.13.0)
|
116
|
-
slop (3.4.5)
|
117
|
-
sprockets (2.2.2)
|
118
|
-
hike (~> 1.2)
|
119
|
-
multi_json (~> 1.0)
|
120
|
-
rack (~> 1.0)
|
121
|
-
tilt (~> 1.1, != 1.3.0)
|
122
|
-
sqlite3 (1.3.7)
|
123
|
-
thor (0.18.1)
|
124
|
-
tilt (1.4.1)
|
125
|
-
treetop (1.4.12)
|
126
|
-
polyglot
|
127
|
-
polyglot (>= 0.3.1)
|
128
|
-
tzinfo (0.3.37)
|
129
|
-
|
130
|
-
PLATFORMS
|
131
|
-
ruby
|
132
|
-
|
133
|
-
DEPENDENCIES
|
134
|
-
growl
|
135
|
-
guard
|
136
|
-
guard-rspec
|
137
|
-
rspec-rails
|
138
|
-
rubykassa!
|
139
|
-
sqlite3
|