librarian 0.0.26 → 0.1.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/.gitignore +0 -3
  2. data/.travis.yml +7 -0
  3. data/Gemfile +1 -1
  4. data/{MIT-LICENSE → LICENSE.txt} +2 -0
  5. data/README.md +13 -363
  6. data/lib/librarian/chef/version.rb +5 -0
  7. data/lib/librarian/cli.rb +1 -0
  8. data/lib/librarian/environment.rb +8 -2
  9. data/lib/librarian/mock/environment.rb +6 -1
  10. data/lib/librarian/mock/version.rb +5 -0
  11. data/lib/librarian/rspec/support/cli_macro.rb +120 -0
  12. data/lib/librarian/source/git.rb +1 -1
  13. data/lib/librarian/source/git/repository.rb +10 -2
  14. data/lib/librarian/version.rb +1 -1
  15. data/librarian.gemspec +15 -22
  16. data/spec/functional/cli_spec.rb +27 -0
  17. data/spec/functional/source/git/repository_spec.rb +2 -0
  18. metadata +69 -100
  19. data/lib/librarian/chef.rb +0 -1
  20. data/lib/librarian/chef/cli.rb +0 -47
  21. data/lib/librarian/chef/dsl.rb +0 -16
  22. data/lib/librarian/chef/environment.rb +0 -27
  23. data/lib/librarian/chef/extension.rb +0 -9
  24. data/lib/librarian/chef/integration/knife.rb +0 -46
  25. data/lib/librarian/chef/manifest_reader.rb +0 -59
  26. data/lib/librarian/chef/source.rb +0 -4
  27. data/lib/librarian/chef/source/git.rb +0 -25
  28. data/lib/librarian/chef/source/github.rb +0 -27
  29. data/lib/librarian/chef/source/local.rb +0 -69
  30. data/lib/librarian/chef/source/path.rb +0 -12
  31. data/lib/librarian/chef/source/site.rb +0 -442
  32. data/lib/librarian/chef/templates/Cheffile +0 -15
  33. data/spec/functional/chef/cli_spec.rb +0 -194
  34. data/spec/functional/chef/source/site_spec.rb +0 -266
  35. data/spec/integration/chef/source/git_spec.rb +0 -441
  36. data/spec/integration/chef/source/site_spec.rb +0 -217
  37. data/spec/support/cli_macro.rb +0 -114
@@ -0,0 +1,5 @@
1
+ module Librarian
2
+ module Chef
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
data/lib/librarian/cli.rb CHANGED
@@ -64,6 +64,7 @@ module Librarian
64
64
  desc "version", "Displays the version."
65
65
  def version
66
66
  say "librarian-#{environment.version}"
67
+ say "librarian-#{environment.adapter_name}-#{environment.adapter_version}"
67
68
  end
68
69
 
69
70
  desc "config", "Show or edit the config."
@@ -12,6 +12,7 @@ require "librarian/specfile"
12
12
  require "librarian/resolver"
13
13
  require "librarian/dsl"
14
14
  require "librarian/source"
15
+ require "librarian/version"
15
16
 
16
17
  module Librarian
17
18
  class Environment
@@ -93,12 +94,17 @@ module Librarian
93
94
  Resolver.new(self)
94
95
  end
95
96
 
97
+ def tmp_path
98
+ part = config_db["tmp"] || "tmp"
99
+ project_path.join(part)
100
+ end
101
+
96
102
  def cache_path
97
- project_path.join("tmp/librarian/cache")
103
+ tmp_path.join("librarian/cache")
98
104
  end
99
105
 
100
106
  def scratch_path
101
- project_path.join("tmp/librarian/scratch")
107
+ tmp_path.join("librarian/scratch")
102
108
  end
103
109
 
104
110
  def project_relative_path_to(path)
@@ -1,5 +1,6 @@
1
1
  require "librarian/environment"
2
2
  require "librarian/mock/dsl"
3
+ require "librarian/mock/version"
3
4
 
4
5
  module Librarian
5
6
  module Mock
@@ -9,6 +10,10 @@ module Librarian
9
10
  "mock"
10
11
  end
11
12
 
13
+ def adapter_version
14
+ VERSION
15
+ end
16
+
12
17
  def install_path
13
18
  nil
14
19
  end
@@ -18,7 +23,7 @@ module Librarian
18
23
  @registry.merge!(options, &block)
19
24
  @registry
20
25
  end
21
- end
22
26
 
27
+ end
23
28
  end
24
29
  end
@@ -0,0 +1,5 @@
1
+ module Librarian
2
+ module Mock
3
+ VERSION = "0.1.2"
4
+ end
5
+ end
@@ -0,0 +1,120 @@
1
+ require "json"
2
+ require "pathname"
3
+ require "securerandom"
4
+ require "stringio"
5
+ require "thor"
6
+
7
+ require "librarian/helpers"
8
+
9
+ module Librarian
10
+ module RSpec
11
+ module Support
12
+ module CliMacro
13
+
14
+ class FakeShell < Thor::Shell::Basic
15
+ def stdout
16
+ @stdout ||= StringIO.new
17
+ end
18
+ def stderr
19
+ @stderr ||= StringIO.new
20
+ end
21
+ def stdin
22
+ raise "unsupported"
23
+ end
24
+ end
25
+
26
+ class FileMatcher
27
+ attr_accessor :rel_path, :content, :type, :base_path
28
+ def initialize(rel_path, content, options = { })
29
+ self.rel_path = rel_path
30
+ self.content = content
31
+ self.type = options[:type]
32
+ end
33
+ def full_path
34
+ @full_path ||= base_path + rel_path
35
+ end
36
+ def actual_content
37
+ @actual_content ||= begin
38
+ s = full_path.read
39
+ s = JSON.parse(s) if type == :json
40
+ s
41
+ end
42
+ end
43
+ def matches?(base_path)
44
+ base_path = Pathname(base_path) unless Pathname === base_path
45
+ self.base_path = base_path
46
+
47
+ full_path.file? && (!content || actual_content == content)
48
+ end
49
+ end
50
+
51
+ def self.included(base)
52
+ base.instance_exec do
53
+ let(:project_path) do
54
+ project_path = Pathname.new(__FILE__).expand_path
55
+ project_path = project_path.dirname until project_path.join("Rakefile").exist?
56
+ project_path
57
+ end
58
+ let(:tmp) { project_path.join("tmp/spec/cli") }
59
+ let(:pwd) { tmp + SecureRandom.hex(8) }
60
+
61
+ before { tmp.mkpath }
62
+ before { pwd.mkpath }
63
+
64
+ after { tmp.rmtree }
65
+ end
66
+ end
67
+
68
+ def cli!(*args)
69
+ @shell = FakeShell.new
70
+ @exit_status = Dir.chdir(pwd) do
71
+ described_class.with_environment do
72
+ described_class.returning_status do
73
+ described_class.start args, :shell => @shell
74
+ end
75
+ end
76
+ end
77
+ end
78
+
79
+ def write_file!(path, content)
80
+ path = pwd.join(path)
81
+ path.dirname.mkpath
82
+ path.open("wb"){|f| f.write(content)}
83
+ end
84
+
85
+ def write_json_file!(path, content)
86
+ write_file! path, JSON.dump(content)
87
+ end
88
+
89
+ def strip_heredoc(text)
90
+ Librarian::Helpers.strip_heredoc(text)
91
+ end
92
+
93
+ def shell
94
+ @shell
95
+ end
96
+
97
+ def stdout
98
+ shell.stdout.string
99
+ end
100
+
101
+ def stderr
102
+ shell.stderr.string
103
+ end
104
+
105
+ def exit_status
106
+ @exit_status
107
+ end
108
+
109
+ def have_file(rel_path, content = nil)
110
+ FileMatcher.new(rel_path, content)
111
+ end
112
+
113
+ def have_json_file(rel_path, content)
114
+ FileMatcher.new(rel_path, content, :type => :json)
115
+ end
116
+
117
+ end
118
+ end
119
+ end
120
+ end
@@ -125,7 +125,7 @@ module Librarian
125
125
  path_part = "/#{path}" if path
126
126
  ref_part = "##{ref}"
127
127
  key_source = [uri_part, path_part, ref_part].join
128
- Digest::MD5.hexdigest(key_source)
128
+ Digest::MD5.hexdigest(key_source)[0..15]
129
129
  end
130
130
  end
131
131
 
@@ -197,10 +197,18 @@ module Librarian
197
197
  end
198
198
 
199
199
  def run_command_internal(command)
200
+ std = ""
201
+ err = ""
202
+ thread = nil
200
203
  Open3.popen3(*command) do |i, o, e, t|
201
- raise StandardError, e.read unless (t ? t.value : $?).success?
202
- o.read
204
+ std = o.read
205
+ err = e.read
206
+ thread = t
203
207
  end
208
+
209
+ raise StandardError, err unless (thread ? thread.value : $?).success?
210
+
211
+ std
204
212
  end
205
213
 
206
214
  def debug(*args, &block)
@@ -1,3 +1,3 @@
1
1
  module Librarian
2
- VERSION = "0.0.26"
2
+ VERSION = "0.1.0.beta.1"
3
3
  end
data/librarian.gemspec CHANGED
@@ -2,51 +2,44 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "librarian"
5
- s.version = "0.0.26"
5
+ s.version = "0.1.0.beta.1"
6
6
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jay Feldblum"]
9
- s.date = "2012-12-30"
9
+ s.date = "2013-03-09"
10
10
  s.description = "Librarian"
11
11
  s.email = ["y_feldblum@yahoo.com"]
12
- s.executables = ["librarian-chef", "librarian-mock"]
13
- s.files = [".gitignore", ".rspec", ".travis.yml", "CHANGELOG.md", "Gemfile", "MIT-LICENSE", "README.md", "Rakefile", "bin/librarian-chef", "bin/librarian-mock", "lib/librarian.rb", "lib/librarian/action.rb", "lib/librarian/action/base.rb", "lib/librarian/action/clean.rb", "lib/librarian/action/ensure.rb", "lib/librarian/action/install.rb", "lib/librarian/action/persist_resolution_mixin.rb", "lib/librarian/action/resolve.rb", "lib/librarian/action/update.rb", "lib/librarian/chef.rb", "lib/librarian/chef/cli.rb", "lib/librarian/chef/dsl.rb", "lib/librarian/chef/environment.rb", "lib/librarian/chef/extension.rb", "lib/librarian/chef/integration/knife.rb", "lib/librarian/chef/manifest_reader.rb", "lib/librarian/chef/source.rb", "lib/librarian/chef/source/git.rb", "lib/librarian/chef/source/github.rb", "lib/librarian/chef/source/local.rb", "lib/librarian/chef/source/path.rb", "lib/librarian/chef/source/site.rb", "lib/librarian/chef/templates/Cheffile", "lib/librarian/cli.rb", "lib/librarian/cli/manifest_presenter.rb", "lib/librarian/config.rb", "lib/librarian/config/database.rb", "lib/librarian/config/file_source.rb", "lib/librarian/config/hash_source.rb", "lib/librarian/config/source.rb", "lib/librarian/dependency.rb", "lib/librarian/dsl.rb", "lib/librarian/dsl/receiver.rb", "lib/librarian/dsl/target.rb", "lib/librarian/environment.rb", "lib/librarian/error.rb", "lib/librarian/helpers.rb", "lib/librarian/linter/source_linter.rb", "lib/librarian/lockfile.rb", "lib/librarian/lockfile/compiler.rb", "lib/librarian/lockfile/parser.rb", "lib/librarian/logger.rb", "lib/librarian/manifest.rb", "lib/librarian/manifest_set.rb", "lib/librarian/mock.rb", "lib/librarian/mock/cli.rb", "lib/librarian/mock/dsl.rb", "lib/librarian/mock/environment.rb", "lib/librarian/mock/extension.rb", "lib/librarian/mock/source.rb", "lib/librarian/mock/source/mock.rb", "lib/librarian/mock/source/mock/registry.rb", "lib/librarian/resolution.rb", "lib/librarian/resolver.rb", "lib/librarian/resolver/implementation.rb", "lib/librarian/source.rb", "lib/librarian/source/basic_api.rb", "lib/librarian/source/git.rb", "lib/librarian/source/git/repository.rb", "lib/librarian/source/local.rb", "lib/librarian/source/path.rb", "lib/librarian/spec.rb", "lib/librarian/spec_change_set.rb", "lib/librarian/specfile.rb", "lib/librarian/support/abstract_method.rb", "lib/librarian/ui.rb", "lib/librarian/version.rb", "librarian.gemspec", "spec/functional/chef/cli_spec.rb", "spec/functional/chef/source/site_spec.rb", "spec/functional/source/git/repository_spec.rb", "spec/integration/chef/source/git_spec.rb", "spec/integration/chef/source/site_spec.rb", "spec/support/cli_macro.rb", "spec/support/method_patch_macro.rb", "spec/support/with_env_macro.rb", "spec/unit/action/base_spec.rb", "spec/unit/action/clean_spec.rb", "spec/unit/action/ensure_spec.rb", "spec/unit/action/install_spec.rb", "spec/unit/config/database_spec.rb", "spec/unit/dependency_spec.rb", "spec/unit/dsl_spec.rb", "spec/unit/environment_spec.rb", "spec/unit/lockfile/parser_spec.rb", "spec/unit/lockfile_spec.rb", "spec/unit/manifest_set_spec.rb", "spec/unit/manifest_spec.rb", "spec/unit/mock/source/mock_spec.rb", "spec/unit/resolver_spec.rb", "spec/unit/source/git_spec.rb", "spec/unit/spec_change_set_spec.rb"]
12
+ s.files = [".gitignore", ".rspec", ".travis.yml", "CHANGELOG.md", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "lib/librarian.rb", "lib/librarian/action.rb", "lib/librarian/action/base.rb", "lib/librarian/action/clean.rb", "lib/librarian/action/ensure.rb", "lib/librarian/action/install.rb", "lib/librarian/action/persist_resolution_mixin.rb", "lib/librarian/action/resolve.rb", "lib/librarian/action/update.rb", "lib/librarian/chef/version.rb", "lib/librarian/cli.rb", "lib/librarian/cli/manifest_presenter.rb", "lib/librarian/config.rb", "lib/librarian/config/database.rb", "lib/librarian/config/file_source.rb", "lib/librarian/config/hash_source.rb", "lib/librarian/config/source.rb", "lib/librarian/dependency.rb", "lib/librarian/dsl.rb", "lib/librarian/dsl/receiver.rb", "lib/librarian/dsl/target.rb", "lib/librarian/environment.rb", "lib/librarian/error.rb", "lib/librarian/helpers.rb", "lib/librarian/linter/source_linter.rb", "lib/librarian/lockfile.rb", "lib/librarian/lockfile/compiler.rb", "lib/librarian/lockfile/parser.rb", "lib/librarian/logger.rb", "lib/librarian/manifest.rb", "lib/librarian/manifest_set.rb", "lib/librarian/mock.rb", "lib/librarian/mock/cli.rb", "lib/librarian/mock/dsl.rb", "lib/librarian/mock/environment.rb", "lib/librarian/mock/extension.rb", "lib/librarian/mock/source.rb", "lib/librarian/mock/source/mock.rb", "lib/librarian/mock/source/mock/registry.rb", "lib/librarian/mock/version.rb", "lib/librarian/resolution.rb", "lib/librarian/resolver.rb", "lib/librarian/resolver/implementation.rb", "lib/librarian/rspec/support/cli_macro.rb", "lib/librarian/source.rb", "lib/librarian/source/basic_api.rb", "lib/librarian/source/git.rb", "lib/librarian/source/git/repository.rb", "lib/librarian/source/local.rb", "lib/librarian/source/path.rb", "lib/librarian/spec.rb", "lib/librarian/spec_change_set.rb", "lib/librarian/specfile.rb", "lib/librarian/support/abstract_method.rb", "lib/librarian/ui.rb", "lib/librarian/version.rb", "librarian.gemspec", "spec/functional/cli_spec.rb", "spec/functional/source/git/repository_spec.rb", "spec/support/method_patch_macro.rb", "spec/support/with_env_macro.rb", "spec/unit/action/base_spec.rb", "spec/unit/action/clean_spec.rb", "spec/unit/action/ensure_spec.rb", "spec/unit/action/install_spec.rb", "spec/unit/config/database_spec.rb", "spec/unit/dependency_spec.rb", "spec/unit/dsl_spec.rb", "spec/unit/environment_spec.rb", "spec/unit/lockfile/parser_spec.rb", "spec/unit/lockfile_spec.rb", "spec/unit/manifest_set_spec.rb", "spec/unit/manifest_spec.rb", "spec/unit/mock/source/mock_spec.rb", "spec/unit/resolver_spec.rb", "spec/unit/source/git_spec.rb", "spec/unit/spec_change_set_spec.rb"]
14
13
  s.homepage = ""
