fdlcap 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,14 +1,15 @@
1
1
  source "http://gemcutter.org"
2
2
 
3
- gem 'eycap', '>= 0.5.1'
4
- gem 'auto_tagger', '>= 0.1.0'
5
- gem 'capistrano', '>= 2.5.10'
6
- gem 'capistrano-ext', '>= 1.2.1'
7
-
8
- gem 'bundler', :only => :test
9
- gem 'jeweler', :only => :test
10
- gem 'shoulda', :only => :test
11
-
12
- bin_path 'gbin'
13
-
14
- disable_system_gems
3
+ group :dependency do
4
+ gem 'eycap', '>= 0.5.1'
5
+ gem 'auto_tagger', '>= 0.1.0'
6
+ gem 'capistrano', '>= 2.5.10'
7
+ gem 'capistrano-ext', '>= 1.2.1'
8
+ end
9
+
10
+ group :test do
11
+ gem 'rake'
12
+ gem 'bundler'
13
+ gem 'jeweler'
14
+ gem 'shoulda'
15
+ end
data/Rakefile CHANGED
@@ -1,7 +1,15 @@
1
- require File.join(File.expand_path(File.dirname(__FILE__)), 'vendor', 'gems', 'environment')
2
- Bundler.require_env
3
- require 'rake'
4
- require 'bundler'
1
+ begin
2
+ # Require the preresolved locked set of gems.
3
+ require File.expand_path('../.bundle/environment', __FILE__)
4
+ rescue LoadError
5
+ # Fallback on doing the resolve at runtime.
6
+ require "rubygems"
7
+ require "bundler"
8
+ Bundler.setup
9
+ end
10
+
11
+ require "rake/testtask"
12
+ require "rake/clean"
5
13
 
6
14
  begin
7
15
  require 'jeweler'
@@ -12,10 +20,11 @@ begin
12
20
  gem.homepage = "http://github.com/factorylabs/fdlcap"
13
21
  gem.authors = ["Factory Design Labs", "Gabe Varela", "Jay Zeschin" ]
14
22
 
15
- manifest = Bundler::Environment.load(File.dirname(__FILE__) + '/Gemfile')
23
+ manifest = Bundler.definition
16
24
  manifest.dependencies.each do |d|
17
- next if d.only
18
- gem.add_dependency(d.name, d.version)
25
+ next unless d.groups.include?(:dependency)
26
+ puts d.requirement.to_s
27
+ gem.add_dependency(d.name, d.requirement.to_s)
19
28
  end
20
29
 
21
30
  gem.files.exclude('.gitignore')
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/fdlcap.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fdlcap}
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Factory Design Labs", "Gabe Varela", "Jay Zeschin"]
12
- s.date = %q{2010-01-14}
12
+ s.date = %q{2010-03-01}
13
13
  s.default_executable = %q{fdlcap}
14
14
  s.email = %q{interactive@factorylabs.com}
15
15
  s.executables = ["fdlcap"]
