fucktherubyracer 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fucktherubyracer/fucker.rb +6 -4
- data/lib/fucktherubyracer/runner.rb +2 -1
- data/lib/fucktherubyracer/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13fdd76a60753da27a38d05184b9a260313b926f
|
4
|
+
data.tar.gz: 1aeb48a79291db0c4257eeaf105784cf1459038f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e034e580e4faf280d82a52feccd78f1737c4be4279d3c8149395ab822fbe0d427fbe8bbc899ad5218957a84114e86105525af3d1f6b5a3760139859c063ca30e
|
7
|
+
data.tar.gz: d2db35fa0494edc24f2b0fadf87d35c6b688e2d38cef0198127d93318fdd16347e392e6bcbd2cee5783126bfa5baa2fd16fdeb0489b524d57e28fcb86e84ebe6
|
@@ -7,10 +7,12 @@ module Fucktherubyracer
|
|
7
7
|
def initialize
|
8
8
|
end
|
9
9
|
|
10
|
-
def fuck(gem_name)
|
11
|
-
spec =
|
12
|
-
|
13
|
-
|
10
|
+
def fuck(gem_name, version = nil)
|
11
|
+
spec = if version
|
12
|
+
Gem::Specification.new(gem_name, version)
|
13
|
+
else
|
14
|
+
lockfile_parser.specs.find { |spec| spec.name == gem_name }
|
15
|
+
end
|
14
16
|
|
15
17
|
generate(spec)
|
16
18
|
end
|
@@ -3,10 +3,11 @@ require 'thor'
|
|
3
3
|
module Fucktherubyracer
|
4
4
|
class Runner < Thor
|
5
5
|
desc 'fuck GEM_NAME', 'Reads dependency info from Gemfile.lock and installs fake gem'
|
6
|
+
method_option :version, desc: 'Version to fuck'
|
6
7
|
def fuck(gem_name)
|
7
8
|
require 'fucktherubyracer/fucker'
|
8
9
|
fucker = Fucktherubyracer::Fucker.new
|
9
|
-
fucker.fuck(gem_name)
|
10
|
+
fucker.fuck(gem_name, options[:version])
|
10
11
|
end
|
11
12
|
end
|
12
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fucktherubyracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Semyonov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -126,8 +126,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.5.1
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Fucks uninstallable TheRubyRacer gem.
|
133
133
|
test_files: []
|
134
|
+
has_rdoc:
|