github_cli 0.5.3 → 0.5.4

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.
Files changed (94) hide show
  1. data/.travis.yml +14 -3
  2. data/CHANGELOG.md +15 -0
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +41 -44
  5. data/README.md +77 -14
  6. data/Rakefile +4 -2
  7. data/features/assignee.feature +1 -0
  8. data/features/blob.feature +1 -0
  9. data/features/collaborator.feature +1 -0
  10. data/features/commit.feature +2 -1
  11. data/features/config.feature +27 -28
  12. data/features/event.feature +1 -0
  13. data/features/init.feature +20 -23
  14. data/features/key.feature +5 -5
  15. data/features/milestone.feature +3 -2
  16. data/features/reference.feature +3 -2
  17. data/features/starring.feature +1 -0
  18. data/features/support/hooks.rb +1 -1
  19. data/features/tag.feature +2 -1
  20. data/features/tree.feature +17 -0
  21. data/features/watching.feature +1 -0
  22. data/fixtures/simple_config +3 -5
  23. data/github_cli.gemspec +1 -1
  24. data/lib/github_cli/api.rb +11 -6
  25. data/lib/github_cli/apis/event.rb +8 -8
  26. data/lib/github_cli/apis/label.rb +0 -12
  27. data/lib/github_cli/apis/starring.rb +5 -5
  28. data/lib/github_cli/apis/watching.rb +5 -5
  29. data/lib/github_cli/cli.rb +21 -30
  30. data/lib/github_cli/command.rb +1 -1
  31. data/lib/github_cli/commands/authorizations.rb +28 -2
  32. data/lib/github_cli/commands/collaborators.rb +12 -12
  33. data/lib/github_cli/commands/commits.rb +18 -2
  34. data/lib/github_cli/commands/events.rb +6 -8
  35. data/lib/github_cli/commands/followers.rb +1 -1
  36. data/lib/github_cli/commands/labels.rb +22 -20
  37. data/lib/github_cli/commands/milestones.rb +43 -13
  38. data/lib/github_cli/commands/references.rb +21 -6
  39. data/lib/github_cli/commands/starring.rb +3 -2
  40. data/lib/github_cli/commands/tags.rb +16 -1
  41. data/lib/github_cli/commands/trees.rb +11 -5
  42. data/lib/github_cli/commands/watching.rb +3 -2
  43. data/lib/github_cli/config.rb +15 -6
  44. data/lib/github_cli/dsl.rb +2 -2
  45. data/lib/github_cli/formatter.rb +2 -3
  46. data/lib/github_cli/formatters/csv.rb +29 -14
  47. data/lib/github_cli/formatters/table.rb +2 -3
  48. data/lib/github_cli/man/gcli-config.1 +17 -13
  49. data/lib/github_cli/man/gcli-config.1.txt +23 -21
  50. data/lib/github_cli/vendor/thor/actions/create_link.rb +3 -0
  51. data/lib/github_cli/vendor/thor/actions/directory.rb +29 -10
  52. data/lib/github_cli/vendor/thor/actions/file_manipulation.rb +9 -3
  53. data/lib/github_cli/vendor/thor/actions.rb +18 -18
  54. data/lib/github_cli/vendor/thor/base.rb +97 -89
  55. data/lib/github_cli/vendor/thor/{task.rb → command.rb} +16 -12
  56. data/lib/github_cli/vendor/thor/core_ext/hash_with_indifferent_access.rb +5 -0
  57. data/lib/github_cli/vendor/thor/core_ext/io_binary_read.rb +12 -0
  58. data/lib/github_cli/vendor/thor/error.rb +4 -7
  59. data/lib/github_cli/vendor/thor/group.rb +34 -32
  60. data/lib/github_cli/vendor/thor/invocation.rb +28 -26
  61. data/lib/github_cli/vendor/thor/parser/options.rb +66 -26
  62. data/lib/github_cli/vendor/thor/rake_compat.rb +3 -2
  63. data/lib/github_cli/vendor/thor/runner.rb +21 -20
  64. data/lib/github_cli/vendor/thor/shell/basic.rb +20 -16
  65. data/lib/github_cli/vendor/thor/shell/color.rb +13 -9
  66. data/lib/github_cli/vendor/thor/shell/html.rb +13 -9
  67. data/lib/github_cli/vendor/thor/util.rb +214 -210
  68. data/lib/github_cli/vendor/thor/version.rb +1 -1
  69. data/lib/github_cli/vendor/thor.rb +232 -153
  70. data/lib/github_cli/version.rb +1 -1
  71. data/man/gcli-config.1.ronn +14 -11
  72. data/spec/github_cli/commands/assignees_spec.rb +20 -0
  73. data/spec/github_cli/commands/blobs_spec.rb +21 -0
  74. data/spec/github_cli/commands/collaborators_spec.rb +31 -0
  75. data/spec/github_cli/commands/commits_spec.rb +26 -0
  76. data/spec/github_cli/commands/emails_spec.rb +24 -0
  77. data/spec/github_cli/commands/events_spec.rb +56 -0
  78. data/spec/github_cli/commands/followers_spec.rb +44 -0
  79. data/spec/github_cli/commands/keys_spec.rb +36 -0
  80. data/spec/github_cli/commands/labels_spec.rb +61 -0
  81. data/spec/github_cli/commands/milestones_spec.rb +47 -0
  82. data/spec/github_cli/commands/references_spec.rb +42 -0
  83. data/spec/github_cli/commands/starring_spec.rb +40 -0
  84. data/spec/github_cli/commands/tags_spec.rb +26 -0
  85. data/spec/github_cli/commands/trees_spec.rb +32 -0
  86. data/spec/github_cli/commands/watching_spec.rb +40 -0
  87. data/spec/github_cli/config_spec.rb +109 -116
  88. data/spec/github_cli/util/convert_value_spec.rb +19 -0
  89. data/spec/github_cli/util/convert_values_spec.rb +14 -0
  90. data/spec/github_cli/util_spec.rb +0 -29
  91. metadata +51 -19
  92. data/lib/github_cli/vendor/thor/core_ext/dir_escape.rb +0 -0
  93. data/lib/github_cli/vendor/thor/core_ext/file_binary_read.rb +0 -9
  94. data/lib/github_cli/vendor/thor/empty.txt +0 -0
