ddc 0.1.1 → 0.1.2
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/README.md +3 -3
- data/lib/ddc/response_builder.rb +1 -1
- data/lib/ddc/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: 1d863415ede238942b129990f02f18cea1aa4559
|
4
|
+
data.tar.gz: 7c3d1bcccd7bdc03bcae2ef81961ce42f2310b14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc54b713028b679613973789cfec78b0fcc199bca49f8d0acae78bf073113feefef3d2d357f9ab2264815cc4e4ada39daf21f21e2e12ff5b4b6ad7cec942fdff
|
7
|
+
data.tar.gz: afe03537078e703abf8737db8ec99300da5ac634f9f24864c35387193ff8281d108e813d462d6f66d7eeb117fc4251df70bf165b60c649429ca60ace0e68aaee
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# DDC
|
2
2
|
|
3
|
-
DDC (Data Driven Controllers)
|
3
|
+
DDC (Data Driven Controllers) lets you declare how to wire Rails into your app without the need for code. A Rails controller's job is parsing/interpreting parameters to send to your application domain and taking those results and translating them back out to an HTTP result (html/status/headers). DDC removes the need for all the boiler plate controller code and tests.
|
4
4
|
|
5
5
|
By adhering to a couple of interfaces, you can avoid writing most controller code and tests. See this [blog post]( http://spin.atomicobject.com/2015/01/26/data-driven-rails-controllers) for more information.
|
6
6
|
|
@@ -27,7 +27,7 @@ Or install it yourself as:
|
|
27
27
|
`controllers/monkeys_controller.rb`
|
28
28
|
|
29
29
|
```ruby
|
30
|
-
DDC::ControllerBuilder.build :monkeys
|
30
|
+
DDC::ControllerBuilder.build :monkeys,
|
31
31
|
before_actions: [:authenticate_user!],
|
32
32
|
actions: {
|
33
33
|
show: {
|
@@ -115,7 +115,7 @@ MonkeyService = DDC::ServiceBuilder.build(:monkey)
|
|
115
115
|
|
116
116
|
## Contributing
|
117
117
|
|
118
|
-
1. Fork it ( https://github.com/
|
118
|
+
1. Fork it ( https://github.com/atomicobject/ddc/fork )
|
119
119
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
120
120
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
121
121
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/ddc/response_builder.rb
CHANGED
data/lib/ddc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shawn Anderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|