local_pac 0.1.13 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/{LICENSE.txt → LICENSE.md} +0 -0
  2. data/README.DEVELOPER.md +7 -0
  3. data/README.md +138 -2
  4. data/Rakefile +16 -8
  5. data/app/controllers/application_controller.rb +5 -3
  6. data/app/controllers/assets_controller.rb +3 -2
  7. data/app/controllers/file_serve_controller.rb +3 -6
  8. data/app/controllers/lookup_controller.rb +9 -9
  9. data/app/locales/en.yml +1 -0
  10. data/app/views/application.haml +1 -1
  11. data/bin/local_pac +49 -64
  12. data/config.ru +24 -7
  13. data/features/initializer.feature +4 -4
  14. data/features/show_status.feature +2 -2
  15. data/files/config.yaml +2 -2
  16. data/files/example-config.erb +10 -12
  17. data/files/git-hook.erb +1 -0
  18. data/lib/local_pac.rb +22 -5
  19. data/lib/local_pac/actions/create_directory.rb +2 -2
  20. data/lib/local_pac/actions/create_file.rb +8 -2
  21. data/lib/local_pac/actions/create_repository.rb +6 -8
  22. data/lib/local_pac/actions/get_system_information.rb +78 -0
  23. data/lib/local_pac/actions/print_newline.rb +19 -0
  24. data/lib/local_pac/actions/print_title.rb +41 -0
  25. data/lib/local_pac/actions/reload_configuration.rb +21 -0
  26. data/lib/local_pac/actions/reload_local_storage.rb +22 -0
  27. data/lib/local_pac/actions/send_signal.rb +32 -0
  28. data/lib/local_pac/actions/show_config.rb +10 -0
  29. data/lib/local_pac/actions/show_process_information.rb +94 -0
  30. data/lib/local_pac/application_status.rb +34 -0
  31. data/lib/local_pac/cli/helper.rb +34 -0
  32. data/lib/local_pac/cli/reload.rb +36 -0
  33. data/lib/local_pac/config.rb +15 -13
  34. data/lib/local_pac/exceptions.rb +6 -0
  35. data/lib/local_pac/file.rb +32 -0
  36. data/lib/local_pac/git.rb +20 -6
  37. data/lib/local_pac/git_repository.rb +40 -28
  38. data/lib/local_pac/git_storage.rb +60 -0
  39. data/lib/local_pac/initializer.rb +8 -5
  40. data/lib/local_pac/local_storage.rb +3 -4
  41. data/lib/local_pac/main.rb +2 -2
  42. data/lib/local_pac/{null_pac_file.rb → null_file.rb} +5 -1
  43. data/lib/local_pac/server.rb +1 -1
  44. data/lib/local_pac/spec_helper_file_server.rb +6 -5
  45. data/lib/local_pac/template_file.rb +1 -1
  46. data/lib/local_pac/template_repository.rb +3 -3
  47. data/lib/local_pac/version.rb +1 -1
  48. data/local_pac.gemspec +13 -9
  49. data/script/console +1 -1
  50. data/share/archlinux/PKGBUILD +4 -1
  51. data/share/archlinux/config.yaml +1 -1
  52. data/spec/actions/create_directory_spec.rb +3 -3
  53. data/spec/actions/create_file_spec.rb +23 -2
  54. data/spec/actions/create_repository_spec.rb +3 -3
  55. data/spec/actions/get_system_information_spec.rb +22 -0
  56. data/spec/actions/print_new_line_spec.rb +36 -0
  57. data/spec/actions/print_title_spec.rb +50 -0
  58. data/spec/actions/reload_configuration_spec.rb +38 -0
  59. data/spec/actions/reload_repository_spec.rb +35 -0
  60. data/spec/actions/send_signal_spec.rb +58 -0
  61. data/spec/actions/show_config_spec.rb +22 -0
  62. data/spec/actions/show_process_information_spec.rb +45 -0
  63. data/spec/application_status_spec.rb +40 -0
  64. data/spec/config_spec.rb +11 -11
  65. data/spec/features/fetch_proxy_pac_spec.rb +11 -10
  66. data/spec/features/lookup_proxy_spec.rb +32 -40
  67. data/spec/file_spec.rb +56 -0
  68. data/spec/git_spec.rb +13 -7
  69. data/spec/git_storage_spec.rb +64 -0
  70. data/spec/initializer_spec.rb +7 -5
  71. data/spec/{null_pac_file_spec.rb → null_file_spec.rb} +6 -6
  72. data/spec/proxy_pac/pac_result_html_stylist_spec.rb +3 -2
  73. data/spec/runner_spec.rb +1 -1
  74. data/spec/spec_helper.rb +2 -2
  75. data/spec/spec_helper_features.rb +2 -2
  76. data/spec/support/config.rb +5 -0
  77. data/spec/support/filesystem.rb +1 -1
  78. data/spec/support/git.rb +23 -2
  79. data/spec/support/helper_features.rb +23 -0
  80. data/spec/template_repository_spec.rb +2 -2
  81. metadata +113 -32
  82. data/lib/local_pac/git_file.rb +0 -18
  83. data/lib/local_pac/pac_file.rb +0 -27
  84. data/spec/git_repository_spec.rb +0 -60
  85. data/spec/pac_file_spec.rb +0 -44
