restpack_service 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8519c7f525854f82ebbe30fc0c84bf739df9284
4
- data.tar.gz: 38fdad9f8b3885d2d62e3fed38affe73e1f5b2ac
3
+ metadata.gz: 4e282eb9990ff54f17a656cfea213444a0b29020
4
+ data.tar.gz: cd58d44dea30027a44932d160f7bba2c8b4c0000
5
5
  SHA512:
6
- metadata.gz: ee16d9b2df126f1c4b59e1b4102d884fe2eaf424e3aa9163d3dc71e92522852e6c432245e02d2b9bcc7d237862c078a29f8faf5c417f7a716165c8678e023c1f
7
- data.tar.gz: 21861c3084f2129201351c191e558e896da098f33ceaff7dd8bc2cd03f34c7eec426eda8089de7d04d1c141dd6cd4a5848c261ea9bc0ba0a08fd6da5c1011521
6
+ metadata.gz: 038ae7448ca336de5a095f97c2182d08e2e1c2b654c86c7ae468be166dafb4ea3498ee9317fb5c8483b273f40d77a508f39a385d9ff1d6ba0f50c1b0c9390374
7
+ data.tar.gz: 7ba976090770b381a852b46b06fd80a6dd050b6590807e4b02033e1a70a29b0f48d757a232f2cb2a8e339a3560984f5d8794b7e9cf3243c1eefcac7c87b8c989
@@ -1,4 +1,3 @@
1
- require "active_record"
2
1
  require "mutations"
3
2
  require "yajl"
4
3
  require "protected_attributes"
@@ -1,9 +1,10 @@
1
1
  module RestPack::Service
2
2
  class Configuration
3
- attr_accessor :db_table_prefix
3
+ attr_accessor :db_table_prefix, :application_id
4
4
 
5
5
  def initialize
6
6
  @db_table_prefix = 'restpack_'
7
+ @application_id = 1
7
8
  end
8
9
 
9
10
  def prefix_db_table(db_table_name)
@@ -1,5 +1,5 @@
1
1
  module RestPack
2
2
  module Service
3
- VERSION = "0.0.33"
3
+ VERSION = "0.0.34"
4
4
  end
5
5
  end
@@ -3,8 +3,9 @@ require 'spec_helper'
3
3
  describe RestPack::Service::Configuration do
4
4
  subject { RestPack::Service::Configuration.new }
5
5
 
6
- it "has a default table prefix" do
6
+ it "has defaults" do
7
7
  subject.db_table_prefix.should == "restpack_"
8
+ subject.application_id.should == 1
8
9
  end
9
10
 
10
11
  describe ".prefix_db_table" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Joyce