15
14
  s.require_paths = ["lib"]
16
- s.rubyforge_project = "librarian"
17
- s.rubygems_version = "1.8.24"
15
+ s.rubygems_version = "1.8.25"
18
16
  s.summary = "Librarian"
17
+ s.test_files = ["spec/functional/cli_spec.rb", "spec/functional/source/git/repository_spec.rb", "spec/support/method_patch_macro.rb", "spec/support/with_env_macro.rb", "spec/unit/action/base_spec.rb", "spec/unit/action/clean_spec.rb", "spec/unit/action/ensure_spec.rb", "spec/unit/action/install_spec.rb", "spec/unit/config/database_spec.rb", "spec/unit/dependency_spec.rb", "spec/unit/dsl_spec.rb", "spec/unit/environment_spec.rb", "spec/unit/lockfile/parser_spec.rb", "spec/unit/lockfile_spec.rb", "spec/unit/manifest_set_spec.rb", "spec/unit/manifest_spec.rb", "spec/unit/mock/source/mock_spec.rb", "spec/unit/resolver_spec.rb", "spec/unit/source/git_spec.rb", "spec/unit/spec_change_set_spec.rb"]
19
18
 
20
19
  if s.respond_to? :specification_version then
21
20
  s.specification_version = 3
22
21
 
23
22
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
24
23
  s.add_runtime_dependency(%q<thor>, ["~> 0.15"])
24
+ s.add_runtime_dependency(%q<highline>, [">= 0"])
25
25
  s.add_development_dependency(%q<rake>, [">= 0"])
26
26
  s.add_development_dependency(%q<rspec>, [">= 0"])
27
- s.add_development_dependency(%q<webmock>, [">= 0"])
28
- s.add_development_dependency(%q<fakefs>, [">= 0"])
29
- s.add_runtime_dependency(%q<chef>, [">= 0.10"])
30
- s.add_runtime_dependency(%q<highline>, [">= 0"])
31
- s.add_runtime_dependency(%q<archive-tar-minitar>, [">= 0.5.2"])
27
+ s.add_development_dependency(%q<json>, [">= 0"])
28
+ s.add_development_dependency(%q<fakefs>, ["~> 0.4.2"])
32
29
  else
33
30
  s.add_dependency(%q<thor>, ["~> 0.15"])
31
+ s.add_dependency(%q<highline>, [">= 0"])
34
32
  s.add_dependency(%q<rake>, [">= 0"])
35
33
  s.add_dependency(%q<rspec>, [">= 0"])
36
- s.add_dependency(%q<webmock>, [">= 0"])
37
- s.add_dependency(%q<fakefs>, [">= 0"])
38
- s.add_dependency(%q<chef>, [">= 0.10"])
39
- s.add_dependency(%q<highline>, [">= 0"])
40
- s.add_dependency(%q<archive-tar-minitar>, [">= 0.5.2"])
34
+ s.add_dependency(%q<json>, [">= 0"])
35
+ s.add_dependency(%q<fakefs>, ["~> 0.4.2"])
41
36
  end