@@ -0,0 +1,56 @@
1
+ # encoding: utf-8
2
+ require 'spec_helper'
3
+
4
+ describe LocalPac::File do
5
+ context 'initialize' do
6
+ it 'requires a path' do
7
+ expect {
8
+ LocalPac::File.new('dir/path.pac')
9
+ }.not_to raise_error
10
+ end
11
+
12
+ it 'accepts content' do
13
+ expect {
14
+ LocalPac::File.new('dir/path.pac', 'content')
15
+ }.not_to raise_error
16
+ end
17
+ end
18
+
19
+ context '#name' do
20
+ it 'has a name' do
21
+ file = LocalPac::File.new('file.txt')
22
+ expect(file.name).to eq(:file)
23
+ end
24
+ end
25
+
26
+ context '#extension?' do
27
+ it 'checks if extension is the same' do
28
+ file = LocalPac::File.new('path.pac')
29
+ expect(file).to be_extension('.pac')
30
+ end
31
+ end
32
+
33
+ context '#content' do
34
+ it 'returns the content of file' do
35
+ file = LocalPac::File.new('file.pac', 'content')
36
+ expect(file.content).to eq('content')
37
+ end
38
+ end
39
+
40
+ context '#nil?' do
41
+ it 'is always false' do
42
+ file = LocalPac::File.new('file.pac')
43
+ expect(file.nil?).to be_false
44
+ end
45
+ end
46
+
47
+ context '#compressed_content' do
48
+ it 'uses an external handler to compress content' do
49
+ handler = double('handler')
50
+ expect(handler).to receive(:prepare)
51
+
52
+ file = LocalPac::File.new('file.pac')
53
+ file.prepare(handler)
54
+ end
55
+ end
56
+ end
@@ -17,7 +17,8 @@ describe Git do
17
17
  context '#ls_tree' do
18
18
  it 'list files in repo' do
19
19
  git_init(git_repo)
20
- create_file(File.join(git_repo, 'file.txt'))
20
+ git_set_author(git_repo)
21
+ create_file(::File.join(git_repo, 'file.txt'))
21
22
  git_add(git_repo, 'file.txt')
22
23
  git_commit(git_repo)
23
24
 
@@ -30,7 +31,8 @@ describe Git do
30
31
  context '#ls_files' do
31
32
  it 'list files in repo' do
32
33
  git_init(git_repo)
33
- create_file(File.join(git_repo, 'file.txt'))
34
+ git_set_author(git_repo)
35
+ create_file(::File.join(git_repo, 'file.txt'))
34
36
  git_add(git_repo, 'file.txt')
35
37
  git_commit(git_repo)
36
38
 
@@ -41,10 +43,11 @@ describe Git do
41
43
 
42
44
  it 'list files in repo and filter' do
43
45
  git_init(git_repo)
44
- create_file(File.join(git_repo, 'file1.txt'))
46
+ git_set_author(git_repo)
47
+ create_file(::File.join(git_repo, 'file1.txt'))
45
48
  git_add(git_repo, 'file1.txt')
46
49
 
47
- create_file(File.join(git_repo, 'file2.txt'))
50
+ create_file(::File.join(git_repo, 'file2.txt'))
48
51
  git_add(git_repo, 'file2.txt')
49
52
 
50
53
  git_commit(git_repo)
@@ -58,7 +61,8 @@ describe Git do
58
61
  context '#add' do
59
62
  it 'add dir/file to repository' do
60
63
  git_init(git_repo)
61
- create_file(File.join(git_repo, 'file.txt'))
64
+ git_set_author(git_repo)
65
+ create_file(::File.join(git_repo, 'file.txt'))
62
66
 
63
67
  Dir.chdir(::File.join(working_directory, git_repo)) do
