perpetuity 1.0.0.beta2 → 1.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/perpetuity/rails_model.rb +4 -1
- data/lib/perpetuity/version.rb +1 -1
- data/spec/perpetuity/rails_model_spec.rb +10 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cf95b4e9ae21a8017556d5928b72d0ce4a23e94
|
4
|
+
data.tar.gz: 0ac11a4957b4b6a8b3f991b35b726b0f0da1533f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07de997c8ddb238ae077bc8154a58e0d4f7a422c465bf4e98b303ecf6082701e5c1230cb70728b3e37d5124751c3b4ba90d55e44837d61407aac05a9eeb37bfd
|
7
|
+
data.tar.gz: 627e785dbb378e4e00e5de44645635f33d600376f19ed562eb906b19e265919a3ea13aaf24221df7a02dfb1fce1617ab12a85c67ff82c7350ac46c2da8e7a825
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## Version 1.0.0.beta3
|
2
|
+
|
3
|
+
- Fix title-case -> snake-case support to convert something like `UserRegistration` to `user_registration`. Previously, it would return `userregistration`.
|
4
|
+
|
1
5
|
## Version 1.0.0.beta2
|
2
6
|
|
3
7
|
- Allow data source to be configured with a URI. This lets you say `Perpetuity.data_source "postgres://user:password@postgres.example.com:5432/my_database"`, keeping you from having to split up the URI yourself.
|
data/lib/perpetuity/version.rb
CHANGED
@@ -33,9 +33,16 @@ module Perpetuity
|
|
33
33
|
klass.model_name.should be == klass
|
34
34
|
end
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
describe 'param_key' do
|
37
|
+
it 'converts :: to _' do
|
38
|
+
stub_const 'Foo::Bar', klass
|
39
|
+
Foo::Bar.param_key.should be == 'foo_bar'
|
40
|
+
end
|
41
|
+
|
42
|
+
it 'converts title-case to snake-case' do
|
43
|
+
stub_const 'UserRegistration', klass
|
44
|
+
UserRegistration.param_key.should be == 'user_registration'
|
45
|
+
end
|
39
46
|
end
|
40
47
|
|
41
48
|
it 'returns the route_key' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: perpetuity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Gaskins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|