yandex_uslugi_wrapper 0.1.1

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.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "activeresource", ">= 3.0.10"
4
+
5
+ group :development, :test do
6
+ gem "bundler", "~> 1.0.0"
7
+ gem "jeweler", "~> 1.6.4"
8
+ gem 'rspec', ">= 2.6.0"
9
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,39 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activemodel (3.1.1)
5
+ activesupport (= 3.1.1)
6
+ builder (~> 3.0.0)
7
+ i18n (~> 0.6)
8
+ activeresource (3.1.1)
9
+ activemodel (= 3.1.1)
10
+ activesupport (= 3.1.1)
11
+ activesupport (3.1.1)
12
+ multi_json (~> 1.0)
13
+ builder (3.0.0)
14
+ diff-lcs (1.1.3)
15
+ git (1.2.5)
16
+ i18n (0.6.0)
17
+ jeweler (1.6.4)
18
+ bundler (~> 1.0)
19
+ git (>= 1.2.5)
20
+ rake
21
+ multi_json (1.0.3)
22
+ rake (0.9.2)
23
+ rspec (2.7.0)
24
+ rspec-core (~> 2.7.0)
25
+ rspec-expectations (~> 2.7.0)
26
+ rspec-mocks (~> 2.7.0)
27
+ rspec-core (2.7.0)
28
+ rspec-expectations (2.7.0)
29
+ diff-lcs (~> 1.1.2)
30
+ rspec-mocks (2.7.0)
31
+
32
+ PLATFORMS
33
+ ruby
34
+
35
+ DEPENDENCIES
36
+ activeresource (>= 3.0.10)
37
+ bundler (~> 1.0.0)
38
+ jeweler (~> 1.6.4)
39
+ rspec (>= 2.6.0)
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Idris
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,55 @@
1
+ = yandex_uslugi_wrapper
2
+
3
+ Данный Gem является оберткой над {API Яндекс Услуг}[http://api.yandex.ru/uslugi/doc/banks-dg/concepts/about.xml].
4
+ Предоставляет основные функции поиска по id и по параметрам для банковских услуг.
5
+
6
+ == Зависимости
7
+ * ruby 1.8.7 -p352
8
+ * activeresource (>= 3.0.10), возможно будет работать на ранних версиях
9
+ * rspec 2.7.0 для тестов
10
+
11
+ == Установка
12
+ gem install yandex_uslugi_wrapper
13
+
14
+ == Использование
15
+ require 'rubygems'
16
+ require 'yandex_uslugi_wrapper'
17
+
18
+ # Задание Api Key и Referer
19
+ YandexUslugiWrapper.api_key = "YOUR API KEY"
20
+ YandexUslugiWrapper.referer = "YOUR REFERER"
21
+
22
+ # Поиск всех банков из Уфы
23
+ ufa_banks = YandexUslugiWrapper::Bank.all :region => "Уфа"
24
+ # Получение первого элемента из массива
25
+ ufa_bank_first = ufa_banks.first
26
+ # Вывод имени сайта первого банка
27
+ puts ufa_bank_first.name #=> Имя первого банка
28
+ puts ufa_bank_first.link #=> Ссылки для первого банка
29
+
30
+
31
+ # Поиск банка с id = 90 из Уфы
32
+ id = 90
33
+ YandexUslugiWrapper::Bank.find id, :region => "Уфа"
34
+
35
+ # Возвращает информацию о вкладах, доступных в указанном регионе и соответствующих параметрам запроса
36
+ YandexUslugiWrapper::Deposit.search :region => "Уфа", :currency => "RUB", :sum => 55555, :period => "3 years"
37
+
38
+ # В качестве параметров хэша для метода search можно передать всё то, что указано в документации к API Яндекс Услуг
39
+ YandexUslugiWrapper::Autocredit.search :region => "Уфа", :currency => "RUB", :sum => 55555, :period => "3 years"
40
+
41
+ id = 8230
42
+ YandexUslugiWrapper::Autocredit.find id
43
+ YandexUslugiWrapper::Deposit.find id
44
+
45
+
46
+
47
+ == Тестирование:
48
+
49
+ Необходимо добавить свои Api key и Referer в spec/api_and_referer.rb
50
+
51
+ == Copyright
52
+
53
+ Copyright (c) 2011. See LICENSE.txt for
54
+ further details.
55
+
data/Rakefile ADDED
@@ -0,0 +1,38 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "yandex_uslugi_wrapper"
18
+ gem.homepage = "http://github.com/sld/yandex_uslugi_wrapper"
19
+ gem.license = "MIT"
20
+ gem.summary = "Yandex Uslugi Api Wrapper"
21
+ gem.description = "Yandex Uslugi Api Wrapper on Ruby.\n
22
+ More info about Api on http://api.yandex.ru/uslugi/doc/banks-dg/concepts/about.xml"
23
+ gem.email = "sld7700@gmail.com"
24
+ gem.authors = ["sld7700"]
25
+ # dependencies defined in Gemfile
26
+ end
27
+ Jeweler::RubygemsDotOrgTasks.new
28
+
29
+ require 'rake/rdoctask'
30
+ Rake::RDocTask.new do |rdoc|
31
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
32
+
33
+ rdoc.rdoc_dir = 'rdoc'
34
+ rdoc.title = "yandex_uslugi #{version}"
35
+ rdoc.rdoc_files.include('README*')
36
+ rdoc.rdoc_files.include('lib/**/*.rb')
37
+ end
38
+
data/VERSION ADDED
@@ -0,0 +1,2 @@
1
+ 0.1.1
2
+
@@ -0,0 +1,29 @@
1
+ module YandexUslugiWrapper
2
+ dir = "yandex_uslugi_wrapper"
3
+ require "#{dir}/yandex_usluga"
4
+ require "#{dir}/hash"
5
+ require "#{dir}/bank"
6
+ require "#{dir}/bank_product"
7
+ require "#{dir}/credit"
8
+ require "#{dir}/deposit"
9
+ require "#{dir}/mortgage"
10
+ require "#{dir}/autocredit"
11
+
12
+ def self.api_key=(key)
13
+ YandexUsluga.api_key = key
14
+ end
15
+
16
+ def self.api_key
17
+ YandexUsluga.api_key
18
+ end
19
+
20
+ def self.referer
21
+ YandexUsluga.referer
22
+ end
23
+
24
+ def self.referer=(referer_site)
25
+ YandexUsluga.referer = referer_site
26
+ end
27
+
28
+ end
29
+
@@ -0,0 +1,5 @@
1
+ module YandexUslugiWrapper
2
+ class Autocredit < BankProduct
3
+ end
4
+ end
5
+
@@ -0,0 +1,32 @@
1
+ module YandexUslugiWrapper
2
+ # Класс реализует доступ к спискам банков и определенному банку
3
+ # Запрос осуществляется так:
4
+ # Для нахождения всех банков из Уфы -- Bank.find :all, :params => {:region => "Уфа"}
5
+ # Обязательным, при запросе Банков, является использование region
6
+ class Bank < YandexUsluga
7
+ # Поиск всех банков из региона
8
+ # === Example
9
+ # Bank.all :region => "Уфа"
10
+ # Bank.all :params => { :region => "Уфа" }
11
+ def self.all region
12
+ unless region[:params]
13
+ super :params => region
14
+ else
15
+ super
16
+ end
17
+ end
18
+
19
+ # Поиск банка с определенным id
20
+ # === Example
21
+ # Bank.find 90, :region => "Уфа"
22
+ # Bank.find 90, :params => { :region => "Уфа" }
23
+ def self.find id, region
24
+ unless region[:params]
25
+ super id, :params => region
26
+ else
27
+ super
28
+ end
29
+ end
30
+ end
31
+ end
32
+
@@ -0,0 +1,19 @@
1
+
2
+ module YandexUslugiWrapper
3
+ # Абстрактный класс который используется только в подклассах, например Autocredit, Deposit ...
4
+ class BankProduct < YandexUsluga
5
+ self.prefix += 'banks/'
6
+
7
+ # Поиск по банковским продуктам - есть 4 обязательных параметра => :region(Уфа), :currency(RUB),
8
+ # :sum(3000), :period(5 years) и множество дополнительных
9
+ # Данный метод можно использовать только в дочерних классах. Т.е по банкам поиска нету
10
+ def self.search( options = {} )
11
+ require_options = [options[:region], options[:currency], options[:sum], options[:period]]
12
+ if require_options.compact.include?(nil) || require_options.compact.empty?
13
+ puts "Один из обязательных параметров поиска( :region, :currency. :sum, :period ) не задан"
14
+ end
15
+ find :all, :from => "#{prefix}#{collection_name}/search", :params => options
16
+ end
17
+ end
18
+ end
19
+
@@ -0,0 +1,5 @@
1
+ module YandexUslugiWrapper
2
+ class Credit < BankProduct
3
+ end
4
+ end
5
+
@@ -0,0 +1,6 @@
1
+ module YandexUslugiWrapper
2
+ # Класс реализует работу с вкладами Яндекс Услуг
3
+ class Deposit < BankProduct
4
+ end
5
+ end
6
+
@@ -0,0 +1,18 @@
1
+ # Evil hack для исправления ошибки с `collect!
2
+ # Ошибка возникает при вызове Bank.all, search
3
+ # https://github.com/rails/rails/issues/2318
4
+ class Hash
5
+ def collect!(&block)
6
+ ret = []
7
+ self.each {|key,val|
8
+ if val.kind_of? Array
9
+ val.collect!{|subval|
10
+ block.call subval
11
+ }
12
+ ret = val
13
+ end
14
+ }
15
+ return ret
16
+ end
17
+ end
18
+
@@ -0,0 +1,5 @@
1
+ module YandexUslugiWrapper
2
+ class Mortgage < BankProduct
3
+ end
4
+ end
5
+
@@ -0,0 +1,77 @@
1
+ require 'active_resource'
2
+ require 'yandex_uslugi_wrapper/hash'
3
+
4
+ module YandexUslugiWrapper
5
+ # Класс является базовым для Яндекс Услуг
6
+ # Здесь задаются api ключ, основной url для запроса, referer
7
+ # Также реализуется наследование headers и методы генерирующие url
8
+ class YandexUsluga < ActiveResource::Base
9
+ API_SITE = URI::parse("http://api.uslugi.yandex.ru")
10
+ API_PREFIX = "/1.0/"
11
+
12
+ self.site = API_SITE
13
+ self.prefix = API_PREFIX
14
+ self.format = :xml
15
+
16
+ # Задание Api key и Referer'a. Необходимы для работы с Яндекс Услугами
17
+ @@api_key = ""
18
+ @@referer = ""
19
+
20
+ class << self
21
+ # Если headers не заданы в подклассе, то назначаем ему
22
+ # headers суперкласса
23
+ def headers
24
+ if defined?(@headers)
25
+ @headers
26
+ elsif superclass != Object && superclass.headers
27
+ superclass.headers
28
+ else
29
+ @headers ||= {}
30
+ end
31
+ end
32
+
33
+ def api_key
34
+ @@api_key
35
+ end
36
+
37
+ def api_key=(key)
38
+ @@api_key = key
39
+ use_api_key
40
+ end
41
+
42
+ def referer
43
+ @@referer
44
+ end
45
+
46
+ def referer=(referer_site)
47
+ @@referer = referer_site
48
+ use_referer_site
49
+ end
50
+
51
+ # Метод генерирует url для элемента, например /banks/{id}
52
+ # Удаляем из стандратного метода .#{format.extension}, чтобы в конце запроса не было .xml
53
+ def element_path(id, prefix_options = {}, query_options = nil)
54
+ prefix_options, query_options = split_options(prefix_options) if query_options.nil?
55
+ "#{prefix(prefix_options)}#{collection_name}/#{id}#{query_string(query_options)}"
56
+ end
57
+
58
+ # Метод генерирует url для коллекции, например /banks
59
+ # Также удаляем .#{format.extension}
60
+ def collection_path(prefix_options = {}, query_options = nil)
61
+ prefix_options, query_options = split_options(prefix_options) if query_options.nil?
62
+ "#{prefix(prefix_options)}#{collection_name}#{query_string(query_options)}"
63
+ end
64
+
65
+ end
66
+
67
+ private
68
+ def self.use_api_key
69
+ self.headers['Authorization'] = @@api_key
70
+ end
71
+
72
+ def self.use_referer_site
73
+ self.headers['Referer'] = @@referer
74
+ end
75
+ end
76
+ end
77
+
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Yandex uslugi api base" do
4
+ it "should return that referer header is equal to setted referer" do
5
+ YandexUsluga.referer = REFERER
6
+ YandexUsluga.headers['Referer'].should == REFERER
7
+ end
8
+
9
+ it "should return some generated url with the api_key" do
10
+ pending
11
+ end
12
+
13
+ it "should set referer and api key and check his work in descendent class " do
14
+ referer_site = REFERER
15
+ api_key = API_KEY
16
+ YandexUsluga.referer = referer_site
17
+ YandexUsluga.api_key = api_key
18
+ YandexUsluga.headers['Authorization'].should == YandexUsluga.api_key
19
+ YandexUsluga.headers['Referer'].should == YandexUsluga.referer
20
+ YandexUsluga.headers['Authorization'].should == api_key
21
+ YandexUsluga.headers['Referer'].should == referer_site
22
+ Deposit.headers['Authorization'].should == YandexUsluga.api_key
23
+ end
24
+ end
25
+
@@ -0,0 +1,52 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Yandex uslugi bank spec" do
4
+ before( :each ) do
5
+ @required_search_options = {:region => "Уфа", :currency => "RUB", :sum => 55555, :period => "3 years"}
6
+ YandexUslugiWrapper.api_key = API_KEY
7
+ YandexUslugiWrapper.referer = REFERER
8
+ end
9
+
10
+ it "should return that the yandex uslugi api header is equal to the bank header" do
11
+ Bank.headers.should == YandexUsluga.headers
12
+ end
13
+
14
+ it "should find some banks in the region Уфа" do
15
+ Bank.find :all, :params => {:region => "Уфа"}
16
+ end
17
+
18
+ it "should return bank with id = 99 in region Уфа" do
19
+ Bank.find 90, :params => {:region => "Уфа"}
20
+ end
21
+
22
+ it "should find all with redefined find function" do
23
+ Bank.all :region => "Уфа"
24
+ end
25
+
26
+ it "should find one bank with redefined find function" do
27
+ Bank.find 90, :region => "Уфа"
28
+ end
29
+
30
+ it "should succesfully return the deposit with id = 30470 for bank" do
31
+ Deposit.find 30470
32
+ end
33
+
34
+ it "should search some deposits with some required params" do
35
+ Deposit.search @required_search_options
36
+ end
37
+
38
+ it "should search some autocredits" do
39
+ sleep(1)
40
+ Autocredit.search @required_search_options
41
+ end
42
+
43
+ it "should search some mortgages" do
44
+ Mortgage.search @required_search_options
45
+ end
46
+
47
+ it "should search some credits" do
48
+ Credit.search @required_search_options
49
+ end
50
+
51
+ end
52
+
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Yandex uslugi wrapper test" do
4
+ before( :each ) do
5
+ @required_search_options = {:region => "Уфа", :currency => "RUB", :sum => 55555, :period => "3 years"}
6
+ YandexUslugiWrapper.api_key = API_KEY
7
+ YandexUslugiWrapper.referer = REFERER
8
+ end
9
+
10
+ it "should return the bank from the yandex_uslugi_wrapper" do
11
+ end
12
+ end
13
+
@@ -0,0 +1,5 @@
1
+ require 'yandex_uslugi_wrapper'
2
+ require 'api_and_referer'
3
+
4
+ include YandexUslugiWrapper
5
+
@@ -0,0 +1,69 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "yandex_uslugi_wrapper"
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["sld7700"]
12
+ s.date = "2011-10-25"
13
+ s.description = "Yandex Uslugi Api Wrapper on Ruby.\n\n More info about Api on http://api.yandex.ru/uslugi/doc/banks-dg/concepts/about.xml"
14
+ s.email = "sld7700@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/yandex_uslugi_wrapper.rb",
28
+ "lib/yandex_uslugi_wrapper/autocredit.rb",
29
+ "lib/yandex_uslugi_wrapper/bank.rb",
30
+ "lib/yandex_uslugi_wrapper/bank_product.rb",
31
+ "lib/yandex_uslugi_wrapper/credit.rb",
32
+ "lib/yandex_uslugi_wrapper/deposit.rb",
33
+ "lib/yandex_uslugi_wrapper/hash.rb",
34
+ "lib/yandex_uslugi_wrapper/mortgage.rb",
35
+ "lib/yandex_uslugi_wrapper/yandex_usluga.rb",
36
+ "spec/model/yandex_uslugi_api_spec.rb",
37
+ "spec/model/yandex_uslugi_bank_spec.rb",
38
+ "spec/model/yandex_uslugi_wrapper_spec.rb",
39
+ "spec/spec_helper.rb",
40
+ "yandex_uslugi_wrapper.gemspec"
41
+ ]
42
+ s.homepage = "http://github.com/sld/yandex_uslugi_wrapper"
43
+ s.licenses = ["MIT"]
44
+ s.require_paths = ["lib"]
45
+ s.rubygems_version = "1.8.10"
46
+ s.summary = "Yandex Uslugi Api Wrapper"
47
+
48
+ if s.respond_to? :specification_version then
49
+ s.specification_version = 3
50
+
51
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
52
+ s.add_runtime_dependency(%q<activeresource>, [">= 3.0.10"])
53
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
54
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
55
+ s.add_development_dependency(%q<rspec>, [">= 2.6.0"])
56
+ else
57
+ s.add_dependency(%q<activeresource>, [">= 3.0.10"])
58
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
59
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
60
+ s.add_dependency(%q<rspec>, [">= 2.6.0"])
61
+ end
62
+ else
63
+ s.add_dependency(%q<activeresource>, [">= 3.0.10"])
64
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
65
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
66
+ s.add_dependency(%q<rspec>, [">= 2.6.0"])
67
+ end
68
+ end
69
+
metadata ADDED
@@ -0,0 +1,152 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: yandex_uslugi_wrapper
3
+ version: !ruby/object:Gem::Version
4
+ hash: 25
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 1
10
+ version: 0.1.1
11
+ platform: ruby
12
+ authors:
13
+ - sld7700
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-10-25 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ requirement: &id001 !ruby/object:Gem::Requirement
22
+ none: false
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ hash: 19
27
+ segments:
28
+ - 3
29
+ - 0
30
+ - 10
31
+ version: 3.0.10
32
+ version_requirements: *id001
33
+ name: activeresource
34
+ prerelease: false
35
+ type: :runtime
36
+ - !ruby/object:Gem::Dependency
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ hash: 23
43
+ segments:
44
+ - 1
45
+ - 0
46
+ - 0
47
+ version: 1.0.0
48
+ version_requirements: *id002
49
+ name: bundler
50
+ prerelease: false
51
+ type: :development
52
+ - !ruby/object:Gem::Dependency
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ~>
57
+ - !ruby/object:Gem::Version
58
+ hash: 7
59
+ segments:
60
+ - 1
61
+ - 6
62
+ - 4
63
+ version: 1.6.4
64
+ version_requirements: *id003
65
+ name: jeweler
66
+ prerelease: false
67
+ type: :development
68
+ - !ruby/object:Gem::Dependency
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 23
75
+ segments:
76
+ - 2
77
+ - 6
78
+ - 0
79
+ version: 2.6.0
80
+ version_requirements: *id004
81
+ name: rspec
82
+ prerelease: false
83
+ type: :development
84
+ description: |-
85
+ Yandex Uslugi Api Wrapper on Ruby.
86
+
87
+ More info about Api on http://api.yandex.ru/uslugi/doc/banks-dg/concepts/about.xml
88
+ email: sld7700@gmail.com
89
+ executables: []
90
+
91
+ extensions: []
92
+
93
+ extra_rdoc_files:
94
+ - LICENSE.txt
95
+ - README.rdoc
96
+ files:
97
+ - .document
98
+ - Gemfile
99
+ - Gemfile.lock
100
+ - LICENSE.txt
101
+ - README.rdoc
102
+ - Rakefile
103
+ - VERSION
104
+ - lib/yandex_uslugi_wrapper.rb
105
+ - lib/yandex_uslugi_wrapper/autocredit.rb
106
+ - lib/yandex_uslugi_wrapper/bank.rb
107
+ - lib/yandex_uslugi_wrapper/bank_product.rb
108
+ - lib/yandex_uslugi_wrapper/credit.rb
109
+ - lib/yandex_uslugi_wrapper/deposit.rb
110
+ - lib/yandex_uslugi_wrapper/hash.rb
111
+ - lib/yandex_uslugi_wrapper/mortgage.rb
112
+ - lib/yandex_uslugi_wrapper/yandex_usluga.rb
113
+ - spec/model/yandex_uslugi_api_spec.rb
114
+ - spec/model/yandex_uslugi_bank_spec.rb
115
+ - spec/model/yandex_uslugi_wrapper_spec.rb
116
+ - spec/spec_helper.rb
117
+ - yandex_uslugi_wrapper.gemspec
118
+ homepage: http://github.com/sld/yandex_uslugi_wrapper
119
+ licenses:
120
+ - MIT
121
+ post_install_message:
122
+ rdoc_options: []
123
+
124
+ require_paths:
125
+ - lib
126
+ required_ruby_version: !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ hash: 3
132
+ segments:
133
+ - 0
134
+ version: "0"
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ none: false
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ hash: 3
141
+ segments:
142
+ - 0
143
+ version: "0"
144
+ requirements: []
145
+
146
+ rubyforge_project:
147
+ rubygems_version: 1.8.10
148
+ signing_key:
149
+ specification_version: 3
150
+ summary: Yandex Uslugi Api Wrapper
151
+ test_files: []
152
+