vidsy-cloudkit 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vidsy/cloudkit/routing.rb +15 -2
- data/lib/vidsy/cloudkit/version.rb +1 -1
- 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: f0e76f16f9413e945c4d7e1b7600e2f355767c66
|
4
|
+
data.tar.gz: ef98cfa1e9b14d080acf03bfd2fc8b9494218439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a32e3c3223e01bd30371c6527b14859b7a7efd9ed4a16cfae0b57db431ebdf3f48bfeefeabfb7a3de2cb34a248b6aa8a78b46234d4edefd590b7a4eac5cd197f
|
7
|
+
data.tar.gz: 5337835268efb5b8dbe8739177afd639b7c44a4e754867f2157f65b67537b0d7236261ec21df69fb48b3bd1b2dd67d88b6ecb84eee1b224d3349bdb09689d536
|
@@ -21,7 +21,20 @@ module Vidsy
|
|
21
21
|
private
|
22
22
|
|
23
23
|
def class_name(s)
|
24
|
-
|
24
|
+
name = ""
|
25
|
+
parts = s.split "/"
|
26
|
+
count = parts.size - 1
|
27
|
+
|
28
|
+
parts.each_with_index do |p, i|
|
29
|
+
unless p.include?("_")
|
30
|
+
name << p.capitalize
|
31
|
+
name << "::" unless i == count
|
32
|
+
next
|
33
|
+
end
|
34
|
+
name << p.split("_").map(&:capitalize).join("")
|
35
|
+
end
|
36
|
+
|
37
|
+
name
|
25
38
|
end
|
26
39
|
|
27
40
|
def configuration
|
@@ -33,7 +46,7 @@ module Vidsy
|
|
33
46
|
end
|
34
47
|
|
35
48
|
def require_class(file)
|
36
|
-
require "app/
|
49
|
+
require "app/controller/#{file}"
|
37
50
|
end
|
38
51
|
end
|
39
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vidsy-cloudkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Revett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|