64
68
  Git.add('file.txt')
@@ -72,8 +76,9 @@ describe Git do
72
76
  it 'commit dir/file to repository' do
73
77
 
74
78
  git_init(git_repo)
79
+ git_set_author(git_repo)
75
80
 
76
- create_file(File.join(git_repo, 'file.txt'))
81
+ create_file(::File.join(git_repo, 'file.txt'))
77
82
 
78
83
  git_add(git_repo, 'file.txt')
79
84
 
@@ -88,7 +93,8 @@ describe Git do
88
93
  context '#show' do
89
94
  it 'show ref/sha in repository' do
90
95
  git_init(git_repo)
91
- create_file(File.join(git_repo, 'file.txt'))
96
+ git_set_author(git_repo)
97
+ create_file(::File.join(git_repo, 'file.txt'))
92
98
  git_add(git_repo, 'file.txt')
93
99
  git_commit(git_repo)
94
100
 
@@ -0,0 +1,64 @@
1
+ # encoding: utf-8
2
+ require 'spec_helper'
3
+
4
+ describe GitStorage do
5
+ let(:git_repo) { File.join(working_directory, 'git_repo.git') }
6
+ let(:compressor) do
7
+ Class.new do
8
+ def prepare(file)
9
+ end
10
+ end
11
+ end
12
+
13
+ let(:creator) do
14
+ Class.new do
15
+ attr_reader :content, :path, :name
16
+ attr_accessor :compressed_content
17
+ def initialize(path, content)
18
+ @path = path
19
+ @content = content
20
+ @name = path.sub(/\..*$/, '').camelize.downcase.to_sym
21
+ end
22
+
23
+ def extension?(ext)
24
+ ::File.extname(path) == ext
25
+ end
26
+ end
27
+ end
28
+
29
+ context '#files' do
30
+ it 'returns a list of files matching pattern' do
31
+ repo = GitRepository.create(git_repo)
32
+ repo.add_content('file1.txt', 'asdf')
33
+ repo.add_content('file2.pac', 'data file2.pac')
34
+
35
+ storage = GitStorage.new(repo.storage_path, compressor, creator)
36
+ expect(storage[:file2].content).to eq('data file2.pac')
37
+ end
38
+
39
+ it 'supports directories as well' do
40
+ repo = GitRepository.create(git_repo)
41
+ repo.add_content('file1.txt', 'asdf')
42
+ repo.add_content('dir/file2.pac', 'data file2.pac')
43
+
44
+ storage = GitStorage.new(repo.storage_path, compressor, creator)
45
+ expect(storage['dir::file2'.to_sym].content).to eq('data file2.pac')
46
+ end
47
+
48
+ it 'supports deeply nested directories as well' do
49
+ repo = GitRepository.create(git_repo)
50
+ repo.add_content('file1.txt', 'asdf')
51
+ repo.add_content('dir/dir1/file3.pac', 'data asdf.pac')
52
+
53
+ storage = GitStorage.new(repo.storage_path, compressor, creator)
54
+ expect(storage['dir::dir1::file3'.to_sym].content).to eq('data asdf.pac')
55
+ end
56
+
57
+ it 'handles a repo without a root commit' do
58
+ repo = GitRepository.create(git_repo)
59
+
60
+ storage = GitStorage.new(repo.storage_path, compressor, creator)
61
+ expect(storage['dir::file2'.to_sym].content).to be_nil
62
+ end
63
+ end
64
+ end
@@ -6,11 +6,12 @@ describe Initializer do
6
6
  context '#run' do
7
7
  it 'creates all files/directories neccessary to run local_pac' do
8
8
  config_string = <<-EOS.strip_heredoc
9
- :log_sink: #{File.join(working_directory, 'log')}
10
- :local_storage: #{File.join(working_directory, 'storage', 'cache.git')}
9
+ :access_log: #{File.join(working_directory, 'log', 'access.log')}
10
+ :local_storage: #{File.join(working_directory, 'data', 'storage.git')}
11
11
  :executable: #{File.join(working_directory, 'bin', 'local_pac')}
12
12
  :pid_file: #{File.join(working_directory, 'run', 'pid')}
13
13
  :sass_cache: #{File.join(working_directory, 'cache', 'sass')}
14
+ :config_file: #{File.join(working_directory, 'config', 'config.yaml')}
14
15
  :gem_path: []
15
16
  EOS
16
17
  config_file = create_file('config.yaml', config_string)
