hexx-suit 2.0.0 → 2.1.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: 481491a7c12046b37eacaee45a92e6324595bbaf
4
- data.tar.gz: 2930151d97db4fe4013120114b10b4aec75bb151
3
+ metadata.gz: ffad0f15addbda17f8cb1b4194e6b9fa79cac088
4
+ data.tar.gz: ca39bdb22516a1b61fd000e14c9aad66daaed23c
5
5
  SHA512:
6
- metadata.gz: 5540521b3400b7552438b014e80c7856b4620f4acf52893b8728fe18d74758c059353f9482c9ac1ea19e7387bc342eb08c0a003ebc605b3ac66c6508f48648a1
7
- data.tar.gz: b0a4df9e7a6472194f50e1749a55fa1c4305e88ae8659f0490f83dd2a517990ec4cbd370c02464880b7366aca6a6965f6ecfbdc6e9ca9c860b33f728e87298ec
6
+ metadata.gz: 6adc97a1a2d0c65e75220bb1b8e50e65d32b3de0c0da83c57df3e453d451511fe720f2e6ea90457d49fb1bcc640959bd87fecffa6d1c34ba9369bec0b3ce5e9a
7
+ data.tar.gz: 24a5a21e0078a98b274cb1120aa62ec9e170c6966b621990c9e43d0d0264a6632f3a1df415a707b6e98bb6ea971e936801133f0515b811846fb9e27649ebc255
@@ -61,6 +61,23 @@ module Hexx
61
61
  copy_file "_rubocop.yml", ".rubocop.yml"
62
62
  end
63
63
 
64
+ # @private
65
+ def create_gemfile
66
+ copy_file "Gemfile", skip: true
67
+ append_to_file(
68
+ "Gemfile",
69
+ "\ngem \"hexx-suit\", \"~> #{ version }\"," \
70
+ " group: :metrics if RUBY_ENGINE == \"ruby\"\n",
71
+ skip: true
72
+ )
73
+ end
74
+
75
+ private
76
+
77
+ def version
78
+ Hexx::Suit::VERSION.split(".")[0..1].join(".")
79
+ end
80
+
64
81
  end # class Install
65
82
 
66
83
  end # module Suit
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
@@ -6,7 +6,7 @@ module Hexx
6
6
 
7
7
  # The semantic version of the module.
8
8
  # @see http://semver.org/ Semantic versioning 2.0
9
- VERSION = "2.0.0".freeze
9
+ VERSION = "2.1.0".freeze
10
10
 
11
11
  end # module Suit
12
12
 
@@ -12,6 +12,7 @@ describe Hexx::Suit::Install, :sandbox, :capture do
12
12
  .rubocop.yml
13
13
  .yardopts
14
14
  Guardfile
15
+ Gemfile
15
16
  Rakefile
16
17
  config/metrics/cane.yml
17
18
  config/metrics/churn.yml
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexx-suit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fasterer
@@ -194,6 +194,7 @@ files:
194
194
  - lib/hexx-suit.rb
195
195
  - lib/hexx/suit.rb
196
196
  - lib/hexx/suit/install.rb
197
+ - lib/hexx/suit/install/Gemfile
197
198
  - lib/hexx/suit/install/Guardfile
198
199
  - lib/hexx/suit/install/Rakefile
199
200
  - lib/hexx/suit/install/_metrics