project 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/VERSION +1 -1
- data/bin/project +0 -0
- data/lib/project.rb +5 -1
- data/lib/project/loader.rb +1 -0
- data/project.gemspec +6 -51
- data/readme.textile +12 -1
- metadata +9 -8
data/.gitignore
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
pkg/*
|
2
|
-
.gem
|
2
|
+
.gem
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/bin/project
CHANGED
File without changes
|
data/lib/project.rb
CHANGED
@@ -2,7 +2,11 @@ $:.unshift File.dirname(__FILE__)
|
|
2
2
|
|
3
3
|
module Project
|
4
4
|
ROOT = File.expand_path(File.dirname(__FILE__) + "/..")
|
5
|
-
CONFIG =
|
5
|
+
CONFIG = if(xdg = ENV["XDG_CONFIG_HOME"])
|
6
|
+
File.join(xdg, 'project', 'config.yaml')
|
7
|
+
else
|
8
|
+
File.join(ENV["HOME"], '.project')
|
9
|
+
end
|
6
10
|
SHELL_BINARY = ENV["SHELL"]
|
7
11
|
end
|
8
12
|
|
data/lib/project/loader.rb
CHANGED
@@ -23,6 +23,7 @@ module Project
|
|
23
23
|
Project.load_from_hash(@raw_config[:projects]) unless @raw_config[:projects].nil?
|
24
24
|
Workflow.load_from_hash(@raw_config[:workflows]) unless @raw_config[:workflows].nil?
|
25
25
|
else
|
26
|
+
FileUtils.mkdir_p(File.dirname(self.class.config_path))
|
26
27
|
FileUtils.cp(@template_path, self.class.config_path)
|
27
28
|
|
28
29
|
$stdout.puts "* No YAML configuration file found!",
|
data/project.gemspec
CHANGED
@@ -3,62 +3,15 @@ require 'lib/project'
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{project}
|
5
5
|
s.version = Project::Version::STRING
|
6
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
7
6
|
s.authors = ["Josh Nesbitt"]
|
8
|
-
s.date = Time.now.strftime("%Y/%m/%d")
|
9
7
|
s.description = %q{Project aims to make working with multiple projects as simple as possible. By registering projects with workflows you can quickly create a set of commands that will be run against each project.}
|
10
8
|
s.email = %q{josh@josh-nesbitt.net}
|
11
|
-
s.executables =
|
12
|
-
s.
|
13
|
-
"LICENSE"
|
14
|
-
]
|
15
|
-
s.files = [
|
16
|
-
".gitignore",
|
17
|
-
"LICENSE",
|
18
|
-
"Rakefile",
|
19
|
-
"VERSION",
|
20
|
-
"bin/project",
|
21
|
-
"lib/project.rb",
|
22
|
-
"lib/project/version.rb",
|
23
|
-
"lib/project/core_ext.rb",
|
24
|
-
"lib/project/errors.rb",
|
25
|
-
"lib/project/command_set.rb",
|
26
|
-
"lib/project/loader.rb",
|
27
|
-
"lib/project/lookup.rb",
|
28
|
-
"lib/project/project.rb",
|
29
|
-
"lib/project/runner.rb",
|
30
|
-
"lib/project/template.rb",
|
31
|
-
"lib/project/workflow.rb",
|
32
|
-
"project.gemspec",
|
33
|
-
"readme.textile",
|
34
|
-
"spec/fixtures/config.yml",
|
35
|
-
"spec/lib/core_ext_spec.rb",
|
36
|
-
"spec/lib/errors_spec.rb",
|
37
|
-
"spec/lib/loader_spec.rb",
|
38
|
-
"spec/lib/lookup_spec.rb",
|
39
|
-
"spec/lib/project_spec.rb",
|
40
|
-
"spec/lib/template_spec.rb",
|
41
|
-
"spec/lib/workflow_spec.rb",
|
42
|
-
"spec/spec_helper.rb",
|
43
|
-
"spec/watch.rb",
|
44
|
-
"templates/example.yml"
|
45
|
-
]
|
9
|
+
s.executables = %w{ project }
|
10
|
+
s.files = `git ls-files`.split("\n")
|
46
11
|
s.homepage = %q{http://github.com/joshnesbitt/project}
|
47
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
48
12
|
s.require_paths = ["lib"]
|
49
|
-
s.rubygems_version = %q{1.3.7}
|
50
13
|
s.summary = %q{A streamlined approach to working with multiple projects and tasks.}
|
51
|
-
s.test_files =
|
52
|
-
"spec/lib/core_ext_spec.rb",
|
53
|
-
"spec/lib/errors_spec.rb",
|
54
|
-
"spec/lib/loader_spec.rb",
|
55
|
-
"spec/lib/lookup_spec.rb",
|
56
|
-
"spec/lib/project_spec.rb",
|
57
|
-
"spec/lib/template_spec.rb",
|
58
|
-
"spec/lib/workflow_spec.rb",
|
59
|
-
"spec/spec_helper.rb",
|
60
|
-
"spec/watch.rb"
|
61
|
-
]
|
14
|
+
s.test_files = `git ls-files spec`.split("\n")
|
62
15
|
s.post_install_message = <<-MESSAGE
|
63
16
|
#{"*"* 80}
|
64
17
|
Thanks for installing Project. Please check the README for the changelog:
|
@@ -68,5 +21,7 @@ http://github.com/joshnesbitt/project#readme
|
|
68
21
|
|
69
22
|
MESSAGE
|
70
23
|
s.platform = Gem::Platform::RUBY
|
71
|
-
s.
|
24
|
+
s.rubygems_version = %q{>= 1.3.6}
|
25
|
+
s.add_dependency('rspec', '>= 1.2.9')
|
26
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
72
27
|
end
|
data/readme.textile
CHANGED
@@ -5,6 +5,7 @@ h1. Project
|
|
5
5
|
* Usage
|
6
6
|
* Changelog
|
7
7
|
* Bugs
|
8
|
+
* Contributors
|
8
9
|
* Note on Patches/Pull Requests
|
9
10
|
|
10
11
|
|
@@ -25,7 +26,7 @@ Once the gem is installed run:
|
|
25
26
|
|
26
27
|
pre. project install
|
27
28
|
|
28
|
-
Assuming you haven't already had the gem installed this will create a file at @~/.project
|
29
|
+
Assuming you haven't already had the gem installed this will create a file at @~/.project@ (or @~/.config/project/config.yaml@, if you're using X). This is the main configuration file used to drive project.
|
29
30
|
|
30
31
|
|
31
32
|
|
@@ -98,6 +99,10 @@ pre. project name
|
|
98
99
|
|
99
100
|
h2. Changelog
|
100
101
|
|
102
|
+
h3. 1.3.0
|
103
|
+
|
104
|
+
* Added support for an alternative configuration file on X based systems (within @XDG_CONFIG_HOME@) thanks to Simon Hafner.
|
105
|
+
|
101
106
|
h3. 1.2.0
|
102
107
|
|
103
108
|
* Added the ability for each workflow command to run within the same sub-shell. Commands executed within a sequence now respect the last ran command.
|
@@ -114,6 +119,12 @@ If you have any problems with Project, please file an "issue":http://github.com/
|
|
114
119
|
|
115
120
|
|
116
121
|
|
122
|
+
h2. Contributors
|
123
|
+
|
124
|
+
* Simon Hafner ("Tass":http://github.com/Tass)
|
125
|
+
|
126
|
+
|
127
|
+
|
117
128
|
h2. Note on Patches/Pull Requests
|
118
129
|
|
119
130
|
* Fork the project.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: project
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 3
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Nesbitt
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-20 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -40,8 +40,8 @@ executables:
|
|
40
40
|
- project
|
41
41
|
extensions: []
|
42
42
|
|
43
|
-
extra_rdoc_files:
|
44
|
-
|
43
|
+
extra_rdoc_files: []
|
44
|
+
|
45
45
|
files:
|
46
46
|
- .gitignore
|
47
47
|
- LICENSE
|
@@ -49,15 +49,15 @@ files:
|
|
49
49
|
- VERSION
|
50
50
|
- bin/project
|
51
51
|
- lib/project.rb
|
52
|
-
- lib/project/
|
52
|
+
- lib/project/command_set.rb
|
53
53
|
- lib/project/core_ext.rb
|
54
54
|
- lib/project/errors.rb
|
55
|
-
- lib/project/command_set.rb
|
56
55
|
- lib/project/loader.rb
|
57
56
|
- lib/project/lookup.rb
|
58
57
|
- lib/project/project.rb
|
59
58
|
- lib/project/runner.rb
|
60
59
|
- lib/project/template.rb
|
60
|
+
- lib/project/version.rb
|
61
61
|
- lib/project/workflow.rb
|
62
62
|
- project.gemspec
|
63
63
|
- readme.textile
|
@@ -113,6 +113,7 @@ signing_key:
|
|
113
113
|
specification_version: 3
|
114
114
|
summary: A streamlined approach to working with multiple projects and tasks.
|
115
115
|
test_files:
|
116
|
+
- spec/fixtures/config.yml
|
116
117
|
- spec/lib/core_ext_spec.rb
|
117
118
|
- spec/lib/errors_spec.rb
|
118
119
|
- spec/lib/loader_spec.rb
|