vodka 0.0.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/.gitignore +7 -0
- data/.travis.yml +14 -0
- data/Gemfile +4 -0
- data/LICENCE +13 -0
- data/README.md +119 -0
- data/lib/party.rb +9 -0
- data/lib/vodka/client/exceptions/exception.rb +6 -0
- data/lib/vodka/client/exceptions/failed_action_exception.rb +6 -0
- data/lib/vodka/client/exceptions/forbidden_exception.rb +11 -0
- data/lib/vodka/client/exceptions/not_found_exception.rb +11 -0
- data/lib/vodka/client/exceptions/resource_exception.rb +6 -0
- data/lib/vodka/client/middleware/error_aware.rb +21 -0
- data/lib/vodka/client/middleware/signed_request.rb +34 -0
- data/lib/vodka/client.rb +16 -0
- data/lib/vodka/configuration.rb +25 -0
- data/lib/vodka/her/extensions/extended_orm.rb +92 -0
- data/lib/vodka/her/extensions/will_paginate.rb +32 -0
- data/lib/vodka/server/controllers/vodka_controller.rb +32 -0
- data/lib/vodka/server/handlers/resource.rb +36 -0
- data/lib/vodka/server/handlers/response.rb +34 -0
- data/lib/vodka/server/handlers/scaffold.rb +63 -0
- data/lib/vodka/server/middleware/signed_request.rb +39 -0
- data/lib/vodka/server/plugins/presentable.rb +20 -0
- data/lib/vodka/server/railtie.rb +11 -0
- data/lib/vodka/server/response.rb +34 -0
- data/lib/vodka/server.rb +15 -0
- data/lib/vodka/version.rb +3 -0
- data/lib/vodka.rb +5 -0
- data/script/bundle_dummy +4 -0
- data/script/ci +4 -0
- data/script/setup_db +7 -0
- data/script/show_logs +22 -0
- data/script/spec +14 -0
- data/script/start_server +6 -0
- data/script/stop_server +6 -0
- data/spec/client/article.rb +4 -0
- data/spec/dummy/Gemfile +9 -0
- data/spec/dummy/Gemfile.lock +113 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/vodka/articles_controller.rb +8 -0
- data/spec/dummy/app/models/article.rb +10 -0
- data/spec/dummy/config/application.rb +64 -0
- data/spec/dummy/config/boot.rb +6 -0
- data/spec/dummy/config/database.yml +17 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +32 -0
- data/spec/dummy/config/environments/production.rb +54 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/vodka_setup.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +2 -0
- data/spec/dummy/config/locales/ru.yml +2 -0
- data/spec/dummy/config/routes.rb +7 -0
- data/spec/dummy/config/thin.yml +10 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/migrate/20130217185353_create_articles.rb +9 -0
- data/spec/dummy/db/schema.rb +22 -0
- data/spec/dummy/db/seeds.rb +1 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/her/extensions/extended_orm/create_spec.rb +33 -0
- data/spec/her/extensions/extended_orm/delete_spec.rb +23 -0
- data/spec/her/extensions/extended_orm/destroy_spec.rb +35 -0
- data/spec/her/extensions/extended_orm/first_spec.rb +11 -0
- data/spec/her/extensions/extended_orm/last_spec.rb +11 -0
- data/spec/her/extensions/extended_orm/update_attribute_spec.rb +44 -0
- data/spec/her/extensions/extended_orm/update_attributes_spec.rb +44 -0
- data/spec/her/extensions/extended_orm/where_spec.rb +39 -0
- data/spec/her/extensions/will_paginate/paginate_spec.rb +16 -0
- data/spec/middleware/error_aware_spec.rb +19 -0
- data/spec/middleware/response_locale_spec.rb +12 -0
- data/spec/middleware/signed_request_spec.rb +9 -0
- data/spec/spec_helper.rb +24 -0
- data/vodka.gemspec +21 -0
- metadata +190 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20130217185353) do
|
15
|
+
|
16
|
+
create_table "articles", :force => true do |t|
|
17
|
+
t.string "title"
|
18
|
+
t.datetime "created_at", :null => false
|
19
|
+
t.datetime "updated_at", :null => false
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
10.times{ Article.create(title: 'Whatever') }
|
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,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Vodka::Her::Extensions::ExtendedOrm do
|
4
|
+
describe '#create' do
|
5
|
+
it 'should return a new record' do
|
6
|
+
article = Article.create(title: 'foo')
|
7
|
+
article.id.should be_present
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'should return a new record with errors' do
|
11
|
+
article = Article.create(title: '')
|
12
|
+
article.id.should_not be_present
|
13
|
+
article.errors[:title].should == ["can't be blank"]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe '#create!' do
|
18
|
+
it 'should return a new record without rising exception' do
|
19
|
+
expect {
|
20
|
+
article = Article.create(title: 'foo')
|
21
|
+
article.id.should be_present
|
22
|
+
}.not_to raise_exception
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should raise exception for a record with errors' do
|
26
|
+
expect {
|
27
|
+
article = Article.create!(title: '')
|
28
|
+
article.id.should_not be_present
|
29
|
+
article.errors[:title].should be_present
|
30
|
+
}.to raise_exception(Vodka::Client::ResourceException, "title can't be blank")
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Vodka::Her::Extensions::ExtendedOrm do
|
4
|
+
describe '#delete' do
|
5
|
+
it 'should call #destroy method' do
|
6
|
+
article = Article.create(title: 'test')
|
7
|
+
article.metadata[:vodka_action_success] = true
|
8
|
+
article.stub(:destroy).and_return(article)
|
9
|
+
article.should_receive(:destroy).once
|
10
|
+
article.delete
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe '#delete!' do
|
15
|
+
it 'should call #destroy! method' do
|
16
|
+
article = Article.create(title: 'test')
|
17
|
+
article.metadata[:vodka_action_success] = true
|
18
|
+
article.stub(:destroy!).and_return(article)
|
19
|
+
article.should_receive(:destroy!).once
|
20
|
+
article.delete!
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Vodka::Her::Extensions::ExtendedOrm do
|
4
|
+
describe '#destroy' do
|
5
|
+
it 'should return a record with successful action status' do
|
6
|
+
article = Article.create(title: 'test')
|
7
|
+
article.destroy
|
8
|
+
article.metadata[:vodka_action_success].should be_true
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'should return a record with failed action status' do
|
12
|
+
article = Article.create(title: 'special')
|
13
|
+
article.destroy
|
14
|
+
article.metadata[:vodka_action_success].should be_false
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '#destroy!' do
|
19
|
+
it 'should return a record with successful action status without rising exception' do
|
20
|
+
expect {
|
21
|
+
article = Article.create(title: 'test')
|
22
|
+
article.destroy!
|
23
|
+
article.metadata[:vodka_action_success].should be_true
|
24
|
+
}.not_to raise_exception
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'should raise exception for a record with failed action status' do
|
28
|
+
expect {
|
29
|
+
article = Article.create(title: 'special')
|
30
|
+
article.destroy!
|
31
|
+
article.metadata[:vodka_action_success].should be_false
|
32
|
+
}.to raise_exception(Vodka::Client::FailedActionException, 'Destroy failed')
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Vodka::Her::Extensions::ExtendedOrm do
|
4
|
+
describe '#update_attribute' do
|
5
|
+
it 'should update attribute of a record' do
|
6
|
+
article = Article.find(1)
|
7
|
+
article.should be_instance_of(Article)
|
8
|
+
|
9
|
+
article.update_attribute(:title, 'lalala')
|
10
|
+
article.title.should == 'lalala'
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'should return a record with errors' do
|
14
|
+
article = Article.find(1)
|
15
|
+
article.should be_instance_of(Article)
|
16
|
+
|
17
|
+
article.update_attribute(:title, '')
|
18
|
+
article.title.should == ''
|
19
|
+
article.errors[:title].should == ["can't be blank"]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe '#update_attribute!' do
|
24
|
+
it 'should update attribute of a record without rising exception' do
|
25
|
+
expect {
|
26
|
+
article = Article.find(1)
|
27
|
+
article.should be_instance_of(Article)
|
28
|
+
|
29
|
+
article.update_attribute!(:title, 'mumumu')
|
30
|
+
article.title.should == 'mumumu'
|
31
|
+
}.not_to raise_exception
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should raise exception for a record with errors' do
|
35
|
+
expect {
|
36
|
+
article = Article.find(1)
|
37
|
+
article.should be_instance_of(Article)
|
38
|
+
|
39
|
+
article.update_attribute!(:title, '')
|
40
|
+
article.title.should == ''
|
41
|
+
}.to raise_exception(Vodka::Client::ResourceException, "title can't be blank")
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Vodka::Her::Extensions::ExtendedOrm do
|
4
|
+
describe '#update_attributes' do
|
5
|
+
it 'should update attributes of a record' do
|
6
|
+
article = Article.find(1)
|
7
|
+
article.should be_instance_of(Article)
|
8
|
+
|
9
|
+
article.update_attributes(title: 'lalala')
|
10
|
+
article.title.should == 'lalala'
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'should return a record with errors' do
|
14
|
+
article = Article.find(1)
|
15
|
+
article.should be_instance_of(Article)
|
16
|
+
|
17
|
+
article.update_attributes(title: '')
|
18
|
+
article.title.should == ''
|
19
|
+
article.errors[:title].should == ["can't be blank"]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe '#update_attributes!' do
|
24
|
+
it 'should update attributes of a record without rising exception' do
|
25
|
+
expect {
|
26
|
+
article = Article.find(1)
|
27
|
+
article.should be_instance_of(Article)
|
28
|
+
|
29
|
+
article.update_attributes!(title: 'mumumu')
|
30
|
+
article.title.should == 'mumumu'
|
31
|
+
}.not_to raise_exception
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should raise exception for a record with errors' do
|
35
|
+
expect {
|
36
|
+
article = Article.find(1)
|
37
|
+
article.should be_instance_of(Article)
|
38
|
+
|
39
|
+
article.update_attributes!(title: '')
|
40
|
+
article.title.should == ''
|
41
|
+
}.to raise_exception(Vodka::Client::ResourceException, "title can't be blank")
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Vodka::Her::Extensions::ExtendedOrm do
|
4
|
+
describe '.where' do
|
5
|
+
before(:all) do
|
6
|
+
@article = Article.create(title: 'looking for this one')
|
7
|
+
@title = "where collection test ##{rand}"
|
8
|
+
5.times do
|
9
|
+
Article.create(title: @title)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'should return a collection by a hash condition' do
|
14
|
+
articles = Article.where(id: @article.id, title: @article.title).all
|
15
|
+
articles.size.should == 1
|
16
|
+
articles.first.id.should == @article.id
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'should return a collection by an array condition' do
|
20
|
+
articles = Article.where('id = ? and title = ?', @article.id, @article.title).all
|
21
|
+
articles.size.should == 1
|
22
|
+
articles.first.id.should == @article.id
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should return a collection by a chaining condition' do
|
26
|
+
articles = Article.where('id = ?', @article.id).where(title: @article.title).all
|
27
|
+
articles.size.should == 1
|
28
|
+
articles.first.id.should == @article.id
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'should return a full collection by a permissive condition' do
|
32
|
+
articles = Article.where(title: @title).all
|
33
|
+
articles.size.should == 5
|
34
|
+
articles.each do |article|
|
35
|
+
article.title.should == @title
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Vodka::Her::Extensions::WillPaginate do
|
4
|
+
describe '.paginate' do
|
5
|
+
it 'should return a collection with desired page, items per page and page info in metadata' do
|
6
|
+
total = Article.all.count
|
7
|
+
articles = Article.paginate(page: 2, per_page: 5)
|
8
|
+
|
9
|
+
articles.should be_instance_of(Vodka::Her::Extensions::PaginatedCollection)
|
10
|
+
articles.size.should == 5
|
11
|
+
articles.current_page.should == 2
|
12
|
+
articles.per_page.should == 5
|
13
|
+
articles.total_entries.should == total
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Vodka::Client::Middleware::ErrorAware do
|
4
|
+
it 'should throw exception for a forbidden response' do
|
5
|
+
Vodka::Client.config.secret = 'invalid'
|
6
|
+
|
7
|
+
expect{
|
8
|
+
Article.first
|
9
|
+
}.to raise_exception(Vodka::Client::ForbiddenException, Vodka::Client::ForbiddenException::MESSAGE)
|
10
|
+
|
11
|
+
Vodka::Client.config.secret = 'whatever'
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'should throw exception for when response was not found' do
|
15
|
+
expect{
|
16
|
+
Article.find(0)
|
17
|
+
}.to raise_exception(Vodka::Client::NotFoundException, Vodka::Client::NotFoundException::MESSAGE)
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe Vodka::Client::Middleware::SignedRequest do
|
5
|
+
it 'should pass current locale and recieve correctly localized response' do
|
6
|
+
I18n.locale = :en
|
7
|
+
Article.hello.metadata[:hello].should == 'Hello World!'
|
8
|
+
|
9
|
+
I18n.locale = :ru
|
10
|
+
Article.hello.metadata[:hello].should == 'Привет, мир!'
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Vodka::Client::Middleware::SignedRequest do
|
4
|
+
it 'should sign requests properly so there is no forbidden exception' do
|
5
|
+
expect {
|
6
|
+
Article.first.should be_instance_of(Article)
|
7
|
+
}.not_to raise_exception(Vodka::Client::ForbiddenException, '403 Forbidden')
|
8
|
+
end
|
9
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'i18n'
|
2
|
+
|
3
|
+
# App
|
4
|
+
require 'vodka/client'
|
5
|
+
|
6
|
+
# Dummy Client
|
7
|
+
require 'client/article'
|
8
|
+
|
9
|
+
Vodka::Client.configure do |c|
|
10
|
+
c.api_url = 'http://0.0.0.0:3000/vodka'
|
11
|
+
c.secret = 'whatever'
|
12
|
+
end
|
13
|
+
Vodka::Client.configure_her!
|
14
|
+
|
15
|
+
RSpec.configure do |c|
|
16
|
+
# Use color in STDOUT
|
17
|
+
c.color_enabled = true
|
18
|
+
|
19
|
+
# Use color not only in STDOUT but also in pagers and files
|
20
|
+
c.tty = true
|
21
|
+
|
22
|
+
# Use the specified formatter
|
23
|
+
c.formatter = :documentation # :progress, :html, :textmate
|
24
|
+
end
|
data/vodka.gemspec
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require File.expand_path('../lib/vodka/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ['Gregory Eremin']
|
6
|
+
gem.email = ['magnolia_fan@me.com']
|
7
|
+
gem.description = 'A set of tools to make communication between two Rails apps easier'
|
8
|
+
gem.summary = 'This gem uses gem Her to commicate to some RESTful app. It extends functionality of Her and adds some guidelines for both apps.'
|
9
|
+
gem.homepage = 'https://github.com/magnolia-fan/vodka'
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
# gem.test_files = gem.files.grep(%r{^spec/})
|
13
|
+
gem.name = 'vodka'
|
14
|
+
gem.require_paths = ['lib']
|
15
|
+
gem.version = Vodka::VERSION
|
16
|
+
|
17
|
+
gem.add_runtime_dependency 'her', '~> 0.4'
|
18
|
+
gem.add_runtime_dependency 'multi_json', '~> 1.6.1'
|
19
|
+
gem.add_development_dependency 'rspec', '~> 2.12.0'
|
20
|
+
gem.add_development_dependency 'i18n', '~> 0.6.1'
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,190 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vodka
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.1
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Gregory Eremin
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-02-18 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.4'
|
20
|
+
none: false
|
21
|
+
name: her
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
requirement: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '0.4'
|
29
|
+
none: false
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
version_requirements: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ~>
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 1.6.1
|
36
|
+
none: false
|
37
|
+
name: multi_json
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
requirement: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 1.6.1
|
45
|
+
none: false
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ~>
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: 2.12.0
|
52
|
+
none: false
|
53
|
+
name: rspec
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ~>
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 2.12.0
|
61
|
+
none: false
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 0.6.1
|
68
|
+
none: false
|
69
|
+
name: i18n
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.6.1
|
77
|
+
none: false
|
78
|
+
description: A set of tools to make communication between two Rails apps easier
|
79
|
+
email:
|
80
|
+
- magnolia_fan@me.com
|
81
|
+
executables: []
|
82
|
+
extensions: []
|
83
|
+
extra_rdoc_files: []
|
84
|
+
files:
|
85
|
+
- .gitignore
|
86
|
+
- .travis.yml
|
87
|
+
- Gemfile
|
88
|
+
- LICENCE
|
89
|
+
- README.md
|
90
|
+
- lib/party.rb
|
91
|
+
- lib/vodka.rb
|
92
|
+
- lib/vodka/client.rb
|
93
|
+
- lib/vodka/client/exceptions/exception.rb
|
94
|
+
- lib/vodka/client/exceptions/failed_action_exception.rb
|
95
|
+
- lib/vodka/client/exceptions/forbidden_exception.rb
|
96
|
+
- lib/vodka/client/exceptions/not_found_exception.rb
|
97
|
+
- lib/vodka/client/exceptions/resource_exception.rb
|
98
|
+
- lib/vodka/client/middleware/error_aware.rb
|
99
|
+
- lib/vodka/client/middleware/signed_request.rb
|
100
|
+
- lib/vodka/configuration.rb
|
101
|
+
- lib/vodka/her/extensions/extended_orm.rb
|
102
|
+
- lib/vodka/her/extensions/will_paginate.rb
|
103
|
+
- lib/vodka/server.rb
|
104
|
+
- lib/vodka/server/controllers/vodka_controller.rb
|
105
|
+
- lib/vodka/server/handlers/resource.rb
|
106
|
+
- lib/vodka/server/handlers/response.rb
|
107
|
+
- lib/vodka/server/handlers/scaffold.rb
|
108
|
+
- lib/vodka/server/middleware/signed_request.rb
|
109
|
+
- lib/vodka/server/plugins/presentable.rb
|
110
|
+
- lib/vodka/server/railtie.rb
|
111
|
+
- lib/vodka/server/response.rb
|
112
|
+
- lib/vodka/version.rb
|
113
|
+
- script/bundle_dummy
|
114
|
+
- script/ci
|
115
|
+
- script/setup_db
|
116
|
+
- script/show_logs
|
117
|
+
- script/spec
|
118
|
+
- script/start_server
|
119
|
+
- script/stop_server
|
120
|
+
- spec/client/article.rb
|
121
|
+
- spec/dummy/Gemfile
|
122
|
+
- spec/dummy/Gemfile.lock
|
123
|
+
- spec/dummy/Rakefile
|
124
|
+
- spec/dummy/app/controllers/application_controller.rb
|
125
|
+
- spec/dummy/app/controllers/vodka/articles_controller.rb
|
126
|
+
- spec/dummy/app/models/article.rb
|
127
|
+
- spec/dummy/config.ru
|
128
|
+
- spec/dummy/config/application.rb
|
129
|
+
- spec/dummy/config/boot.rb
|
130
|
+
- spec/dummy/config/database.yml
|
131
|
+
- spec/dummy/config/environment.rb
|
132
|
+
- spec/dummy/config/environments/development.rb
|
133
|
+
- spec/dummy/config/environments/production.rb
|
134
|
+
- spec/dummy/config/environments/test.rb
|
135
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
136
|
+
- spec/dummy/config/initializers/inflections.rb
|
137
|
+
- spec/dummy/config/initializers/mime_types.rb
|
138
|
+
- spec/dummy/config/initializers/secret_token.rb
|
139
|
+
- spec/dummy/config/initializers/session_store.rb
|
140
|
+
- spec/dummy/config/initializers/vodka_setup.rb
|
141
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
142
|
+
- spec/dummy/config/locales/en.yml
|
143
|
+
- spec/dummy/config/locales/ru.yml
|
144
|
+
- spec/dummy/config/routes.rb
|
145
|
+
- spec/dummy/config/thin.yml
|
146
|
+
- spec/dummy/db/migrate/20130217185353_create_articles.rb
|
147
|
+
- spec/dummy/db/schema.rb
|
148
|
+
- spec/dummy/db/seeds.rb
|
149
|
+
- spec/dummy/log/.gitkeep
|
150
|
+
- spec/dummy/script/rails
|
151
|
+
- spec/her/extensions/extended_orm/create_spec.rb
|
152
|
+
- spec/her/extensions/extended_orm/delete_spec.rb
|
153
|
+
- spec/her/extensions/extended_orm/destroy_spec.rb
|
154
|
+
- spec/her/extensions/extended_orm/first_spec.rb
|
155
|
+
- spec/her/extensions/extended_orm/last_spec.rb
|
156
|
+
- spec/her/extensions/extended_orm/update_attribute_spec.rb
|
157
|
+
- spec/her/extensions/extended_orm/update_attributes_spec.rb
|
158
|
+
- spec/her/extensions/extended_orm/where_spec.rb
|
159
|
+
- spec/her/extensions/will_paginate/paginate_spec.rb
|
160
|
+
- spec/middleware/error_aware_spec.rb
|
161
|
+
- spec/middleware/response_locale_spec.rb
|
162
|
+
- spec/middleware/signed_request_spec.rb
|
163
|
+
- spec/spec_helper.rb
|
164
|
+
- vodka.gemspec
|
165
|
+
homepage: https://github.com/magnolia-fan/vodka
|
166
|
+
licenses: []
|
167
|
+
post_install_message:
|
168
|
+
rdoc_options: []
|
169
|
+
require_paths:
|
170
|
+
- lib
|
171
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - ! '>='
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
176
|
+
none: false
|
177
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
none: false
|
183
|
+
requirements: []
|
184
|
+
rubyforge_project:
|
185
|
+
rubygems_version: 1.8.23
|
186
|
+
signing_key:
|
187
|
+
specification_version: 3
|
188
|
+
summary: This gem uses gem Her to commicate to some RESTful app. It extends functionality
|
189
|
+
of Her and adds some guidelines for both apps.
|
190
|
+
test_files: []
|