restpack_service 0.0.35 → 0.0.36
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.
- checksums.yaml +4 -4
- data/lib/restpack_service/configuration.rb +1 -6
- data/lib/restpack_service/version.rb +1 -1
- data/spec/configuration_spec.rb +0 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93bc03b34400697d12dc9d0a26b557bd0218e382
|
|
4
|
+
data.tar.gz: d003e8413048a9c7c26eefbd1fc514fb13c77c43
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb7279083e900b3130a89186828e965544c5ee4e484c4521f4c9aef2165df487d0ece81aeb860a882c317fbde2f80f276cdd807079760963a8e7fcd41e3e9816
|
|
7
|
+
data.tar.gz: a914d457dffa573ab43eeea9be785c1e28c57b54e8e9e369df314df8762c984e496265fc18750c4f000a3e816e73f49b3ed1bf6821fa42c2232379d7d49da4b5
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
module RestPack::Service
|
|
2
2
|
class Configuration
|
|
3
|
-
attr_accessor :
|
|
3
|
+
attr_accessor :application_id
|
|
4
4
|
|
|
5
5
|
def initialize
|
|
6
|
-
@db_table_prefix = 'restpack_'
|
|
7
6
|
@application_id = 1
|
|
8
7
|
end
|
|
9
|
-
|
|
10
|
-
def prefix_db_table(db_table_name)
|
|
11
|
-
"#{@db_table_prefix}#{db_table_name}".to_sym
|
|
12
|
-
end
|
|
13
8
|
end
|
|
14
9
|
end
|
data/spec/configuration_spec.rb
CHANGED
|
@@ -4,12 +4,6 @@ describe RestPack::Service::Configuration do
|
|
|
4
4
|
subject { RestPack::Service::Configuration.new }
|
|
5
5
|
|
|
6
6
|
it "has defaults" do
|
|
7
|
-
subject.db_table_prefix.should == "restpack_"
|
|
8
7
|
subject.application_id.should == 1
|
|
9
8
|
end
|
|
10
|
-
|
|
11
|
-
describe ".prefix_db_table" do
|
|
12
|
-
before { subject.db_table_prefix = 'prefix_' }
|
|
13
|
-
it { subject.prefix_db_table('table').should == :prefix_table }
|
|
14
|
-
end
|
|
15
9
|
end
|