File tree 5 files changed +60
-1
lines changed
5 files changed +60
-1
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env ruby
2
+ # -*- coding: utf-8 -*-
3
+
4
+ Gem ::Specification . new do |s |
5
+ s . name = "upm"
6
+
7
+ s . version = File . read "VERSION"
8
+ s . date = File . mtime ( "VERSION" ) . strftime ( "%Y-%m-%d" )
9
+
10
+ s . summary = "Universal Package Manager"
11
+ s . description = "Wrap all known command-line package tools with a consistent and pretty interface."
12
+
13
+ s . homepage = "http://github.com/epitron/upm/"
14
+ s . licenses = [ "WTFPL" ]
15
+
16
+
17
+ s . authors = [ "epitron" ]
18
+
19
+ # s.executables = ["upm", "up", "u"]
20
+
21
+ s . files = `git ls` . lines . map ( &:strip )
22
+ s . extra_rdoc_files = [ "README.md" , "LICENSE" ]
23
+
24
+ # s.require_paths = %w[lib]
25
+
26
+ # s.add_dependency "slop", "~> 3.0"
27
+ end
Original file line number Diff line number Diff line change
1
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2
+ Version 2, December 2004
3
+
4
+ Copyright (C) 2004 Sam Hocevar
5
+ 14 rue de Plaisance, 75014 Paris, France
6
+ Everyone is permitted to copy and distribute verbatim or modified
7
+ copies of this license document, and changing it is allowed as long
8
+ as the name is changed.
9
+
10
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12
+
13
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
Original file line number Diff line number Diff line change 1
- # up: The Universal Package manager
1
+ # upm: Universal Package Manager
2
2
3
3
## Usage:
4
4
5
5
```
6
+ upm <command> <pkg>
6
7
up <command> <pkg>
8
+ u <command> <pkg>
7
9
```
8
10
9
11
## Commands
Original file line number Diff line number Diff line change
1
+ gem_version = File . read ( "VERSION" ) . strip
2
+ pkgname = "upm"
3
+
4
+ task :build do
5
+ system "gem build .gemspec"
6
+ end
7
+
8
+ task :release => :build do
9
+ system "gem push #{ pkgname } -#{ gem_version } .gem"
10
+ end
11
+
12
+ task :gem => :release
13
+
14
+ task :install => :build do
15
+ system "gem install #{ pkgname } -#{ gem_version } .gem"
16
+ end
Original file line number Diff line number Diff line change
1
+ 0.0.0
You can’t perform that action at this time.
0 commit comments