@@ -1,131 +1,124 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe GithubCLI::Config do
4
6
  let(:filename) { '.githubrc' }
7
+ let(:path) { "/users/#{filename}" }
5
8
  let(:config_name) { 'simple_config' }
6
- let(:path) { "/users/#{filename}" }
9
+ let(:config) { described_class.new fixture_path }
10
+
11
+ before do
12
+ config.stub(:global_options_file) { fixture_path(config_name) }
13
+ File.stub(:open) { YAML.load fixture('simple_config') }
14
+ end
15
+
16
+ it 'returns config type' do
17
+ GithubCLI.config = GithubCLI::Config.new filename
18
+ GithubCLI.config.should be_a GithubCLI::Config
19
+ end
20
+
21
+ context 'array access' do
22
+ it 'returns value for the key' do
23
+ expect(config['user.login']).to eql('login')
24
+ end
25
+
26
+ it 'searches in commands' do
27
+ expect(config['issue.list']).to eql({ 'title' => 'ticket' })
28
+ end
29
+
30
+ it 'returns nil for missing key' do
31
+ expect(config['non-existent']).to be_nil
32
+ end
33
+ end
34
+
35
+ context '#fetch' do
36
+ it 'finds value' do
37
+ expect(config.fetch('user.token')).to eql('ad7f9asdf97as98df7as9fd7')
38
+ end
39
+
40
+ it 'uses default value' do
41
+ expect(config.fetch('unkown', 11)).to eql(11)
42
+ end
43
+
44
+ it 'raises error' do
45
+ expect { config.fetch('unkown') }.to raise_error(IndexError)
46
+ end
47
+ end
7
48
 
8
- context 'global' do
9
- let(:config) { GithubCLI::Config.new fixture_path }
49
+ context '#pretty' do
50
+ it 'collects options into array' do
51
+ options= {'user.token' => 'abc123' }
52
+ config.stub(:all).and_return options
53
+ expect(config.pretty).to eql([['user.token','abc123']])
54
+ end
55
+
56
+ it 'marks nil option value as undefined' do
57
+ options= {'option' => nil}
58
+ config.stub(:all).and_return options
59
+ expect(config.pretty).to eql([['option', 'UNDEFINED']])
60
+ end
61
+ end
62
+
63
+ context '#save' do
64
+ let(:attrs) { {} }
65
+ let(:cmd) { stub(:cmd, :namespace => 'repo', :name => 'create') }
10
66
 
11
67
  before do
12
- config.stub(:global_options_file) { fixture_path(config_name) }
13
- File.stub(:open) { YAML.load fixture('simple_config') }
68
+ GithubCLI::Command.stub(:all) { [cmd] }
69
+ File.stub(:open)
14
70
  end
