fnando-pez 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -17,3 +17,8 @@
17
17
 
18
18
  * 1 major enhancement:
19
19
  * Added revision and branch support
20
+
21
+ == 0.0.5 2008-09-06
22
+
23
+ * 1 bug fix:
24
+ * Symlink option couldn't get the plugin data
data/README.markdown CHANGED
@@ -1,4 +1,4 @@
1
- pez
1
+ Pez
2
2
  ===
3
3
 
4
4
  * [http://github.com/fnando/pez](http://github.com/fnando/pez)
@@ -6,20 +6,20 @@ pez
6
6
  DESCRIPTION:
7
7
  ------------
8
8
 
9
- pez is a simple tool to manage plugins from GIT and Subversion repositories in
10
- a easy way. Instead of adding plugins to the project repository, pez
9
+ Pez is a simple tool to manage plugins from Git and Subversion repositories in
10
+ a easy way. Instead of adding plugins to the project repository, Pez
11
11
  checkouts/clones the specified version to a temporary directory and
12
12
  creates a symlink to the Ruby on Rails plugin directory.
13
13
 
14
- When pez is asked to update the plugins, it runs the correct command in that
15
- directory, based on the repository type (GIT or Subversion), which in turn is
14
+ When Pez is asked to update the plugins, it runs the correct command in that
15
+ directory, based on the repository type (Git or Subversion), which in turn is
16
16
  applied to the project through the symlink.
17
17
 
18
- pez allows different environments to update plugins from a different directory.
18
+ Pez allows different environments to update plugins from a different directory.
19
19
  So, when you deploy your Ruby on Rails application, you won't have to
20
20
  checkout/update all plugins again, unless you explicit say so.
21
21
 
22
- pez is based on braid (which I never had it working) but way simpler.
22
+ Pez is based on Braid (which I never had it working) but way simpler.
23
23
 
24
24
  INSTALLATION:
25
25
  -------------
@@ -68,7 +68,7 @@ Run the command `pez setup` from your project root to create the file
68
68
  # create symlink for plugins already added
69
69
  pez symlink
70
70
 
71
- # add plugin and track a specific branch (git only)
71
+ # add plugin and track a specific branch (Git only)
72
72
  pez add git://github.com/aslakhellesoy/cucumber -b html-visitor
73
73
 
74
74
  # add plugin and freeze in a specific commit
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ PKG_FILES = %w(Rakefile pez.gemspec History.txt License.txt README.markdown TODO
5
5
 
6
6
  spec = Gem::Specification.new do |s|
7
7
  s.name = "pez"
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
  s.summary = "Manage Ruby on Rails plugins from GIT and Subversion repositories in a simple way"
10
10
  s.authors = ["Nando Vieira"]
11
11
  s.email = ["fnando.vieira@gmail.com"]
data/bin/pez CHANGED
@@ -6,7 +6,7 @@ require 'pez'
6
6
  # hey, this was taken from braid! thanks guys!
7
7
  Main {
8
8
  description <<-TXT
9
- pez is a simple tool to manage Ruby on Rails plugins from GIT or Subversion repositories.
9
+ Pez is a simple tool to manage Ruby on Rails plugins from Git or Subversion repositories.
10
10
 
11
11
  Run 'pez help commandname' for more details.
12
12
  TXT
@@ -36,6 +36,10 @@ Main {
36
36
  . pez add svn://remote/path
37
37
  . pez add svn://remote/path --type=git
38
38
  . pez add git://remote/path --name=some_plugin_name
39
+ . pez add git://remote/path --branch=some_branch
40
+ . pez add git://remote/path \\
41
+ --revision=c8d8817450658447e5ef5a661ddc111f7651954f
42
+ . pez add svn://remote/path --revision=999
39
43
  TXT
40
44
 
41
45
  mixin :argument_url, :option_type, :option_name, :option_revision, :option_branch
@@ -51,6 +55,11 @@ Main {
51
55
 
52
56
  * get new changes from remote
53
57
  * checkout/clone the repository when directory is missing
58
+
59
+ NOTE: repositories won't be updated if they're frozen in
60
+ revision/commit. Edit the config/plugins.yml, removing
61
+ the revision option from all repositories you want to
62
+ be updated.
54
63
  TXT
55
64
 
56
65
  examples <<-TXT
@@ -70,7 +79,7 @@ Main {
70
79
  Remove a mirror.
71
80
 
72
81
  * removes metadata from config/plugins.yml
73
- * removes the local directory and commits the removal
82
+ * removes the local directory
74
83
  * removes the vendor/plugin symlink
75
84
  TXT
76
85
 
@@ -118,7 +127,7 @@ Main {
118
127
  }
119
128
 
120
129
  mode(:version) {
121
- description 'Show pez version.'
130
+ description 'Show Pez version.'
122
131
 
123
132
  run {
124
133
  puts "pez #{Pez::VERSION}"
@@ -129,7 +138,7 @@ Main {
129
138
  description <<-TXT
130
139
  Create the symlinks.
131
140
 
132
- * if a plugin source directory doesn't exist, pez will get it first
141
+ * if a plugin source directory doesn't exist, Pez will get it first
133
142
  TXT
134
143
 
135
144
  run {
@@ -162,7 +171,7 @@ Main {
162
171
  option(:revision, :r) {
163
172
  optional
164
173
  argument :required
165
- desc 'freezes a specific revision'
174
+ desc 'freezes a specific revision/commit'
166
175
  attr
167
176
  }
168
177
  }
@@ -171,7 +180,7 @@ Main {
171
180
  option(:branch, :b) {
172
181
  optional
173
182
  argument :required
174
- desc 'checkout a specific GIT branch'
183
+ desc 'checkout a specific Git branch'
175
184
  attr
176
185
  }
177
186
  }
data/lib/pez/base.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Pez
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  CONFIG_FILE = File.dirname(__FILE__) + '/../../templates/plugins.yml'
4
4
 
5
5
  module Base
@@ -173,6 +173,7 @@ module Pez
173
173
 
174
174
  Pez::Base.plugins(nil, {:all => 'all'}).each do |name|
175
175
  dirname = "#{Pez::Base.destination}/#{name}"
176
+ data = c['plugins'][name]
176
177
 
177
178
  if File.directory?(dirname)
178
179
  system %( ln -s #{dirname} vendor/plugins/#{name} )
data/pez.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # RUN : 'rake gem:update_gemspec'
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.date = "Wed Sep 03 14:19:21 -0300 2008"
5
+ s.date = "Sat Sep 06 09:53:54 -0300 2008"
6
6
  s.executables = ["pez"]
7
7
  s.authors = ["Nando Vieira"]
8
8
  s.required_rubygems_version = ">= 0"
9
- s.version = "0.0.4"
9
+ s.version = "0.0.5"
10
10
  s.files = ["Rakefile",
11
11
  "pez.gemspec",
12
12
  "History.txt",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fnando-pez
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-03 10:19:21 -07:00
12
+ date: 2008-09-06 05:53:54 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency