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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ffe0ac8fed31fac8ef702dc5035ad4852be4054
4
- data.tar.gz: 73a3f58c53d496c16b5653f95a821054faef87ee
3
+ metadata.gz: c6de128b1a903cc5e6e15cf5b84fab85a3c376c6
4
+ data.tar.gz: 99666a1ee7cba1791b892d5ac8d7b3657a30edb1
5
5
  SHA512:
6
- metadata.gz: e5a95b2e62c6ffdccfd4c70f2e224cf33ae2b9637a830ccfe2bda0e0c6788bfd8e027fdc7001834f5ef7b12ac9c8d47cc26ca9d795acd5c7f3f7945a3225621d
7
- data.tar.gz: a2a08235039f9b144e4944b18e9637713beb54afba5d988792ce189412277b045d420276f0bd6c4b500419037f5ad6533a476227d35070bf34b9ba8d49371ec9
6
+ metadata.gz: 25091b0792ffe4e226c6021e682a6b00155398098a283a99c51f688a99ba69d4936e60959f296ca287392f80f5d1f5325de6b8a16c00b3d05554f4200e92cb65
7
+ data.tar.gz: 1f05ddff20967d19416b9f04053ebcb9ab17835a6fda67ca43c6f345d1b98490e3f4b38023efecb36bd02e2cfc837784f3153b29d68fa44c7ebcc20a53012fde
@@ -1,3 +1,3 @@
1
1
  module Bowie
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
@@ -1,3 +1,10 @@
1
- describe "Bowie::Actions.install" do
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
@@ -1,3 +1,4 @@
1
- describe "Bowie::Actions.list" do
2
-
1
+ describe "Bowie::Actions" do
2
+ it ".list" do
3
+ end
3
4
  end
@@ -1,3 +1,4 @@
1
- describe "Bowie::Actions.prune" do
2
-
1
+ describe "Bowie::Actions" do
2
+ it ".prune" do
3
+ end
3
4
  end
@@ -1,21 +1,21 @@
1
- describe "Bowie::Actions.search" do
2
- it "search [song]" do
3
- expect {Bowie::Actions.search('susy')}.not_to be_nil
4
- expect {Bowie::Actions.search('susy')['susy']}.not_to be_nil
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('susy')['susy']}
16
- it "returns expected results" do
17
- expect(query['name']).to match "susy"
18
- expect(query['description']).to match "A responsive grid framework for Compass"
19
- expect(query['url']).to match "https://github.com/ericam/susy"
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
@@ -1,3 +1,4 @@
1
- describe "Bowie::Actions.uninstall" do
2
-
1
+ describe "Bowie::Actions" do
2
+ it ".uninstall [song]" do
3
+ end
3
4
  end
@@ -1,3 +1,4 @@
1
- describe "Bowie::Actions.update" do
2
-
1
+ describe "Bowie::Actions" do
2
+ it ".update" do
3
+ end
3
4
  end
@@ -1,2 +1,11 @@
1
1
  require 'rspec'
2
- require './lib/bowie'
2
+ require './lib/bowie'
3
+ require './spec/spec_helper.rb'
4
+
5
+ describe "Bowie" do
6
+ it "executes actions" do
7
+ Dir.glob('./spec/actions/*') do |spec|
8
+ require spec
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,10 @@
1
+ RSpec.configure do |config|
2
+ config.before(:each) do
3
+ FileUtils.rm_rf('./bowie_songs')
4
+ FileUtils.rm_rf('./songs.yml')
5
+ end
6
+ config.after(:each) do
7
+ FileUtils.rm_rf('./bowie_songs')
8
+ FileUtils.rm_rf('./songs.yml')
9
+ end
10
+ end
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.7
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
File without changes
data/songs.yml DELETED
File without changes