15
-
16
- it 'returns config type' do
17
- GithubCLI.config = GithubCLI::Config.new filename
18
- GithubCLI.config.should be_a GithubCLI::Config
19
- end
20
-
21
- context 'array access' do
22
- it 'returns value for the key' do
23
- config['auth.basic'].should == 'login:password'
24
- end
25
-
26
- it 'searches in commands' do
27
- config['issue.list'].should == { 'title' => 'ticket' }
28
- end
29
-
30
- it 'returns nil for missing key' do
31
- config['non-existent'].should be_nil
32
- end
33
- end
34
-
35
- context '#fetch' do
36
- it 'finds value' do
37
- config.fetch('auth.token').should == 'ad7f9asdf97as98df7as9fd7'
38
- end
39
-
40
- it 'uses default value' do
41
- config.fetch('unkown', 11).should == 11
42
- end
43
-
44
- it 'raises error' do
45
- expect {
46
- config.fetch('unkown')
47
- }.to raise_error(IndexError)
48
- end
49
- end
50
-
51
- context '#pretty' do
52
- it 'collects options into array' do
53
- options= {'auth.token' => 'abc123' }
54
- config.stub(:all).and_return options
55
- config.pretty.should == [['auth.token','abc123']]
56
- end
57
-
58
- it 'marks nil option value as undefined' do
59
- options= {'option' => nil}
60
- config.stub(:all).and_return options
61
- config.pretty.should == [['option', 'UNDEFINED']]
62
- end
63
- end
64
-
65
- context '#save' do
66
- let(:attrs) { {} }
67
- let(:cmd) { stub(:cmd, :namespace => 'repo', :name => 'create') }
68
-
69
- before do
70
- GithubCLI::Command.stub(:all) { [cmd] }
71
- File.stub(:open)
72
- end
73
-
74
- it 'saves config to yaml format' do
75
- File.stub(:open).and_yield filename
76
- YAML.should_receive(:dump).with(attrs, filename)
77
- config.save attrs
78
- end
79
-
80
- it 'retrieves api commands' do
81
- config.save attrs
82
- attrs.should have_key 'commands.repo.create'
83
- end
84
-
85
- it 'skips commands with no namespace' do
86
- cmd.stub(:namespace) { '' }
87
- config.save attrs
88
- attrs.keys.should be_empty
89
- end
90
-
91
- it 'skips help commands' do
92
- cmd.stub(:name) { 'help' }
93
- config.save attrs
94
- attrs.keys.should be_empty
95
- end
96
- end
97
-
98
- context "#load" do
99
- it "loads empty hash if config doesn't exist" do
100
- File.stub(:exists?) { false }
101
- config.load == {}
102
- end
103
-
104
- it "loads yaml config" do
105
- File.stub(:exists?) { true }
106
- File.stub(:open).and_yield filename
107
- YAML.should_receive(:load).with(filename)
108
- config.load
109
- end
110
- end
111
-
112
- context "#path" do
113
- it 'looks for local config file' do
114
- root = "/users/"
115
- File.stub(:exists?) { true }
116
- config = GithubCLI::Config.new root
117
- config.path.to_s.should == "#{root}/.githubrc"
118
- end
119
-
120
- it 'reads global file if local is missing ' do
121
- File.stub(:exists?) { false }
122
- config = GithubCLI::Config.new path
123
- config.path.to_s.should == "#{ENV['HOME']}/#{filename}"
124
- end
71
+
72
+ it 'saves config to yaml format' do
73
+ File.stub(:open).and_yield filename
74
+ YAML.should_receive(:dump).with(attrs, filename)
75
+ config.save attrs
76
+ end
77
+
78
+ it 'retrieves api commands' do
79
+ config.save attrs
80
+ attrs.should have_key 'commands.repo.create'
81
+ end
82
+
83
+ it 'skips commands with no namespace' do
84
+ cmd.stub(:namespace) { '' }
85
+ config.save attrs
86
+ attrs.keys.should be_empty
87
+ end
88
+
89
+ it 'skips help commands' do
90
+ cmd.stub(:name) { 'help' }
91
+ config.save attrs
92
+ attrs.keys.should be_empty
125
93
  end
126
94
  end
127
95
 
128
- context 'local' do
96
+ context "#load" do
97
+ it "loads empty hash if config doesn't exist" do
98
+ File.stub(:exists?) { false }
99
+ config.load == {}
100
+ end
101
+
102
+ it "loads yaml config" do
103
+ File.stub(:exists?) { true }
104
+ File.stub(:open).and_yield filename
105
+ YAML.should_receive(:load).with(filename)
106
+ config.load
107
+ end
129
108
  end
130
109
 
