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 +8 -8
- data/lib/motion-require.rb +7 -8
- data/lib/motion-require/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDc1ZGY1OGY4Y2UxNDg0ZjI5MTdjMGIzNTUyNGE5ZDZhYzU5OGIzZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmFmNjc1ODY1NmVjNmIzMDIyYWNiNTI2NDRkMmVhZTI1ZGNjZDAwMw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWI4MDE4MWJkOGRmM2ZiN2NmZmEzMjQxZWNkOWE2ZDJiYWZiNjNhMTUzOTRj
|
10
|
+
NzNiM2Y5OWU5ZGE1Y2IzMWUxMjBlZmJiNzljMjJlODViODE4Y2UwN2IxNmU5
|
11
|
+
Njk4NGNkODNjY2M2N2E1YjYwMDkxZTUxZTQ0MTYyM2ZhMTdkZGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWI4OGNiYmMwMjk1M2Q3ZjczZGVkNzQ1MjM3ZjZjMzhlZDEyMjVkZGU4MWEx
|
14
|
+
NGJiZGJjZmJkMmY1MmQwODM5YjdiMTgxOTY1NjJiODE2NDRlNjg5ZGRiY2E2
|
15
|
+
NWY2MGQxMDY2NTc0OTYwMmEzNzg3OWMxY2RhZTc4ZDk0MDY4N2I=
|
data/lib/motion-require.rb
CHANGED
@@ -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
|
-
|
95
|
-
end
|
96
|
-
|
94
|
+
else
|
97
95
|
# Place files prior to those in ./app, otherwise at the end.
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
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
|
-
|
101
|
+
app.files_dependencies dependencies_for(required)
|
102
|
+
end
|
104
103
|
end
|
105
104
|
end
|
106
105
|
|
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.
|
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-
|
11
|
+
date: 2013-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|