motion-require 0.0.5 → 0.0.6

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWI5ZjNkYTQwMDEyMjNkNzcxODkwZThkZjdlYTA1NmIzNjAyN2QwNw==
4
+ NDc1ZGY1OGY4Y2UxNDg0ZjI5MTdjMGIzNTUyNGE5ZDZhYzU5OGIzZQ==
5
5
  data.tar.gz: !binary |-
6
- OTZjZmExNDU3YTc2YTA0N2QzNDIzODI2ZjQ3ZWE0NmEyMjY5MDM3YQ==
6
+ NmFmNjc1ODY1NmVjNmIzMDIyYWNiNTI2NDRkMmVhZTI1ZGNjZDAwMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YmU3ZWVhZTQyYjcyMDljOTg4ZDNlZjIxMmIyZmE5Nzg3OTM4NjFlMDIxMTQ0
10
- NjhmNzdiM2M5YTE5M2M2OGI2NmI1ZjQ3MzllOGE0NjRjMjY0MGVjNjk3MTY2
11
- NjYxNmNlY2E5OGY4MWYxMjZiNTRmMWJkYzk0NGM2OWI1ZDZhNjk=
9
+ OWI4MDE4MWJkOGRmM2ZiN2NmZmEzMjQxZWNkOWE2ZDJiYWZiNjNhMTUzOTRj
10
+ NzNiM2Y5OWU5ZGE1Y2IzMWUxMjBlZmJiNzljMjJlODViODE4Y2UwN2IxNmU5
11
+ Njk4NGNkODNjY2M2N2E1YjYwMDkxZTUxZTQ0MTYyM2ZhMTdkZGQ=
12
12
  data.tar.gz: !binary |-
13
- ZDdlNzlmN2UwYjQ2ZGQ1YzA0NzE5ZGI5ZGY4MGFjMzcxYjQyOGRmODVhODdl
14
- ZWNmNzJlYWYxZDcxN2E5NGRhZWExMTIyZDI1MWJhMTUxNTE5MjJkMTlmYWM1
15
- MTYxNjk3NjczNjExOTM3YmIwODIzOWMzY2Q0Y2ZjN2I5Nzk3YjU=
13
+ OWI4OGNiYmMwMjk1M2Q3ZjczZGVkNzQ1MjM3ZjZjMzhlZDEyMjVkZGU4MWEx
14
+ NGJiZGJjZmJkMmY1MmQwODM5YjdiMTgxOTY1NjJiODE2NDRlNjg5ZGRiY2E2
15
+ NWY2MGQxMDY2NTc0OTYwMmEzNzg3OWMxY2RhZTc4ZDk0MDY4N2I=
@@ -91,16 +91,15 @@ module Motion
91
91
  Motion::Project::App.setup do |app|
92
92
  if files.nil? || files.empty?
93
93
  app.files_dependencies dependencies_for(app.files)
94
- return
95
- end
96
-
94
+ else
97
95
  # Place files prior to those in ./app, otherwise at the end.
98
- preceding_app = app.files.index { |f| f =~ %r(^(?:\./)?app/) } || -1
99
- required = Array(files).map { |f| explicit_relative(f) }
100
- app.files.insert(preceding_app, ext_file, *required)
101
- app.files.uniq! # Prevent redundancy
96
+ preceding_app = app.files.index { |f| f =~ %r(^(?:\./)?app/) } || -1
97
+ required = Array(files).map { |f| explicit_relative(f) }
98
+ app.files.insert(preceding_app, ext_file, *required)
99
+ app.files.uniq! # Prevent redundancy
102
100
 
103
- app.files_dependencies dependencies_for(required)
101
+ app.files_dependencies dependencies_for(required)
102
+ end
104
103
  end
105
104
  end
106
105
 
@@ -1,5 +1,5 @@
1
1
  module Motion
2
2
  module Require
3
- VERSION="0.0.5"
3
+ VERSION="0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-require
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clay Allsopp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-24 00:00:00.000000000 Z
11
+ date: 2013-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec