fiveruns_tuneup_merb 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,3 @@
1
- v0.5.2. Fix for Safari Rendering.
2
-
3
- v0.5.1. Initial Release.
1
+ * v0.5.3: Make asset installation automatic, fix sharing routing bug
2
+ * v0.5.2: Fix for Safari Rendering.
3
+ * v0.5.1: Initial Release.
data/README CHANGED
@@ -22,13 +22,9 @@ See http://blog.fiveruns.com/2008/10/11/fiveruns-tuneup-for-merb for the announc
22
22
 
23
23
  dependency 'fiveruns_tuneup_merb'
24
24
 
25
- 3. Run the following in your Merb.root:
25
+ 3. Add the following to your config/router.rb:
26
26
 
27
- rake slices:fiveruns_tuneup_merb:install
28
-
29
- 4. Add the following to your config/router.rb:
30
-
31
- slice FiverunsTuneupMerb
27
+ add_slice FiverunsTuneupMerb
32
28
 
33
29
  (If you're already mounting other slices with `all_slices' this step isn't necessary.)
34
30
 
data/Rakefile CHANGED
@@ -8,7 +8,10 @@ AUTHOR = "FiveRuns Development Team"
8
8
  EMAIL = "dev@fiveruns.com"
9
9
  HOMEPAGE = "http://tuneup.fiveruns.com/"
10
10
  SUMMARY = "Merb Slice that provides the FiveRuns TuneUp Panel (http://tuneup.fiveruns.com)"
11
- GEM_VERSION = "0.5.2"
11
+
12
+ # IMPORTANT: Make sure you modify the version number in lib/fiveruns_tuneup_merb.rb
13
+ # as well!
14
+ GEM_VERSION = "0.5.3"
12
15
 
13
16
  spec = Gem::Specification.new do |s|
14
17
  s.rubyforge_project = 'fiveruns_tuneup_merb'
@@ -22,7 +25,7 @@ spec = Gem::Specification.new do |s|
22
25
  s.author = AUTHOR
23
26
  s.email = EMAIL
24
27
  s.homepage = HOMEPAGE
25
- s.add_dependency('fiveruns_tuneup_core')
28
+ s.add_dependency('fiveruns_tuneup_core', '>= 0.5.3')
26
29
  s.add_dependency('merb-slices', '>= 0.9.5')
27
30
  s.require_path = 'lib'
28
31
  s.files = %w(LICENSE README Rakefile TODO CHANGELOG) + Dir.glob("{lib,spec,app,public,stubs}/**/*")
@@ -3,9 +3,8 @@ if defined?(Merb::Plugins)
3
3
  $:.unshift File.dirname(__FILE__)
4
4
 
5
5
  load_dependency 'merb-slices'
6
- Merb::Plugins.add_rakefiles "fiveruns_tuneup_merb/merbtasks", "fiveruns_tuneup_merb/slicetasks"
7
-
8
- require 'fiveruns_tuneup_core'
6
+ load_dependency 'fiveruns_tuneup_core'
7
+
9
8
  require File.dirname(__FILE__) / 'fiveruns_tuneup_merb' / 'instrumentation'
10
9
  require File.dirname(__FILE__) / 'fiveruns_tuneup_merb' / 'api_key'
11
10
 
@@ -33,7 +32,7 @@ if defined?(Merb::Plugins)
33
32
 
34
33
  # Slice metadata
35
34
  self.description = "Provides a FiveRuns TuneUp panel (http://tuneup.fiveruns.com)"
36
- self.version = "0.5.2"
35
+ self.version = "0.5.3"
37
36
  self.author = "FiveRuns Development Team <dev@fiveruns.com>"
38
37
 
39
38
  # Stub classes loaded hook - runs before LoadClasses BootLoader
@@ -54,15 +53,16 @@ if defined?(Merb::Plugins)
54
53
  # Initialization hook - runs before AfterAppLoads BootLoader
55
54
  def self.init
56
55
  if Merb::Config[:adapter] != 'irb'
57
- Merb.logger.info "Instrumenting with TuneUp"
56
+ Merb.logger.info "Instrumenting with FiveRuns TuneUp"
58
57
  ::Merb::Request.extend(FiverunsTuneupMerb::Instrumentation::Merb::Request)
59
58
  ::Merb::Controller.extend(FiverunsTuneupMerb::Instrumentation::Merb::Controller)
60
59
  if defined?(::DataMapper)
61
60
  ::DataMapper::Repository.extend(FiverunsTuneupMerb::Instrumentation::DataMapper::Repository)
62
61
  end
63
62
  log_share_status
63
+ copy_assets!
64
64
  else
65
- Merb.logger.info "Not instrumenting with TuneUp (adapter is '#{Merb::Config[:adapter]}')"
65
+ Merb.logger.info "Not instrumenting with FiveRuns TuneUp (adapter is '#{Merb::Config[:adapter]}')"
66
66
  end
67
67
  end
68
68
 
@@ -90,6 +90,12 @@ if defined?(Merb::Plugins)
90
90
  end
91
91
  end
92
92
 
93
+ def self.copy_assets!
94
+ Merb.logger.info "Automatically copying assets for FiveRuns TuneUp"
95
+ copied, preserved = mirror_public!
96
+ preserved.each { |f| Merb.logger.warn "! preserved override as #{f}" }
97
+ end
98
+
93
99
  end
94
100
 
95
101
  # Setup the slice layout for FiverunsTuneupMerb
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiveruns_tuneup_merb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - FiveRuns Development Team
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-14 00:00:00 -05:00
12
+ date: 2008-11-08 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: "0"
23
+ version: 0.5.3
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: merb-slices
@@ -52,8 +52,6 @@ files:
52
52
  - lib/fiveruns_tuneup_merb
53
53
  - lib/fiveruns_tuneup_merb/api_key.rb
54
54
  - lib/fiveruns_tuneup_merb/instrumentation.rb
55
- - lib/fiveruns_tuneup_merb/merbtasks.rb
56
- - lib/fiveruns_tuneup_merb/slicetasks.rb
57
55
  - lib/fiveruns_tuneup_merb.rb
58
56
  - app/controllers
59
57
  - app/controllers/application.rb
@@ -112,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
110
  requirements: []
113
111
 
114
112
  rubyforge_project: fiveruns_tuneup_merb
115
- rubygems_version: 1.2.0
113
+ rubygems_version: 1.3.0
116
114
  signing_key:
117
115
  specification_version: 2
118
116
  summary: Merb Slice that provides the FiveRuns TuneUp Panel (http://tuneup.fiveruns.com)
@@ -1,106 +0,0 @@
1
- namespace :slices do
2
- namespace :fiveruns_tuneup_merb do
3
-
4
- desc "Install FiverunsTuneupMerb"
5
- task :install => [:preflight, :setup_directories, :copy_assets, :migrate]
6
-
7
- desc "Test for any dependencies"
8
- task :preflight do # see slicetasks.rb
9
- end
10
-
11
- desc "Setup directories"
12
- task :setup_directories do
13
- puts "Creating directories for host application"
14
- FiverunsTuneupMerb.mirrored_components.each do |type|
15
- if File.directory?(FiverunsTuneupMerb.dir_for(type))
16
- if !File.directory?(dst_path = FiverunsTuneupMerb.app_dir_for(type))
17
- relative_path = dst_path.relative_path_from(Merb.root)
18
- puts "- creating directory :#{type} #{File.basename(Merb.root) / relative_path}"
19
- mkdir_p(dst_path)
20
- end
21
- end
22
- end
23
- end
24
-
25
- desc "Copy stub files to host application"
26
- task :stubs do
27
- puts "Copying stubs for FiverunsTuneupMerb - resolves any collisions"
28
- copied, preserved = FiverunsTuneupMerb.mirror_stubs!
29
- puts "- no files to copy" if copied.empty? && preserved.empty?
30
- copied.each { |f| puts "- copied #{f}" }
31
- preserved.each { |f| puts "! preserved override as #{f}" }
32
- end
33
-
34
- desc "Copy stub files and views to host application"
35
- task :patch => [ "stubs", "freeze:views" ]
36
-
37
- desc "Copy public assets to host application"
38
- task :copy_assets do
39
- puts "Copying assets for FiverunsTuneupMerb - resolves any collisions"
40
- copied, preserved = FiverunsTuneupMerb.mirror_public!
41
- puts "- no files to copy" if copied.empty? && preserved.empty?
42
- copied.each { |f| puts "- copied #{f}" }
43
- preserved.each { |f| puts "! preserved override as #{f}" }
44
- end
45
-
46
- desc "Migrate the database"
47
- task :migrate do # see slicetasks.rb
48
- end
49
-
50
- desc "Freeze FiverunsTuneupMerb into your app (only fiveruns_tuneup_merb/app)"
51
- task :freeze => [ "freeze:app" ]
52
-
53
- namespace :freeze do
54
-
55
- desc "Freezes FiverunsTuneupMerb by installing the gem into application/gems using merb-freezer"
56
- task :gem do
57
- begin
58
- Object.const_get(:Freezer).freeze(ENV["GEM"] || "fiveruns_tuneup_merb", ENV["UPDATE"], ENV["MODE"] || 'rubygems')
59
- rescue NameError
60
- puts "! dependency 'merb-freezer' missing"
61
- end
62
- end
63
-
64
- desc "Freezes FiverunsTuneupMerb by copying all files from fiveruns_tuneup_merb/app to your application"
65
- task :app do
66
- puts "Copying all fiveruns_tuneup_merb/app files to your application - resolves any collisions"
67
- copied, preserved = FiverunsTuneupMerb.mirror_app!
68
- puts "- no files to copy" if copied.empty? && preserved.empty?
69
- copied.each { |f| puts "- copied #{f}" }
70
- preserved.each { |f| puts "! preserved override as #{f}" }
71
- end
72
-
73
- desc "Freeze all views into your application for easy modification"
74
- task :views do
75
- puts "Copying all view templates to your application - resolves any collisions"
76
- copied, preserved = FiverunsTuneupMerb.mirror_files_for :view
77
- puts "- no files to copy" if copied.empty? && preserved.empty?
78
- copied.each { |f| puts "- copied #{f}" }
79
- preserved.each { |f| puts "! preserved override as #{f}" }
80
- end
81
-
82
- desc "Freeze all models into your application for easy modification"
83
- task :models do
84
- puts "Copying all models to your application - resolves any collisions"
85
- copied, preserved = FiverunsTuneupMerb.mirror_files_for :model
86
- puts "- no files to copy" if copied.empty? && preserved.empty?
87
- copied.each { |f| puts "- copied #{f}" }
88
- preserved.each { |f| puts "! preserved override as #{f}" }
89
- end
90
-
91
- desc "Freezes FiverunsTuneupMerb as a gem and copies over fiveruns_tuneup_merb/app"
92
- task :app_with_gem => [:gem, :app]
93
-
94
- desc "Freezes FiverunsTuneupMerb by unpacking all files into your application"
95
- task :unpack do
96
- puts "Unpacking FiverunsTuneupMerb files to your application - resolves any collisions"
97
- copied, preserved = FiverunsTuneupMerb.unpack_slice!
98
- puts "- no files to copy" if copied.empty? && preserved.empty?
99
- copied.each { |f| puts "- copied #{f}" }
100
- preserved.each { |f| puts "! preserved override as #{f}" }
101
- end
102
-
103
- end
104
-
105
- end
106
- end
@@ -1,18 +0,0 @@
1
- namespace :slices do
2
- namespace :fiveruns_tuneup_merb do
3
-
4
- # add your own fiveruns_tuneup_merb tasks here
5
-
6
- # implement this to test for structural/code dependencies
7
- # like certain directories or availability of other files
8
- desc "Test for any dependencies"
9
- task :preflight do
10
- end
11
-
12
- # implement this to perform any database related setup steps
13
- desc "Migrate the database"
14
- task :migrate do
15
- end
16
-
17
- end
18
- end