motion-dryer 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  List of helpers/utilities help you to keep your RubyMotion project DRY.
4
4
 
5
+ ## Installation
6
+
7
+ ```
8
+ gem install motion-dryer
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ Add following to the Rakefile
14
+
15
+ ```ruby
16
+ require 'motion-dryer'
17
+ ```
18
+
5
19
  ## Automatic Controller Dependency
6
20
 
7
21
  Getting tired of setting up file_dependnecies on your projects? Just
@@ -12,10 +26,13 @@ app/
12
26
  - controllers/
13
27
  - sample_controller.rb
14
28
  - views/
29
+ - common/
30
+ - shared_view.rb
15
31
  - sample/
16
- sample_view.rb
17
- sample_table_view.rb
32
+ - sample_view.rb
33
+ - sample_table_view.rb
18
34
  - helpers/
35
+ - application_helper.rb
19
36
  - sample_helper.rb
20
37
  ```
21
38
 
@@ -23,7 +40,7 @@ Add following to your project Rakefile:
23
40
 
24
41
  ```ruby
25
42
  Motion::Project::App.setup do |app|
26
- app.name = 'clipbook'
43
+ app.name = 'my_app'
27
44
  app.controllers = ['sample']
28
45
  end
29
46
  ```
@@ -20,9 +20,9 @@ module Motion; module Project
20
20
 
21
21
  class App
22
22
  class << self
23
- def setup_add_dependency
23
+ def setup_add_dependency(&block)
24
24
  config.add_dependency(self)
25
- setup_before_add_dependency
25
+ setup_before_add_dependency(&block)
26
26
  end
27
27
 
28
28
  alias_method :setup_before_add_dependency, :setup
@@ -1,5 +1,5 @@
1
1
  module Motion
2
2
  module Dryer
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-dryer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-12 00:00:00.000000000 Z
12
+ date: 2012-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -53,12 +53,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
53
  - - ! '>='
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
+ segments:
57
+ - 0
58
+ hash: 3245711069325560726
56
59
  required_rubygems_version: !ruby/object:Gem::Requirement
57
60
  none: false
58
61
  requirements:
59
62
  - - ! '>='
60
63
  - !ruby/object:Gem::Version
61
64
  version: '0'
65
+ segments:
66
+ - 0
67
+ hash: 3245711069325560726
62
68
  requirements: []
63
69
  rubyforge_project:
64
70
  rubygems_version: 1.8.24