@@ -24,11 +25,12 @@ describe Initializer do
24
25
  end
25
26
 
26
27
  expect(path_exists?('log')).to be_true
28
+ expect(path_exists?('config/config.yaml')).to be_true
27
29
  expect(path_exists?('cache/sass')).to be_true
28
- expect(path_exists?('storage/cache.git')).to be_true
29
- expect(path_exists?(File.join('storage', 'cache.git', 'hooks', 'pre-receive'))).to be_true
30
+ expect(path_exists?('data/storage.git')).to be_true
31
+ expect(path_exists?(::File.join('data', 'storage.git', 'hooks', 'pre-receive'))).to be_true
30
32
  expect(path_exists?('run')).to be_true
31
- expect(result).to include("log_sink: #{File.expand_path(File.join(ENV['HOME'], '.local', 'share', 'local_pac', 'log'))}")
33
+ expect(result).to include("access_log: #{File.expand_path(::File.join(working_directory, 'log', 'access.log'))}")
32
34
  end
33
35
  end
34
36
  end
@@ -1,31 +1,31 @@
1
1
  # encoding: utf-8
2
2
  require 'spec_helper'
3
3
 
4
- describe NullPacFile do
4
+ describe NullFile do
5
5
  context '#path' do
6
6
  it 'always returns nil' do
7
- file = NullPacFile.new
7
+ file = NullFile.new
8
8
  expect(file.path).to be_nil
9
9
  end
10
10
  end
11
11
 
12
12
  context '#name' do
13
13
  it 'always returns nil' do
14
- file = NullPacFile.new
14
+ file = NullFile.new
15
15
  expect(file.name).to be_nil
16
16
  end
17
17
  end
18
18
 
19
19
  context '#content' do
20
20
  it 'returns the content of file' do
21
- file = NullPacFile.new
21
+ file = NullFile.new
22
22
  expect(file.content).to be_nil
23
23
  end
24
24
  end
25
25
 
26
26
  context '#nil?' do
27
27
  it 'is always true' do
28
- file = NullPacFile.new
28
+ file = NullFile.new
29
29
  expect(file.nil?).to be_true
30
30
  end
31
31
  end
@@ -35,7 +35,7 @@ describe NullPacFile do
35
35
  handler = double('handler')
36
36
 
37
37
  file = create_file('file1.pac', 'content')
38
- file = NullPacFile.new
38
+ file = NullFile.new
39
39
  file.prepare(handler)
40
40
  end
41
41
  end
@@ -16,7 +16,8 @@ describe ProxyPac::PacResultHtmlStylist do
16
16
  allow(result).to receive(:proxy_port).and_return('8080')
17
17
  allow(result).to receive(:proxy).and_return('127.0.0.1')
18
18
  allow(result).to receive(:request_type).and_return('PROXY')
19
- allow(result).to receive(:styled_content=).with("<span class=\"lp_request_type\">PROXY</span> <span class=\"lp_proxy\">127.0.0.1</span>:<span class=\"lp_proxy_port\">8080</span>")
19
+ allow(result).to receive(:styled_content=).with("<div class=\"lp_main_container\">\n <div class=\"lp_element_container\">\n <div class=\"lp_header\">\n Request Type\n </div>\n <div class=\"lp_request_type\">\n PROXY\n </div>\n </div>\n <div class=\"lp_element_container\">\n <div class=\"lp_header\">\n Proxy\n </div>\n <div class=\"lp_proxy\">\n 127.0.0.1\n </div>\n </div>\n <div class=\"lp_element_container\">\n <div class=\"lp_header\">\n Proxy Port\n </div>\n <div class=\"lp_request_type\">\n 8080\n </div>\n </div>\n</div>")
20
+
20
21
 
21
22
  stylist = ProxyPac::PacResultHtmlStylist.new
22
23
  stylist.style_me(result)
@@ -27,7 +28,7 @@ describe ProxyPac::PacResultHtmlStylist do
27
28
  allow(result).to receive(:proxy_port).and_return(nil)
28
29
  allow(result).to receive(:proxy).and_return('127.0.0.1')
29
30
  allow(result).to receive(:request_type).and_return('PROXY')
30
- allow(result).to receive(:styled_content=).with("<span class=\"lp_request_type\">PROXY</span> <span class=\"lp_proxy\">127.0.0.1</span>")
31
+ allow(result).to receive(:styled_content=).with("<div class=\"lp_main_container\">\n <div class=\"lp_element_container\">\n <div class=\"lp_header\">\n Request Type\n </div>\n <div class=\"lp_request_type\">\n PROXY\n </div>\n </div>\n <div class=\"lp_element_container\">\n <div class=\"lp_header\">\n Proxy\n </div>\n <div class=\"lp_proxy\">\n 127.0.0.1\n </div>\n </div>\n</div>")
31
32
 
32
33
  stylist = ProxyPac::PacResultHtmlStylist.new
33
34
  stylist.style_me(result)
@@ -34,7 +34,7 @@ describe Runner do
34
34
 
35
35
  context '#result' do
36
36
  it 'returns stdout as array' do
37
- runner = Runner.new("echo -E \"hello\nworld\"")
37
+ runner = Runner.new("ruby -e 'puts \"hello\nworld\"'")
38
38
 
39
39
  expect(runner.result).to eq(["hello", "world"])
40
40
  end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- $LOAD_PATH << File.expand_path('../../lib', __FILE__)
3
+ $LOAD_PATH << ::File.expand_path('../../lib', __FILE__)
4
4
 
5
5
  # Set the rack environment to `test`
6
6
  ENV["RACK_ENV"] = "test"
@@ -15,7 +15,7 @@ Bundler.require :default, :test, :development
15
15
  require 'local_pac/spec_helper'
16
16
 
17
17
  # Loading support files
18
- Dir.glob(File.expand_path('../support/*.rb', __FILE__)).each { |f| require_relative f }
18
+ Dir.glob(::File.expand_path('../support/*.rb', __FILE__)).each { |f| require_relative f }
19
19
 
20
20
  # Avoid writing "describe LocalPac::MyClass do [..]" but "describe MyClass do [..]"
21
21
  include LocalPac
@@ -1,3 +1,3 @@
1
1
  # encoding: utf-8
2
- require_relative File.expand_path('../../app/controllers/application_controller.rb', __FILE__)
3
- Dir.glob(File.expand_path('../../app/controllers/*.rb', __FILE__)).each { |f| require_relative f }
2
+ require_relative ::File.expand_path('../../app/controllers/application_controller.rb', __FILE__)
3
+ Dir.glob(::File.expand_path('../../app/controllers/*.rb', __FILE__)).each { |f| require_relative f }
@@ -0,0 +1,5 @@
1
+ RSpec.configure do |c|
2
+ c.before(:each) do
3
+ LocalPac.config = LocalPac::Config.new
4
+ end
5
+ end
@@ -6,7 +6,7 @@ module LocalPac
6
6
  include FeduxOrg::Stdlib::Filesystem
7
7
 
8
8
  def root_directory
9
- File.expand_path('../../../', __FILE__)
9
+ ::File.expand_path('../../../', __FILE__)
10
10
  end
11
11
  end
12
12
  end
@@ -14,7 +14,7 @@ module LocalPac
14
14
  Git.init(path)
15
15
  end
16
16
 
17
- File.join(working_directory, path)
17
+ ::File.join(working_directory, path)
18
18
  end
19
19
 
20
20
  def git_add(repo, object)
@@ -22,7 +22,7 @@ module LocalPac
22
22
  Git.add(object)
23
23
  end
24
24
 
25
- File.join(working_directory, repo, object)
25
+ ::File.join(working_directory, repo, object)
26
26
  end
27
27
 
28
28
  def git_status(repo)
@@ -42,6 +42,27 @@ module LocalPac
42
42
  Git.show(sha)
43
43
  end
44
44
  end
45
+
46
+ def git_ls_tree(repo)
47
+ Dir.chdir(::File.join(working_directory, repo)) do
48
+ Git.ls_tree
49
+ end
50
+ end
51
+
52
+ def git_config(repo, option, value, is_global = false)
53
+ if is_global
54
+ Git.config(option, value, is_global)
55
+ else
56
+ Dir.chdir(::File.join(working_directory, repo)) do
57
+ Git.config(option, value, is_global)
58
+ end
59
+ end
60
+ end
61
+
62
+ def git_set_author(repo)
63
+ git_config(repo, 'user.email', 'user@local_pac')
64
+ git_config(repo, 'user.name', 'local_pac')
65
+ end
45
66
  end
46
67
  end
47
68
  end