110
+ context "#path" do
111
+ it 'looks for local config file' do
112
+ root = "/users/"
113
+ File.stub(:exists?) { true }
114
+ config = GithubCLI::Config.new root
115
+ config.path.to_s.should == "#{root}/.githubrc"
116
+ end
117
+
118
+ it 'reads global file if local is missing ' do
119
+ File.stub(:exists?) { false }
120
+ config = GithubCLI::Config.new path
121
+ config.path.to_s.should == "#{ENV['HOME']}/#{filename}"
122
+ end
123
+ end
131
124
  end # GithubCLI::Config
@@ -0,0 +1,19 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+ describe GithubCLI::Util, '#convert_value' do
6
+
7
+ it { expect(subject.convert_value(false)).to eq "false" }
8
+
9
+ it { expect(subject.convert_value(true)).to eq "true" }
10
+
11
+ it { expect(subject.convert_value(:bar)).to eq "bar" }
12
+
13
+ it { expect(subject.convert_value(123)).to eq "123" }
14
+
15
+ it { expect(subject.convert_value({:a => false})).to eql ["false"] }
16
+
17
+ it { expect(subject.convert_value([2.5])).to eql ["2.5"] }
18
+
19
+ end # convert_value
@@ -0,0 +1,14 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+ describe GithubCLI::Util, '#convert_values' do
6
+ let(:values) { [true, {:a => false }, 'string']}
7
+
8
+ it { expect(subject.convert_values(values)).to include(["false"]) }
9
+
10
+ it { expect(subject.convert_values(values)).to include("true") }
11
+
12
+ it { expect(subject.convert_values(values)).to include("string") }
13
+
14
+ end # convert_values
@@ -16,35 +16,6 @@ describe GithubCLI::Util do
16
16
  end
17
17
  end
18
18
 
19
- describe '#convert_values' do
20
- let(:values) { [true, {:a => false }, 'string']}
21
-
22
- it "converts ruby boolean to string" do
23
- subject.convert_values(values).should include "true"
24
- subject.convert_values(values).should_not include true
25
- end
26
-
27
- it "converts recursively" do
28
- subject.convert_values(values).should include ['false']
29
- end
30
-
31
- it 'preserves strings' do
32
- subject.convert_values(values).should include 'string'
33
- end
34
- end
35
-
36
- describe "#convert_value" do
37
- it 'converts arrays to arrays of strings' do
38
- values = [:bar, 123, 3.14]
39
- subject.convert_value(values).should eq(["bar", "123", "3.14"])
40
- end
41
-
42
- it 'converts hash values to strings' do
43
- values = {:foo => 123, :bar => :baz, :buz => 2.3}
44
- subject.convert_value(values).should eq(["123", "baz", "2.3"])
45
- end
46
- end
47
-
48
19
  describe '#longest_common_prefix' do
49
20
  it 'finds common prefix' do
50
21
  a = 'tribe'; b = 'tree'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-29 00:00:00.000000000Z
12
+ date: 2013-03-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: github_api
16
- requirement: &2152331700 !ruby/object:Gem::Requirement
16
+ requirement: &2153408740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0.7'
21
+ version: '0.9'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152331700
24
+ version_requirements: *2153408740
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &2152330960 !ruby/object:Gem::Requirement
27
+ requirement: &2153408300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2152330960
35
+ version_requirements: *2153408300
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: aruba
38
- requirement: &2152329880 !ruby/object:Gem::Requirement
38
+ requirement: &2153407820 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2152329880
46
+ version_requirements: *2153407820
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &2152329160 !ruby/object:Gem::Requirement
49
+ requirement: &2153407400 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2152329160
57
+ version_requirements: *2153407400
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: communist
60
- requirement: &2152328380 !ruby/object:Gem::Requirement
60
+ requirement: &2153406960 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2152328380
68
+ version_requirements: *2153406960
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: ronn
71
- requirement: &2152327800 !ruby/object:Gem::Requirement
71
+ requirement: &2153406500 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2152327800
79
+ version_requirements: *2153406500
80
80
  description: CLI-based access to GitHub API v3
81
81
  email:
82
82
  - ''
@@ -235,11 +235,10 @@ files:
235
235
  - lib/github_cli/vendor/thor/actions/file_manipulation.rb
236
236
  - lib/github_cli/vendor/thor/actions/inject_into_file.rb
237
237
  - lib/github_cli/vendor/thor/base.rb
238
- - lib/github_cli/vendor/thor/core_ext/dir_escape.rb
239
- - lib/github_cli/vendor/thor/core_ext/file_binary_read.rb
238
+ - lib/github_cli/vendor/thor/command.rb
240
239
  - lib/github_cli/vendor/thor/core_ext/hash_with_indifferent_access.rb
