Skip to content

Commit

Permalink
Fixes and contributors preparing for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter de Vos committed Oct 22, 2014
1 parent d6aece8 commit 682eca8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
6 changes: 6 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

[GUARD]: https://github.com/guard/guard

## Contributors

- @alloy (For the `terminal-notifier`)
- @railsme (For a clean way to test for OSX version #15)
- @jamilbx (For support for local `terminal-notifier` command #8)
14 changes: 8 additions & 6 deletions Ruby/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ PATH
GEM
remote: https://rubygems.org/
specs:
bacon (1.1.0)
metaclass (0.0.1)
mocha (0.12.3)
bacon (1.2.0)
metaclass (0.0.4)
mocha (1.1.0)
metaclass (~> 0.0.1)
mocha-on-bacon (0.2.1)
mocha (>= 0.9.8)
rake (0.9.2.2)
mocha-on-bacon (0.2.2)
mocha (>= 0.13.0)
rake (10.3.2)
terminal-notifier (1.6.0)

PLATFORMS
ruby
Expand All @@ -22,4 +23,5 @@ DEPENDENCIES
mocha
mocha-on-bacon
rake
terminal-notifier
terminal-notifier-guard!
21 changes: 7 additions & 14 deletions Ruby/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,22 @@ def filenames
types.map{|type| type_file_name(type)}
end

def zip_file_name(type)
"#{type_file_name(type)}.zip"
end

def zipfiles
filenames.map{|n| "#{n}.zip"}
types.map{|n| zip_file_name(n)}
end

task :clean do
rm zipfiles
rm_rf "vendor"
end

desc "Update the vendored terminal notifiers."
task :update_build do
rm_rf "vendor"
mkdir "vendor"

zipfiles.each do |zipfile|
unless File.exist?(zipfile)
sh "curl -L 'https://github.com/alloy/terminal-notifier/releases/download/#{version}/terminal-notifier-#{version}.zip' -o #{zipfile}"
end

sh "unzip -o -d vendor #{zipfile}"
end
types.each do |type|
mv "vendor/#{type_file_name(type)}.app", "vendor/terminal-notifier-#{type}.app"
end
puts "This needs fixing."
end

desc "Build gem"
Expand Down
1 change: 1 addition & 0 deletions Ruby/terminal-notifier-guard.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'bacon'
gem.add_development_dependency 'mocha'
gem.add_development_dependency 'mocha-on-bacon'
gem.add_development_dependency 'terminal-notifier'
end

0 comments on commit 682eca8

Please sign in to comment.