@@ -0,0 +1,23 @@
1
+ # encoding: utf-8
2
+ require_relative 'capybara'
3
+
4
+ module LocalPac
5
+ module SpecHelper
6
+ module Features
7
+ def search_for(value, result)
8
+ visit('/file.pac')
9
+ within('#search') do
10
+ fill_in 'url', :with => value
11
+ end
12
+ click_on('Search')
13
+ expect(page).to have_content(result)
14
+ end
15
+ end
16
+ end
17
+ end
18
+
19
+ # encoding: utf-8
20
+ RSpec.configure do |c|
21
+ c.include LocalPac::SpecHelper::Features
22
+ end
23
+
@@ -29,7 +29,7 @@ describe TemplateRepository do
29
29
  dir = create_directory('repo')
30
30
  file = create_file('repo/template.erb')
31
31
  repo = TemplateRepository.new(dir, creator_klass)
32
- template_file = repo.find(File.basename(file, '.*'))
32
+ template_file = repo.find(::File.basename(file, '.*'))
33
33
  expect(template_file.name).to eq(:template)
34
34
  end
35
35
 
@@ -37,7 +37,7 @@ describe TemplateRepository do
37
37
  dir = create_directory('repo')
38
38
  file = create_file('repo/template.erb')
39
39
  repo = TemplateRepository.new(dir, creator_klass)
40
- template_file = repo.find(File.basename(file, '.*').to_sym)
40
+ template_file = repo.find(::File.basename(file, '.*').to_sym)
41
41
  expect(template_file.name).to eq(:template)
42
42
  end
43
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: local_pac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,10 +9,10 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-18 00:00:00.000000000 Z
12
+ date: 2014-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: sinatra
15
+ name: thor
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
@@ -28,7 +28,7 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
- name: thor
31
+ name: sass
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
@@ -44,7 +44,7 @@ dependencies:
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
46
  - !ruby/object:Gem::Dependency
47
- name: activesupport
47
+ name: haml
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
@@ -92,7 +92,7 @@ dependencies:
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  - !ruby/object:Gem::Dependency
95
- name: pac
95
+ name: bootstrap-sass
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
@@ -108,7 +108,7 @@ dependencies:
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  - !ruby/object:Gem::Dependency
111
- name: haml
111
+ name: sprockets
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -124,7 +124,7 @@ dependencies:
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
- name: sass
127
+ name: sprockets-helpers
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
@@ -140,23 +140,23 @@ dependencies:
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  - !ruby/object:Gem::Dependency
143
- name: git_hook-pre_receive
143
+ name: sprockets-sass
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements:
147
- - - ~>
147
+ - - ! '>='
148
148
  - !ruby/object:Gem::Version
149
- version: 0.1.0
149
+ version: '0'
150
150
  type: :runtime
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  none: false
154
154
  requirements:
155
- - - ~>
155
+ - - ! '>='
156
156
  - !ruby/object:Gem::Version
157
- version: 0.1.0
157
+ version: '0'
158
158
  - !ruby/object:Gem::Dependency
159
- name: fedux_org-stdlib
159
+ name: compass
160
160
  requirement: !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
@@ -172,7 +172,7 @@ dependencies:
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  - !ruby/object:Gem::Dependency
175
- name: bootstrap-sass
175
+ name: addressable
176
176
  requirement: !ruby/object:Gem::Requirement
177
177
  none: false
178
178
  requirements:
@@ -188,7 +188,7 @@ dependencies:
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  - !ruby/object:Gem::Dependency
191
- name: sprockets
191
+ name: i18n
192
192
  requirement: !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
@@ -204,7 +204,7 @@ dependencies:
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  - !ruby/object:Gem::Dependency
207
- name: sprockets-helpers
207
+ name: rack-contrib
208
208
  requirement: !ruby/object:Gem::Requirement
209
209
  none: false
210
210
  requirements:
@@ -220,7 +220,7 @@ dependencies:
220
220
  - !ruby/object:Gem::Version
221
221
  version: '0'
222
222
  - !ruby/object:Gem::Dependency
223
- name: sprockets-sass
223
+ name: sinatra
224
224
  requirement: !ruby/object:Gem::Requirement
225
225
  none: false
226
226
  requirements:
@@ -236,7 +236,7 @@ dependencies:
236
236
  - !ruby/object:Gem::Version
237
237
  version: '0'
238
238
  - !ruby/object:Gem::Dependency
239
- name: compass
239
+ name: activesupport
240
240
  requirement: !ruby/object:Gem::Requirement
241
241
  none: false
242
242
  requirements:
@@ -252,7 +252,7 @@ dependencies:
252
252
  - !ruby/object:Gem::Version
253
253
  version: '0'
254
254
  - !ruby/object:Gem::Dependency
255
- name: addressable
255
+ name: pac
256
256
  requirement: !ruby/object:Gem::Requirement