240
+ - lib/github_cli/vendor/thor/core_ext/io_binary_read.rb
241
241
  - lib/github_cli/vendor/thor/core_ext/ordered_hash.rb
242
- - lib/github_cli/vendor/thor/empty.txt
243
242
  - lib/github_cli/vendor/thor/error.rb
244
243
  - lib/github_cli/vendor/thor/group.rb
245
244
  - lib/github_cli/vendor/thor/invocation.rb
@@ -254,7 +253,6 @@ files:
254
253
  - lib/github_cli/vendor/thor/shell/basic.rb
255
254
  - lib/github_cli/vendor/thor/shell/color.rb
256
255
  - lib/github_cli/vendor/thor/shell/html.rb
257
- - lib/github_cli/vendor/thor/task.rb
258
256
  - lib/github_cli/vendor/thor/util.rb
259
257
  - lib/github_cli/vendor/thor/version.rb
260
258
  - lib/github_cli/version.rb
@@ -266,9 +264,26 @@ files:
266
264
  - spec/github_cli/api_spec.rb
267
265
  - spec/github_cli/cli_spec.rb
268
266
  - spec/github_cli/command_spec.rb
267
+ - spec/github_cli/commands/assignees_spec.rb
268
+ - spec/github_cli/commands/blobs_spec.rb
269
+ - spec/github_cli/commands/collaborators_spec.rb
270
+ - spec/github_cli/commands/commits_spec.rb
271
+ - spec/github_cli/commands/emails_spec.rb
272
+ - spec/github_cli/commands/events_spec.rb
273
+ - spec/github_cli/commands/followers_spec.rb
274
+ - spec/github_cli/commands/keys_spec.rb
275
+ - spec/github_cli/commands/labels_spec.rb
276
+ - spec/github_cli/commands/milestones_spec.rb
277
+ - spec/github_cli/commands/references_spec.rb
278
+ - spec/github_cli/commands/starring_spec.rb
279
+ - spec/github_cli/commands/tags_spec.rb
280
+ - spec/github_cli/commands/trees_spec.rb
281
+ - spec/github_cli/commands/watching_spec.rb
269
282
  - spec/github_cli/config_spec.rb
270
283
  - spec/github_cli/helpers_spec.rb
271
284
  - spec/github_cli/pager_spec.rb
285
+ - spec/github_cli/util/convert_value_spec.rb
286
+ - spec/github_cli/util/convert_values_spec.rb
272
287
  - spec/github_cli/util_spec.rb
273
288
  - spec/spec_helper.rb
274
289
  - lib/github_cli/man/gcli-config.1
@@ -345,8 +360,25 @@ test_files:
345
360
  - spec/github_cli/api_spec.rb
346
361
  - spec/github_cli/cli_spec.rb
347
362
  - spec/github_cli/command_spec.rb
363
+ - spec/github_cli/commands/assignees_spec.rb
364
+ - spec/github_cli/commands/blobs_spec.rb
365
+ - spec/github_cli/commands/collaborators_spec.rb
366
+ - spec/github_cli/commands/commits_spec.rb
367
+ - spec/github_cli/commands/emails_spec.rb
368
+ - spec/github_cli/commands/events_spec.rb
369
+ - spec/github_cli/commands/followers_spec.rb
370
+ - spec/github_cli/commands/keys_spec.rb
371
+ - spec/github_cli/commands/labels_spec.rb
372
+ - spec/github_cli/commands/milestones_spec.rb
373
+ - spec/github_cli/commands/references_spec.rb
374
+ - spec/github_cli/commands/starring_spec.rb
375
+ - spec/github_cli/commands/tags_spec.rb
376
+ - spec/github_cli/commands/trees_spec.rb
377
+ - spec/github_cli/commands/watching_spec.rb
348
378
  - spec/github_cli/config_spec.rb
349
379
  - spec/github_cli/helpers_spec.rb
350
380
  - spec/github_cli/pager_spec.rb
381
+ - spec/github_cli/util/convert_value_spec.rb
382
+ - spec/github_cli/util/convert_values_spec.rb
351
383
  - spec/github_cli/util_spec.rb
352
384
  - spec/spec_helper.rb
File without changes
@@ -1,9 +0,0 @@
1
- class File #:nodoc:
2
-
3
- unless File.respond_to?(:binread)
4
- def self.binread(file)
5
- File.open(file, 'rb') { |f| f.read }
6
- end
7
- end
8
-
9
- end
File without changes