42
37
  else
43
38
  s.add_dependency(%q<thor>, ["~> 0.15"])
39
+ s.add_dependency(%q<highline>, [">= 0"])
44
40
  s.add_dependency(%q<rake>, [">= 0"])
45
41
  s.add_dependency(%q<rspec>, [">= 0"])
46
- s.add_dependency(%q<webmock>, [">= 0"])
47
- s.add_dependency(%q<fakefs>, [">= 0"])
48
- s.add_dependency(%q<chef>, [">= 0.10"])
49
- s.add_dependency(%q<highline>, [">= 0"])
50
- s.add_dependency(%q<archive-tar-minitar>, [">= 0.5.2"])
42
+ s.add_dependency(%q<json>, [">= 0"])
43
+ s.add_dependency(%q<fakefs>, ["~> 0.4.2"])
51
44
  end
52
45
  end
@@ -0,0 +1,27 @@
1
+ require "securerandom"
2
+
3
+ require "librarian/rspec/support/cli_macro"
4
+
5
+ require "librarian/mock/cli"
6
+
7
+ module Librarian
8
+ module Mock
9
+ describe Cli do
10
+ include Librarian::RSpec::Support::CliMacro
11
+
12
+ describe "version" do
13
+ before do
14
+ cli! "version"
15
+ end
16
+
17
+ it "should print the version" do
18
+ stdout.should == strip_heredoc(<<-STDOUT)
19
+ librarian-#{Librarian::VERSION}
20
+ librarian-mock-#{Librarian::Mock::VERSION}
21
+ STDOUT
22
+ end
23
+ end
24
+
25
+ end
26
+ end
27
+ end
@@ -26,6 +26,8 @@ describe Librarian::Source::Git::Repository do
26
26
  git_source_path.mkpath
27
27
  Dir.chdir(git_source_path) do
28
28
  `git init`
29
+ `git config user.name "Simba"`
30
+ `git config user.email "simba@savannah-pride.gov"`
29
31
 
30
32
  # master
31
33
  `touch butter.txt`
metadata CHANGED
@@ -1,150 +1,116 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librarian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
5
- prerelease:
4
+ prerelease: 6
5
+ version: 0.1.0.beta.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jay Feldblum
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-30 00:00:00.000000000 Z
12
+ date: 2013-03-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- prerelease: false
16
- name: thor
15
+ type: :runtime
17
16
  version_requirements: !ruby/object:Gem::Requirement
17
+ none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0.15'
22
- none: false
22
+ name: thor
23
+ prerelease: false
23
24
  requirement: !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ~>
26
28
  - !ruby/object:Gem::Version
27
29
  version: '0.15'
28
- none: false
29
- type: :runtime
30
30
  - !ruby/object:Gem::Dependency
31
- prerelease: false
32
- name: rake
31
+ type: :runtime
33
32
  version_requirements: !ruby/object:Gem::Requirement
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
33
  none: false
39
- requirement: !ruby/object:Gem::Requirement
40
34
  requirements:
41
35
  - - ! '>='
42
36
  - !ruby/object:Gem::Version
43
37
  version: '0'
44
- none: false
45
- type: :development
46
- - !ruby/object:Gem::Dependency
38
+ name: highline
47
39
  prerelease: false
48
- name: rspec
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- none: false
55
40
  requirement: !ruby/object:Gem::Requirement
41
+ none: false
56
42
  requirements:
57
43
  - - ! '>='
58
44
  - !ruby/object:Gem::Version
59
45
  version: '0'
60
- none: false
61
- type: :development
62
46
  - !ruby/object:Gem::Dependency
63
- prerelease: false
64
- name: webmock
47
+ type: :development
65
48
  version_requirements: !ruby/object:Gem::Requirement
49
+ none: false
66
50
  requirements:
67
51
  - - ! '>='
68
52
  - !ruby/object:Gem::Version
69
53
  version: '0'
70
- none: false
54
+ name: rake
55
+ prerelease: false
71
56
  requirement: !ruby/object:Gem::Requirement
57
+ none: false
72
58
  requirements:
73
59
  - - ! '>='
74
60
  - !ruby/object:Gem::Version
75
61
  version: '0'
76
- none: false
77
- type: :development
78
62
  - !ruby/object:Gem::Dependency
79
- prerelease: false
80
- name: fakefs
63
+ type: :development
81
64
  version_requirements: !ruby/object:Gem::Requirement
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
65
  none: false
87
- requirement: !ruby/object:Gem::Requirement
88
66
  requirements:
89
67
  - - ! '>='
90
68
  - !ruby/object:Gem::Version
91
69
  version: '0'
92
- none: false
93
- type: :development
94
- - !ruby/object:Gem::Dependency
70
+ name: rspec
95
71
  prerelease: false
96
- name: chef
97
- version_requirements: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0.10'
102
- none: false
103
72
  requirement: !ruby/object:Gem::Requirement
73
+ none: false
104
74
  requirements:
105
75
  - - ! '>='
106
76
  - !ruby/object:Gem::Version
107
- version: '0.10'
108
- none: false
109
- type: :runtime
77
+ version: '0'
110
78
  - !ruby/object:Gem::Dependency
111
- prerelease: false
112
- name: highline
79
+ type: :development
113
80
  version_requirements: !ruby/object:Gem::Requirement
81
+ none: false
114
82
  requirements:
115
83
  - - ! '>='
116
84
  - !ruby/object:Gem::Version
117
85
  version: '0'
118
- none: false
86
+ name: json
87
+ prerelease: false
119
88
  requirement: !ruby/object:Gem::Requirement
89
+ none: false
120
90
  requirements:
121
91
  - - ! '>='
122
92
  - !ruby/object:Gem::Version
123
93
  version: '0'
124
- none: false
125
- type: :runtime
126
94
  - !ruby/object:Gem::Dependency
127
- prerelease: false
128
- name: archive-tar-minitar
95
+ type: :development
129
96
  version_requirements: !ruby/object:Gem::Requirement
97
+ none: false
130
98
  requirements:
131
- - - ! '>='
99
+ - - ~>
132
100
  - !ruby/object:Gem::Version
133
- version: 0.5.2
134
- none: false
101
+ version: 0.4.2
102
+ name: fakefs
103
+ prerelease: false
135
104
  requirement: !ruby/object:Gem::Requirement
105
+ none: false
136
106
  requirements:
137
- - - ! '>='
107
+ - - ~>
138
108
  - !ruby/object:Gem::Version
139
- version: 0.5.2
140
- none: false
141
- type: :runtime
109
+ version: 0.4.2
142
110
  description: Librarian
143
111
  email:
144
112
  - y_feldblum@yahoo.com
145
- executables:
146
- - librarian-chef
147
- - librarian-mock
113
+ executables: []
148
114
  extensions: []
149
115
  extra_rdoc_files: []
150
116
  files:
@@ -153,11 +119,9 @@ files:
153
119
  - .travis.yml
154
120
  - CHANGELOG.md
155
121
  - Gemfile
156
- - MIT-LICENSE
122
+ - LICENSE.txt
157
123
  - README.md
158
124
  - Rakefile
159
- - bin/librarian-chef
160
- - bin/librarian-mock
161
125
  - lib/librarian.rb
162
126
  - lib/librarian/action.rb
163
127
  - lib/librarian/action/base.rb
@@ -167,20 +131,7 @@ files:
167
131
  - lib/librarian/action/persist_resolution_mixin.rb
168
132
  - lib/librarian/action/resolve.rb
169
133
  - lib/librarian/action/update.rb
170
- - lib/librarian/chef.rb
171
- - lib/librarian/chef/cli.rb
172
- - lib/librarian/chef/dsl.rb
173
- - lib/librarian/chef/environment.rb
174
- - lib/librarian/chef/extension.rb
175
- - lib/librarian/chef/integration/knife.rb
176
- - lib/librarian/chef/manifest_reader.rb
177
- - lib/librarian/chef/source.rb
178
- - lib/librarian/chef/source/git.rb
179
- - lib/librarian/chef/source/github.rb
180
- - lib/librarian/chef/source/local.rb
181
- - lib/librarian/chef/source/path.rb
182
- - lib/librarian/chef/source/site.rb
183
- - lib/librarian/chef/templates/Cheffile
134
+ - lib/librarian/chef/version.rb
184
135
  - lib/librarian/cli.rb
