cyborg 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cyborg.gemspec +1 -1
- data/lib/cyborg/command/npm.rb +3 -11
- data/lib/cyborg/plugin/assets/javascripts.rb +6 -3
- data/lib/cyborg/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02edda550ab2fe11cdc90d33bbcfd5169efa9809
|
4
|
+
data.tar.gz: d59ede5b17f17ba1fadabaa19c470711a2776b57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cb15260cfb664112747e484c08f055c000d3bbb02a25bca8c9e3498d69bd7e8bf999f6646ce6c6752bd93aa47d6d6f38334e4c52bb28b675e2b2c744c74f7f1
|
7
|
+
data.tar.gz: 15f3a0d8ba976babf3dc746d1f80d78a3e5e20c2457c741f87c5f8444c3633763980e1243d1b3ee2a508c87f4baa875f6fd847991115254d6be9fa0f7e387a1a
|
data/cyborg.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_runtime_dependency 'block_helpers', '~> 0.3'
|
25
25
|
spec.add_runtime_dependency 'colorize', '~> 0.8'
|
26
26
|
spec.add_runtime_dependency 'bundler', '~> 1.10'
|
27
|
-
spec.add_runtime_dependency 'autoprefixer-rails', '~>
|
27
|
+
spec.add_runtime_dependency 'autoprefixer-rails', '~> 9.0'
|
28
28
|
spec.add_runtime_dependency 'rack-cors', '~> 0.4'
|
29
29
|
spec.add_runtime_dependency 'rails', '>= 4.2', '< 6'
|
30
30
|
|
data/lib/cyborg/command/npm.rb
CHANGED
@@ -7,11 +7,9 @@ module Cyborg
|
|
7
7
|
DEPENDENCIES = YAML.load %Q{
|
8
8
|
private: true
|
9
9
|
devDependencies:
|
10
|
-
|
11
|
-
browserify:
|
12
|
-
|
13
|
-
minifyify: ^7.3.2
|
14
|
-
svgo: ^0.5.6
|
10
|
+
browserify: ^16.2.1
|
11
|
+
browserify-incremental: ^3.1.1
|
12
|
+
svgo: ^1.0.5
|
15
13
|
}
|
16
14
|
|
17
15
|
def setup
|
@@ -28,12 +26,6 @@ module Cyborg
|
|
28
26
|
File.join(Dir.pwd, 'package.json')
|
29
27
|
end
|
30
28
|
|
31
|
-
def node_dependencies
|
32
|
-
DEPENDENCIES['devDependencies'].map do |k,v|
|
33
|
-
"#{k}@\"#{v}\""
|
34
|
-
end.join(' ')
|
35
|
-
end
|
36
|
-
|
37
29
|
def write_package_json(contents)
|
38
30
|
File.open(package_path, 'w') do |io|
|
39
31
|
io.write(JSON.pretty_generate(contents))
|
@@ -66,13 +66,16 @@ module Cyborg
|
|
66
66
|
|
67
67
|
def build_command(file)
|
68
68
|
dest = destination(file).sub(/\.js$/,'')
|
69
|
-
options = "
|
69
|
+
options = "--standalone #{plugin.name} -o #{dest}.js -d"
|
70
70
|
|
71
|
-
if Cyborg.production?
|
72
|
-
npm_path "browserify #{file} #{options} -
|
71
|
+
cmd = if Cyborg.production?
|
72
|
+
npm_path "browserify #{file} #{options} -t"
|
73
73
|
else
|
74
74
|
npm_path "browserifyinc --cachefile #{cache_file(File.basename(dest))} #{file} #{options}"
|
75
75
|
end
|
76
|
+
puts "Running: #{cmd}"
|
77
|
+
|
78
|
+
cmd
|
76
79
|
|
77
80
|
end
|
78
81
|
end
|
data/lib/cyborg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyborg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '9.0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '9.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rack-cors
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
227
|
rubyforge_project:
|
228
|
-
rubygems_version: 2.
|
228
|
+
rubygems_version: 2.4.5.1
|
229
229
|
signing_key:
|
230
230
|
specification_version: 4
|
231
231
|
summary: Build a great style-guide for Rails (and humans).
|