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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4965b4c204f8f2294d07ab1565ff8c4438e5545
4
- data.tar.gz: 700d22532820d534e1d0d0b1a296f26e836f4695
3
+ metadata.gz: 1d863415ede238942b129990f02f18cea1aa4559
4
+ data.tar.gz: 7c3d1bcccd7bdc03bcae2ef81961ce42f2310b14
5
5
  SHA512:
6
- metadata.gz: 498c59efdf922f09ae4b226444452a711f142b08b8308a605f28fdadcf62eb416efd7255ade2b6830550743ee10b5e5a737a4397eac1322edfecc04509fdb07c
7
- data.tar.gz: 710fbeca96366bd9d0e38b057a13a1ea430e18cb6f892ad110d6a636f474f7c813d01e324c9dcc1308b4331139b7283525b815abaca603d1b75e3bb1b662e9ff
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) let's 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.
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/[my-github-username]/ddc/fork )
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`)
@@ -13,7 +13,7 @@ module DDC
13
13
  end
14
14
 
15
15
  def not_valid(obj)
16
- {status: :not_valid, object: obj, errors: obj.errors.to_hash}
16
+ {status: :not_valid, errors: obj.errors.to_hash}
17
17
  end
18
18
 
19
19
  def deleted(obj)
data/lib/ddc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ddc
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-01-27 00:00:00.000000000 Z
11
+ date: 2015-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler