mvnizer 0.3.0 → 0.4.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 022151673b2ee5b3310290f4e018340204c31b3a
4
- data.tar.gz: ce9194732a3e5ddf66e4ab0362b436db9f738f0d
3
+ metadata.gz: 1f2a0676e45bc009f46f38ae2789300292e05c52
4
+ data.tar.gz: 123ee4562046863bf4b7eb4ff0ae7a7a81f8f9ed
5
5
  SHA512:
6
- metadata.gz: 92d46c28202e331020e61c5ce205c5af120e7fee9c502638d49af5f89b2967539f8bab5e08025e09b313557d0f57c99d9aae502e1d892f97a1e1f0d69dcc8eed
7
- data.tar.gz: 8d25166c2b443498981197d3832c7e9e14264a11bc15e23e542c51319b7d64414a26b68a1526a9bb360b93206326ca6afb4b5cb911e7403d4b807013cf5e153a
6
+ metadata.gz: 94949d9aac8fc80ad9a8e583f2bf5c044fb64f5d66d0c67f36a1fc496cfc7f47dfd4d94fcd365ebe78ce185783a326207d294e44d5c905e04f80653163d1e6cc
7
+ data.tar.gz: 91051e6ffc15173008a5186adb38c1dd169cec25b9269063ce26ec90f640902576e6936323e7b0b271d570e81c12f7d1668a4443affb24d59f45d6fc50a7fd0c
data/CHANGELOG.org ADDED
@@ -0,0 +1,39 @@
1
+ * Mvnizer 0.4.0
2
+
3
+ - Update maven compiler plugin to 3.8.0
4
+ - Create =.editorconfig= when generating project
5
+
6
+ * Mvnizer 0.3.0
7
+
8
+ - Update maven compiler plugin to 3.7.0, and java sources to 1.8
9
+ - Update gem dependencies
10
+ - Set up Travis CI
11
+
12
+ * Mvnizer 0.2.0
13
+
14
+ - Create =.gitignore= when generating project
15
+ - Upgrade httparty
16
+
17
+ * Mvnizer 0.1.0
18
+
19
+ - Update nokogiri to version 1.6.6
20
+ - Update maven compiler plugin to 3.3, and java sources to 1.7
21
+ - Use junit 4.12 by default
22
+
23
+ * Mvnizer 0.0.4
24
+
25
+ - Added sample servlet and JSP in new war project,
26
+ - Add dependency using the =mvnizer add= command.
27
+
28
+ * Mvnizer 0.0.3
29
+
30
+ - Search dependencies in Maven central repo
31
+
32
+ * Mvnizer 0.0.2
33
+
34
+ - Coordinate parsing
35
+ - Project creation depending on the project type (jar or war)
36
+
37
+ * Mvnizer 0.0.1
38
+
39
+ - Basic Maven project creation
data/TODO.org ADDED
@@ -0,0 +1,15 @@
1
+ #+title: TODO
2
+ #+author: Sébastien Le Callonnec
3
+
4
+ * New Project
5
+
6
+ - Add specific options to add classic dependencies / plugins:
7
+
8
+ #+BEGIN_EXAMPLE
9
+ mvnizer new foo --slf4j
10
+ mvnizer new foo --shade # adds the maven-shade-plugin, and possibly a Main class.
11
+ #+END_EXAMPLE
12
+
13
+ * Options
14
+
15
+ - Support external config file (e.g. =~/.mvnizerrc=) to override current defaults.
@@ -20,7 +20,9 @@ module Mvnizer
20
20
  generate_file(File.join(TEMPLATE_DIR, "gitignore.erb"),
21
21
  "#{project.artifact_id}/.gitignore",
22
22
  project)
23
-
23
+ generate_file(File.join(TEMPLATE_DIR, "editorconfig.erb"),
24
+ "#{project.artifact_id}/.editorconfig",
25
+ project)
24
26
 
25
27
  end
26
28
 
@@ -0,0 +1,16 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ indent_style = space
6
+ indent_size = 4
7
+ trim_trailing_whitespace = true
8
+ end_of_line = lf
9
+ insert_final_newline = true
10
+
11
+ [*.{js,css,html,xml,rb}]
12
+ indent_style = space
13
+ indent_size = 2
14
+
15
+ [*.{org}]
16
+ trim_trailing_whitespace = false
@@ -21,7 +21,7 @@
21
21
  <plugins>
22
22
  <plugin>
23
23
  <artifactId>maven-compiler-plugin</artifactId>
24
- <version>3.7.0</version>
24
+ <version>3.8.0</version>
25
25
  <configuration>
26
26
  <source>1.8</source>
27
27
  <target>1.8</target>
@@ -1,5 +1,5 @@
1
1
  module Mvnizer
2
2
  module Version
3
- STRING = '0.3.0'
3
+ STRING = '0.4.0'
4
4
  end
5
5
  end
data/mvnizer.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: mvnizer 0.3.0 ruby lib
5
+ # stub: mvnizer 0.4.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "mvnizer".freeze
9
- s.version = "0.3.0"
9
+ s.version = "0.4.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["S\u00E9bastien Le Callonnec".freeze]
14
- s.date = "2018-06-04"
14
+ s.date = "2018-10-14"
15
15
  s.description = "Bootstrap a Maven project without the pain of archetypes.".freeze
16
16
  s.email = "sebastien@weblogism.com".freeze
17
17
  s.executables = ["mvnizer".freeze]
@@ -22,13 +22,13 @@ Gem::Specification.new do |s|
22
22
  s.files = [
23
23
  ".rspec",
24
24
  ".travis.yml",
25
- "CHANGELOG.md",
25
+ "CHANGELOG.org",
26
26
  "Gemfile",
27
27
  "Gemfile.lock",
28
28
  "LICENSE.txt",
29
29
  "README.org",
30
30
  "Rakefile",
31
- "TODO.md",
31
+ "TODO.org",
32
32
  "bin/mvnizer",
33
33
  "conf/default.yml",
34
34
  "features/new_project.feature",
@@ -50,6 +50,7 @@ Gem::Specification.new do |s|
50
50
  "lib/mvnizer/project.rb",
51
51
  "lib/mvnizer/task_helper.rb",
52
52
  "lib/mvnizer/templates/_dependency.xml.erb",
53
+ "lib/mvnizer/templates/editorconfig.erb",
53
54
  "lib/mvnizer/templates/gitignore.erb",
54
55
  "lib/mvnizer/templates/pom.xml.erb",
55
56
  "lib/mvnizer/templates/war/ExampleServlet.java.erb",
@@ -9,7 +9,7 @@ module Mvnizer
9
9
  subject { Mvnizer::Command::NewProject.new }
10
10
 
11
11
  it "creates the project directory" do
12
- subject.should_receive(:generate_file).twice
12
+ subject.should_receive(:generate_file).exactly(3).times
13
13
  subject.should_receive(:create_dir).with("foobar/src/main/java", "foobar/src/test/java")
14
14
 
15
15
  subject.run(project)
@@ -19,7 +19,7 @@ module Mvnizer
19
19
  subject.should_receive(:get_dependencies).and_return(["foo:bar:1.0:jar:test"])
20
20
  CoordinateParser.should_receive(:new).and_return(coordinate_parser)
21
21
  coordinate_parser.should_receive(:parse_scoped_coordinates).with("foo:bar:1.0:jar:test").and_return("Blah")
22
- subject.should_receive(:generate_file).twice
22
+ subject.should_receive(:generate_file).exactly(3).times
23
23
  subject.should_receive(:create_dir)
24
24
 
25
25
  subject.run(project)
@@ -30,6 +30,7 @@ module Mvnizer
30
30
  it "generates the pom file" do
31
31
  subject.should_receive(:generate_file).with(File.join(TaskHelper::TEMPLATE_DIR, "pom.xml.erb"), "foobar/pom.xml", project)
32
32
  subject.should_receive(:generate_file).with(File.join(TaskHelper::TEMPLATE_DIR, "gitignore.erb"), "foobar/.gitignore", project)
33
+ subject.should_receive(:generate_file).with(File.join(TaskHelper::TEMPLATE_DIR, "editorconfig.erb"), "foobar/.editorconfig", project)
33
34
  subject.run(project)
34
35
  end
35
36
  end
@@ -24,7 +24,7 @@ module Mvnizer
24
24
  subject.should_receive(:create_dir)
25
25
  subject.should_receive(:generate_file).exactly(3).times
26
26
  subject.run(project)
27
- $run.should be_true
27
+ $run.should be true
28
28
  end
29
29
 
30
30
  it "creates the webapp directory" do
@@ -45,7 +45,7 @@ module Mvnizer
45
45
 
46
46
  it "adds the dependencies needed for a war file" do
47
47
  deps = subject.get_dependencies
48
- deps.include?("javax:javaee-web-api:6.0:jar:provided").should be_true
48
+ deps.include?("javax:javaee-web-api:6.0:jar:provided").should be true
49
49
  end
50
50
 
51
51
  after do
@@ -15,8 +15,8 @@ module Mvnizer
15
15
  describe "#create_dir" do
16
16
  it "creates a list of directories" do
17
17
  subject.create_dir("/tmp/blah/blah", "/tmp/foo/bar")
18
- Dir.exists?("/tmp/blah/blah").should be_true
19
- Dir.exists?("/tmp/foo/bar").should be_true
18
+ Dir.exists?("/tmp/blah/blah").should be true
19
+ Dir.exists?("/tmp/foo/bar").should be true
20
20
  end
21
21
  end
22
22
 
@@ -42,7 +42,7 @@ module Mvnizer
42
42
 
43
43
  it "creates the output directory if it does not exist" do
44
44
  subject.should_receive(:create_dir).with("foo")
45
- File.should_receive(:open).any_number_of_times.and_return(file)
45
+ File.should_receive(:open).at_least(1).times.and_return(file)
46
46
  file.should_receive(:read)
47
47
  subject.generate_file("dummy.txt.erb", "foo/dummy.txt", binding)
48
48
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mvnizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Le Callonnec
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-04 00:00:00.000000000 Z
11
+ date: 2018-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -133,13 +133,13 @@ extra_rdoc_files:
133
133
  files:
134
134
  - ".rspec"
135
135
  - ".travis.yml"
136
- - CHANGELOG.md
136
+ - CHANGELOG.org
137
137
  - Gemfile
138
138
  - Gemfile.lock
139
139
  - LICENSE.txt
140
140
  - README.org
141
141
  - Rakefile
142
- - TODO.md
142
+ - TODO.org
143
143
  - bin/mvnizer
144
144
  - conf/default.yml
145
145
  - features/new_project.feature
@@ -161,6 +161,7 @@ files:
161
161
  - lib/mvnizer/project.rb
162
162
  - lib/mvnizer/task_helper.rb
163
163
  - lib/mvnizer/templates/_dependency.xml.erb
164
+ - lib/mvnizer/templates/editorconfig.erb
164
165
  - lib/mvnizer/templates/gitignore.erb
165
166
  - lib/mvnizer/templates/pom.xml.erb
166
167
  - lib/mvnizer/templates/war/ExampleServlet.java.erb
data/CHANGELOG.md DELETED
@@ -1,18 +0,0 @@
1
-
2
- # Mvnizer 0.0.4
3
-
4
- * Added sample servlet and JSP in new war project,
5
- * Add dependency using the `mvnizer add` command.
6
-
7
- # Mvnizer 0.0.3
8
-
9
- * Search dependencies in Maven central repo
10
-
11
- # Mvnizer 0.0.2
12
-
13
- * Coordinate parsing
14
- * Project creation depending on the project type (jar or war)
15
-
16
- # Mvnizer 0.0.1
17
-
18
- * Basic Maven project creation
data/TODO.md DELETED
@@ -1,10 +0,0 @@
1
- # New Project
2
-
3
- - Add specific options to add classic dependencies / plugins:
4
-
5
- mvnizer new foo --slf4j
6
- mvnizer new foo --shade # adds the maven-shade-plugin, and possibly a Main class.
7
-
8
- # Options
9
-
10
- - Support external config file (e.g. ~/.mvnizerrc) to override current defaults.