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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 994461492c66c1a1056eac0f515b983bd0424005
4
- data.tar.gz: 0a258f71d8abf2df3e33b908b89127aa8c575308
2
+ SHA256:
3
+ metadata.gz: 6db55c3838a5fc0f3452427ec326f9f1257c318f5538da2d57557603307da9a3
4
+ data.tar.gz: 793c7ca625bc4557e6977bd6415c4e90fa050dadaa2574edf7a1a9b1ad1839fd
5
5
  SHA512:
6
- metadata.gz: 7132028ee903564287115e131a70658043ae2d829287c1d61efdad24f065a8d6b8cd9e13e286e75680169c255641876d59b5e872b9efe66f0aafd9e14e0274e2
7
- data.tar.gz: a1d65ec647379cbe54ef171b231061a8236bbad02bbae4c55a82df2c65dae5949d1126722352d0132cda18f49be6af43c72aea2b20506ed35724c6c1da18a124
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
@@ -1,3 +1,3 @@
1
1
  module Rao
2
- VERSION = '0.0.3.pre'.freeze
2
+ VERSION = '0.0.13.pre'.freeze unless const_defined?(:VERSION)
3
3
  end
data/lib/rao.rb CHANGED
@@ -1,2 +1,5 @@
1
+ require 'rao/configuration'
2
+
1
3
  module Rao
4
+ extend Configuration
2
5
  end
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.3.pre
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: 2018-12-20 00:00:00.000000000 Z
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
- rubyforge_project:
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.