bowie 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bowie/version.rb +1 -1
- data/spec/actions/install_spec.rb +9 -2
- data/spec/actions/list_spec.rb +3 -2
- data/spec/actions/prune_spec.rb +3 -2
- data/spec/actions/search_spec.rb +13 -13
- data/spec/actions/uninstall_spec.rb +3 -2
- data/spec/actions/update_spec.rb +3 -2
- data/spec/bowie_spec.rb +10 -1
- data/spec/spec_helper.rb +10 -0
- metadata +3 -3
- data/bowie_songs/lyrics.yml +0 -0
- data/songs.yml +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6de128b1a903cc5e6e15cf5b84fab85a3c376c6
|
4
|
+
data.tar.gz: 99666a1ee7cba1791b892d5ac8d7b3657a30edb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25091b0792ffe4e226c6021e682a6b00155398098a283a99c51f688a99ba69d4936e60959f296ca287392f80f5d1f5325de6b8a16c00b3d05554f4200e92cb65
|
7
|
+
data.tar.gz: 1f05ddff20967d19416b9f04053ebcb9ab17835a6fda67ca43c6f345d1b98490e3f4b38023efecb36bd02e2cfc837784f3153b29d68fa44c7ebcc20a53012fde
|
data/lib/bowie/version.rb
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
-
describe "Bowie::Actions
|
2
|
-
|
1
|
+
describe "Bowie::Actions" do
|
2
|
+
it ".install [song]" do
|
3
|
+
expect {Bowie::Actions.install('bowie-test')}.to_not raise_error
|
4
|
+
expect(File.directory? './bowie_songs').to be true
|
5
|
+
expect(File.directory? './bowie_songs/bowie-test').to be true
|
6
|
+
expect(File.exist? './songs.yml').to be true
|
7
|
+
expect(Bowie::SongUtils.get_local_songs.include? 'bowie-test').to be true
|
8
|
+
expect(Bowie::SongUtils.get_local_songs.length).to be 1
|
9
|
+
end
|
3
10
|
end
|
data/spec/actions/list_spec.rb
CHANGED
data/spec/actions/prune_spec.rb
CHANGED
data/spec/actions/search_spec.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
describe "Bowie::Actions
|
2
|
-
it "search [song]" do
|
3
|
-
expect {Bowie::Actions.search('
|
4
|
-
expect {Bowie::Actions.search('
|
1
|
+
describe "Bowie::Actions" do
|
2
|
+
it ".search [song]" do
|
3
|
+
expect {Bowie::Actions.search('bowie-test')}.not_to be_nil
|
4
|
+
expect {Bowie::Actions.search('bowie-test')['bowie-test']}.not_to be_nil
|
5
5
|
end
|
6
6
|
|
7
|
-
it "search with no arguments" do
|
8
|
-
expect {Bowie::Actions.search()}.to raise_error
|
7
|
+
it ".search with no arguments" do
|
8
|
+
expect {Bowie::Actions.search()}.to raise_error(ArgumentError)
|
9
9
|
end
|
10
10
|
|
11
|
-
it "search with more than 1 argument" do
|
12
|
-
expect {Bowie::Actions.search('foo', 'bar', 'baz')}.to raise_error
|
11
|
+
it ".search with more than 1 argument" do
|
12
|
+
expect {Bowie::Actions.search('foo', 'bar', 'baz')}.to raise_error(ArgumentError)
|
13
13
|
end
|
14
14
|
|
15
|
-
subject(:query) {Bowie::Actions.search('
|
16
|
-
it "returns expected results" do
|
17
|
-
expect(query['name']).to match "
|
18
|
-
expect(query['description']).to match "A
|
19
|
-
expect(query['url']).to match "https://github.com/
|
15
|
+
subject(:query) {Bowie::Actions.search('bowie-test')['bowie-test']}
|
16
|
+
it ".search returns expected results" do
|
17
|
+
expect(query['name']).to match "bowie-test"
|
18
|
+
expect(query['description']).to match "A repository for Bowie testing"
|
19
|
+
expect(query['url']).to match "https://github.com/axyz/bowie-test"
|
20
20
|
end
|
21
21
|
end
|
data/spec/actions/update_spec.rb
CHANGED
data/spec/bowie_spec.rb
CHANGED
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bowie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrea Moretti
|
@@ -95,7 +95,6 @@ files:
|
|
95
95
|
- Rakefile
|
96
96
|
- bin/bowie
|
97
97
|
- bowie.gemspec
|
98
|
-
- bowie_songs/lyrics.yml
|
99
98
|
- lib/bowie.rb
|
100
99
|
- lib/bowie/actions.rb
|
101
100
|
- lib/bowie/actions/install.rb
|
@@ -109,7 +108,6 @@ files:
|
|
109
108
|
- lib/bowie/utils.rb
|
110
109
|
- lib/bowie/version.rb
|
111
110
|
- lib/semver/semver.rb
|
112
|
-
- songs.yml
|
113
111
|
- spec/actions/install_spec.rb
|
114
112
|
- spec/actions/list_spec.rb
|
115
113
|
- spec/actions/prune_spec.rb
|
@@ -117,6 +115,7 @@ files:
|
|
117
115
|
- spec/actions/uninstall_spec.rb
|
118
116
|
- spec/actions/update_spec.rb
|
119
117
|
- spec/bowie_spec.rb
|
118
|
+
- spec/spec_helper.rb
|
120
119
|
homepage: http://axyz.github.io/bowie/
|
121
120
|
licenses:
|
122
121
|
- MIT
|
@@ -149,3 +148,4 @@ test_files:
|
|
149
148
|
- spec/actions/uninstall_spec.rb
|
150
149
|
- spec/actions/update_spec.rb
|
151
150
|
- spec/bowie_spec.rb
|
151
|
+
- spec/spec_helper.rb
|
data/bowie_songs/lyrics.yml
DELETED
File without changes
|
data/songs.yml
DELETED
File without changes
|