trackman 0.2.5 → 0.2.61

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -58,6 +58,5 @@ PLATFORMS
58
58
 
59
59
  DEPENDENCIES
60
60
  rspec
61
- rspec-mocks
62
61
  sprockets
63
62
  trackman!
@@ -26,14 +26,19 @@ module Trackman
26
26
  def sprockets
27
27
  @@sprockets ||= init_env
28
28
  end
29
+
29
30
  def init_env
30
- env = ::Sprockets::Environment.new
31
- paths = ['app', 'lib', 'vendor'].inject([]) do |array, f|
32
- array + ["images", "stylesheets", "javascripts"].map{|p| "#{working_dir}/#{f}/assets/#{p}" }
33
- end
34
- paths << "#{working_dir}/public"
35
- paths.each{|p| env.append_path p }
36
-
31
+ #if ::Rails
32
+ puts 'A rails env exists, loading it'
33
+ env = ::Rails.application.config.assets
34
+ # else
35
+ # env = ::Sprockets::Environment.new
36
+ # paths = ['app', 'lib', 'vendor'].inject([]) do |array, f|
37
+ # array + ["images", "stylesheets", "javascripts"].map{|p| "#{working_dir}/#{f}/assets/#{p}" }
38
+ # end
39
+ # paths << "#{working_dir}/public"
40
+ # paths.each{|p| env.append_path p }
41
+
37
42
  env
38
43
  end
39
44
  def subfolder(file)
@@ -1,3 +1,3 @@
1
1
  module Trackman
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.61"
3
3
  end
@@ -70,7 +70,7 @@ describe ConfigurationHandler do
70
70
  "TRACKMAN_ERROR_PAGE_URL" => "\"error_page_url\"",
71
71
  "SOME_CONFIG" => "\"url\""
72
72
  }
73
- config_handler= ConfigurationHandler.new(configs, "2.26.2")
73
+ config_handler = ConfigurationHandler.new(configs, "2.26.2")
74
74
 
75
75
  config_handler.setup
76
76
  config_hash = config_handler.configs
data/trackman.gemspec CHANGED
@@ -27,5 +27,4 @@ Gem::Specification.new do |s|
27
27
 
28
28
  s.add_development_dependency "rspec"
29
29
  s.add_development_dependency "sprockets"
30
- s.add_development_dependency "rspec-mocks"
31
- end
30
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trackman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.61
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-07-19 00:00:00.000000000 Z
13
+ date: 2012-07-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -140,22 +140,6 @@ dependencies:
140
140
  - - ! '>='
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
- - !ruby/object:Gem::Dependency
144
- name: rspec-mocks
145
- requirement: !ruby/object:Gem::Requirement
146
- none: false
147
- requirements:
148
- - - ! '>='
149
- - !ruby/object:Gem::Version
150
- version: '0'
151
- type: :development
152
- prerelease: false
153
- version_requirements: !ruby/object:Gem::Requirement
154
- none: false
155
- requirements:
156
- - - ! '>='
157
- - !ruby/object:Gem::Version
158
- version: '0'
159
143
  description: Trackman hosts your maintenances and app-down pages (503s) and lets you
160
144
  keep them in your current development environment so that you can focus on delivering
161
145
  and not configuring.
@@ -504,7 +488,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
504
488
  version: '0'
505
489
  requirements: []
506
490
  rubyforge_project:
507
- rubygems_version: 1.8.24
491
+ rubygems_version: 1.8.22
508
492
  signing_key:
509
493
  specification_version: 3
510
494
  summary: Client version of the Trackman addon on Heroku