@@ -69,7 +69,7 @@ Gem::Specification.new do |s|
69
69
  s.homepage = %q{http://github.com/factorylabs/fdlcap}
70
70
  s.rdoc_options = ["--charset=UTF-8"]
71
71
  s.require_paths = ["lib"]
72
- s.rubygems_version = %q{1.3.5}
72
+ s.rubygems_version = %q{1.3.6}
73
73
  s.summary = %q{a set of capistrano recipies we use regularly at Factory Design Labs}
74
74
  s.test_files = [
75
75
  "test/fdlcap_test.rb",
@@ -1,16 +1,24 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
-
3
- define_recipe :fdl_defaults do
2
+
3
+ define_recipe :fdl_defaults do |*args|
4
+
5
+ set :ey_environment, !args.empty? ? args.shift : true unless exists?(:ey_environment)
6
+
7
+ if ey_environment
8
+ # Load external eycap dependencies
9
+ require 'eycap/recipes'
10
+ end
11
+
4
12
  # defaults for fdl
5
- set :scm, :git
13
+ set :scm, :git
6
14
  set :keep_releases, 5
7
- set :deploy_via, :remote_cache
8
-
15
+ set :deploy_via, :remote_cache
16
+
9
17
  use_recipe :symlinks
10
18
  use_recipe :perform_cleanup
11
19
  use_recipe :symlink_configs
12
20
  use_recipe :automigrate
13
-
21
+
14
22
  end
15
-
23
+
16
24
  end
@@ -1,5 +1,6 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
2
  define_recipe :newrelic do
3
+ require 'new_relic/recipes'
3
4
  # Tell Newrelic that we've deployed
4
5
  before "deploy:cleanup", "newrelic:notice_deployment"
5
6
  end
@@ -3,9 +3,6 @@ require 'fdlcap/extensions/configuration'
3
3
  require 'fdlcap/extensions/recipe_definition'
4
4
  require 'fdlcap/extensions/check_for_changes'
5
5
 
6
- # Load external fdlcap dependencies
7
- require 'eycap/recipes'
8
-
9
6
  # Load up custom recipe chunks
10
7
  Dir.glob(File.join(File.dirname(__FILE__),'recipes','*.rb')).each do |file|
11
8
  require file
data/test/test_helper.rb CHANGED
@@ -1,5 +1,13 @@
1
- require File.join(File.expand_path(File.dirname(__FILE__)), '..', 'vendor', 'gems', 'environment')
2
- Bundler.require_env(:test)
1
+ begin
2
+ # Require the preresolved locked set of gems.
3
+ require File.expand_path('../.bundle/environment', __FILE__)
4
+ rescue LoadError
5
+ # Fallback on doing the resolve at runtime.
6
+ require "rubygems"
7
+ require "bundler"
8
+ Bundler.setup
9
+ end
10
+
3
11
  require 'test/unit'
4
12
  require 'shoulda'
5
13
 
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fdlcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 4
8
+ - 3
9
+ version: 0.4.3
5
10
  platform: ruby
6
11
  authors:
7
12
  - Factory Design Labs
@@ -11,49 +16,65 @@ autorequire:
11
16
  bindir: bin
12
17
  cert_chain: []
13
18
 
14
- date: 2010-01-14 00:00:00 -07:00
19
+ date: 2010-03-01 00:00:00 -07:00
15
20
  default_executable: fdlcap
16
21
  dependencies:
17
22
  - !ruby/object:Gem::Dependency
18
23
  name: eycap
19
- type: :runtime
20
- version_requirement:
21
- version_requirements: !ruby/object:Gem::Requirement
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
22
26
  requirements:
23
27
  - - ">="
24
28
  - !ruby/object:Gem::Version
29
+ segments:
30
+ - 0
31
+ - 5
32
+ - 1
25
33
  version: 0.5.1
26
- version:
34
+ type: :runtime
35
+ version_requirements: *id001
27
36
  - !ruby/object:Gem::Dependency
28
37
  name: auto_tagger
29
- type: :runtime
30
- version_requirement:
31
- version_requirements: !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
32
40
  requirements:
33
41
  - - ">="
34
42
  - !ruby/object:Gem::Version
43
+ segments:
44
+ - 0
45
+ - 1
46
+ - 0
35
47
  version: 0.1.0
36
- version:
48
+ type: :runtime
49
+ version_requirements: *id002
37
50
  - !ruby/object:Gem::Dependency
38
51
  name: capistrano
39
- type: :runtime
40
- version_requirement:
41
- version_requirements: !ruby/object:Gem::Requirement
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
42
54
  requirements:
43
55
  - - ">="
44
56
  - !ruby/object:Gem::Version
57
+ segments:
58
+ - 2
59
+ - 5
60
+ - 10
45
61
  version: 2.5.10
46
- version:
62
+ type: :runtime
63
+ version_requirements: *id003
47
64
  - !ruby/object:Gem::Dependency
48
65
  name: capistrano-ext
49
- type: :runtime
50
- version_requirement:
51
- version_requirements: !ruby/object:Gem::Requirement
66
+ prerelease: false
67
+ requirement: &id004 !ruby/object:Gem::Requirement
52
68
  requirements:
53
69
  - - ">="
54
70
  - !ruby/object:Gem::Version
71
+ segments:
72
+ - 1
73
+ - 2
74
+ - 1
55
75
  version: 1.2.1
56
- version:
76
+ type: :runtime
77
+ version_requirements: *id004
57
78
  description:
58
79
  email: interactive@factorylabs.com
59
80
  executables:
@@ -124,18 +145,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
145
  requirements:
125
146
  - - ">="
126
147
  - !ruby/object:Gem::Version
148
+ segments:
149
+ - 0
127
150
  version: "0"
128
- version:
129
151
  required_rubygems_version: !ruby/object:Gem::Requirement
130
152
  requirements:
131
153
  - - ">="
132
154
  - !ruby/object:Gem::Version
155
+ segments:
156
+ - 0
133
157
  version: "0"
134
- version:
135
158
  requirements: []
136
159
 
137
160
  rubyforge_project:
138
- rubygems_version: 1.3.5
161
+ rubygems_version: 1.3.6
139
162
  signing_key:
140
163
  specification_version: 3
141
164
  summary: a set of capistrano recipies we use regularly at Factory Design Labs