257
257
  none: false
258
258
  requirements:
@@ -268,7 +268,23 @@ dependencies:
268
268
  - !ruby/object:Gem::Version
269
269
  version: '0'
270
270
  - !ruby/object:Gem::Dependency
271
- name: i18n
271
+ name: git_hook-pre_receive
272
+ requirement: !ruby/object:Gem::Requirement
273
+ none: false
274
+ requirements:
275
+ - - ~>
276
+ - !ruby/object:Gem::Version
277
+ version: 0.1.0
278
+ type: :runtime
279
+ prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ~>
284
+ - !ruby/object:Gem::Version
285
+ version: 0.1.0
286
+ - !ruby/object:Gem::Dependency
287
+ name: facter
272
288
  requirement: !ruby/object:Gem::Requirement
273
289
  none: false
274
290
  requirements:
@@ -284,7 +300,39 @@ dependencies:
284
300
  - !ruby/object:Gem::Version
285
301
  version: '0'
286
302
  - !ruby/object:Gem::Dependency
287
- name: rack-contrib
303
+ name: pager
304
+ requirement: !ruby/object:Gem::Requirement
305
+ none: false
306
+ requirements:
307
+ - - ! '>='
308
+ - !ruby/object:Gem::Version
309
+ version: '0'
310
+ type: :runtime
311
+ prerelease: false
312
+ version_requirements: !ruby/object:Gem::Requirement
313
+ none: false
314
+ requirements:
315
+ - - ! '>='
316
+ - !ruby/object:Gem::Version
317
+ version: '0'
318
+ - !ruby/object:Gem::Dependency
319
+ name: sys-proctable
320
+ requirement: !ruby/object:Gem::Requirement
321
+ none: false
322
+ requirements:
323
+ - - ! '>='
324
+ - !ruby/object:Gem::Version
325
+ version: '0'
326
+ type: :runtime
327
+ prerelease: false
328
+ version_requirements: !ruby/object:Gem::Requirement
329
+ none: false
330
+ requirements:
331
+ - - ! '>='
332
+ - !ruby/object:Gem::Version
333
+ version: '0'
334
+ - !ruby/object:Gem::Dependency
335
+ name: rugged
288
336
  requirement: !ruby/object:Gem::Requirement
289
337
  none: false
290
338
  requirements:
@@ -316,7 +364,7 @@ files:
316
364
  - .travis.yml
317
365
  - .yardopts
318
366
  - Gemfile
319
- - LICENSE.txt
367
+ - LICENSE.md
320
368
  - Procfile
321
369
  - README.DEVELOPER.md
322
370
  - README.md
@@ -395,20 +443,31 @@ files:
395
443
  - lib/local_pac/actions/create_file.rb
396
444
  - lib/local_pac/actions/create_output.rb
397
445
  - lib/local_pac/actions/create_repository.rb
446
+ - lib/local_pac/actions/get_system_information.rb
447
+ - lib/local_pac/actions/print_newline.rb
448
+ - lib/local_pac/actions/print_title.rb
449
+ - lib/local_pac/actions/reload_configuration.rb
450
+ - lib/local_pac/actions/reload_local_storage.rb
451
+ - lib/local_pac/actions/send_signal.rb
452
+ - lib/local_pac/actions/show_config.rb
453
+ - lib/local_pac/actions/show_process_information.rb
454
+ - lib/local_pac/application_status.rb
455
+ - lib/local_pac/cli/helper.rb
456
+ - lib/local_pac/cli/reload.rb
398
457
  - lib/local_pac/config.rb
399
458
  - lib/local_pac/data.rb
400
459
  - lib/local_pac/erb_generator.rb
401
460
  - lib/local_pac/exceptions.rb
461
+ - lib/local_pac/file.rb
402
462
  - lib/local_pac/git.rb
403
- - lib/local_pac/git_file.rb
404
463
  - lib/local_pac/git_repository.rb
464
+ - lib/local_pac/git_storage.rb
405
465
  - lib/local_pac/initializer.rb
406
466
  - lib/local_pac/java_script_compressor.rb
407
467
  - lib/local_pac/local_storage.rb
408
468
  - lib/local_pac/main.rb
409
469
  - lib/local_pac/null_access_logger.rb
410
- - lib/local_pac/null_pac_file.rb
411
- - lib/local_pac/pac_file.rb
470
+ - lib/local_pac/null_file.rb
412
471
  - lib/local_pac/pac_file_validator.rb
413
472
  - lib/local_pac/proxy_pac/html_data.rb
