engineer 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
*Engineer 0.2.0*
|
2
|
+
|
3
|
+
* Add app_name.require_dependencies initializer which loads the engine's Gemfile and requires its
|
4
|
+
default and production dependencies.
|
5
|
+
|
6
|
+
* Drop staging dependencies from the generated gem's runtime dependencies.
|
7
|
+
|
8
|
+
*Engineer 0.1.1*
|
9
|
+
|
10
|
+
* Do not include vendor in engine gems by default.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -61,7 +61,7 @@ Engineer::Tasks.new do |gem|
|
|
61
61
|
Bundler.definition.dependencies.each do |dependency|
|
62
62
|
next if dependency.name == "engineer"
|
63
63
|
|
64
|
-
if (dependency.groups &
|
64
|
+
if (dependency.groups & #{PRODUCTION_GROUPS.inspect}).any?
|
65
65
|
gem.add_dependency dependency.name, *dependency.requirement.as_list
|
66
66
|
else
|
67
67
|
gem.add_development_dependency dependency.name, *dependency.requirement.as_list
|
@@ -84,6 +84,8 @@ RAKE
|
|
84
84
|
|
85
85
|
protected
|
86
86
|
|
87
|
+
PRODUCTION_GROUPS = [:default, :production].freeze
|
88
|
+
|
87
89
|
def app_name
|
88
90
|
app_module.underscore
|
89
91
|
end
|
@@ -6,6 +6,18 @@ module <%= app_module %><%#%>
|
|
6
6
|
ASSET_PREFIX = "<%= app_name %><%#%>"
|
7
7
|
ENGINEER_VERSION = "<%= engineer_version %><%#%>"
|
8
8
|
|
9
|
+
initializer "<%= app_name %><%#%>.require_dependencies" do
|
10
|
+
require 'bundler'
|
11
|
+
gemfile = Bundler::Definition.from_gemfile(root.join('Gemfile'))
|
12
|
+
specs = gemfile.dependencies.select do |d|
|
13
|
+
d.name != 'engineer' and (d.groups & <%= PRODUCTION_GROUPS.inspect %><%#%>).any?
|
14
|
+
end
|
15
|
+
|
16
|
+
specs.collect { |s| s.autorequire || [s.name] }.flatten.each do |r|
|
17
|
+
require r
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
9
21
|
initializer "<%= app_name %><%#%>.action_view.identifier_collection" do
|
10
22
|
require 'action_view/template'
|
11
23
|
class ActionView::Template
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Phil Smith
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-16 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -69,6 +69,7 @@ extra_rdoc_files:
|
|
69
69
|
- LICENSE
|
70
70
|
- README.rdoc
|
71
71
|
files:
|
72
|
+
- CHANGELOG
|
72
73
|
- LICENSE
|
73
74
|
- README.rdoc
|
74
75
|
- Rakefile
|