gjp 0.17.0 → 0.17.1

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/README.md CHANGED
@@ -66,7 +66,7 @@ Ceate a new `gjp` project, in this example named "galaxy":
66
66
  cd galaxy
67
67
  gjp init
68
68
 
69
- `gjp init` automatically starts a new gathering phase in which you can add sources and kit files. It also generated a folder structure and assumes you respect it, in particular, you should place all your projects' source files in `src`. Every `src` subfolder will become a separate package named after the folder itself, so use the following commands to create a `commons-collections` folders and populate it:
69
+ `gjp init` automatically starts a new gathering phase in which you can add sources and kit files. It also generated a folder structure and assumes you respect it, in particular, you should place all your projects' source files in `src/`. Every `src/` subfolder will become a separate package named after the folder itself, so use the following commands to create a `commons-collections` folders and populate it:
70
70
 
71
71
  cd src
72
72
  mkdir commons-collections
@@ -75,7 +75,7 @@ Ceate a new `gjp` project, in this example named "galaxy":
75
75
  unzip commons-collections-3.2.1-src.zip
76
76
  rm commons-collections-3.2.1-src.zip
77
77
 
78
- Now let's move to the kit (which, unsurprisingly, should be placed in the `kit` folder). commons-collections needs Maven 3 to build, so we should simply unzip a copy in `kit`:
78
+ Now let's move to the kit (which, unsurprisingly, should be placed in the `kit/` directory). commons-collections needs Maven 3 to build, so we should simply unzip a copy in `kit/`:
79
79
 
80
80
  cd ../../kit
81
81
  wget http://apache.fastbull.org/maven/maven-3/3.1.0/binaries/apache-maven-3.1.0-bin.zip
@@ -87,14 +87,14 @@ This is actually everything needed to do a first dry-run build.
87
87
 
88
88
  #### First dry-run phase
89
89
 
90
- Let's call `gjp dry-run` to let `gjp` know we are building and then call Maven. Note that `gjp mvn` is used instead of plain `mvn`: `gjp` will take care of locating the Maven installation we have in the `kit` and ensure it will store all downloaded files there.
90
+ Let's call `gjp dry-run` to let `gjp` know we are building and then call Maven. Note that `gjp mvn` is used instead of plain `mvn`: `gjp` will take care of locating the Maven installation in `kit/` and ensure it will store all downloaded files there.
91
91
 
92
92
  gjp dry-run
93
93
  cd src/commons-collections/commons-collections-3.2.1-src/
94
94
  gjp mvn package
95
95
  gjp finish
96
96
 
97
- Success! At this point `gjp` took note of all needed files, and restored `src` as it was before the build. This should be sufficient to be able to repeat the build on a machine with no Internet access, but what if we wanted to be 100% sure of that?
97
+ Success! At this point `gjp` took note of all needed files, and restored `src/` as it was before the build. This should be sufficient to be able to repeat the build on a machine with no Internet access, but what if we wanted to be 100% sure of that?
98
98
 
99
99
  #### Second, networkless, dry-run phase
100
100
 
@@ -139,7 +139,7 @@ The following command will generate the kit spec:
139
139
  gjp generate-kit-spec
140
140
  less specs/galaxy-kit.spec
141
141
 
142
- Nothing fancy here, the spec simply copies `kit` contents in a special directory to be available for later compilation of packages.
142
+ Nothing fancy here, the spec simply copies `kit/` contents in a special directory to be available for later compilation of packages.
143
143
  You can also edit the spec file manually if you want. When you later regenerate it, `gjp` will automatically try to reconcile changes with a [three-way merge](http://en.wikipedia.org/wiki/Three-way_merge#Three-way_merge).
144
144
 
145
145
  You can also generate the corresponding .tar.xz file with:
data/gjp.gemspec CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.homepage = "https://github.com/SilvioMoioli/gjp"
11
11
  s.summary = "Green Java Packager's Tools"
12
12
  s.description = "A suite of tools to ease Java packaging in SUSE systems"
13
+ s.license = "MIT"
13
14
 
14
15
  s.rubyforge_project = "gjp"
15
16
 
data/lib/gjp/archiver.rb CHANGED
@@ -9,8 +9,7 @@ module Gjp
9
9
  @project = project
10
10
  end
11
11
 
12
- # generates an archive for the project's kit package based on
13
- # its file list
12
+ # generates an archive for the s kit package based on ts file list
14
13
  def archive_kit
15
14
  list_file = File.join(@project.full_path, "file_lists/kit")
16
15
  if not File.exist? list_file
@@ -25,8 +24,7 @@ module Gjp
25
24
  Pathname.new(destination_file).relative_path_from Pathname.new(@project.full_path)
26
25
  end
27
26
 
28
- # generates an archive for a project's source package based on
29
- # its file list
27
+ # generates an archive for a project's package based on its file list
30
28
  def archive_package(name)
31
29
  list_file = File.join(@project.full_path, "file_lists/#{name}_input")
32
30
  if not File.exist? list_file
data/lib/gjp/project.rb CHANGED
@@ -75,9 +75,9 @@ module Gjp
75
75
  true
76
76
  end
77
77
 
78
- # starts a dry running phase: files added to the kit will
79
- # be added to packages, while sources will be reset at the
80
- # current state when finished
78
+ # starts a dry running phase: files added to kit/ will be added
79
+ # to the kit package, src/ will be reset at the current state
80
+ # when finished
81
81
  def dry_run
82
82
  from_directory do
83
83
  status = get_status
data/lib/gjp/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module Gjp
4
- VERSION = "0.17.0"
4
+ VERSION = "0.17.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gjp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -214,7 +214,8 @@ files:
214
214
  - spec/lib/version_matcher_spec.rb
215
215
  - spec/spec_helper.rb
216
216
  homepage: https://github.com/SilvioMoioli/gjp
217
- licenses: []
217
+ licenses:
218
+ - MIT
218
219
  post_install_message:
219
220
  rdoc_options: []
220
221
  require_paths: