snapdragon 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.markdown +7 -0
- data/example/spec_helper.js +1 -0
- data/example/src/jack.js +0 -0
- data/lib/snapdragon/file_base.rb +4 -1
- data/lib/snapdragon/path.rb +4 -0
- data/lib/snapdragon/suite.rb +5 -1
- data/lib/snapdragon/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbdd1c01780d6cf840d1c324b4b410b3c624064b
|
4
|
+
data.tar.gz: 469c7ba58f97d16cd7962a59553c83a8341067c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c439d1a2fac54d154883624364f85e6cd39f283841ab0b4f9c1a090741b7ee1e3acff83b723d21f1fcf29b89d97fbb26fd35f2a03aad053e431f96fb40e94508
|
7
|
+
data.tar.gz: 16403dfa69ed351d35ddf21f633f2fa854e9084d56689d70c2af3fc41993ebed8a8bdbf3186ff36c985dcceaa5016aee6ce5cdc864ed83c71308dc74591dca41
|
data/ChangeLog.markdown
CHANGED
@@ -6,6 +6,13 @@ versions as well as provide a rough history.
|
|
6
6
|
|
7
7
|
#### Next Release
|
8
8
|
|
9
|
+
#### v0.1.9
|
10
|
+
|
11
|
+
* fixed bug preventing require\_relatives with no tailing whitespace from being
|
12
|
+
detected ([\#20](http://github.com/reachlocal/snapdragon/issues/20))
|
13
|
+
* eliminated duplicate requires
|
14
|
+
([\#17](http://github.com/reachlocal/snapdragon/issues/17))
|
15
|
+
|
9
16
|
#### v0.1.8
|
10
17
|
|
11
18
|
* removed debug puts statements that were left in
|
data/example/spec_helper.js
CHANGED
data/example/src/jack.js
ADDED
File without changes
|
data/lib/snapdragon/file_base.rb
CHANGED
@@ -18,7 +18,7 @@ module Snapdragon
|
|
18
18
|
require_paths = []
|
19
19
|
|
20
20
|
lines.each do |line|
|
21
|
-
if line =~ /\/\/+\s+require_relative\(['"](.+)['"]\)
|
21
|
+
if line =~ /\/\/+\s+require_relative\(['"](.+)['"]\).*$/
|
22
22
|
require_paths << ::File.join(::File.dirname(@path.path), $1)
|
23
23
|
end
|
24
24
|
end
|
@@ -41,5 +41,8 @@ end
|
|
41
41
|
# into file_base.rb and it seemed to resolve it.
|
42
42
|
module Snapdragon
|
43
43
|
class RequireFile < Snapdragon::FileBase
|
44
|
+
def absolute_path
|
45
|
+
@path.absolute_path()
|
46
|
+
end
|
44
47
|
end
|
45
48
|
end
|
data/lib/snapdragon/path.rb
CHANGED
data/lib/snapdragon/suite.rb
CHANGED
@@ -23,8 +23,12 @@ module Snapdragon
|
|
23
23
|
|
24
24
|
def require_file_relative_url_paths
|
25
25
|
paths = Set.new
|
26
|
+
absolute_paths = []
|
26
27
|
require_files.each do |file|
|
27
|
-
|
28
|
+
if !absolute_paths.include?(file.absolute_path)
|
29
|
+
absolute_paths << file.absolute_path
|
30
|
+
paths << file.relative_url_path
|
31
|
+
end
|
28
32
|
end
|
29
33
|
return paths
|
30
34
|
end
|
data/lib/snapdragon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snapdragon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew De Ponte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- example/spec/hoopty_spec.js
|
136
136
|
- example/spec_helper.js
|
137
137
|
- example/src/hoopty.js
|
138
|
+
- example/src/jack.js
|
138
139
|
- lib/snapdragon.rb
|
139
140
|
- lib/snapdragon/cli_application.rb
|
140
141
|
- lib/snapdragon/file_base.rb
|