safedep 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96720d6f9fd7630c262b4c014d255ffef22a4d5e
4
- data.tar.gz: 2f070274f4cf9a60d69ae3096b895a3ec810ef6d
3
+ metadata.gz: 073181294c53aaa47b98decfae315f69483ecaba
4
+ data.tar.gz: 892e8eea3c963afb826c387e01f407423da13e8e
5
5
  SHA512:
6
- metadata.gz: 8132af95ac774d2e2236620ed445b2e8a0e864d00b5ce74a9023ca10da5003d54c8668562e4cb9c71b495e15c604020d2d15066df1437fe6d7f83b4561dadcf6
7
- data.tar.gz: e4ccdaad7dec69b7067e26059fdb6d76be72b6442d897150a9c97cd77ffcd9559891c52c0e93b2e92411676192684f0f96f7e848e274f29c588867d5327ec2c6
6
+ metadata.gz: 7332be02da69cffbd75edb5c83c5036797fe0863ac55ff9fb3bb54b8a1d0ac7939ae5e170919b9ab29ac63e6f783ff45f49d5751687c54cb7889dc477841cd11
7
+ data.tar.gz: 38c86e5409d9352418e91021fac8970b96d96f7ea21d0ce630566e2efa6f2c7747ffb09f099a7e169691d55c4018d8a4237ac39b8023aac346262d44ce68387c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Development
4
4
 
5
+ ## v0.1.1
6
+
7
+ * Fix unaligned help message.
8
+
5
9
  ## v0.1.0
6
10
 
7
11
  * Add `--without` option for skipping arbitrary groups.
data/README.md CHANGED
@@ -14,16 +14,6 @@
14
14
  $ gem install safedep
15
15
  ```
16
16
 
17
- ## Usage
18
-
19
- Just run `safedep` command in your project's root directory,
20
- and then you should see the `Gemfile` is modified.
21
-
22
- ```bash
23
- $ cd your-project
24
- $ safedep
25
- ```
26
-
27
17
  ## Example
28
18
 
29
19
  Here's a `Gemfile` with dependencies without version specifier:
@@ -75,6 +65,26 @@ index 5ff2c3c..488dd41 100644
75
65
  end
76
66
  ```
77
67
 
68
+ ## Usage
69
+
70
+ Just run `safedep` command in your project's root directory,
71
+ and then you should see the `Gemfile` is modified.
72
+
73
+ ```bash
74
+ $ cd your-project
75
+ $ safedep
76
+ ```
77
+
78
+ ## Options
79
+
80
+ ### `--without`
81
+
82
+ Specify groups to skip modification as comma-separated list.
83
+
84
+ ```bash
85
+ $ safedep --without development,test
86
+ ```
87
+
78
88
  ## Compatibility
79
89
 
80
90
  Tested on MRI 1.9.3, 2.0, 2.1, 2.2 and JRuby in 1.9 mode.
@@ -39,7 +39,7 @@ module Safedep
39
39
  def parser
40
40
  @parser ||= begin
41
41
  banner = "Usage: #{command_name} [options]\n\n"
42
- summary_width = 20 # Default
42
+ summary_width = 32 # Default
43
43
  indentation = ' ' * 2
44
44
  ::OptionParser.new(banner, summary_width, indentation)
45
45
  end
@@ -3,7 +3,7 @@ module Safedep
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- PATCH = 0
6
+ PATCH = 1
7
7
 
8
8
  def self.to_s
9
9
  [MAJOR, MINOR, PATCH].join('.')
@@ -36,7 +36,7 @@ module Safedep
36
36
 
37
37
  context 'when unknown error is raised' do
38
38
  before do
39
- allow(Runner).to receive(:run).and_raise('foo')
39
+ allow_any_instance_of(Runner).to receive(:run).and_raise('foo')
40
40
  end
41
41
 
42
42
  it 'does not rescue the error' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safedep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Nakayama