capistrano-bundle 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dd70e9e7b70ad02c09c2ad9554cbb027e21f44cd
4
+ data.tar.gz: 12e2091444d9c1e73d2aa9ed44b9310059883959
5
+ SHA512:
6
+ metadata.gz: 9d9dcec70db59ac74e81884766ccaf4b113796011100563dafb497f4a42f3826c5baa24316e5d3a097015cd7b29a37446851e55da8f58bca3257c19ea3c065a4
7
+ data.tar.gz: 68c80212a00bca05d30e0e2dee5a4e47cd2b278df19b3be4915edf2b4e32d60140a50529fded7a4a1c5766fcb3b765629d9501975f9fc07fe3174d9a59afb69d
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/README.md ADDED
@@ -0,0 +1,3 @@
1
+ ### Capistrano Bundle
2
+
3
+ A fast and simple asset bundling extension for Capistrano 3.x
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'capistrano-bundle'
7
+ spec.version = '0.0.2'
8
+ spec.authors = ["Ross Riley"]
9
+ spec.email = ["riley.ross@gmail.com"]
10
+ spec.description = %q{Very Basic Asset Bundler for Capistrano 3.x}
11
+ spec.summary = %q{Very Basic Asset Bundler for Capistrano 3.x}
12
+ spec.homepage = 'https://github.com/rossriley/capistrano-bundle'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_dependency 'capistrano', '>= 3.1'
21
+
22
+ spec.add_development_dependency 'bundler', '~> 1.3'
23
+ spec.add_development_dependency 'rake'
24
+ end
@@ -0,0 +1 @@
1
+ load File.expand_path('../tasks/bundle.rake', __FILE__)
@@ -0,0 +1,36 @@
1
+ namespace :bundle do
2
+
3
+
4
+ desc "Packages up assets into combined, modular files"
5
+ task :build do
6
+ fetch(:bundle_dirs).each do |bundle|
7
+ Dir.glob[bundle[0]].each do |bundle_directory|
8
+ bundle_name = File.basename(bundle_directory)
9
+ bundle_glob = bundle_directory+bundle[1]
10
+ bundle_output = ''
11
+ Dir.glob[bundle_glob].each do |file|
12
+ bundle_extension = File.extname(file)
13
+ bundle_output << File.read(file)
14
+ end
15
+ build_target = fetch(:bundle_build_path)+bundle[2]+bundle_name+fetch(:bundle_build_suffix)+bundle_extension
16
+ upload! build_output, build_target
17
+ end
18
+ end
19
+
20
+ end
21
+ end
22
+
23
+
24
+ namespace :load do
25
+
26
+ task :defaults do
27
+ set :bundle_build_path, fetch(:deploy_to)
28
+ set :bundle_dirs, [
29
+ ["public/stylesheets/**/*/", "**/*.css", "public/stylesheets/build/"],
30
+ ["public/javascripts/**/*/", "**/*.js", "public/javascripts/build/"]
31
+ ]
32
+ set :bundle_build_suffix, "_combined"
33
+ end
34
+
35
+ end
36
+
File without changes
metadata ADDED
@@ -0,0 +1,92 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-bundle
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Ross Riley
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capistrano
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.3'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Very Basic Asset Bundler for Capistrano 3.x
56
+ email:
57
+ - riley.ross@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .gitignore
63
+ - README.md
64
+ - capistrano-bundle.gemspec
65
+ - lib/capistrano-bundle.rb
66
+ - lib/capistrano/bundle.rb
67
+ - lib/capistrano/tasks/bundle.rake
68
+ homepage: https://github.com/rossriley/capistrano-bundle
69
+ licenses:
70
+ - MIT
71
+ metadata: {}
72
+ post_install_message:
73
+ rdoc_options: []
74
+ require_paths:
75
+ - lib
76
+ required_ruby_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ requirements: []
87
+ rubyforge_project:
88
+ rubygems_version: 2.1.10
89
+ signing_key:
90
+ specification_version: 4
91
+ summary: Very Basic Asset Bundler for Capistrano 3.x
92
+ test_files: []