ender-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Rakefile +1 -1
- data/ender-rails.gemspec +1 -1
- data/lib/ender-rails/version.rb +1 -1
- data/lib/tasks/ender.rake +7 -7
- metadata +13 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22b6b912653bee43c5442e14b683d0b03938a36d
|
4
|
+
data.tar.gz: 3566007d48ed7bbd01cf9b344d2d5ab73fe7dd1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1323bb27b58ae8c96407a8db00260f08daf53ff74f2a9ed35055eeec9f1f56714954a87219b3adf01cc0fd4093800bd18975a732c2b5512420e04e57f539d205
|
7
|
+
data.tar.gz: 26fb927581198e1a28b1b03ee23cbe906c82f342be2fd1ace3b6d3b7437e26369cd55786c1c0d36eaa61da0b068e1935e7b35177cfcebd7641d85a2a835d572b
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rails-ender
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.0.0
|
data/Rakefile
CHANGED
data/ender-rails.gemspec
CHANGED
data/lib/ender-rails/version.rb
CHANGED
data/lib/tasks/ender.rake
CHANGED
@@ -33,9 +33,9 @@ namespace :ender do
|
|
33
33
|
|
34
34
|
desc "install files from ender"
|
35
35
|
task :install do
|
36
|
+
node_version = ENV['NODE_VERSION'] || '0.8.16'
|
36
37
|
if `which npm`.size.<=(0)
|
37
38
|
if ENV['NVM_DIR']
|
38
|
-
node_version = ENV['NODE_VERSION'] || '0.8.16'
|
39
39
|
sh "/bin/bash -c 'source #{ENV['NVM_DIR']}/nvm.sh && nvm install #{node_version} && nvm use #{node_version}'"
|
40
40
|
else
|
41
41
|
Rake::Task['ender:node:install'].invoke
|
@@ -45,21 +45,21 @@ namespace :ender do
|
|
45
45
|
puts "Please run 'source ~/.nvm/nvm.sh && nvm use #{node_version}' to reload nodejs environment '"
|
46
46
|
end
|
47
47
|
|
48
|
-
desc "check
|
48
|
+
desc "check if ender is installed"
|
49
49
|
task :check do
|
50
50
|
Rake::Task['ender:install'].invoke unless `which ender`.size.>(0)
|
51
51
|
end
|
52
52
|
|
53
|
-
desc "build ender base
|
53
|
+
desc "build ender base Jeesh package (careful it rebuilds from scratch)"
|
54
54
|
task :build => :check do
|
55
55
|
sh "ender build jeesh --output #{OUTPUT}"
|
56
|
-
FileUtils.rm("#{
|
56
|
+
FileUtils.rm("#{OUTPUT}.min.js") if File.exist?("#{OUTPUT}.min.js")
|
57
57
|
end
|
58
58
|
|
59
59
|
desc "refresh the build"
|
60
60
|
task :refresh => :check do
|
61
61
|
sh "ender refresh --use #{OUTPUT}"
|
62
|
-
FileUtils.rm("#{
|
62
|
+
FileUtils.rm("#{OUTPUT}.min.js") if File.exist?("#{OUTPUT}.min.js")
|
63
63
|
end
|
64
64
|
|
65
65
|
desc "show list of installed packages"
|
@@ -75,13 +75,13 @@ namespace :ender do
|
|
75
75
|
desc "add a package to the ender build"
|
76
76
|
task :add, [:package] => [:check] do |t,p|
|
77
77
|
sh "ender add #{p[:package]} --use #{OUTPUT}"
|
78
|
-
FileUtils.rm("#{
|
78
|
+
FileUtils.rm("#{OUTPUT}.min.js") if File.exist?("#{OUTPUT}.min.js")
|
79
79
|
end
|
80
80
|
|
81
81
|
desc "remove a package from the ender build"
|
82
82
|
task :remove, [:package] => [:check] do |t,p|
|
83
83
|
sh "ender remove #{p[:package]} --use #{OUTPUT}"
|
84
|
-
FileUtils.rm("#{
|
84
|
+
FileUtils.rm("#{OUTPUT}.min.js") if File.exist?("#{OUTPUT}.min.js")
|
85
85
|
end
|
86
86
|
|
87
87
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ender-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mose
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 10.0.0
|
20
|
+
- - <
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 10.2.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 10.0.0
|
30
|
+
- - <
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 10.2.0
|
27
33
|
description: Install Ender and the Jeesh in rails.
|
28
34
|
email:
|
29
35
|
- mose@mose.com
|
@@ -32,7 +38,8 @@ extensions: []
|
|
32
38
|
extra_rdoc_files: []
|
33
39
|
files:
|
34
40
|
- .gitignore
|
35
|
-
- .
|
41
|
+
- .ruby-gemset
|
42
|
+
- .ruby-version
|
36
43
|
- Gemfile
|
37
44
|
- LICENSE
|
38
45
|
- README.md
|
@@ -62,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
69
|
version: '0'
|
63
70
|
requirements: []
|
64
71
|
rubyforge_project:
|
65
|
-
rubygems_version: 2.0.
|
72
|
+
rubygems_version: 2.0.3
|
66
73
|
signing_key:
|
67
74
|
specification_version: 4
|
68
75
|
summary: Install Ender and the Jeesh in rails, using some simple rake tasks.
|