185
136
  - lib/librarian/cli/manifest_presenter.rb
186
137
  - lib/librarian/config.rb
@@ -210,9 +161,11 @@ files:
210
161
  - lib/librarian/mock/source.rb
211
162
  - lib/librarian/mock/source/mock.rb
212
163
  - lib/librarian/mock/source/mock/registry.rb
164
+ - lib/librarian/mock/version.rb
213
165
  - lib/librarian/resolution.rb
214
166
  - lib/librarian/resolver.rb
215
167
  - lib/librarian/resolver/implementation.rb
168
+ - lib/librarian/rspec/support/cli_macro.rb
216
169
  - lib/librarian/source.rb
217
170
  - lib/librarian/source/basic_api.rb
218
171
  - lib/librarian/source/git.rb
@@ -226,12 +179,8 @@ files:
226
179
  - lib/librarian/ui.rb
227
180
  - lib/librarian/version.rb
228
181
  - librarian.gemspec
229
- - spec/functional/chef/cli_spec.rb
230
- - spec/functional/chef/source/site_spec.rb
182
+ - spec/functional/cli_spec.rb
231
183
  - spec/functional/source/git/repository_spec.rb
232
- - spec/integration/chef/source/git_spec.rb
233
- - spec/integration/chef/source/site_spec.rb
234
- - spec/support/cli_macro.rb
235
184
  - spec/support/method_patch_macro.rb
236
185
  - spec/support/with_env_macro.rb
237
186
  - spec/unit/action/base_spec.rb
@@ -257,24 +206,44 @@ rdoc_options: []
257
206
  require_paths:
258
207
  - lib
259
208
  required_ruby_version: !ruby/object:Gem::Requirement
209
+ none: false
260
210
  requirements:
261
211
  - - ! '>='
262
212
  - !ruby/object:Gem::Version
263
- version: '0'
264
213
  segments:
265
214
  - 0
266
- hash: -1210253581070009250
267
- none: false
215
+ hash: 3722250136317234111
216
+ version: '0'
268
217
  required_rubygems_version: !ruby/object:Gem::Requirement
218
+ none: false
269
219
  requirements:
270
- - - ! '>='
220
+ - - ! '>'
271
221
  - !ruby/object:Gem::Version
272
- version: '0'
273
- none: false
222
+ version: 1.3.1
274
223
  requirements: []
275
- rubyforge_project: librarian
276
- rubygems_version: 1.8.24
224
+ rubyforge_project:
225
+ rubygems_version: 1.8.25
277
226
  signing_key:
278
227
  specification_version: 3
279
228
  summary: Librarian
280
- test_files: []
229
+ test_files:
230
+ - spec/functional/cli_spec.rb
231
+ - spec/functional/source/git/repository_spec.rb
232
+ - spec/support/method_patch_macro.rb
233
+ - spec/support/with_env_macro.rb
234
+ - spec/unit/action/base_spec.rb
235
+ - spec/unit/action/clean_spec.rb
236
+ - spec/unit/action/ensure_spec.rb
237
+ - spec/unit/action/install_spec.rb
238
+ - spec/unit/config/database_spec.rb
239
+ - spec/unit/dependency_spec.rb
240
+ - spec/unit/dsl_spec.rb
241
+ - spec/unit/environment_spec.rb
242
+ - spec/unit/lockfile/parser_spec.rb
243
+ - spec/unit/lockfile_spec.rb
244
+ - spec/unit/manifest_set_spec.rb
245
+ - spec/unit/manifest_spec.rb
246
+ - spec/unit/mock/source/mock_spec.rb
247
+ - spec/unit/resolver_spec.rb
248
+ - spec/unit/source/git_spec.rb
249
+ - spec/unit/spec_change_set_spec.rb