Skip to content
Browse files

Merge pull request #1 from daz/master

remove svn directories
  • Loading branch information...
2 parents cc46efc + 8f858b7 commit 3e314c4209d567e67f821a0a4f8cf459701e3eb9 Anthony Broome committed Dec 7, 2011
View
1 .gitignore
@@ -3,3 +3,4 @@
Gemfile.lock
pkg/*
*.*~
+.svn
View
5 app/.svn/all-wcprops
@@ -1,5 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 56
-/svn/TorexNG/!svn/ver/3734/trunk/gems/assets_offline/app
-END
View
31 app/.svn/entries
@@ -1,31 +0,0 @@
-10
-
-dir
-3734
-https://svn.torex.com/svn/TorexNG/trunk/gems/assets_offline/app
-https://svn.torex.com/svn/TorexNG
-
-
-
-2011-12-02T15:46:33.442319Z
-3734
-Anthony.Broome
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-45178cb0-7fed-444c-b58d-06e1424a9ccb
-
-controllers
-dir
-
View
11 app/controllers/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 68
-/svn/TorexNG/!svn/ver/3734/trunk/gems/assets_offline/app/controllers
-END
-assets_offline_controller.rb
-K 25
-svn:wc:ra_dav:version-url
-V 97
-/svn/TorexNG/!svn/ver/3734/trunk/gems/assets_offline/app/controllers/assets_offline_controller.rb
-END
View
62 app/controllers/.svn/entries
@@ -1,62 +0,0 @@
-10
-
-dir
-3734
-https://svn.torex.com/svn/TorexNG/trunk/gems/assets_offline/app/controllers
-https://svn.torex.com/svn/TorexNG
-
-
-
-2011-12-02T15:46:33.442319Z
-3734
-Anthony.Broome
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-45178cb0-7fed-444c-b58d-06e1424a9ccb
-
-assets_offline_controller.rb
-file
-
-
-
-
-2011-12-02T14:38:49.402396Z
-fa45977fe7a847e4fa4be00ea5d80b3d
-2011-12-02T15:46:33.442319Z
-3734
-Anthony.Broome
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-2490
-
View
85 app/controllers/.svn/text-base/assets_offline_controller.rb.svn-base
@@ -1,85 +0,0 @@
-require 'yaml'
-
-class AssetsOfflineController < ActionController::Base
-
- def show
- config = YAML.load_file("#{Rails.root}/config/assets_offline.yml")
- root = config[params[:id]]
-
- body = "# GENERATED USING ASSET_OFFLINE\n"
- body << "# Mode: #{Rails.env} \n"
- body << "# #{generate_key()} \n\n"
-
- body << "CACHE MANIFEST \n"
- # CACHE SECTION
- if !root["asset-cache"].blank? and root["asset-cache"].count() > 0
- root["asset-cache"].each do |asset_name|
- body << "#{view_context.asset_path(asset_name)}\n"
- end
- end
- if !root["cache"].blank? and root["cache"].count() > 0
- root["cache"].each do |asset_name|
- body << "#{asset_name}\n"
- end
- end
- body << "\n"
-
- # NETWORK SECTION
- body << "NETWORK:\n"
- body << "# Resources where a connection is required \n"
- if !root["asset-network"].blank? and root["asset-network"].count() > 0
- root["asset-network"].each do |asset_name|
- body << "#{view_context.asset_path(asset_name)}\n"
- end
- end
- if !root["network"].blank? and root["network"].count() > 0
- root["network"].each do |asset_name|
- body << "#{asset_name}\n"
- end
- end
- body << "\n"
-
- #FALLBACK SECTION
- body << "FALLBACK:\n"
- body << "# Resources where a connection is used if available \n"
- if !root["asset-fallback"].blank? and root["asset-fallback"].count() > 0
- root["asset-fallback"].each do |asset_name|
- asset_name_part = asset_name.split("#")
- body << "#{view_context.asset_path(asset_name_part[0].strip())} #{view_context.asset_path(asset_name_part[1].strip())}\n"
- end
- end
- if !root["fallback"].blank? and root["fallback"].count() > 0
- root["fallback"].each do |asset_name|
- asset_name_part = asset_name.split("#")
- body << "#{asset_name_part[0].strip()} #{asset_name_part[1].strip()}\n"
- end
- end
- body << "\n"
-
- headers['Content-Type'] = 'text/cache-manifest'
- render :text => body, :layout => false
- end
-
- private
-
- def generate_key
- if Rails.env.production?
- production_key
- else
- development_key
- end
-
- end
-
- def production_key
- #Invalidate production by updating the datetime stamp in the comment
- path = "#{Rails.root}/config/assets_offline.yml"
- Digest::SHA2.hexdigest(File.read(path)) if ::File.file?(path)
- end
-
- def development_key
- now = Time.now.to_i - Time.now.to_i % 5
- Digest::SHA2.hexdigest(now.to_s)
- end
-
-end
View
11 config/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 59
-/svn/TorexNG/!svn/ver/3734/trunk/gems/assets_offline/config
-END
-routes.rb
-K 25
-svn:wc:ra_dav:version-url
-V 69
-/svn/TorexNG/!svn/ver/3734/trunk/gems/assets_offline/config/routes.rb
-END
View
62 config/.svn/entries
@@ -1,62 +0,0 @@
-10
-
-dir
-3734
-https://svn.torex.com/svn/TorexNG/trunk/gems/assets_offline/config
-https://svn.torex.com/svn/TorexNG
-
-
-
-2011-12-02T15:46:33.442319Z
-3734
-Anthony.Broome
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-45178cb0-7fed-444c-b58d-06e1424a9ccb
-
-routes.rb
-file
-
-
-
-
-2011-12-02T14:39:29.970397Z
-1b9a1db281aa1d112beb8340d29ead47
-2011-12-02T15:46:33.442319Z
-3734
-Anthony.Broome
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-66
-
View
3 config/.svn/text-base/routes.rb.svn-base
@@ -1,3 +0,0 @@
-Rails.application.routes.draw do
- resources :assets_offline
-end
View
11 lib/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 56
-/svn/TorexNG/!svn/ver/3734/trunk/gems/assets_offline/lib
-END
-assets_offline.rb
-K 25
-svn:wc:ra_dav:version-url
-V 74
-/svn/TorexNG/!svn/ver/3734/trunk/gems/assets_offline/lib/assets_offline.rb
-END
View
65 lib/.svn/entries
@@ -1,65 +0,0 @@
-10
-
-dir
-3734
-https://svn.torex.com/svn/TorexNG/trunk/gems/assets_offline/lib
-https://svn.torex.com/svn/TorexNG
-
-
-
-2011-12-02T15:46:33.442319Z
-3734
-Anthony.Broome
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-45178cb0-7fed-444c-b58d-06e1424a9ccb
-
-assets_offline
-dir
-
-assets_offline.rb
-file
-
-
-
-
-2011-12-02T15:12:09.590444Z
-7f49316f1e14bcd77b955b39158c6a6d
-2011-12-02T15:46:33.442319Z
-3734
-Anthony.Broome
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-145
-
View
6 lib/.svn/text-base/assets_offline.rb.svn-base
@@ -1,6 +0,0 @@
-require "assets_offline/version"
-
-module AssetsOffline
- class Engine < Rails::Engine
- end if defined?(Rails) && Rails::VERSION::MAJOR == 3
-end
View
11 lib/assets_offline/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 71
-/svn/TorexNG/!svn/ver/3734/trunk/gems/assets_offline/lib/assets_offline
-END
-version.rb
-K 25
-svn:wc:ra_dav:version-url
-V 82
-/svn/TorexNG/!svn/ver/3734/trunk/gems/assets_offline/lib/assets_offline/version.rb
-END
View
62 lib/assets_offline/.svn/entries
@@ -1,62 +0,0 @@
-10
-
-dir
-3734
-https://svn.torex.com/svn/TorexNG/trunk/gems/assets_offline/lib/assets_offline
-https://svn.torex.com/svn/TorexNG
-
-
-
-2011-12-02T15:46:33.442319Z
-3734
-Anthony.Broome
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-45178cb0-7fed-444c-b58d-06e1424a9ccb
-
-version.rb
-file
-
-
-
-
-2011-12-02T15:16:44.894451Z
-c47858446fefbb4d8ef552e650df25ea
-2011-12-02T15:46:33.442319Z
-3734
-Anthony.Broome
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-45
-
View
3 lib/assets_offline/.svn/text-base/version.rb.svn-base
@@ -1,3 +0,0 @@
-module AssetsOffline
- VERSION = "0.0.3"
-end

0 comments on commit 3e314c4

Please sign in to comment.
Something went wrong with that request. Please try again.