rao 0.0.3.pre → 0.0.13.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/rao/all.rb +19 -0
- data/lib/rao/configuration.rb +19 -0
- data/lib/rao/version.rb +1 -1
- data/lib/rao.rb +3 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6db55c3838a5fc0f3452427ec326f9f1257c318f5538da2d57557603307da9a3
|
4
|
+
data.tar.gz: 793c7ca625bc4557e6977bd6415c4e90fa050dadaa2574edf7a1a9b1ad1839fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d90126a408d881d6a6123001fc495d6e2b19db9d703f134bac10ae4fe434fe4cf61df35ac7b9b79d4fa986029535abe78bf6782839268edf1f07d9baadb2fcec
|
7
|
+
data.tar.gz: eccaa75cae1f1d6f81280eefb8c0ef8f04295b96217658d8cb1a16f7933e87da37216d6395822b9295eda5b1fd3e758b4146317c4edbb61698dd618707c9d14f
|
data/lib/rao/all.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require "rao"
|
2
|
+
|
3
|
+
%w(
|
4
|
+
api-resources_controller
|
5
|
+
api-service_controller
|
6
|
+
component
|
7
|
+
query
|
8
|
+
resource_controller
|
9
|
+
resources_controller
|
10
|
+
service
|
11
|
+
service_controller
|
12
|
+
shoulda_matchers
|
13
|
+
view_helper
|
14
|
+
).each do |engine|
|
15
|
+
begin
|
16
|
+
require engine
|
17
|
+
rescue LoadError
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Rao
|
2
|
+
module Configuration
|
3
|
+
def configure
|
4
|
+
yield self
|
5
|
+
end
|
6
|
+
|
7
|
+
def register_configuration(name, configuration)
|
8
|
+
(@@configuration ||= {})[name.to_sym] = configuration
|
9
|
+
end
|
10
|
+
|
11
|
+
def method_missing(m, *args, &block)
|
12
|
+
if @@configuration.has_key?(m.to_sym)
|
13
|
+
return @@configuration[m.to_sym]
|
14
|
+
else
|
15
|
+
super
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/rao/version.rb
CHANGED
data/lib/rao.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rao
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -77,6 +77,8 @@ files:
|
|
77
77
|
- README.md
|
78
78
|
- Rakefile
|
79
79
|
- lib/rao.rb
|
80
|
+
- lib/rao/all.rb
|
81
|
+
- lib/rao/configuration.rb
|
80
82
|
- lib/rao/version.rb
|
81
83
|
- lib/tasks/rao_tasks.rake
|
82
84
|
homepage:
|
@@ -98,8 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
100
|
- !ruby/object:Gem::Version
|
99
101
|
version: 1.3.1
|
100
102
|
requirements: []
|
101
|
-
|
102
|
-
rubygems_version: 2.6.14
|
103
|
+
rubygems_version: 3.0.2
|
103
104
|
signing_key:
|
104
105
|
specification_version: 4
|
105
106
|
summary: Rails Add Ons.
|