gem2arch 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: af5e4b85f9285e2ff6eaa81e7f1e7ae2b88c450c
4
- data.tar.gz: 769ec672100dfeb17eec763a4f5981be82d9e822
5
- SHA512:
6
- metadata.gz: fc241c5b8a14f5a02f95f4f08eef1f8ff15dd21fa9bf261e9c0e01710227435add2d1eae6a34c1315cf0b8e040a54bc4b43da53a8700ae345f1b149dbb7eea3c
7
- data.tar.gz: 4842f4ccb6729e1b3da5c2c171b225d2870f35c32bf7cb27c13af4b24d59ca51c7760eb108b71847731f2ef3da9ba05b71e2512bd1013af0f5bfcd379fc39f6a
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6dda8e7d6719216392e648444534adf31a3fa5e5
4
+ data.tar.gz: 9e194e033891f3a2adda12a550fc045a79e3cabb
5
+ SHA512:
6
+ metadata.gz: 186710284e6fcc8b051791bc801641e5ce5eadb778d33d017420b59c8ba5465d7339c17d5fb0fe5b5c8ec1f7b5ea59ace8e86c402b2d386c02950022f762308b
7
+ data.tar.gz: 9990ad90583a3dca4bf5fccfadc33963c49360671d670d7b0b7d52a8d731b0b1735205bc106b222817766582641714a60a912cef0fc98c700504c24320679329
data/gem2arch.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |s|
4
4
  # Variables:
5
5
  s.name = "gem2arch"
6
- s.version = "0.0.4"
6
+ s.version = "0.0.5"
7
7
  s.description = "A version of gem2arch by crabtw that creates an ArchLinux PKGBUILD from a ruby gem"
8
8
  s.summary = "Creates an ArchLinux PKGBUILD from a ruby gem"
9
9
  s.authors = ["Ari Mizrahi"]
data/lib/gem2arch/core.rb CHANGED
@@ -2,9 +2,20 @@ require 'digest/md5'
2
2
  require 'digest/sha1'
3
3
 
4
4
  module Gem2arch
5
-
5
+ #
6
+ # Core methods for Gem2arch to download gem specifications and build
7
+ # PKGBUILD files compatible for ArchLinux makepkg
8
+ #
6
9
  class Core
7
10
 
11
+ # Make sure we're running ruby 2.0.0 or higher
12
+ def initialize
13
+ unless RUBY_VERSION >= '2.0.0'
14
+ puts "You need ruby >= 2.0.0 to run gem2arch"
15
+ exit
16
+ end
17
+ end
18
+
8
19
  # Download the gem and return specification information
9
20
  # @params [String] gemname is the name of the gem to download
10
21
  # @params [String] gemver is the version of the gem to download - default nil
@@ -113,11 +124,11 @@ module Gem2arch
113
124
  line.puts "url='#{gem[:website]}'"
114
125
  line.puts "source=(\"http://rubygems.org/downloads/#{gem[:name]}-$pkgver.gem\")"
115
126
  line.puts "md5sums=('#{gem[:md5sum]}')"
116
- line.puts "noextract=(#{gem[:name]}-#{gem[:version]}.gem)"
127
+ line.puts "noextract=(\"#{gem[:name]}-$pkgver.gem\")"
117
128
  line.puts ""
118
129
  line.puts "package() {"
119
130
  line.puts "\s\scd \"$srcdir\""
120
- line.puts "\s\slocal _gemdir=\"$(ruby -e 'puts Gem.default_dir')\""
131
+ line.puts "\s\slocal _gemdir=$(ruby -e 'puts Gem.default_dir')"
121
132
  line.puts "\s\sgem install --ignore-dependencies --no-user-install -i \"$pkgdir$_gemdir\" -n \"$pkgdir/usr/bin\" $_gemname-$pkgver.gem"
122
133
  line.puts "}"
123
134
  end
data/lib/gem2arch.rb CHANGED
@@ -12,7 +12,7 @@ module Gem2arch
12
12
  }
13
13
 
14
14
  OptionParser.new do |opts|
15
- opts.banner = "gem2arch 0.0.4 (https://www.github.com/codemunchies/gem2arch)"
15
+ opts.banner = "gem2arch 0.0.5 (https://www.github.com/codemunchies/gem2arch)"
16
16
  opts.banner += "Usage: gem2arch [options]"
17
17
 
18
18
  opts.on("--build [STRING]", "Gem to download and generate PKGBUILD for") do |gem|
metadata CHANGED
@@ -1,23 +1,26 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gem2arch
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Ari Mizrahi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-01 00:00:00.000000000 Z
11
+
12
+ date: 2013-08-01 00:00:00 Z
12
13
  dependencies: []
13
- description: A version of gem2arch by crabtw that creates an ArchLinux PKGBUILD from
14
- a ruby gem
14
+
15
+ description: A version of gem2arch by crabtw that creates an ArchLinux PKGBUILD from a ruby gem
15
16
  email: codemunchies@gmail.com
16
- executables:
17
+ executables:
17
18
  - gem2arch
18
19
  extensions: []
20
+
19
21
  extra_rdoc_files: []
20
- files:
22
+
23
+ files:
21
24
  - lib/gem2arch.rb
22
25
  - lib/gem2arch/core.rb
23
26
  - bin/gem2arch
@@ -25,27 +28,30 @@ files:
25
28
  - Gemfile
26
29
  - README.md
27
30
  homepage: http://github.com/codemunchies/gem2arch
28
- licenses:
31
+ licenses:
29
32
  - GPL-3
30
33
  metadata: {}
34
+
31
35
  post_install_message:
32
36
  rdoc_options: []
33
- require_paths:
37
+
38
+ require_paths:
34
39
  - lib
35
- required_ruby_version: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - '>='
38
- - !ruby/object:Gem::Version
39
- version: '0'
40
- required_rubygems_version: !ruby/object:Gem::Requirement
41
- requirements:
42
- - - '>='
43
- - !ruby/object:Gem::Version
44
- version: '0'
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - &id001
43
+ - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - *id001
45
49
  requirements: []
50
+
46
51
  rubyforge_project:
47
52
  rubygems_version: 2.0.6
48
53
  signing_key:
49
54
  specification_version: 4
50
55
  summary: Creates an ArchLinux PKGBUILD from a ruby gem
51
56
  test_files: []
57
+