414
473
  - lib/local_pac/proxy_pac/html_div_style.rb
@@ -443,18 +502,27 @@ files:
443
502
  - spec/actions/create_file_spec.rb
444
503
  - spec/actions/create_output_spec.rb
445
504
  - spec/actions/create_repository_spec.rb
505
+ - spec/actions/get_system_information_spec.rb
506
+ - spec/actions/print_new_line_spec.rb
507
+ - spec/actions/print_title_spec.rb
508
+ - spec/actions/reload_configuration_spec.rb
509
+ - spec/actions/reload_repository_spec.rb
510
+ - spec/actions/send_signal_spec.rb
511
+ - spec/actions/show_config_spec.rb
512
+ - spec/actions/show_process_information_spec.rb
513
+ - spec/application_status_spec.rb
446
514
  - spec/config_spec.rb
447
515
  - spec/data_spec.rb
448
516
  - spec/erb_generator_spec.rb
449
517
  - spec/features/fetch_proxy_pac_spec.rb
450
518
  - spec/features/lookup_proxy_spec.rb
451
- - spec/git_repository_spec.rb
519
+ - spec/file_spec.rb
452
520
  - spec/git_spec.rb
521
+ - spec/git_storage_spec.rb
453
522
  - spec/initializer_spec.rb
454
523
  - spec/java_script_compressor_spec.rb
455
524
  - spec/local_storage_spec.rb
456
- - spec/null_pac_file_spec.rb
457
- - spec/pac_file_spec.rb
525
+ - spec/null_file_spec.rb
458
526
  - spec/pac_file_validator_spec.rb
459
527
  - spec/proxy_pac/html_div_style_spec.rb
460
528
  - spec/proxy_pac/html_table_style_spec.rb
@@ -468,9 +536,11 @@ files:
468
536
  - spec/spec_helper.rb
469
537
  - spec/spec_helper_features.rb
470
538
  - spec/support/capybara.rb
539
+ - spec/support/config.rb
471
540
  - spec/support/environment.rb
472
541
  - spec/support/filesystem.rb
473
542
  - spec/support/git.rb
543
+ - spec/support/helper_features.rb
474
544
  - spec/support/rack_test.rb
475
545
  - spec/support/reporting.rb
476
546
  - spec/support/rspec.rb
@@ -512,18 +582,27 @@ test_files:
512
582
  - spec/actions/create_file_spec.rb
513
583
  - spec/actions/create_output_spec.rb
514
584
  - spec/actions/create_repository_spec.rb
585
+ - spec/actions/get_system_information_spec.rb
586
+ - spec/actions/print_new_line_spec.rb
587
+ - spec/actions/print_title_spec.rb
588
+ - spec/actions/reload_configuration_spec.rb
589
+ - spec/actions/reload_repository_spec.rb
590
+ - spec/actions/send_signal_spec.rb
591
+ - spec/actions/show_config_spec.rb
592
+ - spec/actions/show_process_information_spec.rb
593
+ - spec/application_status_spec.rb
515
594
  - spec/config_spec.rb
516
595
  - spec/data_spec.rb
517
596
  - spec/erb_generator_spec.rb
518
597
  - spec/features/fetch_proxy_pac_spec.rb
519
598
  - spec/features/lookup_proxy_spec.rb
520
- - spec/git_repository_spec.rb
599
+ - spec/file_spec.rb
521
600
  - spec/git_spec.rb
601
+ - spec/git_storage_spec.rb
522
602
  - spec/initializer_spec.rb
523
603
  - spec/java_script_compressor_spec.rb
524
604
  - spec/local_storage_spec.rb
525
- - spec/null_pac_file_spec.rb
526
- - spec/pac_file_spec.rb
605
+ - spec/null_file_spec.rb
527
606
  - spec/pac_file_validator_spec.rb
528
607
  - spec/proxy_pac/html_div_style_spec.rb
529
608
  - spec/proxy_pac/html_table_style_spec.rb
@@ -537,9 +616,11 @@ test_files:
537
616
  - spec/spec_helper.rb
538
617
  - spec/spec_helper_features.rb
539
618
  - spec/support/capybara.rb
619
+ - spec/support/config.rb
540
620
  - spec/support/environment.rb
541
621
  - spec/support/filesystem.rb
542
622
  - spec/support/git.rb
623
+ - spec/support/helper_features.rb
543
624
  - spec/support/rack_test.rb
544
625
  - spec/support/reporting.rb
545
626
  - spec/support/rspec.rb